2020-03-16 13:59:45 +00:00
# Generated by Django 2.2.10 on 2020-01-28 07:01
import django . core . validators
import django . db . models . deletion
2020-11-05 09:34:31 +00:00
from django . conf import settings
from django . db import migrations , models
2015-02-27 08:53:51 +00:00
class Migration ( migrations . Migration ) :
2020-03-16 13:59:45 +00:00
initial = True
2015-02-27 08:53:51 +00:00
dependencies = [
( ' instances ' , ' 0001_initial ' ) ,
2020-03-16 13:59:45 +00:00
migrations . swappable_dependency ( settings . AUTH_USER_MODEL ) ,
2015-02-27 08:53:51 +00:00
]
operations = [
2020-03-16 13:59:45 +00:00
migrations . CreateModel (
name = ' UserSSHKey ' ,
fields = [
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
( ' keyname ' , models . CharField ( max_length = 25 ) ) ,
( ' keypublic ' , models . CharField ( max_length = 500 ) ) ,
( ' user ' , models . ForeignKey ( on_delete = django . db . models . deletion . DO_NOTHING , to = settings . AUTH_USER_MODEL ) ) ,
] ,
) ,
2015-02-27 08:53:51 +00:00
migrations . CreateModel (
name = ' UserInstance ' ,
fields = [
2020-03-16 13:59:45 +00:00
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
2015-03-02 15:31:25 +00:00
( ' is_change ' , models . BooleanField ( default = False ) ) ,
( ' is_delete ' , models . BooleanField ( default = False ) ) ,
2020-03-16 13:59:45 +00:00
( ' is_vnc ' , models . BooleanField ( default = False ) ) ,
( ' instance ' , models . ForeignKey ( on_delete = django . db . models . deletion . CASCADE , to = ' instances.Instance ' ) ) ,
( ' user ' , models . ForeignKey ( on_delete = django . db . models . deletion . CASCADE , to = settings . AUTH_USER_MODEL ) ) ,
] ,
) ,
migrations . CreateModel (
name = ' UserAttributes ' ,
fields = [
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
( ' can_clone_instances ' , models . BooleanField ( default = True ) ) ,
( ' max_instances ' , models . IntegerField ( default = 1 , help_text = ' -1 for unlimited. Any integer value ' , validators = [ django . core . validators . MinValueValidator ( - 1 ) ] ) ) ,
( ' max_cpus ' , models . IntegerField ( default = 1 , help_text = ' -1 for unlimited. Any integer value ' , validators = [ django . core . validators . MinValueValidator ( - 1 ) ] ) ) ,
( ' max_memory ' , models . IntegerField ( default = 2048 , help_text = ' -1 for unlimited. Any integer value ' , validators = [ django . core . validators . MinValueValidator ( - 1 ) ] ) ) ,
( ' max_disk_size ' , models . IntegerField ( default = 20 , help_text = ' -1 for unlimited. Any integer value ' , validators = [ django . core . validators . MinValueValidator ( - 1 ) ] ) ) ,
( ' user ' , models . OneToOneField ( on_delete = django . db . models . deletion . CASCADE , to = settings . AUTH_USER_MODEL ) ) ,
2015-02-27 08:53:51 +00:00
] ,
) ,
]