text: # -*- coding: utf-8 -*-
  # Generated by Django 1.11 on 2019-07-12 06:53
  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')),
                  ('active', models.IntegerField(choices=[(0, 'Inactive'), (1, 'Active')], default=1)),
                  ('created', models.DateTimeField(auto_now_add=True)),
                  ('modified', models.DateTimeField(auto_now=True)),
                  ('Choice_text', models.CharField(max_length=200)),
                  ('votes', models.IntegerField(default=0)),
              ],
              options={
                  'abstract': False,
              },
          ),
          migrations.CreateModel(
              name='Question',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('active', models.IntegerField(choices=[(0, 'Inactive'), (1, 'Active')], default=1)),
                  ('created', models.DateTimeField(auto_now_add=True)),
                  ('modified', models.DateTimeField(auto_now=True)),
                  ('question_text', models.CharField(max_length=200)),
                  ('pub_date', models.DateTimeField(auto_now_add=True)),
              ],
              options={
                  'abstract': False,
              },
          ),
          migrations.CreateModel(
              name='RoleType',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('active', models.IntegerField(choices=[(0, 'Inactive'), (1, 'Active')], default=1)),
                  ('created', models.DateTimeField(auto_now_add=True)),
                  ('modified', models.DateTimeField(auto_now=True)),
                  ('name', models.CharField(max_length=20)),
              ],
              options={
                  'abstract': False,
              },
          ),
          migrations.CreateModel(
              name='UserDetail',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('active', models.IntegerField(choices=[(0, 'Inactive'), (1, 'Active')], default=1)),
                  ('created', models.DateTimeField(auto_now_add=True)),
                  ('modified', models.DateTimeField(auto_now=True)),
                  ('website', models.CharField(max_length=50)),
                  ('mail', models.EmailField(max_length=50)),
                  ('name', models.CharField(max_length=50)),
                  ('phonenumber', models.BigIntegerField()),
              ],
              options={
                  'db_table': 'userdetail',
              },
          ),
          migrations.CreateModel(
              name='UserRole',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('active', models.IntegerField(choices=[(0, 'Inactive'), (1, 'Active')], default=1)),
                  ('created', models.DateTimeField(auto_now_add=True)),
                  ('modified', models.DateTimeField(auto_now=True)),
                  ('roles', models.ManyToManyField(to='app.RoleType')),
                  ('user1', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'abstract': False,
              },
          ),
          migrations.AddField(
              model_name='choice',
              name='question',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.Question'),
          ),
      ]
  