# -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-06 23:44
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    dependencies = [
        ('dataset', '0002_auto_20170927_1547'),
    ]

    operations = [
        migrations.CreateModel(
            name='Preposition',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(choices=[(1, 'Above'), (2, 'Below')], max_length=10)),
            ],
        ),
        migrations.CreateModel(
            name='Query',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('query_type', models.CharField(max_length=1)),
                ('query_name', models.CharField(max_length=50)),
            ],
        ),
        migrations.CreateModel(
            name='QueryGroundTruth',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('image', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dataset.Image')),
                ('query', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dataset.Query')),
            ],
        ),
        migrations.CreateModel(
            name='QueryNoun',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('object', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dataset.Object')),
                ('query', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dataset.Query')),
            ],
        ),
        migrations.CreateModel(
            name='StructuredQueryDataset',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('object1', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='object1', to='dataset.Object')),
                ('object2', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='object2', to='dataset.Object')),
                ('preposition', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dataset.Preposition')),
                ('query', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dataset.Query')),
            ],
        ),
    ]
