text: # Generated by Django 3.2.8 on 2021-10-15 16:01
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Author',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('info', models.TextField(help_text='write sth about yourself!', max_length=200)),
                  ('user_name', models.OneToOneField(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'ordering': ['user_name'],
              },
          ),
          migrations.CreateModel(
              name='Blog',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=100)),
                  ('content', models.TextField(help_text='Write the story here!', max_length=2000)),
                  ('image', models.ImageField(null=True, upload_to='')),
                  ('author', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='main.author')),
              ],
          ),
          migrations.CreateModel(
              name='Comment',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('content', models.TextField(help_text='Enter your comment here.', max_length=1000)),
                  ('author', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
                  ('blog', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='main.blog')),
              ],
          ),
      ]
  