# Generated by Django 2.2 on 2020-03-19 17:32

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('bot', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Question',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('number', models.IntegerField(unique=True)),
                ('text', models.CharField(max_length=255)),
            ],
            options={
                'ordering': ('number',),
            },
        ),
        migrations.CreateModel(
            name='UserSession',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='sessions', to='survey.Question')),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='session', to='bot.TelegramUser')),
            ],
        ),
        migrations.CreateModel(
            name='Choice',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('text', models.CharField(max_length=255)),
                ('question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='choices', to='survey.Question')),
            ],
        ),
        migrations.CreateModel(
            name='Answer',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('text', models.TextField(blank=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='answers', to='survey.Question')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='answers', to='bot.TelegramUser')),
            ],
            options={
                'ordering': ('user', 'question__number'),
                'default_related_name': 'answers',
            },
        ),
    ]

6f44e1d314684e4695efc0d90fd5707ca0c57fa7
<mask token>

<mask token>


class Migration(migrations.Migration):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Migration(migrations.Migration):
    initial = True
    dependencies = [('bot', '0001_initial')]
    operations = [migrations.CreateModel(name='Question', fields=[('id',
        models.UUIDField(default=uuid.uuid4, editable=False, primary_key=
        True, serialize=False)), ('number', models.IntegerField(unique=True
        )), ('text', models.CharField(max_length=255))], options={
        'ordering': ('number',)}), migrations.CreateModel(name=
        'UserSession', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('question',
        models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='sessions', to='survey.Question')), ('user', models.
        OneToOneField(on_delete=django.db.models.deletion.CASCADE,
        related_name='session', to='bot.TelegramUser'))]), migrations.
        CreateModel(name='Choice', fields=[('id', models.UUIDField(default=
        uuid.uuid4, editable=False, primary_key=True, serialize=False)), (
        'text', models.CharField(max_length=255)), ('question', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='choices', to='survey.Question'))]), migrations.
        CreateModel(name='Answer', fields=[('id', models.UUIDField(default=
        uuid.uuid4, editable=False, primary_key=True, serialize=False)), (
        'text', models.TextField(blank=True)), ('created_at', models.
        DateTimeField(auto_now_add=True)), ('updated_at', models.
        DateTimeField(auto_now=True)), ('question', models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, related_name='answers',
        to='survey.Question')), ('user', models.ForeignKey(on_delete=django
        .db.models.deletion.CASCADE, related_name='answers', to=
        'bot.TelegramUser'))], options={'ordering': ('user',
        'question__number'), 'default_related_name': 'answers'})]

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


class Migration(migrations.Migration):
    initial = True
    dependencies = [('bot', '0001_initial')]
    operations = [migrations.CreateModel(name='Question', fields=[('id',
        models.UUIDField(default=uuid.uuid4, editable=False, primary_key=
        True, serialize=False)), ('number', models.IntegerField(unique=True
        )), ('text', models.CharField(max_length=255))], options={
        'ordering': ('number',)}), migrations.CreateModel(name=
        'UserSession', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('question',
        models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='sessions', to='survey.Question')), ('user', models.
        OneToOneField(on_delete=django.db.models.deletion.CASCADE,
        related_name='session', to='bot.TelegramUser'))]), migrations.
        CreateModel(name='Choice', fields=[('id', models.UUIDField(default=
        uuid.uuid4, editable=False, primary_key=True, serialize=False)), (
        'text', models.CharField(max_length=255)), ('question', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='choices', to='survey.Question'))]), migrations.
        CreateModel(name='Answer', fields=[('id', models.UUIDField(default=
        uuid.uuid4, editable=False, primary_key=True, serialize=False)), (
        'text', models.TextField(blank=True)), ('created_at', models.
        DateTimeField(auto_now_add=True)), ('updated_at', models.
        DateTimeField(auto_now=True)), ('question', models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, related_name='answers',
        to='survey.Question')), ('user', models.ForeignKey(on_delete=django
        .db.models.deletion.CASCADE, related_name='answers', to=
        'bot.TelegramUser'))], options={'ordering': ('user',
        'question__number'), 'default_related_name': 'answers'})]

# Generated by Django 2.2 on 2020-03-19 17:32

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('bot', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Question',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('number', models.IntegerField(unique=True)),
                ('text', models.CharField(max_length=255)),
            ],
            options={
                'ordering': ('number',),
            },
        ),
        migrations.CreateModel(
            name='UserSession',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='sessions', to='survey.Question')),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='session', to='bot.TelegramUser')),
            ],
        ),
        migrations.CreateModel(
            name='Choice',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('text', models.CharField(max_length=255)),
                ('question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='choices', to='survey.Question')),
            ],
        ),
        migrations.CreateModel(
            name='Answer',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('text', models.TextField(blank=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='answers', to='survey.Question')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='answers', to='bot.TelegramUser')),
            ],
            options={
                'ordering': ('user', 'question__number'),
                'default_related_name': 'answers',
            },
        ),
    ]
