forked from uncloud/uncloud
41 lines
1.6 KiB
Python
41 lines
1.6 KiB
Python
|
# Generated by Django 3.1 on 2020-10-25 19:31
|
||
|
|
||
|
import django.core.validators
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
('uncloud', '0005_uncloudprovider_coupon_network'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='UncloudNetwork',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('network_address', models.GenericIPAddressField(unique=True)),
|
||
|
('network_mask', models.IntegerField(validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(128)])),
|
||
|
('description', models.CharField(max_length=256)),
|
||
|
],
|
||
|
),
|
||
|
migrations.AlterField(
|
||
|
model_name='uncloudprovider',
|
||
|
name='billing_network',
|
||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='uncloudproviderbill', to='uncloud.uncloudnetwork'),
|
||
|
),
|
||
|
migrations.AlterField(
|
||
|
model_name='uncloudprovider',
|
||
|
name='coupon_network',
|
||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='uncloudprovidercoupon', to='uncloud.uncloudnetwork'),
|
||
|
),
|
||
|
migrations.AlterField(
|
||
|
model_name='uncloudprovider',
|
||
|
name='referral_network',
|
||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='uncloudproviderreferral', to='uncloud.uncloudnetwork'),
|
||
|
),
|
||
|
]
|
||
|
2
|