# Generated by Django 2.1.3 on 2018-12-01 16:54

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Subject',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('prompt_text', models.CharField(max_length=64)),
                ('pub_date', models.DateTimeField(verbose_name='date published')),
                ('num_answers', models.IntegerField(default=0)),
            ],
        ),
        migrations.CreateModel(
            name='Tagline',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('text', models.CharField(max_length=256)),
                ('submit_date', models.DateTimeField(verbose_name='date submitted')),
                ('votes', models.IntegerField(default=0)),
                ('subject', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='pitcher.Subject')),
            ],
            options={
                'ordering': ('subject',),
            },
        ),
    ]
