mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-26 08:53:46 +00:00
36 lines
1.1 KiB
Python
36 lines
1.1 KiB
Python
|
# -*- coding: utf-8 -*-
|
||
|
from __future__ import unicode_literals
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Port',
|
||
|
fields=[
|
||
|
('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
|
||
|
('building', models.CharField(max_length=10)),
|
||
|
('switch', models.IntegerField()),
|
||
|
('port', models.IntegerField()),
|
||
|
('details', models.CharField(blank=True, max_length=255)),
|
||
|
],
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='Room',
|
||
|
fields=[
|
||
|
('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
|
||
|
('details', models.CharField(blank=True, max_length=255)),
|
||
|
('room', models.CharField(max_length=255)),
|
||
|
],
|
||
|
),
|
||
|
migrations.AlterUniqueTogether(
|
||
|
name='port',
|
||
|
unique_together=set([('building', 'switch', 'port')]),
|
||
|
),
|
||
|
]
|