text: # Generated by Django 4.0.3 on 2022-03-09 15:20
  
  import cloudinary.models
  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='Image',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')),
                  ('image_name', models.CharField(max_length=60)),
                  ('image_date', models.DateTimeField(auto_now_add=True)),
                  ('image_caption', models.TextField(blank=True)),
                  ('likes', models.IntegerField(default=0)),
                  ('comments', models.IntegerField(default=0)),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='images', to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.CreateModel(
              name='Profile',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('username', models.CharField(max_length=50)),
                  ('date_joined', models.DateTimeField(auto_now_add=True)),
                  ('bio', models.CharField(max_length=500)),
                  ('profile_photo', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')),
                  ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.CreateModel(
              name='Likes',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('image', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='images', to='mainapp.image')),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.CreateModel(
              name='Comment',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('comment', models.CharField(max_length=60)),
                  ('comment_date', models.DateTimeField(auto_now_add=True)),
                  ('image', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='mainapp.image')),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
          ),
      ]
  