text: # Generated by Django 3.2.3 on 2021-05-17 02:47
  
  from django.conf import settings
  import django.contrib.postgres.fields
  from django.db import migrations, models
  import django.db.models.deletion
  import uuid
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Questionnaire',
              fields=[
                  ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                  ('name', models.CharField(max_length=255)),
                  ('description', models.TextField(blank=True, null=True)),
                  ('created_at', models.DateTimeField(auto_now_add=True)),
                  ('updated_at', models.DateTimeField(auto_now=True)),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.CreateModel(
              name='Question',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('question_text', models.TextField(blank=True, null=True)),
                  ('question_type', models.CharField(choices=[('TEXT', 'Text'), ('MCSS', 'Mcss')], default='TEXT', max_length=20)),
                  ('options', django.contrib.postgres.fields.ArrayField(base_field=models.JSONField(default=dict), blank=True, null=True, size=5)),
                  ('created_at', models.DateTimeField(auto_now_add=True)),
                  ('updated_at', models.DateTimeField(auto_now=True)),
                  ('questionnaire', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='questionnaire.questionnaire')),
              ],
          ),
          migrations.CreateModel(
              name='QResponse',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('respondent_email', models.EmailField(max_length=255)),
                  ('answers', django.contrib.postgres.fields.ArrayField(base_field=models.TextField(), size=None)),
                  ('created_at', models.DateTimeField(auto_now_add=True)),
                  ('question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='questionnaire.question')),
              ],
          ),
      ]
  