2017-08-08 04:56:19 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Generated by Django 1.10.7 on 2017-08-08 00:33
|
|
|
|
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", "0043_auto_20170721_0350")]
|
2017-08-08 04:56:19 +00:00
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2019-11-04 16:55:03 +00:00
|
|
|
name="Service",
|
2017-08-08 04:56:19 +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",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"service_type",
|
|
|
|
models.CharField(blank=True, max_length=255, unique=True),
|
|
|
|
),
|
|
|
|
("time_regen", models.DurationField()),
|
2017-08-08 04:56:19 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2019-11-04 16:55:03 +00:00
|
|
|
name="Service_link",
|
2017-08-08 04:56:19 +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",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("last_regen", models.DateTimeField()),
|
|
|
|
("asked_regen", models.BooleanField()),
|
|
|
|
(
|
|
|
|
"server",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
to="machines.Interface",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"service",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
to="machines.Service",
|
|
|
|
),
|
|
|
|
),
|
2017-08-08 04:56:19 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
2019-11-04 16:55:03 +00:00
|
|
|
model_name="service",
|
|
|
|
name="servers",
|
|
|
|
field=models.ManyToManyField(
|
|
|
|
through="machines.Service_link", to="machines.Interface"
|
|
|
|
),
|
2017-08-08 04:56:19 +00:00
|
|
|
),
|
|
|
|
]
|