# Generated by Django 3.0.1 on 2019-12-28 13:08

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='LaunchPad',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('location', models.CharField(max_length=255)),
                ('area', models.CharField(max_length=64)),
                ('rented', models.BooleanField(default=False)),
                ('used_by', models.CharField(blank=True, max_length=255)),
                ('use_period', models.CharField(blank=True, max_length=255)),
                ('no_launches', models.IntegerField()),
                ('no_employees', models.IntegerField(blank=True)),
                ('description', models.TextField(blank=True)),
            ],
        ),
        migrations.CreateModel(
            name='LaunchVehicle',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('manufacturer', models.CharField(max_length=255)),
                ('no_stages', models.IntegerField()),
                ('length', models.CharField(max_length=64)),
                ('diameter', models.CharField(max_length=64)),
                ('start_mass', models.CharField(max_length=64)),
                ('fuel_type', models.CharField(max_length=64)),
                ('max_distance', models.CharField(blank=True, max_length=64)),
                ('status', models.CharField(choices=[('ACTIVE', 'Действующий'), ('INACTIVE', 'Недействующий')], max_length=12)),
                ('description', models.TextField(blank=True)),
            ],
        ),
        migrations.CreateModel(
            name='Spacecraft',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('manufacturer', models.CharField(blank=True, max_length=255)),
                ('launch_mass', models.CharField(max_length=64)),
                ('lifetime_period', models.CharField(max_length=64)),
                ('orbital_period', models.CharField(blank=True, max_length=64)),
                ('coverage_diameter', models.CharField(blank=True, max_length=64)),
                ('power', models.CharField(max_length=64)),
                ('orbital_inclination', models.CharField(blank=True, max_length=64)),
                ('accuracy', models.CharField(blank=True, max_length=64)),
                ('description', models.TextField(blank=True)),
                ('launch_vehicles', models.ManyToManyField(to='core.LaunchVehicle')),
            ],
        ),
        migrations.CreateModel(
            name='SpaceTug',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('manufacturer', models.CharField(max_length=255)),
                ('first_launch_date', models.DateField(blank=True)),
                ('autonomous_flight_time', models.CharField(blank=True, max_length=64)),
                ('length', models.CharField(max_length=64)),
                ('diameter', models.CharField(max_length=64)),
                ('start_mass', models.CharField(max_length=64)),
                ('fuel_type', models.CharField(max_length=64)),
                ('fuel_supply', models.CharField(max_length=64)),
                ('engine_thrust', models.CharField(max_length=64)),
                ('no_inclusions', models.IntegerField()),
                ('no_flights', models.IntegerField(blank=True)),
                ('description', models.TextField(blank=True)),
            ],
        ),
        migrations.CreateModel(
            name='SpaceStation',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('spacecraft_type', models.CharField(max_length=64)),
                ('launch_date', models.DateField()),
                ('mass', models.CharField(max_length=64)),
                ('length', models.CharField(max_length=64)),
                ('width', models.CharField(max_length=64)),
                ('pressurised_volume', models.CharField(max_length=64)),
                ('atmospheric_pressure', models.CharField(max_length=64)),
                ('perigee_altitude', models.CharField(max_length=64)),
                ('apogee_altitude', models.CharField(max_length=64)),
                ('orbital_inclination', models.CharField(max_length=64)),
                ('orbital_speed', models.CharField(max_length=64)),
                ('orbital_period', models.CharField(max_length=64)),
                ('days_in_orbit', models.IntegerField()),
                ('occupied_since', models.DateField()),
                ('distance_traveled', models.CharField(max_length=64)),
                ('power', models.CharField(max_length=64)),
                ('revs_per_day', models.IntegerField()),
                ('no_revs', models.IntegerField()),
                ('curr_expedition', models.CharField(max_length=255)),
                ('main_modules', models.TextField()),
                ('no_crew', models.IntegerField()),
                ('description', models.TextField(blank=True)),
                ('docked_spacecrafts', models.ManyToManyField(to='core.Spacecraft')),
            ],
        ),
        migrations.CreateModel(
            name='SpaceObservatory',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('manufacturer', models.CharField(max_length=255)),
                ('launch_date', models.DateField()),
                ('satellite_of', models.CharField(max_length=64)),
                ('launch_mass', models.CharField(max_length=64)),
                ('payload_mass', models.CharField(max_length=64)),
                ('power', models.CharField(max_length=64)),
                ('platform', models.CharField(max_length=255)),
                ('power_source', models.CharField(max_length=64)),
                ('lifetime_period', models.CharField(max_length=64)),
                ('radio_frequency_range', models.CharField(max_length=64)),
                ('transmission_speed', models.CharField(max_length=64)),
                ('flight_duration', models.CharField(max_length=64)),
                ('description', models.TextField(blank=True)),
                ('launch_pad', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.LaunchPad')),
                ('launch_vehicles', models.ManyToManyField(to='core.LaunchVehicle')),
            ],
        ),
        migrations.CreateModel(
            name='OrbitalGrouping',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('first_launch_date', models.DateField(blank=True)),
                ('no_spacecrafts', models.IntegerField(blank=True)),
                ('no_planes', models.IntegerField(blank=True)),
                ('no_spacecrafts_on_plane', models.IntegerField(blank=True)),
                ('orbital_period', models.CharField(blank=True, max_length=64)),
                ('orbital_inclination', models.CharField(blank=True, max_length=64)),
                ('orbit_type', models.CharField(max_length=64)),
                ('orbit_height', models.CharField(blank=True, max_length=64)),
                ('accuracy', models.CharField(blank=True, max_length=64)),
                ('coverage', models.CharField(blank=True, max_length=64)),
                ('description', models.TextField(blank=True)),
                ('spacecrafts', models.ManyToManyField(to='core.Spacecraft')),
            ],
        ),
        migrations.AddField(
            model_name='launchvehicle',
            name='space_tugs',
            field=models.ManyToManyField(to='core.SpaceTug'),
        ),
        migrations.CreateModel(
            name='Launch',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('date', models.DateField()),
                ('time', models.TimeField()),
                ('result', models.CharField(choices=[('SUCCESS', 'Успешный'), ('FAILED', 'Неуспешный'), ('UPCOMING', 'Предстоящий')], max_length=12)),
                ('description', models.TextField(blank=True)),
                ('launch_pad', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.LaunchPad')),
                ('launch_vehicle', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.LaunchVehicle')),
            ],
        ),
    ]

