text: # -*- coding: utf-8 -*-
  # Generated by Django 1.11.2 on 2017-07-20 01:02
  from __future__ import unicode_literals
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Choice',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('choice', models.CharField(max_length=80)),
                  ('idinPoll', models.IntegerField()),
              ],
              options={
                  'verbose_name_plural': 'Choices',
                  'verbose_name': 'Choice',
              },
          ),
          migrations.CreateModel(
              name='Poll',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=150)),
                  ('created', models.DateTimeField(auto_now=True)),
                  ('closetime', models.DateTimeField()),
                  ('admin', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'verbose_name_plural': 'polls',
                  'verbose_name': 'poll',
              },
          ),
          migrations.CreateModel(
              name='Vote',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('choice', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='polls.Choice')),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'verbose_name_plural': 'Votes',
                  'verbose_name': 'Vote',
              },
          ),
          migrations.AddField(
              model_name='choice',
              name='poll',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='polls.Poll'),
          ),
      ]
  