# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-07-05 15:51
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    dependencies = [
        ('webapp', '0043_auto_20180605_1953'),
    ]

    operations = [
        migrations.CreateModel(
            name='Event',
            fields=[
                ('basefeed_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='webapp.BaseFeed')),
                ('start_time', models.DateTimeField(default=django.utils.timezone.now)),
                ('end_time', models.DateTimeField(default=django.utils.timezone.now)),
            ],
            options={
                'verbose_name': 'Event',
                'verbose_name_plural': 'Events',
            },
            bases=('webapp.basefeed',),
        ),
        migrations.CreateModel(
            name='Signup',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('time', models.DateTimeField(default=django.utils.timezone.now)),
                ('answer', models.CharField(max_length=255)),
            ],
            options={
                'verbose_name': 'Sign-up',
                'verbose_name_plural': 'Sign-ups',
            },
        ),
        migrations.CreateModel(
            name='SignupForm',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('start', models.DateTimeField(default=django.utils.timezone.now)),
                ('end', models.DateTimeField(default=django.utils.timezone.now)),
                ('question', models.CharField(max_length=255)),
            ],
            options={
                'verbose_name': 'Signup form',
                'verbose_name_plural': 'Signup forms',
            },
        ),
        migrations.CreateModel(
            name='TemplateQuestion',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('question', models.CharField(max_length=255)),
            ],
            options={
                'verbose_name': 'Template question',
                'verbose_name_plural': 'Template questions',
            },
        ),
        migrations.AddField(
            model_name='signup',
            name='signupForm',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='webapp.SignupForm'),
        ),
        migrations.AddField(
            model_name='event',
            name='signupForm',
            field=models.ManyToManyField(blank=True, to='webapp.SignupForm'),
        ),
    ]
