text: # Generated by Django 3.2.5 on 2021-07-16 12:08
  
  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='BoardCategory',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('title', models.TextField(max_length=25)),
              ],
              options={
                  'verbose_name_plural': 'board categories',
              },
          ),
          migrations.CreateModel(
              name='Post',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('body', models.TextField(max_length=500)),
                  ('date_created', models.DateTimeField(default=django.utils.timezone.now)),
                  ('title', models.CharField(max_length=200)),
                  ('last_activity', models.DateTimeField(default=django.utils.timezone.now)),
                  ('author', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)),
                  ('category', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='posts', to='suggestions.boardcategory')),
              ],
              options={
                  'ordering': ['-last_activity'],
              },
          ),
          migrations.CreateModel(
              name='Comment',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('body', models.TextField(max_length=500)),
                  ('date_created', models.DateTimeField(default=django.utils.timezone.now)),
                  ('Post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='suggestions.post')),
                  ('author', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)),
              ],
          ),
      ]
  