('name',models.CharField(help_text='Human readable name of image.',max_length=100,verbose_name='name')),
('description',models.TextField(blank=True,help_text='Description of the image.',verbose_name='description')),
('remote_id',models.CharField(help_text='ID, which helps access the image.',max_length=40,unique=True,verbose_name='remote_ID')),
('created_at',models.DateTimeField(auto_now_add=True,help_text='Date, when the image created.')),
('uploaded_by_user',models.BooleanField(default=True,editable=False,help_text='The field is false if the image created from instance')),
('created_by',models.ForeignKey(help_text='The user, who create the image',on_delete=django.db.models.deletion.DO_NOTHING,related_name='created_images',to=settings.AUTH_USER_MODEL)),
field=models.ForeignKey(default=0,help_text='The user, who create the image',on_delete=django.db.models.deletion.DO_NOTHING,related_name='created_images',to=settings.AUTH_USER_MODEL),
preserve_default=False,
),
migrations.AddField(
model_name='image',
name='uploaded_by_user',
field=models.BooleanField(default=True,editable=False,help_text='The field is false if the image created from instance'),
('name',models.CharField(blank=True,help_text='Human readable name of instance.',max_length=100,verbose_name='name')),
('name',models.CharField(help_text='Human readable name of template.',max_length=100,verbose_name='name')),
('description',models.TextField(blank=True,help_text='The description of the instance.',verbose_name='description')),
('description',models.TextField(blank=True,help_text='Description of the template.',verbose_name='description')),
('system_type',models.CharField(choices=[('LINUX','The system based on Linux'),('WINDOWS','Windows based system')],help_text='The base name of the operating system',max_length=50,verbose_name='operating_system')),
('distro',models.CharField(blank=True,help_text='The specific name and version of the installed OSe. g. Win 7, Ubuntu 18.04',max_length=100,verbose_name='system distribution')),
('access_protocol',models.CharField(choices=[('rdp','Remote Desktop Protocol'),('ssh','Secure Shell')],help_text='The protocol which used to connect to the machinethat created from this template',max_length=50,verbose_name='remote_access_protocol')),
('created_at',models.DateTimeField(auto_now_add=True,help_text='Date, when the template created.')),
('network_id',models.CharField(blank=True,help_text='The new instance will be in this network.',max_length=100,null=True,verbose_name='network_id')),
('created_by',models.ForeignKey(help_text='The user, who create the template',on_delete=django.db.models.deletion.DO_NOTHING,related_name='created_templates',to=settings.AUTH_USER_MODEL)),
('flavor',models.ForeignKey(help_text='Resources given to the vm',on_delete=django.db.models.deletion.CASCADE,related_name='templates',to='instance.Flavor',verbose_name='flavor')),
'permissions':(('create_instance','Can create a new VM.'),('create_template_from_instance','Can create template from instance.'),('use_instance','Can access the VM connection info.'),('operate_instance','Can use basic lifecycle methods of the VM.'),('administer_instance','Can delete VM.'),('access_console','Can access the graphical console of a VM.'),('change_resources','Can change resources of a VM.'),('manage_access','Can manage access rights for the VM.'),('config_ports','Can configure port forwards.')),
field=models.ForeignKey(help_text='The base image of the vm',null=True,on_delete='DO_NOTHING',related_name='vm',to='template.ImageTemplate'),
field=models.ForeignKey(help_text='The base image of the vm',null=True,on_delete=django.db.models.deletion.DO_NOTHING,related_name='vm',to='template.ImageTemplate'),
field=models.ForeignKey(help_text='Reasources given to the vm',on_delete='CASCADE',related_name='instances',to='instance.Flavor',verbose_name='flavor'),
options={'permissions':(('create_instance','Can create a new VM.'),('use_instance','Can access the VM connection info.'),('operate_instance','Can use basic lifecycle methods of the VM.'),('administer_instance','Can delete VM.'),('access_console','Can access the graphical console of a VM.'),('change_resources','Can change resources of a VM.'),('manage_access','Can manage access rights for the VM.'),('config_ports','Can configure port forwards.'))},
options={'default_permissions':(),'permissions':(('create_instance','Can create a new VM.'),('use_instance','Can access the VM connection info.'),('operate_instance','Can use basic lifecycle methods of the VM.'),('administer_instance','Can delete VM.'),('access_console','Can access the graphical console of a VM.'),('change_resources','Can change resources of a VM.'),('manage_access','Can manage access rights for the VM.'),('config_ports','Can configure port forwards.'))},
options={'default_permissions':(),'permissions':(('create_instance','Can create a new VM.'),('create_template_from_instance','Can create template from instance.'),('use_instance','Can access the VM connection info.'),('operate_instance','Can use basic lifecycle methods of the VM.'),('administer_instance','Can delete VM.'),('access_console','Can access the graphical console of a VM.'),('change_resources','Can change resources of a VM.'),('manage_access','Can manage access rights for the VM.'),('config_ports','Can configure port forwards.'))},
('name',models.CharField(help_text='Human readable name of template.',max_length=100,verbose_name='name')),
('type',models.CharField(choices=[('SYSTEM','Common templates provided by the system.'),('IMAGE','Template created from image by a user'),('INSTANCE','Template created from instance by a user')],default='SYSTEM',max_length=10)),
('description',models.TextField(blank=True,help_text='Description of the template.',verbose_name='description')),
('disk',models.ForeignKey(help_text='The disk where the template is located.',on_delete=django.db.models.deletion.CASCADE,related_name='templates',to='image.Disk')),
field=models.ForeignKey(help_text='The user, who create the template',on_delete=django.db.models.deletion.DO_NOTHING,related_name='created_templates',to=settings.AUTH_USER_MODEL),
field=models.ForeignKey(default=1,help_text='Reasources given to the vm',on_delete='CASCADE',related_name='templates',to='instance.Flavor',verbose_name='flavor'),
field=models.CharField(choices=[('U','User create the template from image'),('I','Template created from instance'),('D','Default "Pure" template')],default='I',max_length=10),
field=models.CharField(choices=[('U','User create the template from image'),('I','Template created from instance'),('P','"Pure" template')],default='U',max_length=10),