text: # Generated by Django 2.2.18 on 2021-05-20 08:47
  
  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='Profile',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('profile_picture', models.ImageField(default='default.png', upload_to='images/')),
                  ('bio', models.TextField(blank=True, default='My Bio', max_length=500)),
                  ('name', models.CharField(blank=True, max_length=120)),
                  ('location', models.CharField(blank=True, max_length=60)),
                  ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.CreateModel(
              name='Post',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('image', models.ImageField(upload_to='posts/')),
                  ('name', models.CharField(blank=True, max_length=250)),
                  ('caption', models.CharField(blank=True, max_length=250)),
                  ('created', models.DateTimeField(auto_now_add=True, null=True)),
                  ('likes', models.ManyToManyField(blank=True, related_name='likes', to=settings.AUTH_USER_MODEL)),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='posts', to='instagram.Profile')),
              ],
              options={
                  'ordering': ['-pk'],
              },
          ),
          migrations.CreateModel(
              name='Follow',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('followed', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='followers', to='instagram.Profile')),
                  ('follower', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='following', to='instagram.Profile')),
              ],
          ),
          migrations.CreateModel(
              name='Comment',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('comment', models.TextField()),
                  ('created', models.DateTimeField(auto_now_add=True, null=True)),
                  ('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='instagram.Post')),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='instagram.Profile')),
              ],
              options={
                  'ordering': ['-pk'],
              },
          ),
      ]
  