8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-05 01:16:27 +00:00
re2o/machines/migrations/0066_srv.py
Gabriel Detraz dfdecf54ca Fix #52
2017-11-16 02:34:57 +01:00

31 lines
1.4 KiB
Python

# -*- 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'),
]
operations = [
migrations.CreateModel(
name='Srv',
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')),
],
),
]