# Generated by Django 3.2.8 on 2021-11-03 21:38

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


class Migration(migrations.Migration):

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

    operations = [
        migrations.CreateModel(
            name='Habitat',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=50)),
            ],
        ),
        migrations.CreateModel(
            name='HabitatImage',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=50)),
                ('image_filename', models.CharField(default='-', max_length=50)),
                ('habitat', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='habitat', to='api.habitat')),
            ],
        ),
        migrations.CreateModel(
            name='Zone',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=50)),
                ('variant', models.CharField(blank=True, max_length=50, null=True)),
                ('refined_variant', models.CharField(blank=True, max_length=100, null=True)),
                ('redirect_habitat', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='redirect_habitat', to='api.habitat')),
            ],
        ),
        migrations.CreateModel(
            name='ZoneImageSegment',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('segment_order', models.PositiveIntegerField(default=0)),
                ('segment_percentage_width', models.PositiveIntegerField(default=0)),
                ('habitat_image', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='habitat_image', to='api.habitatimage')),
                ('zone', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='zone', to='api.zone')),
            ],
        ),
    ]
