<filename>inspector/systems/migrations/0001_initial.py
# Generated by Django 2.1.5 on 2019-01-15 19:28

from django.db import migrations, models
import django.db.models.deletion
import encrypted_model_fields.fields


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Environment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=50, null=True, unique=True)),
            ],
            options={
                'ordering': ('-pk',),
            },
        ),
        migrations.CreateModel(
            name='Instance',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('host', models.CharField(max_length=100)),
                ('port', models.IntegerField()),
                ('database_or_schema', models.CharField(max_length=100)),
                ('login', models.CharField(max_length=100)),
                ('password', <PASSWORD>_model_fields.fields.Encrypted<PASSWORD>()),
                ('environment', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='systems.Environment')),
            ],
            options={
                'ordering': ('-pk',),
            },
        ),
        migrations.CreateModel(
            name='System',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=50, null=True, unique=True)),
                ('application', models.IntegerField(choices=[(0, 'Postgresql'), (1, 'Redshift')])),
            ],
            options={
                'ordering': ('-pk',),
            },
        ),
        migrations.AddField(
            model_name='instance',
            name='system',
            field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='systems.System'),
        ),
    ]

<filename>inspector/systems/migrations/0001_initial.py
# Generated by Django 2.1.5 on 2019-01-15 19:28

from django.db import migrations, models
import django.db.models.deletion
import encrypted_model_fields.fields


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Environment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=50, null=True, unique=True)),
            ],
            options={
                'ordering': ('-pk',),
            },
        ),
        migrations.CreateModel(
            name='Instance',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('host', models.CharField(max_length=100)),
                ('port', models.IntegerField()),
                ('database_or_schema', models.CharField(max_length=100)),
                ('login', models.CharField(max_length=100)),
                ('password', <PASSWORD>_model_fields.fields.Encrypted<PASSWORD>()),
                ('environment', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='systems.Environment')),
            ],
            options={
                'ordering': ('-pk',),
            },
        ),
        migrations.CreateModel(
            name='System',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=50, null=True, unique=True)),
                ('application', models.IntegerField(choices=[(0, 'Postgresql'), (1, 'Redshift')])),
            ],
            options={
                'ordering': ('-pk',),
            },
        ),
        migrations.AddField(
            model_name='instance',
            name='system',
            field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='systems.System'),
        ),
    ]

# Generated by Django 2.1.5 on 2019-01-15 19:28