# Generated by Django 3.2 on 2021-05-03 18:14

from django.conf import settings
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='Discussion',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)),
                ('headline', models.CharField(default='no headline', max_length=500)),
                ('content', models.TextField(max_length=10000)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='DiscussionComment',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)),
                ('content', models.TextField(max_length=1000)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('discussion', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='discussion.discussion')),
                ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='DiscussionVote',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)),
                ('value', models.IntegerField(blank=True, default=0, null=True)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('comment', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='discussion.discussioncomment')),
                ('discussion', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='discussion.discussion')),
                ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]

92f0c9eed6c2c7b72d7bd35d530607196811186e
<mask token>

<mask token>


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

<mask token>


class Migration(migrations.Migration):
    initial = True
    dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
    operations = [migrations.CreateModel(name='Discussion', fields=[('id',
        models.UUIDField(default=uuid.uuid4, editable=False, primary_key=
        True, serialize=False, unique=True)), ('headline', models.CharField
        (default='no headline', max_length=500)), ('content', models.
        TextField(max_length=10000)), ('created', models.DateTimeField(
        auto_now_add=True)), ('user', models.ForeignKey(blank=True, null=
        True, on_delete=django.db.models.deletion.SET_NULL, to=settings.
        AUTH_USER_MODEL))]), migrations.CreateModel(name=
        'DiscussionComment', fields=[('id', models.UUIDField(default=uuid.
        uuid4, editable=False, primary_key=True, serialize=False, unique=
        True)), ('content', models.TextField(max_length=1000)), ('created',
        models.DateTimeField(auto_now_add=True)), ('discussion', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'discussion.discussion')), ('user', models.ForeignKey(blank=True,
        null=True, on_delete=django.db.models.deletion.SET_NULL, to=
        settings.AUTH_USER_MODEL))]), migrations.CreateModel(name=
        'DiscussionVote', fields=[('id', models.UUIDField(default=uuid.
        uuid4, editable=False, primary_key=True, serialize=False, unique=
        True)), ('value', models.IntegerField(blank=True, default=0, null=
        True)), ('created', models.DateTimeField(auto_now_add=True)), (
        'comment', models.ForeignKey(blank=True, null=True, on_delete=
        django.db.models.deletion.SET_NULL, to=
        'discussion.discussioncomment')), ('discussion', models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, to=
        'discussion.discussion')), ('user', models.ForeignKey(blank=True,
        null=True, on_delete=django.db.models.deletion.SET_NULL, to=
        settings.AUTH_USER_MODEL))])]

from django.conf import settings
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='Discussion', fields=[('id',
        models.UUIDField(default=uuid.uuid4, editable=False, primary_key=
        True, serialize=False, unique=True)), ('headline', models.CharField
        (default='no headline', max_length=500)), ('content', models.
        TextField(max_length=10000)), ('created', models.DateTimeField(
        auto_now_add=True)), ('user', models.ForeignKey(blank=True, null=
        True, on_delete=django.db.models.deletion.SET_NULL, to=settings.
        AUTH_USER_MODEL))]), migrations.CreateModel(name=
        'DiscussionComment', fields=[('id', models.UUIDField(default=uuid.
        uuid4, editable=False, primary_key=True, serialize=False, unique=
        True)), ('content', models.TextField(max_length=1000)), ('created',
        models.DateTimeField(auto_now_add=True)), ('discussion', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'discussion.discussion')), ('user', models.ForeignKey(blank=True,
        null=True, on_delete=django.db.models.deletion.SET_NULL, to=
        settings.AUTH_USER_MODEL))]), migrations.CreateModel(name=
        'DiscussionVote', fields=[('id', models.UUIDField(default=uuid.
        uuid4, editable=False, primary_key=True, serialize=False, unique=
        True)), ('value', models.IntegerField(blank=True, default=0, null=
        True)), ('created', models.DateTimeField(auto_now_add=True)), (
        'comment', models.ForeignKey(blank=True, null=True, on_delete=
        django.db.models.deletion.SET_NULL, to=
        'discussion.discussioncomment')), ('discussion', models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, to=
        'discussion.discussion')), ('user', models.ForeignKey(blank=True,
        null=True, on_delete=django.db.models.deletion.SET_NULL, to=
        settings.AUTH_USER_MODEL))])]

# Generated by Django 3.2 on 2021-05-03 18:14

from django.conf import settings
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='Discussion',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)),
                ('headline', models.CharField(default='no headline', max_length=500)),
                ('content', models.TextField(max_length=10000)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='DiscussionComment',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)),
                ('content', models.TextField(max_length=1000)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('discussion', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='discussion.discussion')),
                ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='DiscussionVote',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)),
                ('value', models.IntegerField(blank=True, default=0, null=True)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('comment', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='discussion.discussioncomment')),
                ('discussion', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='discussion.discussion')),
                ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
