# Generated by Django 4.0.4 on 2022-06-20 15:45 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='Post', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('post_content', models.CharField(max_length=5000)), ('timestamp', models.DateTimeField(default=django.utils.timezone.now)), ('image', models.ImageField(default='', upload_to='images')), ('user1', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Reply', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('reply_content', models.CharField(max_length=5000)), ('timestamp', models.DateTimeField(default=django.utils.timezone.now)), ('image', models.ImageField(default='', upload_to='images')), ('post', models.ForeignKey(default='', on_delete=django.db.models.deletion.CASCADE, to='forum.post')), ('user', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(default='default/user.png', upload_to='images')), ('user', models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]