forked from uncloud/uncloud
47 lines
1.6 KiB
Python
47 lines
1.6 KiB
Python
|
# Generated by Django 3.0.3 on 2020-02-22 07:19
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
('uncloud_api', '0001_initial'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='VMSnapshotOrder',
|
||
|
fields=[
|
||
|
('order_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='uncloud_api.Order')),
|
||
|
],
|
||
|
bases=('uncloud_api.order',),
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='VMSnapshotProduct',
|
||
|
fields=[
|
||
|
('product_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='uncloud_api.Product')),
|
||
|
('gb_ssd', models.FloatField()),
|
||
|
('gb_hdd', models.FloatField()),
|
||
|
],
|
||
|
bases=('uncloud_api.product',),
|
||
|
),
|
||
|
migrations.DeleteModel(
|
||
|
name='OrderReference',
|
||
|
),
|
||
|
migrations.RemoveField(
|
||
|
model_name='product',
|
||
|
name='name',
|
||
|
),
|
||
|
migrations.RemoveField(
|
||
|
model_name='product',
|
||
|
name='recurring_period',
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='product',
|
||
|
name='status',
|
||
|
field=models.CharField(choices=[('pending', 'Pending'), ('being_created', 'Being created'), ('created_active', 'Created'), ('deleted', 'Deleted')], default='pending', max_length=256),
|
||
|
),
|
||
|
]
|