class Migration(migrations.Migration): dependencies = [ ('services', '0005_auto_20180910_1743'), ('search', '0001_initial'), ] operations = [ migrations.CreateModel( name='TaskServiceSimilarityScores', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('task_id', common.models.RequiredCharField( max_length=200, validators=[ django.core.validators.RegexValidator( re.compile('^[-a-zA-Z0-9_]+\\Z'), "Enter a valid 'slug' consisting of letters, numbers, underscores or hyphens.", 'invalid') ])), ('similarity_score', models.FloatField()), ('service', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='services', to='services.Service')), ], bases=(common.models.ValidateOnSaveMixin, models.Model), ), migrations.AlterUniqueTogether( name='taskservicesimilarityscores', unique_together={('task_id', 'service')}, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('ansible_api', '0001_initial'), ] operations = [ migrations.CreateModel( name='Cluster', fields=[ ('project_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='ansible_api.Project')), ('template', models.CharField(blank=True, default='', max_length=64)), ('current_task_id', models.CharField(blank=True, default='', max_length=128)), ('is_super', models.BooleanField(default=False)), ], bases=('ansible_api.project',), ), migrations.CreateModel( name='DeployExecution', fields=[ ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('timedelta', models.FloatField(default=0.0, null=True, verbose_name='Time')), ('state', models.CharField(choices=[('PENDING', 'Pending'), ('STARTED', 'Started'), ('SUCCESS', 'Success'), ('FAILURE', 'Failure'), ('RETRY', 'Retry')], default='PENDING', max_length=16)), ('num', models.IntegerField(default=1)), ('result_summary', common.models.JsonDictTextField(blank=True, default={}, null=True, verbose_name='Result summary')), ('result_raw', common.models.JsonDictTextField(blank=True, default={}, null=True, verbose_name='Result raw')), ('date_created', models.DateTimeField(auto_now_add=True, null=True, verbose_name='Create time')), ('date_start', models.DateTimeField(null=True, verbose_name='Start time')), ('date_end', models.DateTimeField(null=True, verbose_name='End time')), ('operation', models.CharField(blank=True, choices=[('install', 'install'), ('upgrade', 'upgrade'), ('uninstall', 'uninstall')], default='install', max_length=128)), ('current_task', models.CharField(blank=True, default=None, max_length=128, null=True)), ('progress', models.FloatField(blank=True, default=0.0, max_length=64, null=True)), ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ansible_api.Project')), ], options={ 'ordering': ('-date_created',), 'get_latest_by': 'date_created', }, ), migrations.CreateModel( name='Host', fields=[ ('name', models.CharField(max_length=256, validators=[django.core.validators.RegexValidator(message='Enter a valid name consisting of Unicode letters, numbers, underscores, or hyphens, or dot', regex='^[a-zA-Z0-9_\\-\\.]+$')])), ('ip', models.GenericIPAddressField(null=True)), ('port', models.IntegerField(default=22)), ('username', models.CharField(default='root', max_length=256)), ('password', common.models.EncryptCharField(blank=True, max_length=4096, null=True)), ('private_key', common.models.EncryptCharField(blank=True, max_length=8192, null=True)), ('vars', common.models.JsonDictTextField(default={})), ('meta', common.models.JsonDictTextField(default={})), ('comment', models.TextField(blank=True)), ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('memory', models.BigIntegerField(default=0)), ('os', models.CharField(default='', max_length=128)), ('os_version', models.CharField(default='', max_length=128)), ('cpu_core', models.IntegerField(default=0)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Node', fields=[ ('host_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='ansible_api.Host')), ('host', models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='host', to='openshift_api.Host')), ], options={ 'abstract': False, }, bases=('ansible_api.host',), ), migrations.CreateModel( name='Package', fields=[ ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('name', models.CharField(max_length=20, unique=True, verbose_name='Name')), ('meta', common.models.JsonTextField(blank=True, null=True, verbose_name='Meta')), ('date_created', models.DateTimeField(auto_now_add=True, verbose_name='Date created')), ], options={ 'verbose_name': 'Package', }, ), migrations.CreateModel( name='Role', fields=[ ], options={ 'proxy': True, 'indexes': [], }, bases=('ansible_api.group',), ), migrations.AddField( model_name='host', name='node', field=models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='node', to='openshift_api.Node'), ), migrations.AddField( model_name='cluster', name='package', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='openshift_api.Package'), ), ]
class Migration(migrations.Migration): dependencies = [ ('common', '0003_auto_20200509_2050'), ] operations = [ migrations.AddField( model_name='user', name='waist', field=models.IntegerField(blank=True, null=True), ), migrations.CreateModel( name='ViceLog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('preexisting', models.BooleanField(default=False)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('vice', models.CharField(max_length=128)), ('quantity', models.CharField(max_length=128)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='ToiletLog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('preexisting', models.BooleanField(default=False)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='SymptomsLog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('preexisting', models.BooleanField(default=False)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('status', models.IntegerField(choices=[(0, 'Okay'), (1, 'Not okay'), (2, 'Very bad')], default=0)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='StressLog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('preexisting', models.BooleanField(default=False)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('level', common.models.IntegerRangeField()), ('details', models.TextField()), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='SleepLog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('preexisting', models.BooleanField(default=False)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('start', models.TimeField()), ('end', models.TimeField()), ('quality', common.models.IntegerRangeField()), ('rem', models.BooleanField(blank=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='NaturalRemediesLog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('preexisting', models.BooleanField(default=False)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('natural_remedy', models.CharField(max_length=128)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='MedicationLog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('preexisting', models.BooleanField(default=False)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('medication', models.CharField(max_length=128)), ('dose', models.PositiveIntegerField()), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='ExerciseLog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('preexisting', models.BooleanField(default=False)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('exercise', models.CharField(choices=[ ('WA', 'Walking'), ('RU', 'Running'), ('CY', 'Cycling'), ('SW', 'Swimming') ], max_length=2)), ('duration', models.DurationField()), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='DietLog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('preexisting', models.BooleanField(default=False)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('product', models.CharField(max_length=128)), ('code', models.CharField(blank=True, max_length=13)), ('calories', models.PositiveIntegerField()), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='CheckupLog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('preexisting', models.BooleanField(default=False)), ('timestamp', models.DateTimeField()), ('details', models.TextField()), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='CardiovascularLog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('preexisting', models.BooleanField(default=False)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('pulse', models.PositiveIntegerField()), ('systolic_pressure', models.PositiveIntegerField(blank=True)), ('diastolic_pressure', models.PositiveIntegerField(blank=True)), ('blood_sugar', models.FloatField(blank=True)), ('saturation', models.DecimalField(decimal_places=2, max_digits=5)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='BodyLog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('preexisting', models.BooleanField(default=False)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('height', models.IntegerField(blank=True, null=True)), ('weight', models.IntegerField(blank=True, null=True)), ('waist', models.IntegerField(blank=True, null=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('services', '0005_auto_20180910_1743'), ('search', '0006_auto_20181204_1745'), ] operations = [ migrations.CreateModel( name='Task', fields=[ ('id', common.models.RequiredCharField( max_length=200, primary_key=True, serialize=False, validators=[ django.core.validators.RegexValidator( re.compile('^[-a-zA-Z0-9_]+\\Z'), "Enter a valid 'slug' consisting of letters, numbers, underscores or hyphens.", 'invalid') ])), ], options={ 'abstract': False, }, bases=(common.models.ValidateOnSaveMixin, parler.models.TranslatableModelMixin, models.Model), ), migrations.CreateModel( name='TaskServiceSimilarityScore', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('similarity_score', models.FloatField()), ('service', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='services.Service')), ('task', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='search.Task')), ], bases=(common.models.ValidateOnSaveMixin, models.Model), ), migrations.CreateModel( name='TaskSimilarityScore', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('similarity_score', models.FloatField()), ('first_task', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='first_task', to='search.Task')), ('second_task', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='second_task', to='search.Task')), ], bases=(common.models.ValidateOnSaveMixin, models.Model), ), migrations.CreateModel( name='TaskTranslation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('language_code', models.CharField(db_index=True, max_length=15, verbose_name='Language')), ('name', models.CharField(max_length=200)), ('description', models.TextField(blank=True)), ('master', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='translations', to='search.Task')), ], options={ 'verbose_name': 'task Translation', 'db_table': 'search_task_translation', 'db_tablespace': '', 'managed': True, 'default_permissions': (), }, ), migrations.AlterUniqueTogether( name='tasktranslation', unique_together={('language_code', 'master')}, ), migrations.AlterUniqueTogether( name='tasksimilarityscore', unique_together={('first_task', 'second_task')}, ), migrations.AlterUniqueTogether( name='taskservicesimilarityscore', unique_together={('task', 'service')}, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('ansible_api', '0001_initial'), ] operations = [ migrations.CreateModel( name='Cluster', fields=[ ('project_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='ansible_api.Project')), ('template', models.CharField(blank=True, default='', max_length=64)), ], bases=('ansible_api.project', ), ), migrations.CreateModel( name='DeployExecution', fields=[ ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('timedelta', models.FloatField(default=0.0, null=True, verbose_name='Time')), ('state', models.CharField(choices=[('PENDING', 'Pending'), ('STARTED', 'Started'), ('SUCCESS', 'Success'), ('FAILURE', 'Failure'), ('RETRY', 'Retry')], default='PENDING', max_length=16)), ('num', models.IntegerField(default=1)), ('result_summary', common.models.JsonDictTextField( blank=True, default={}, null=True, verbose_name='Result summary')), ('result_raw', common.models.JsonDictTextField(blank=True, default={}, null=True, verbose_name='Result raw')), ('date_created', models.DateTimeField(auto_now_add=True, null=True, verbose_name='Create time')), ('date_start', models.DateTimeField(null=True, verbose_name='Start time')), ('date_end', models.DateTimeField(null=True, verbose_name='End time')), ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ansible_api.Project')), ], options={ 'ordering': ('-date_created', ), 'get_latest_by': 'date_created', }, ), migrations.CreateModel( name='Package', fields=[ ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('name', models.CharField(max_length=20, unique=True, verbose_name='Name')), ('meta', common.models.JsonTextField(blank=True, null=True, verbose_name='Meta')), ('date_created', models.DateTimeField(auto_now_add=True, verbose_name='Date created')), ], options={ 'verbose_name': 'Package', }, ), migrations.CreateModel( name='Node', fields=[], options={ 'proxy': True, 'indexes': [], }, bases=('ansible_api.host', ), ), migrations.CreateModel( name='Role', fields=[], options={ 'proxy': True, 'indexes': [], }, bases=('ansible_api.group', ), ), migrations.AddField( model_name='cluster', name='package', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='openshift_api.Package'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('ansible_api', '0002_auto_20190305_0555'), ] operations = [ migrations.CreateModel( name='AuthTemplate', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128, verbose_name='名称')), ('meta', common.models.JsonTextField(blank=True, null=True, verbose_name='Meta')), ('date_created', models.DateTimeField(auto_now_add=True, verbose_name='Date created')), ], ), migrations.CreateModel( name='Cluster', fields=[ ('project_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='ansible_api.Project')), ('template', models.CharField(blank=True, default='', max_length=64)), ('status', models.CharField(choices=[('RUNNING', 'running'), ('INSTALLING', 'installing'), ('UNKNOWN', 'unknown'), ('ERROR', 'error'), ('WARNING', 'warning')], default='UNKNOWN', max_length=128)), ('auth_template', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='kubeops_api.AuthTemplate')), ], bases=('ansible_api.project', ), ), migrations.CreateModel( name='DeployExecution', fields=[ ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('timedelta', models.FloatField(default=0.0, null=True, verbose_name='Time')), ('state', models.CharField(choices=[('PENDING', 'Pending'), ('STARTED', 'Started'), ('SUCCESS', 'Success'), ('FAILURE', 'Failure'), ('RETRY', 'Retry')], default='PENDING', max_length=16)), ('num', models.IntegerField(default=1)), ('result_summary', common.models.JsonDictTextField( blank=True, default={}, null=True, verbose_name='Result summary')), ('result_raw', common.models.JsonDictTextField(blank=True, default={}, null=True, verbose_name='Result raw')), ('date_created', models.DateTimeField(auto_now_add=True, null=True, verbose_name='Create time')), ('date_start', models.DateTimeField(null=True, verbose_name='Start time')), ('date_end', models.DateTimeField(null=True, verbose_name='End time')), ('operation', models.CharField(max_length=128)), ('progress', models.FloatField(default=0)), ('current_play', models.CharField(default=None, max_length=512, null=True)), ], options={ 'ordering': ('-date_created', ), 'get_latest_by': 'date_created', }, ), migrations.CreateModel( name='Host', fields=[ ('ip', models.GenericIPAddressField(null=True)), ('port', models.IntegerField(default=22)), ('username', models.CharField(default='root', max_length=256)), ('password', common.models.EncryptCharField(blank=True, max_length=4096, null=True)), ('private_key', common.models.EncryptCharField(blank=True, max_length=8192, null=True)), ('vars', common.models.JsonDictTextField(default={})), ('meta', common.models.JsonDictTextField(default={})), ('comment', models.TextField(blank=True)), ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('name', models.CharField( max_length=128, unique=True, validators=[ django.core.validators.RegexValidator( message= 'Enter a valid name consisting of Unicode letters, numbers, underscores, or hyphens, or dot', regex='^[a-zA-Z0-9_\\-\\.]+$') ])), ], options={ 'ordering': ('name', ), }, ), migrations.CreateModel( name='HostInfo', fields=[ ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('memory', models.BigIntegerField(default=0)), ('os', models.CharField(default='', max_length=128)), ('os_version', models.CharField(default='', max_length=128)), ('cpu_core', models.IntegerField(default=0)), ('date_created', models.DateTimeField(auto_now_add=True)), ('host', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='infos', to='kubeops_api.Host')), ], options={ 'get_latest_by': 'date_created', }, ), migrations.CreateModel( name='Node', fields=[ ('host_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='ansible_api.Host')), ('host', models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='host', to='kubeops_api.Host')), ], options={ 'abstract': False, }, bases=('ansible_api.host', ), ), migrations.CreateModel( name='Package', fields=[ ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('name', models.CharField(max_length=20, unique=True, verbose_name='Name')), ('meta', common.models.JsonTextField(blank=True, null=True, verbose_name='Meta')), ('date_created', models.DateTimeField(auto_now_add=True, verbose_name='Date created')), ], options={ 'verbose_name': 'Package', }, ), migrations.CreateModel( name='Setting', fields=[ ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('key', models.CharField(max_length=128)), ('value', models.CharField(blank=True, default=None, max_length=255, null=True)), ('name', models.CharField(max_length=128)), ('helper', models.CharField(blank=True, max_length=255)), ('order', models.IntegerField(default=0)), ], ), migrations.CreateModel( name='Storage', fields=[ ('project_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='ansible_api.Project')), ('vars', common.models.JsonDictTextField(blank=True, default={}, null=True, verbose_name='Vars')), ('status', models.CharField(choices=[('RUNNING', 'running'), ('UNKNOWN', 'unknown'), ('ERROR', 'error'), ('CHECKING', 'checking')], default='UNKNOWN', max_length=128)), ], bases=('ansible_api.project', ), ), migrations.CreateModel( name='StorageNode', fields=[ ('host_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='ansible_api.Host')), ('status', models.CharField(choices=[('RUNNING', 'running'), ('UNKNOWN', 'unknown'), ('ERROR', 'error')], default='UNKNOWN', max_length=128)), ('message', models.TextField(default=None, null=True)), ], options={ 'abstract': False, }, bases=('ansible_api.host', ), ), migrations.CreateModel( name='StorageTemplate', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128, verbose_name='名称')), ('meta', common.models.JsonDictTextField(blank=True, null=True)), ('date_created', models.DateTimeField(auto_now_add=True, verbose_name='Date created')), ], ), migrations.CreateModel( name='Volume', fields=[ ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('name', models.CharField(max_length=128)), ('size', models.CharField(max_length=16)), ], options={ 'ordering': ('size', ), }, ), migrations.CreateModel( name='Role', fields=[], options={ 'proxy': True, 'indexes': [], }, bases=('ansible_api.group', ), ), migrations.AddField( model_name='storage', name='nodes', field=models.ManyToManyField(to='kubeops_api.StorageNode'), ), migrations.AddField( model_name='storage', name='template', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='kubeops_api.StorageTemplate'), ), migrations.AddField( model_name='hostinfo', name='volumes', field=models.ManyToManyField(to='kubeops_api.Volume'), ), migrations.AddField( model_name='host', name='node', field=models.ForeignKey( default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='node', to='kubeops_api.Node'), ), migrations.AddField( model_name='deployexecution', name='project', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='ansible_api.Project'), ), migrations.AddField( model_name='cluster', name='package', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='kubeops_api.Package'), ), migrations.AddField( model_name='cluster', name='persistent_storage', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='kubeops_api.Storage'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='AudioAsset', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True, verbose_name='created')), ('modified', models.DateTimeField(auto_now=True, verbose_name='last modified')), ('title', common.models.TruncatingCharField( blank=True, db_index=True, help_text= "If left empty, a title will be generated from the file's metadata.", max_length=255, verbose_name='title')), ('file_basename', models.CharField(max_length=512)), ('file', models.FileField( blank=True, help_text= 'You can provide either an uploaded audio file or a URL to an external asset.', max_length=512, upload_to=common.models.audio_asset_file_upload_to, verbose_name='audio file')), ('duration', models.DurationField(default=datetime.timedelta(0), verbose_name='Audio duration')), ('fingerprint', models.UUIDField(db_index=True, null=True)), ('status', models.CharField( choices=[('-', 'processing queued'), ('p', 'processing'), ('f', 'processing failed'), ('r', 'ready for play')], db_index=True, default='-', help_text= 'You will be able to edit this asset when status is "ready for play."', max_length=1, verbose_name='status')), ('task_id', models.UUIDField(null=True)), ('artist', common.models.TruncatingCharField( blank=True, help_text= "If left empty, an artist will be generated from the file's metadata.", max_length=255, verbose_name='artist')), ('album', common.models.TruncatingCharField( blank=True, help_text= "If left empty, an album will be generated from the file's metadata.", max_length=255, verbose_name='album')), ('title_normalized', common.models.TruncatingCharField(db_index=True, max_length=255)), ('artist_normalized', common.models.TruncatingCharField(db_index=True, max_length=255)), ('album_normalized', common.models.TruncatingCharField(db_index=True, max_length=255)), ('uploader', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='uploader')), ], options={ 'verbose_name': 'audio asset', 'verbose_name_plural': 'audio assets', 'ordering': ('title', 'artist', 'album', 'id'), }, bases=(dirtyfields.dirtyfields.DirtyFieldsMixin, models.Model), ), migrations.CreateModel( name='Rotator', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100, unique=True, verbose_name='name')), ], options={ 'ordering': ('name', ), }, ), migrations.CreateModel( name='Stopset', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100, unique=True, verbose_name='name')), ('weight', models.FloatField( default=1.0, help_text= "The weight (ie selection bias) for how likely random selection from this playlist/stopset occurs, eg '1.0' is just as likely as all others, '2.0' is 2x as likely, '3.0' is 3x as likely, '0.5' half as likely, and so on. If unsure, leave as '1.0'.", validators=[ django.core.validators.MinValueValidator(0.0) ], verbose_name='random weight')), ('is_active', models.BooleanField( default=True, help_text= 'Whether tracks from this playlist/stopset will be selected. You may want to enable special playlists/stopsets at certain times, for example during the holidays.', verbose_name='currently active')), ], options={ 'ordering': ('name', ), 'abstract': False, }, ), migrations.CreateModel( name='StopsetRotator', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('rotator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='stopset_rotators', to='autodj.rotator')), ('stopset', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='stopset_rotators', to='autodj.stopset')), ], options={ 'verbose_name': 'rotator in stop set relationship', 'verbose_name_plural': 'rotator in stop set relationships', 'ordering': ('id', ), }, ), migrations.CreateModel( name='RotatorAsset', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True, verbose_name='created')), ('modified', models.DateTimeField(auto_now=True, verbose_name='last modified')), ('title', common.models.TruncatingCharField( blank=True, db_index=True, help_text= "If left empty, a title will be generated from the file's metadata.", max_length=255, verbose_name='title')), ('file_basename', models.CharField(max_length=512)), ('file', models.FileField( blank=True, help_text= 'You can provide either an uploaded audio file or a URL to an external asset.', max_length=512, upload_to=common.models.audio_asset_file_upload_to, verbose_name='audio file')), ('duration', models.DurationField(default=datetime.timedelta(0), verbose_name='Audio duration')), ('fingerprint', models.UUIDField(db_index=True, null=True)), ('status', models.CharField( choices=[('-', 'processing queued'), ('p', 'processing'), ('f', 'processing failed'), ('r', 'ready for play')], db_index=True, default='-', help_text= 'You will be able to edit this asset when status is "ready for play."', max_length=1, verbose_name='status')), ('task_id', models.UUIDField(null=True)), ('uploader', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='uploader')), ], options={ 'verbose_name': 'rotator asset', 'verbose_name_plural': 'rotator assets', 'ordering': ('title', 'id'), }, bases=(dirtyfields.dirtyfields.DirtyFieldsMixin, models.Model), ), migrations.AddField( model_name='rotator', name='rotator_assets', field=models.ManyToManyField(blank=True, db_index=True, related_name='rotators', to='autodj.RotatorAsset', verbose_name='rotator assets'), ), migrations.CreateModel( name='Playlist', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100, unique=True, verbose_name='name')), ('weight', models.FloatField( default=1.0, help_text= "The weight (ie selection bias) for how likely random selection from this playlist/stopset occurs, eg '1.0' is just as likely as all others, '2.0' is 2x as likely, '3.0' is 3x as likely, '0.5' half as likely, and so on. If unsure, leave as '1.0'.", validators=[ django.core.validators.MinValueValidator(0.0) ], verbose_name='random weight')), ('is_active', models.BooleanField( default=True, help_text= 'Whether tracks from this playlist/stopset will be selected. You may want to enable special playlists/stopsets at certain times, for example during the holidays.', verbose_name='currently active')), ('audio_assets', models.ManyToManyField(blank=True, db_index=True, related_name='playlists', to='autodj.AudioAsset', verbose_name='audio assets')), ], options={ 'ordering': ('name', ), 'abstract': False, }, ), ]