forked from uncloud/uncloud
32 lines
1.2 KiB
Python
32 lines
1.2 KiB
Python
|
# Generated by Django 3.2.4 on 2021-07-09 09:14
|
||
|
|
||
|
from django.conf import settings
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
('uncloud_pay', '0021_auto_20210709_0914'),
|
||
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||
|
('matrixhosting', '0006_delete_matrixvmpricing'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='VMInstance',
|
||
|
fields=[
|
||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('ip', models.TextField(default='')),
|
||
|
('config', models.JSONField()),
|
||
|
('creation_date', models.DateTimeField(auto_now_add=True)),
|
||
|
('termination_date', models.DateTimeField(blank=True, null=True)),
|
||
|
('order', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='instance_id', to='uncloud_pay.order')),
|
||
|
('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||
|
],
|
||
|
),
|
||
|
]
|