text: # Generated by Django 2.2.1 on 2019-05-30 12:29
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
          ('blog', '0001_initial'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Post',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('title', models.CharField(max_length=200)),
                  ('text', models.TextField(blank=True)),
                  ('image', models.ImageField(blank=True, upload_to='post_pics')),
                  ('videofile', models.FileField(blank=True, upload_to='post_vid')),
                  ('published_date', models.DateTimeField(blank=True, null=True)),
                  ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
                  ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.Category')),
              ],
          ),
      ]
  