Beispiel #1
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='AuthToken',
            fields=[
                ('uuid',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateField(auto_now=True)),
                ('key',
                 models.CharField(default=common.models.random_token_32,
                                  editable=False,
                                  max_length=32)),
                ('user_agent', models.CharField(blank=True, max_length=512)),
                ('user',
                 models.ForeignKey(editable=False,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'ordering': ['-created_at'],
                'abstract': False,
            },
        ),
    ]
Beispiel #2
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='CustomerReviews',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=50)),
                ('profession', models.CharField(max_length=100)),
                ('image',
                 models.ImageField(
                     default='customers\\default_profile_picture.png',
                     storage=common.storage.OverwriteStorage(),
                     upload_to=common.models.custProfileImageSavePath)),
                ('review_quote', models.TextField()),
                ('dt_creation',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('dt_review',
                 models.DateField(default=django.utils.timezone.now)),
            ],
            options={
                'ordering': ['-dt_review'],
            },
        ),
    ]
Beispiel #3
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Bible',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('testament_name', models.CharField(blank=True, max_length=100, null=True, verbose_name='성서 이름')),
                ('testament_kr_code', models.CharField(blank=True, max_length=50, null=True, verbose_name='성서 약어')),
                ('order', models.IntegerField(blank=True, null=True, validators=[common.models.validate_max_chapter], verbose_name='성서 번호')),
                ('chapter', models.PositiveIntegerField(blank=True, null=True, verbose_name='장')),
                ('verse', models.PositiveIntegerField(blank=True, null=True, verbose_name='절')),
                ('contents', models.TextField(blank=True, null=True, verbose_name='본문')),
                ('total_chapters', models.PositiveIntegerField(blank=True, null=True, verbose_name='성서의 장수')),
                ('total_verses', models.PositiveIntegerField(blank=True, null=True, verbose_name='해당 장의 절수')),
                ('version', models.CharField(blank=True, default='개역개정', max_length=100, null=True, verbose_name='개정종류')),
            ],
            options={
                'verbose_name': 'bible',
                'verbose_name_plural': 'bible',
                'db_table': 'bible',
            },
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('kubeops_api', '0029_auto_20191011_0358'),
    ]

    operations = [
        migrations.CreateModel(
            name='ClusterHealthHistory',
            fields=[
                ('id',
                 models.UUIDField(default=uuid.uuid4,
                                  primary_key=True,
                                  serialize=False)),
                ('project_id', models.CharField(max_length=255)),
                ('available_rate', models.IntegerField(default=0)),
                ('date_type',
                 models.CharField(choices=[('DAY', 'DAY'), ('HOUR', 'HOUR')],
                                  default='HOUR',
                                  max_length=255)),
                ('month',
                 models.CharField(blank=True, max_length=255, null=True)),
                ('date_created', models.DateTimeField(auto_now_add=True)),
            ],
        )
    ]
Beispiel #5
0
class Migration(migrations.Migration):
    dependencies = [
        ('kubeops_api', '0075_auto_20200408_0803'),
    ]

    operations = [
        migrations.CreateModel(
            name='CisLog',
            fields=[
                ('id',
                 models.UUIDField(default=uuid.uuid4,
                                  primary_key=True,
                                  serialize=False)),
                ('name', models.CharField(max_length=126, unique=True)),
                ('cluster_id', models.UUIDField(default=uuid.uuid4)),
                ('detail', common.models.JsonListTextField(default={})),
                ('result', common.models.JsonDictTextField(default={})),
                ('status',
                 models.CharField(choices=[('FAILED', 'FAILED'),
                                           ('SUCCESS', 'SUCCESS')],
                                  default='FAILED',
                                  max_length=64)),
                ('date_created',
                 models.DateTimeField(auto_now_add=True,
                                      verbose_name='Date created')),
            ],
        ),
    ]
Beispiel #6
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='CeleryTask',
            fields=[
                ('id',
                 models.UUIDField(default=uuid.uuid4,
                                  primary_key=True,
                                  serialize=False)),
                ('root_id', models.UUIDField()),
                ('name', models.CharField(max_length=1024)),
                ('state',
                 models.CharField(choices=[('PENDING', 'Pending'),
                                           ('STARTED', 'Started'),
                                           ('SUCCESS', 'Success'),
                                           ('FAILURE', 'Failure'),
                                           ('RETRY', 'Retry')],
                                  default='PENDING',
                                  max_length=16)),
                ('result', common.models.JsonTextField(null=True)),
                ('date_start', models.DateTimeField(auto_now_add=True)),
                ('date_finished', models.DateTimeField(null=True)),
            ],
        ),
    ]
