<gh_stars>0
# Generated by Django 2.1.3 on 2018-11-18 02:06

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Collection',
            fields=[
                ('uuid', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=255)),
            ],
        ),
        migrations.CreateModel(
            name='CollectionElement',
            fields=[
                ('uuid', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('order', models.PositiveSmallIntegerField(default=0)),
                ('collection', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='elements_list', to='manager.Collection')),
            ],
            options={
                'ordering': ['order'],
            },
        ),
        migrations.CreateModel(
            name='CollectionElementValue',
            fields=[
                ('uuid', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('value', models.CharField(max_length=2048)),
                ('order', models.PositiveSmallIntegerField(default=0)),
                ('element', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='values_list', to='manager.CollectionElement')),
            ],
            options={
                'ordering': ['order'],
            },
        ),
        migrations.CreateModel(
            name='DataType',
            fields=[
                ('uuid', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=255)),
                ('min', models.IntegerField(default=10)),
                ('max', models.IntegerField(default=255)),
                ('data_type', models.CharField(choices=[('int', 'Integer'), ('float', 'Float'), ('bool', 'Boolean'), ('lorem', 'Lorem Ipsum'), ('str', 'String'), ('options', 'Options'), ('struct', 'Collection')], default='str', max_length=255)),
                ('fixed', models.BooleanField(default=False)),
            ],
        ),
        migrations.CreateModel(
            name='DataTypeElement',
            fields=[
                ('uuid', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=255)),
                ('recap', models.BooleanField(default=False)),
                ('min_count', models.PositiveSmallIntegerField(default=1)),
                ('max_count', models.PositiveSmallIntegerField(default=1)),
                ('order', models.PositiveSmallIntegerField(default=0)),
                ('base_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='fields_list', to='manager.DataType')),
                ('data_type', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='manager.DataType')),
            ],
            options={
                'ordering': ['order'],
            },
        ),
        migrations.CreateModel(
            name='DataTypeOption',
            fields=[
                ('uuid', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=255)),
                ('base_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='options_list', to='manager.DataType')),
            ],
            options={
                'ordering': ['name'],
            },
        ),
        migrations.AddField(
            model_name='collectionelementvalue',
            name='key',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='manager.DataTypeElement'),
        ),
        migrations.AddField(
            model_name='collection',
            name='type',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='collections', to='manager.DataType'),
        ),
    ]