# Generated by Django 3.0.1 on 2019-12-28 13:08

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='LaunchPad',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('location', models.CharField(max_length=255)),
                ('area', models.CharField(max_length=64)),
                ('rented', models.BooleanField(default=False)),
                ('used_by', models.CharField(blank=True, max_length=255)),
                ('use_period', models.CharField(blank=True, max_length=255)),
                ('no_launches', models.IntegerField()),
                ('no_employees', models.IntegerField(blank=True)),
                ('description', models.TextField(blank=True)),
            ],
        ),
        migrations.CreateModel(
            name='LaunchVehicle',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('manufacturer', models.CharField(max_length=255)),
                ('no_stages', models.IntegerField()),
                ('length', models.CharField(max_length=64)),
                ('diameter', models.CharField(max_length=64)),
                ('start_mass', models.CharField(max_length=64)),
                ('fuel_type', models.CharField(max_length=64)),
                ('max_distance', models.CharField(blank=True, max_length=64)),
                ('status', models.CharField(choices=[('ACTIVE', 'Действующий'), ('INACTIVE', 'Недействующий')], max_length=12)),
                ('description', models.TextField(blank=True)),
            ],
        ),
        migrations.CreateModel(
            name='Spacecraft',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('manufacturer', models.CharField(blank=True, max_length=255)),
                ('launch_mass', models.CharField(max_length=64)),
                ('lifetime_period', models.CharField(max_length=64)),
                ('orbital_period', models.CharField(blank=True, max_length=64)),
                ('coverage_diameter', models.CharField(blank=True, max_length=64)),
                ('power', models.CharField(max_length=64)),
                ('orbital_inclination', models.CharField(blank=True, max_length=64)),
                ('accuracy', models.CharField(blank=True, max_length=64)),
                ('description', models.TextField(blank=True)),
                ('launch_vehicles', models.ManyToManyField(to='core.LaunchVehicle')),
            ],
        ),
        migrations.CreateModel(
            name='SpaceTug',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('manufacturer', models.CharField(max_length=255)),
                ('first_launch_date', models.DateField(blank=True)),
                ('autonomous_flight_time', models.CharField(blank=True, max_length=64)),
                ('length', models.CharField(max_length=64)),
                ('diameter', models.CharField(max_length=64)),
                ('start_mass', models.CharField(max_length=64)),
                ('fuel_type', models.CharField(max_length=64)),
                ('fuel_supply', models.CharField(max_length=64)),
                ('engine_thrust', models.CharField(max_length=64)),
                ('no_inclusions', models.IntegerField()),
                ('no_flights', models.IntegerField(blank=True)),
                ('description', models.TextField(blank=True)),
            ],
        ),
        migrations.CreateModel(
            name='SpaceStation',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('spacecraft_type', models.CharField(max_length=64)),
                ('launch_date', models.DateField()),
                ('mass', models.CharField(max_length=64)),
                ('length', models.CharField(max_length=64)),
                ('width', models.CharField(max_length=64)),
                ('pressurised_volume', models.CharField(max_length=64)),
                ('atmospheric_pressure', models.CharField(max_length=64)),
                ('perigee_altitude', models.CharField(max_length=64)),
                ('apogee_altitude', models.CharField(max_length=64)),
                ('orbital_inclination', models.CharField(max_length=64)),
                ('orbital_speed', models.CharField(max_length=64)),
                ('orbital_period', models.CharField(max_length=64)),
                ('days_in_orbit', models.IntegerField()),
                ('occupied_since', models.DateField()),
                ('distance_traveled', models.CharField(max_length=64)),
                ('power', models.CharField(max_length=64)),
                ('revs_per_day', models.IntegerField()),
                ('no_revs', models.IntegerField()),
                ('curr_expedition', models.CharField(max_length=255)),
                ('main_modules', models.TextField()),
                ('no_crew', models.IntegerField()),
                ('description', models.TextField(blank=True)),
                ('docked_spacecrafts', models.ManyToManyField(to='core.Spacecraft')),
            ],
        ),
        migrations.CreateModel(
            name='SpaceObservatory',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('manufacturer', models.CharField(max_length=255)),
                ('launch_date', models.DateField()),
                ('satellite_of', models.CharField(max_length=64)),
                ('launch_mass', models.CharField(max_length=64)),
                ('payload_mass', models.CharField(max_length=64)),
                ('power', models.CharField(max_length=64)),
                ('platform', models.CharField(max_length=255)),
                ('power_source', models.CharField(max_length=64)),
                ('lifetime_period', models.CharField(max_length=64)),
                ('radio_frequency_range', models.CharField(max_length=64)),
                ('transmission_speed', models.CharField(max_length=64)),
                ('flight_duration', models.CharField(max_length=64)),
                ('description', models.TextField(blank=True)),
                ('launch_pad', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.LaunchPad')),
                ('launch_vehicles', models.ManyToManyField(to='core.LaunchVehicle')),
            ],
        ),
        migrations.CreateModel(
            name='OrbitalGrouping',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('first_launch_date', models.DateField(blank=True)),
                ('no_spacecrafts', models.IntegerField(blank=True)),
                ('no_planes', models.IntegerField(blank=True)),
                ('no_spacecrafts_on_plane', models.IntegerField(blank=True)),
                ('orbital_period', models.CharField(blank=True, max_length=64)),
                ('orbital_inclination', models.CharField(blank=True, max_length=64)),
                ('orbit_type', models.CharField(max_length=64)),
                ('orbit_height', models.CharField(blank=True, max_length=64)),
                ('accuracy', models.CharField(blank=True, max_length=64)),
                ('coverage', models.CharField(blank=True, max_length=64)),
                ('description', models.TextField(blank=True)),
                ('spacecrafts', models.ManyToManyField(to='core.Spacecraft')),
            ],
        ),
        migrations.AddField(
            model_name='launchvehicle',
            name='space_tugs',
            field=models.ManyToManyField(to='core.SpaceTug'),
        ),
        migrations.CreateModel(
            name='Launch',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('date', models.DateField()),
                ('time', models.TimeField()),
                ('result', models.CharField(choices=[('SUCCESS', 'Успешный'), ('FAILED', 'Неуспешный'), ('UPCOMING', 'Предстоящий')], max_length=12)),
                ('description', models.TextField(blank=True)),
                ('launch_pad', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.LaunchPad')),
                ('launch_vehicle', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.LaunchVehicle')),
            ],
        ),
    ]

# Generated by Django 3.0.1 on 2019-12-28 13:08