Beispiel #7
0
class Migration(migrations.Migration):

    dependencies = [
        ('money', '0002_income_incomecategory_incomegroup'),
    ]

    operations = [
        migrations.CreateModel(
            name='ExpenseGroup',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('create_time', common.models.IntDateTimeField()),
                ('update_time', common.models.IntDateTimeField()),
                ('name', models.CharField(max_length=50, unique=True)),
            ],
            options={
                'db_table': 'expense_group_tab',
            },
        ),
        migrations.AlterField(
            model_name='income',
            name='receive_time',
            field=common.models.IntDateTimeField(default=portfolio.time_util.now),
        ),
        migrations.CreateModel(
            name='ExpenseCategory',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('create_time', common.models.IntDateTimeField()),
                ('update_time', common.models.IntDateTimeField()),
                ('name', models.CharField(max_length=50, unique=True)),
                ('group', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='money.expensegroup')),
            ],
            options={
                'verbose_name_plural': 'expense categories',
                'db_table': 'expense_category_tab',
            },
        ),
        migrations.CreateModel(
            name='Expense',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('create_time', common.models.IntDateTimeField()),
                ('update_time', common.models.IntDateTimeField()),
                ('name', models.CharField(blank=True, max_length=500)),
                ('value', models.PositiveIntegerField()),
                ('receive_time', common.models.IntDateTimeField(default=portfolio.time_util.now)),
                ('category', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='money.expensecategory')),
                ('wallet', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='money.wallet')),
            ],
            options={
                'db_table': 'expense_tab',
            },
        ),
    ]
Beispiel #8
0
class Instruments(models.Model):
    iuid = models.CharField(max_length=32, primary_key=True)
    name = models.CharField(max_length=8)
    board = models.CharField(max_length=3)
    base_volatility = models.FloatField()
    base_volume = models.FloatField()
    status = models.PositiveTinyIntegerField(
        default=InstStatus.ACTIVE, choices=InstStatus.VALUE_TO_NAME.items())
    size_in_file = models.IntegerField()

    class Meta:
        db_table = 'instruments'
Beispiel #9
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Dictionary',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('modified_at', models.DateTimeField(auto_now_add=True)),
                ('deleted', models.BooleanField(default=False,
                                                editable=False)),
                ('entry', models.CharField(max_length=200)),
                ('key', models.CharField(max_length=200)),
                ('value', models.CharField(max_length=500)),
                ('created_by',
                 models.ForeignKey(
                     on_delete=models.SET(
                         common.models.UserUtils.get_recycle_user),
                     related_name='dictionary_dictionary_created_related',
                     related_query_name='dictionary_dictionarys_created',
                     to=settings.AUTH_USER_MODEL)),
                ('modified_by',
                 models.ForeignKey(
                     on_delete=models.SET(
                         common.models.UserUtils.get_recycle_user),
                     related_name='dictionary_dictionary_modified_related',
                     related_query_name='dictionary_dictionarys_modified',
                     to=settings.AUTH_USER_MODEL)),
                ('owner',
                 models.ForeignKey(
                     on_delete=models.SET(
                         common.models.UserUtils.get_recycle_user),
                     related_name='dictionary_dictionary_owner_related',
                     related_query_name='dictionary_dictionarys_owner',
                     to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'db_table': 'dictionary',
            },
        ),
    ]
