forked from uncloud/uncloud
33 lines
1.3 KiB
Python
33 lines
1.3 KiB
Python
# Generated by Django 3.0.3 on 2020-02-27 10:50
|
|
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import uuid
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
('uncloud_pay', '0001_initial'),
|
|
('uncloud_vm', '0003_auto_20200225_2028'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='VMSnapshotProduct',
|
|
fields=[
|
|
('uuid', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
|
('status', models.CharField(choices=[('pending', 'Pending'), ('being_created', 'Being created'), ('active', 'Active'), ('deleted', 'Deleted')], default='pending', max_length=256)),
|
|
('gb_ssd', models.FloatField(editable=False)),
|
|
('gb_hdd', models.FloatField(editable=False)),
|
|
('vm_uuid', models.UUIDField()),
|
|
('order', models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, to='uncloud_pay.Order')),
|
|
('owner', models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
},
|
|
),
|
|
]
|