# Generated by Django 5.2.4 on 2025-07-07 11:19 import django.core.validators import uuid from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Lxc', fields=[ ('internal_id', models.BigAutoField(primary_key=True, serialize=False)), ('vmid', models.IntegerField(blank=True, null=True, unique=True)), ('name', models.CharField(blank=True, default='', max_length=150, null=True, verbose_name='Container Name')), ('hostname', models.CharField(blank=True, default='', max_length=150, null=True)), ('hwaddr', models.CharField(blank=True, default=uuid.uuid4, max_length=150, null=True, unique=True)), ('size', models.CharField(blank=True, max_length=4, null=True)), ('cores', models.IntegerField(blank=True, default=1, null=True)), ('memory', models.IntegerField(default=512, help_text='in MB', validators=[django.core.validators.MinValueValidator(128)])), ('disksize', models.IntegerField(default=12, help_text='in GB', validators=[django.core.validators.MinValueValidator(8)])), ('swap', models.IntegerField(blank=True, null=True)), ('description', models.TextField(blank=True, default='', null=True)), ('cpus', models.IntegerField(blank=True, default=1, null=True, validators=[django.core.validators.MinValueValidator(1)])), ('uptime', models.IntegerField(blank=True, null=True)), ('maxswap', models.IntegerField(blank=True, null=True)), ('cpu', models.IntegerField(blank=True, null=True)), ('disk', models.IntegerField(blank=True, null=True)), ('netout', models.IntegerField(blank=True, null=True)), ('diskwrite', models.IntegerField(blank=True, null=True)), ('diskread', models.IntegerField(blank=True, null=True)), ('pid', models.IntegerField(blank=True, null=True)), ('maxdisk', models.IntegerField(blank=True, null=True)), ('mem', models.IntegerField(blank=True, null=True)), ('maxmem', models.IntegerField(blank=True, null=True)), ('netin', models.IntegerField(blank=True, null=True)), ('status', models.CharField(blank=True, default='', max_length=150, null=True)), ('type', models.CharField(blank=True, default='', max_length=150, null=True)), ('onboot', models.CharField(blank=True, default='', max_length=150, null=True)), ('nameserver', models.CharField(blank=True, default='', max_length=150, null=True)), ('digest', models.CharField(blank=True, default='', max_length=150, null=True)), ('rootfs', models.CharField(blank=True, default='', max_length=150, null=True)), ('arch', models.CharField(blank=True, default='', max_length=150, null=True)), ('ostype', models.CharField(blank=True, default='', max_length=150, null=True)), ('net0', models.CharField(blank=True, default='', max_length=150, null=True)), ('features', models.CharField(blank=True, default='', max_length=250, null=True)), ('snaptime', models.CharField(blank=True, default='', max_length=150, null=True)), ('parent', models.CharField(blank=True, default='', max_length=150, null=True)), ('tags', models.CharField(blank=True, default='', max_length=250, null=True)), ('console', models.CharField(blank=True, default='', max_length=150, null=True)), ('tty', models.CharField(blank=True, default='', max_length=150, null=True)), ('searchdomain', models.CharField(blank=True, default='', max_length=150, null=True)), ('unprivileged', models.CharField(blank=True, default='', max_length=10, null=True)), ('lxc', models.CharField(blank=True, default='', max_length=10, null=True)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='LxcTemplate', fields=[ ('internal_id', models.BigAutoField(primary_key=True, serialize=False)), ('volid', models.CharField(max_length=150, unique=True)), ('ctime', models.IntegerField(default=0)), ('size', models.IntegerField(default=0)), ('format', models.CharField(max_length=10)), ('content', models.CharField(default='tgz', max_length=10)), ], options={ 'abstract': False, }, ), ]