Beispiel #10
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='Member',
            fields=[
                ('guid',
                 models.CharField(default=uuid.uuid4,
                                  max_length=255,
                                  primary_key=True,
                                  serialize=False)),
                ('student_id', models.CharField(max_length=9)),
                ('avatar', models.URLField(blank=True)),
                ('year',
                 models.CharField(blank=True,
                                  choices=[(73, 73), (74, 74), (75, 75),
                                           (76, 76), (77, 77), (78, 78),
                                           (79, 79), (80, 80), (81, 81),
                                           (82, 82), (83, 83), (84, 84),
                                           (85, 85), (86, 86), (87, 87),
                                           (88, 88), (89, 89), (90, 90),
                                           (91, 91), (92, 92), (93, 93),
                                           (94, 94), (95, 95), (96, 96),
                                           (97, 97), (98, 98), (99, 99),
                                           (100, 100), (101, 101), (102, 102),
                                           (103, 103), (104, 104), (105, 105),
                                           (106, 106), (107, 107), (108, 108),
                                           (109, 109)],
                                  default=109,
                                  max_length=3)),
                ('name', models.CharField(max_length=31)),
                ('foreign_name',
                 models.CharField(blank=True, max_length=31, null=True)),
                ('hobby', models.CharField(max_length=127)),
                ('expertise', models.CharField(max_length=127)),
                ('constellation', models.CharField(max_length=31)),
                ('link', models.URLField(blank=True)),
                ('email', models.EmailField(blank=True, max_length=254)),
                ('education',
                 models.CharField(choices=[('Master', 'Master'),
                                           ('Ph.D.', 'Ph.D.'),
                                           ('EMBA', 'EMBA'), ('EDBA', 'EDBA'),
                                           ('Professor', 'Professor')],
                                  default='Master',
                                  max_length=15)),
                ('is_graduated',
                 models.BooleanField(choices=[(True, True), (False, False)],
                                     default=False)),
            ],
            bases=(common.models.BaseSheet, models.Model),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('kubeops_api', '0075_auto_20200408_0803'),
        ('ops', '0002_remove_script_interpreter'),
    ]

    operations = [
        migrations.CreateModel(
            name='ScriptExecution',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('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')),
                ('cluster', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='kubeops_api.Cluster')),
                ('script', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ops.Script')),
                ('targets', models.ManyToManyField(to='kubeops_api.Host')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
Beispiel #12
0
class Migration(migrations.Migration):

    dependencies = [
        ('common', '0002_auto_20201009_1410'),
    ]

    operations = [
        migrations.CreateModel(
            name='DashboardImage',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(blank=True, max_length=50,
                                          null=True)),
                ('image',
                 models.ImageField(
                     default='customers\\default_profile_picture.png',
                     storage=common.storage.OverwriteStorage(),
                     upload_to=common.models.custProfileImageSavePath)),
                ('dt_creation',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('dt_show',
                 models.DateField(default=django.utils.timezone.now)),
            ],
            options={
                'ordering': ['-dt_show'],
            },
        ),
    ]
Beispiel #13
0
class Migration(migrations.Migration):

    dependencies = [
        ('kubeops_api', '0024_auto_20190927_0641'),
    ]

    operations = [
        migrations.AddField(
            model_name='host',
            name='auto_gather_info',
            field=models.BooleanField(default=True, null=True),
        ),
        migrations.AlterField(
            model_name='host',
            name='password',
            field=common.models.EncryptCharField(blank=True,
                                                 default='KubeOperator@2019',
                                                 max_length=4096,
                                                 null=True),
        ),
        migrations.AlterField(
            model_name='host',
            name='status',
            field=models.CharField(choices=[('VALID', 'valid'),
                                            ('INVALID', 'invalid'),
                                            ('CREATING', 'creating'),
                                            ('UNKNOWN', 'unknown')],
                                   default='UNKNOWN',
                                   max_length=128),
        ),
    ]
Beispiel #14
0
class Migration(migrations.Migration):

    dependencies = [
        ('common', '0002_auto_20190128_1237'),
    ]

    operations = [
        migrations.CreateModel(
            name='Document',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title',
                 models.CharField(blank=True, max_length=1000, null=True)),
                ('document_file',
                 models.FileField(max_length=5000,
                                  upload_to=common.models.document_path)),
                ('created_on', models.DateTimeField(auto_now_add=True)),
                ('created_by',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='document_uploaded',
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('common', '0004_auto_20191231_1517'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='image',
            options={'verbose_name': 'Property Image'},
        ),
        migrations.AlterField(
            model_name='address',
            name='country',
            field=django_countries.fields.CountryField(countries=common.models.EUCountries, default='NL', help_text='Countries in EU Union', max_length=2),
        ),
        migrations.AlterField(
            model_name='image',
            name='alt',
            field=models.CharField(max_length=20, verbose_name='alt'),
        ),
        migrations.AlterField(
            model_name='image',
            name='url',
            field=models.URLField(verbose_name='url'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('cloud_provider', '0010_auto_20190801_0307'),
    ]

    operations = [
        migrations.CreateModel(
            name='Plan',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=20, unique=True, verbose_name='Name')),
                ('date_created', models.DateTimeField(auto_now_add=True, verbose_name='Date created')),
                ('vars', common.models.JsonDictTextField(default={})),
                ('region', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='cloud_provider.Region')),
            ],
        ),
        migrations.RemoveField(
            model_name='zone',
            name='comment',
        ),
        migrations.AddField(
            model_name='plan',
            name='zones',
            field=models.ManyToManyField(to='cloud_provider.Zone'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('storage', '0005_auto_20191018_0911'),
    ]

    operations = [
        migrations.AlterField(
            model_name='nfsstorage',
            name='status',
            field=models.CharField(choices=[('CREATING', 'CREATING'),
                                            ('RUNNING', 'RUNNING'),
                                            ('ERROR', 'ERROR')],
                                   default='RUNNING',
                                   max_length=128,
                                   null=True),
        ),
        migrations.AlterField(
            model_name='nfsstorage',
            name='vars',
            field=common.models.JsonDictTextField(
                default={
                    'allow_ip': '0.0.0.0/0',
                    'storage_nfs_server_path': '/exports'
                }),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('cloud_provider', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='CloudProvider',
            fields=[
                ('id',
                 models.UUIDField(default=uuid.uuid4,
                                  primary_key=True,
                                  serialize=False)),
                ('name', models.CharField(max_length=128, unique=True)),
                ('vars', common.models.JsonDictTextField(default={})),
                ('date_created',
                 models.DateTimeField(auto_now_add=True,
                                      verbose_name='Date created')),
                ('template',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     to='cloud_provider.CloudProviderTemplate')),
            ],
        ),
    ]
Beispiel #19
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='RSVP',
            fields=[
                ('first_seen',
                 models.DateTimeField(default=common.models.utcnow)),
                ('created',
                 models.DateTimeField(default=common.models.utcnow)),
                ('modified', models.DateTimeField(auto_now=True)),
                ('uuid', models.UUIDField(primary_key=True, serialize=False)),
                ('client_id', models.UUIDField()),
                ('rsvp', models.NullBooleanField()),
                ('details', models.TextField(default='')),
                ('email', models.CharField(max_length=255)),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
Beispiel #20
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='CloudProviderTemplate',
            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')),
            ],
        ),
    ]
