8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-25 22:03:10 +00:00
re2o/machines/migrations/0066_srv.py

77 lines
2.4 KiB
Python
Raw Normal View History

2017-11-16 01:33:57 +00:00
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-11-16 00:10
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [("machines", "0065_auto_20171115_1514")]
2017-11-16 01:33:57 +00:00
operations = [
migrations.CreateModel(
name="Srv",
2017-11-16 01:33:57 +00:00
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("service", models.CharField(max_length=31)),
(
"protocole",
models.CharField(
choices=[("TCP", "TCP"), ("UDP", "UDP")],
default="TCP",
max_length=3,
),
),
(
"ttl",
models.PositiveIntegerField(
default=172800, help_text="Time To Live"
),
),
(
"priority",
models.PositiveIntegerField(
validators=[django.core.validators.MaxValueValidator(65535)]
),
),
(
"weight",
models.PositiveIntegerField(
validators=[django.core.validators.MaxValueValidator(65535)]
),
),
(
"port",
models.PositiveIntegerField(
validators=[django.core.validators.MaxValueValidator(65535)]
),
),
(
"extension",
models.ForeignKey(
on_delete=django.db.models.deletion.PROTECT,
to="machines.Extension",
),
),
(
"target",
models.ForeignKey(
on_delete=django.db.models.deletion.PROTECT,
to="machines.Domain",
),
),
2017-11-16 01:33:57 +00:00
],
)
2017-11-16 01:33:57 +00:00
]