text: # -*- coding: utf-8 -*-
  # Generated by Django 1.11 on 2019-07-29 06:04
  from __future__ import unicode_literals
  
  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.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('image', models.ImageField(upload_to='picture/')),
                  ('name', models.CharField(max_length=40)),
                  ('caption', models.CharField(max_length=25)),
                  ('likes', models.IntegerField(default=0)),
                  ('comments', models.TextField()),
              ],
          ),
          migrations.CreateModel(
              name='Location',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=40)),
              ],
          ),
          migrations.CreateModel(
              name='NewsLetterRecipients',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=30)),
                  ('email', models.EmailField(max_length=254)),
              ],
          ),
          migrations.CreateModel(
              name='Profile',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('bio', models.TextField(blank=True, default='bio', max_length=100, null=True)),
                  ('profilepic', models.ImageField(blank=True, null=True, upload_to='picture/')),
                  ('followers', models.ManyToManyField(blank=True, related_name='followers', to=settings.AUTH_USER_MODEL)),
                  ('following', models.ManyToManyField(blank=True, related_name='following', to=settings.AUTH_USER_MODEL)),
                  ('user', models.OneToOneField(blank=True, on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.CreateModel(
              name='Review',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('comment', models.TextField()),
                  ('image', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='review', to='IG_app.Image')),
                  ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='user', to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.CreateModel(
              name='tags',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=20)),
              ],
          ),
          migrations.AddField(
              model_name='image',
              name='location',
              field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='IG_app.Location'),
          ),
          migrations.AddField(
              model_name='image',
              name='profile',
              field=models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, related_name='images', to=settings.AUTH_USER_MODEL),
          ),
          migrations.AddField(
              model_name='image',
              name='tags',
              field=models.ManyToManyField(to='IG_app.tags'),
          ),
      ]
  