Beispiel #21
0
class Migration(migrations.Migration):

    dependencies = [
        ('kubeops_api', '0028_auto_20191010_0319'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='package',
            name='endpoint',
        ),
        migrations.AlterField(
            model_name='package',
            name='meta',
            field=common.models.JsonTextField(blank=True,
                                              null=True,
                                              verbose_name='Meta'),
        ),
        migrations.AlterField(
            model_name='cluster',
            name='status',
            field=models.CharField(choices=[('RUNNING', 'running'),
                                            ('INSTALLING', 'installing'),
                                            ('DELETING', 'deleting'),
                                            ('READY', 'ready'),
                                            ('ERROR', 'error'),
                                            ('WARNING', 'warning'),
                                            ('UPGRADING', 'upgrading'),
                                            ('SCALING', 'scaling'),
                                            ('RESTORING', 'restoring')],
                                   default='READY',
                                   max_length=128),
        )
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('common', '0015_auto_20191122_1919'),
    ]

    operations = [
        migrations.AlterField(
            model_name='issue',
            name='published',
            field=models.BooleanField(default=False, help_text='If base information are currently public. (can be altered manually and by state changes)', verbose_name='published'),
        ),
        migrations.AlterField(
            model_name='issue',
            name='status',
            field=models.IntegerField(choices=[(1, 'SUBMITTED'), (2, 'WIP'), (3, 'SOLVED'), (4, 'IMPOSSIBLE'), (5, 'DUBLICATE')], default=common.models.StatusTypes(1), help_text='Stage of progress for the solution.', verbose_name='status'),
        ),
        migrations.CreateModel(
            name='Comment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('author', models.CharField(help_text='Who wrote the content.', max_length=150, verbose_name='author')),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now, help_text='When was the contet written.', verbose_name='creation date')),
                ('content', models.TextField(help_text='Text of the comment', max_length=500, verbose_name='content')),
                ('issue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='common.Issue')),
            ],
        ),
    ]
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('organizations', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Location',
            fields=[
                ('id', common.models.RequiredCharField(max_length=200, primary_key=True, serialize=False, validators=[django.core.validators.RegexValidator(regex='^[^ ]+$')])),
                ('latitude', models.FloatField(blank=True, null=True)),
                ('longitude', models.FloatField(blank=True, null=True)),
                ('organization', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='organizations.Organization')),
            ],
            options={
                'abstract': False,
            },
            bases=(parler.models.TranslatableModelMixin, models.Model),
        ),
        migrations.CreateModel(
            name='LocationTranslation',
            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, null=True)),
                ('master', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='translations', to='locations.Location')),
            ],
            options={
                'verbose_name': 'location Translation',
                'db_table': 'locations_location_translation',
                'db_tablespace': '',
                'managed': True,
                'default_permissions': (),
            },
        ),
        migrations.AlterUniqueTogether(
            name='locationtranslation',
            unique_together=set([('language_code', 'master')]),
        ),
    ]
