# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='LockableFK',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, auto_created=True, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='LockableM2M',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, auto_created=True, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='LockableModel',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, auto_created=True, verbose_name='ID')),
                ('non_lockable_field', models.CharField(max_length=100)),
                ('name', models.CharField(max_length=100)),
                ('locked', models.BooleanField(default=False)),
                ('lockable', models.ForeignKey(to='lockable_testapp.LockableFK')),
                ('lockables', models.ManyToManyField(to='lockable_testapp.LockableM2M')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='UnlockableFK',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, auto_created=True, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='UnlockableM2M',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, auto_created=True, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AddField(
            model_name='lockablemodel',
            name='unlockable',
            field=models.ForeignKey(to='lockable_testapp.UnlockableFK'),
        ),
        migrations.AddField(
            model_name='lockablemodel',
            name='unlockables',
            field=models.ManyToManyField(to='lockable_testapp.UnlockableM2M'),
        ),
    ]
