text: # Generated by Django 2.0.4 on 2018-04-25 21:04
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  import sorl.thumbnail.fields
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Album',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('title', models.CharField(default='Untitled', max_length=1024)),
                  ('description', models.TextField(blank=True, null=True)),
                  ('date_created', models.DateField(auto_now_add=True)),
                  ('date_modified', models.DateField(auto_now=True)),
                  ('date_published', models.DateField(blank=True, null=True)),
                  ('published', models.CharField(choices=[('PRIVATE', 'Private'), ('SHARED', 'Shared'), ('PUBLIC', 'Public')], max_length=7)),
              ],
          ),
          migrations.CreateModel(
              name='Photo',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('image', sorl.thumbnail.fields.ImageField(upload_to='images')),
                  ('title', models.CharField(default='Untitled', max_length=1024)),
                  ('description', models.TextField(blank=True, null=True)),
                  ('date_uploaded', models.DateField(auto_now_add=True)),
                  ('date_modified', models.DateField(auto_now=True)),
                  ('date_published', models.DateField(blank=True, null=True)),
                  ('published', models.CharField(choices=[('PRIVATE', 'Private'), ('SHARED', 'Shared'), ('PUBLIC', 'Public')], max_length=7)),
                  ('albums', models.ManyToManyField(to='imager_images.Album')),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='photos', to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.AddField(
              model_name='album',
              name='cover',
              field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='imager_images.Photo'),
          ),
          migrations.AddField(
              model_name='album',
              name='photos',
              field=models.ManyToManyField(to='imager_images.Photo'),
          ),
          migrations.AddField(
              model_name='album',
              name='user',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='albums', to=settings.AUTH_USER_MODEL),
          ),
      ]
  