Beispiel #24
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0009_alter_user_last_name_max_length'),
        ('media_upload', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Account',
            fields=[
                ('password', models.CharField(max_length=128, verbose_name='password')),
                ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
                ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
                ('id', common.models.ULIDField(default=ulid.api.new, editable=False, max_length=26, primary_key=True, serialize=False, unique=True)),
                ('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username')),
                ('email', models.EmailField(error_messages={'unique': 'A user with that email already exists.'}, max_length=254, unique=True, verbose_name='email address')),
                ('display_name', models.CharField(blank=True, max_length=30, null=True, verbose_name='display name')),
                ('is_staff', models.BooleanField(default=False, verbose_name='staff status')),
                ('is_active', models.BooleanField(default=True, verbose_name='active')),
                ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')),
                ('balance', models.IntegerField(default=0, verbose_name='balance')),
                ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')),
                ('icon', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='media_upload.Image', verbose_name='icon')),
                ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')),
            ],
            options={
                'verbose_name': 'user',
                'verbose_name_plural': 'users',
            },
        ),
        migrations.CreateModel(
            name='Idm',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('idm', models.CharField(error_messages={'unique': 'This card is already registered'}, max_length=16, unique=True, verbose_name='IDm Number')),
                ('name', models.CharField(blank=True, max_length=255, null=True, verbose_name='card name')),
                ('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='account')),
            ],
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('kubeops_api', '0015_deployexecution_steps'),
    ]

    operations = [
        migrations.CreateModel(
            name='backup_storage',
            fields=[
                ('id', models.UUIDField(max_length=255,default=uuid.uuid4, primary_key=True, serialize=False)),
                ('name', models.CharField(blank=True, max_length=128, null=True)),
                ('region', models.CharField(blank=True, max_length=128, null=True)),
                ('credentials', common.models.JsonDictTextField(blank=True, null=True)),
                ('type', models.CharField(choices=[('S3', 'S3'), ('OSS', 'OSS')], max_length=64)),
                ('status', models.CharField(choices=[('VALID1233', 'valid'), ('INVALID', 'invalid')], default='VALID1233', max_length=64)),
                ('date_created', models.DateTimeField(auto_now_add=True, verbose_name='Date created')),
            ],
        ),
    ]
Beispiel #26
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Activity',
            fields=[
                ('guid', models.CharField(default=uuid.uuid4, max_length=36, primary_key=True, serialize=False)),
                ('activity', models.CharField(max_length=50)),
                ('url', models.URLField()),
                ('name', models.CharField(max_length=50)),
                ('date', models.DateField()),
                ('location', models.CharField(blank=True, max_length=50)),
            ],
            bases=(common.models.BaseSheet, models.Model),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('common', '0028_auto_20200422_1454'),
    ]

    operations = [
        migrations.AlterField(
            model_name='comment',
            name='author',
            field=models.ForeignKey(
                blank=True,
                editable=False,
                help_text='Who wrote the content.',
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                related_name='comments',
                to=settings.AUTH_USER_MODEL,
                verbose_name='author'),
        ),
        migrations.AlterField(
            model_name='comment',
            name='created_at',
            field=models.DateTimeField(
                default=django.utils.timezone.now,
                editable=False,
                help_text='When was the content written.',
                verbose_name='creation date'),
        ),
        migrations.AlterField(
            model_name='issue',
            name='author_trust',
            field=models.IntegerField(choices=[(1, 'EXTERNAL'),
                                               (2, 'INTERNAL'),
                                               (3, 'FIELDTEAM')],
                                      default=common.models.TrustTypes(1),
                                      editable=False,
                                      help_text='Trust level of the author.',
                                      verbose_name='trust'),
        ),
        migrations.AlterField(
            model_name='issue',
            name='location',
            field=models.CharField(
                blank=True,
                editable=False,
                help_text='Human readable description of the position.',
                max_length=150,
                null=True,
                verbose_name='location'),
        ),
    ]
