2017-09-10 22:33:45 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Generated by Django 1.10.7 on 2017-09-10 21:51
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
2019-11-04 16:55:03 +00:00
|
|
|
dependencies = [("machines", "0054_text_zone")]
|
2017-09-10 22:33:45 +00:00
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2019-11-04 16:55:03 +00:00
|
|
|
name="Nas",
|
2017-09-10 22:33:45 +00:00
|
|
|
fields=[
|
2019-11-04 16:55:03 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("name", models.CharField(max_length=255, unique=True)),
|
|
|
|
(
|
|
|
|
"machine_type",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
|
|
related_name="machinetype_on_nas",
|
|
|
|
to="machines.MachineType",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"nas_type",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
|
|
related_name="nas_type",
|
|
|
|
to="machines.MachineType",
|
|
|
|
),
|
|
|
|
),
|
2017-09-10 22:33:45 +00:00
|
|
|
],
|
2019-11-04 16:55:03 +00:00
|
|
|
)
|
2017-09-10 22:33:45 +00:00
|
|
|
]
|