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-28 13:44
|
|
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import uuid
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
('uncloud_pay', '0010_merge_20200228_1303'),
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
('uncloud_vm', '0007_auto_20200228_1344'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='MatrixServiceProduct',
|
|
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)),
|
|
('order', models.ForeignKey(editable=False, null=True, 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)),
|
|
('vm', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='uncloud_vm.VMProduct')),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
},
|
|
),
|
|
]
|