Beispiel #28
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0008_alter_user_username_max_length'),
    ]

    operations = [
        migrations.CreateModel(
            name='CustomUser',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('password', models.CharField(max_length=128, verbose_name='password')),
                ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
                ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
                ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')),
                ('last_name', models.CharField(blank=True, max_length=30, verbose_name='last name')),
                ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')),
                ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')),
                ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')),
                ('email', models.EmailField(max_length=254, unique=True, verbose_name='email address')),
                ('birthday', models.DateField(blank=True, null=True)),
                ('country', models.CharField(blank=True, max_length=16)),
                ('city', models.CharField(blank=True, max_length=16)),
                ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')),
                ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')),
            ],
            options={
                'verbose_name': 'user',
                'abstract': False,
                'verbose_name_plural': 'users',
            },
            managers=[
                ('objects', common.models.CustomUserManager()),
            ],
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('common', '0017_auto_20191124_1826'),
    ]

    operations = [
        migrations.AlterField(
            model_name='issue',
            name='assigned',
            field=models.ForeignKey(blank=True, help_text='Responsible (internal) department, which processes the issue currently.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='assignedIssues', to='auth.Group', verbose_name='assigned group'),
        ),
        migrations.AlterField(
            model_name='issue',
            name='category',
            field=mptt.fields.TreeForeignKey(help_text='Multi-level selection of which kind of note this issue comes closest.', on_delete=django.db.models.deletion.CASCADE, to='common.Category', validators=[common.models.validate_is_subcategory], verbose_name='category'),
        ),
        migrations.AlterField(
            model_name='issue',
            name='delegated',
            field=models.ForeignKey(blank=True, help_text='Responsible (external) organisation, which becomes involved in solving this issue.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='delegatedIssues', to='auth.Group', verbose_name='delegated group'),
        ),
        migrations.AlterField(
            model_name='issue',
            name='landowner',
            field=models.CharField(blank=True, help_text='Operrator that manages the area of the position. (usually landowner, might be inaccurate)', max_length=250, null=True, verbose_name='landowner'),
        ),
        migrations.AlterField(
            model_name='issue',
            name='location',
            field=models.CharField(blank=True, help_text='Human readable description of the position.', max_length=150, null=True, verbose_name='location'),
        ),
        migrations.AlterField(
            model_name='issue',
            name='position',
            field=django.contrib.gis.db.models.fields.PointField(help_text='Georeference for this issue. (might be inaccurate)', srid=25833, validators=[common.models.validate_in_municipality], verbose_name='position'),
        ),
    ]
Beispiel #30
0
class Migration(migrations.Migration):

    dependencies = [
        ('cloud_provider', '0007_auto_20190731_0424'),
    ]

    operations = [
        migrations.CreateModel(
            name='Zone',
            fields=[
                ('id',
                 models.UUIDField(default=uuid.uuid4,
                                  primary_key=True,
                                  serialize=False)),
                ('name',
                 models.CharField(max_length=20,
                                  unique=True,
                                  verbose_name='Name')),
                ('date_created',
                 models.DateTimeField(auto_now_add=True,
                                      verbose_name='Date created')),
                ('comment',
                 models.CharField(blank=True,
                                  max_length=128,
                                  null=True,
                                  verbose_name='Comment')),
                ('vars', common.models.JsonDictTextField(default={})),
                ('cloud_zone',
                 models.CharField(default=None, max_length=128, null=True)),
                ('region',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='cloud_provider.Region')),
            ],
        ),
    ]