1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-03-23 11:04:49 +00:00
webvirtcloud/backend/compute/migrations/0001_initial.py
2018-09-23 13:17:48 +03:00

39 lines
1.7 KiB
Python

# Generated by Django 2.0.8 on 2018-09-22 07:20
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('region', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Compute',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=200, validators=[django.core.validators.RegexValidator('^[a-zA-Z0-9.-_]+$')])),
('description', models.CharField(blank=True, max_length=255)),
('address', models.CharField(max_length=50, validators=[django.core.validators.RegexValidator('^[a-zA-Z0-9._-]+$')], verbose_name='FQDN or IP Address')),
('login', models.CharField(blank=True, max_length=20)),
('password', models.CharField(blank=True, max_length=20)),
('conn', models.IntegerField(choices=[(1, 'TCP'), (3, 'TLS'), (2, 'SSH'), (4, 'SOCKET')], default=1)),
('is_active', models.BooleanField(default=False, verbose_name='Active')),
('created_at', models.DateTimeField(auto_now_add=True)),
('is_deleted', models.BooleanField(default=False, verbose_name='Deleted')),
('deleted_at', models.DateTimeField(blank=True, null=True)),
('region', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='region.Region')),
],
options={
'verbose_name': 'Compute',
'verbose_name_plural': 'Computes',
'ordering': ['-id'],
},
),
]