text: # Generated by Django 3.1 on 2020-08-10 14:26
  
  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='Blog',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('title', models.CharField(max_length=100)),
                  ('subtitle', models.CharField(max_length=250)),
                  ('slug', models.SlugField(max_length=300, unique=True)),
                  ('meta_description', models.CharField(max_length=200)),
                  ('content', models.TextField()),
                  ('status', models.CharField(choices=[('Published', 'published'), ('Draft', 'draft')], default='Draft', max_length=10)),
                  ('featured_image', models.ImageField(upload_to='')),
                  ('created_at', models.DateTimeField(auto_now_add=True)),
                  ('updated_at', models.DateTimeField(auto_now=True)),
                  ('is_published', models.DateTimeField(default=django.utils.timezone.now)),
              ],
          ),
          migrations.CreateModel(
              name='Category',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=50)),
                  ('date', models.DateTimeField(auto_now_add=True)),
              ],
          ),
          migrations.CreateModel(
              name='Subscriber',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=50)),
                  ('email', models.CharField(max_length=100)),
              ],
          ),
          migrations.CreateModel(
              name='Tag',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=20)),
                  ('date', models.DateTimeField(auto_now_add=True)),
              ],
          ),
          migrations.CreateModel(
              name='Comment',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=120)),
                  ('email', models.EmailField(max_length=254, unique=True)),
                  ('message', models.TextField()),
                  ('date', models.DateTimeField(auto_now_add=True)),
                  ('blog', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.blog')),
              ],
          ),
          migrations.AddField(
              model_name='blog',
              name='category',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.category'),
          ),
          migrations.AddField(
              model_name='blog',
              name='tags',
              field=models.ManyToManyField(to='blog.Tag'),
          ),
          migrations.AddField(
              model_name='blog',
              name='user',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
          ),
      ]
  