# Generated by Django 3.2.7 on 2021-10-13 02:10

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='WalkthroughPost',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('walkthrough_title', models.CharField(max_length=100)),
                ('walkthrough_body', models.TextField()),
                ('walkthrough_img', models.ImageField(blank=True, null=True, upload_to='uploaded_imgages/')),
                ('date_created', models.DateTimeField(default=django.utils.timezone.now)),
                ('for_game', models.CharField(max_length=100)),
                ('likes', models.IntegerField(default=0)),
                ('dislikes', models.IntegerField(default=0)),
                ('walkthrough_creator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='WalkthroughComment',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('post_body', models.TextField()),
                ('post_img', models.ImageField(blank=True, null=True, upload_to='uploaded_imgages/')),
                ('date_created', models.DateTimeField(default=django.utils.timezone.now)),
                ('for_game', models.CharField(max_length=100)),
                ('creator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
                ('walkthrough_post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='posts.walkthroughpost')),
            ],
        ),
        migrations.CreateModel(
            name='QuestionPost',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('question_title', models.CharField(max_length=200)),
                ('question_body', models.CharField(max_length=250)),
                ('question_img', models.ImageField(blank=True, null=True, upload_to='uploaded_imgages/')),
                ('date_created', models.DateTimeField(default=django.utils.timezone.now)),
                ('for_game', models.CharField(max_length=100)),
                ('question_creator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='AnswerPost',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('answer_body', models.TextField()),
                ('answer_img', models.ImageField(blank=True, null=True, upload_to='uploaded_imgages/')),
                ('date_created', models.DateTimeField(default=django.utils.timezone.now)),
                ('likes', models.IntegerField(default=0)),
                ('dislikes', models.IntegerField(default=0)),
                ('answer_creator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
                ('question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='posts.questionpost')),
            ],
        ),
    ]
