# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-05-14 16:07
from __future__ import unicode_literals

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import model_utils.fields
import reefsource.apps.albums.models


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')),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('name', models.CharField(max_length=128)),
                ('lat', models.DecimalField(decimal_places=6, max_digits=9)),
                ('long', models.DecimalField(decimal_places=6, max_digits=9)),
                ('user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Results',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('json', models.TextField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='UploadedFile',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('original_filename', models.CharField(blank=True, max_length=255)),
                ('file', models.FileField(max_length=255, upload_to=reefsource.apps.albums.models.uploaded_file_to)),
                ('filesize', models.BigIntegerField(blank=True, null=True)),
                ('mime_type', models.CharField(max_length=30)),
                ('album_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='albums.Album')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AddField(
            model_name='results',
            name='uploaded_file_id',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='albums.UploadedFile'),
        ),
    ]

217d95dd300a469f8cb02e6d074cbc92c18781eb
<mask token>

<mask token>


class Migration(migrations.Migration):
    <mask token>
    <mask token>
    <mask token>

<mask token>


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')), ('created', model_utils.fields.
        AutoCreatedField(default=django.utils.timezone.now, editable=False,
        verbose_name='created')), ('modified', model_utils.fields.
        AutoLastModifiedField(default=django.utils.timezone.now, editable=
        False, verbose_name='modified')), ('name', models.CharField(
        max_length=128)), ('lat', models.DecimalField(decimal_places=6,
        max_digits=9)), ('long', models.DecimalField(decimal_places=6,
        max_digits=9)), ('user_id', models.ForeignKey(on_delete=django.db.
        models.deletion.CASCADE, to=settings.AUTH_USER_MODEL))], options={
        'abstract': False}), migrations.CreateModel(name='Results', fields=
        [('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('created', model_utils.
        fields.AutoCreatedField(default=django.utils.timezone.now, editable
        =False, verbose_name='created')), ('modified', model_utils.fields.
        AutoLastModifiedField(default=django.utils.timezone.now, editable=
        False, verbose_name='modified')), ('json', models.TextField())],
        options={'abstract': False}), migrations.CreateModel(name=
        'UploadedFile', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('created',
        model_utils.fields.AutoCreatedField(default=django.utils.timezone.
        now, editable=False, verbose_name='created')), ('modified',
        model_utils.fields.AutoLastModifiedField(default=django.utils.
        timezone.now, editable=False, verbose_name='modified')), (
        'original_filename', models.CharField(blank=True, max_length=255)),
        ('file', models.FileField(max_length=255, upload_to=reefsource.apps
        .albums.models.uploaded_file_to)), ('filesize', models.
        BigIntegerField(blank=True, null=True)), ('mime_type', models.
        CharField(max_length=30)), ('album_id', models.ForeignKey(on_delete
        =django.db.models.deletion.CASCADE, to='albums.Album'))], options={
        'abstract': False}), migrations.AddField(model_name='results', name
        ='uploaded_file_id', field=models.ForeignKey(on_delete=django.db.
        models.deletion.CASCADE, to='albums.UploadedFile'))]

from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import model_utils.fields
import reefsource.apps.albums.models


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')), ('created', model_utils.fields.
        AutoCreatedField(default=django.utils.timezone.now, editable=False,
        verbose_name='created')), ('modified', model_utils.fields.
        AutoLastModifiedField(default=django.utils.timezone.now, editable=
        False, verbose_name='modified')), ('name', models.CharField(
        max_length=128)), ('lat', models.DecimalField(decimal_places=6,
        max_digits=9)), ('long', models.DecimalField(decimal_places=6,
        max_digits=9)), ('user_id', models.ForeignKey(on_delete=django.db.
        models.deletion.CASCADE, to=settings.AUTH_USER_MODEL))], options={
        'abstract': False}), migrations.CreateModel(name='Results', fields=
        [('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('created', model_utils.
        fields.AutoCreatedField(default=django.utils.timezone.now, editable
        =False, verbose_name='created')), ('modified', model_utils.fields.
        AutoLastModifiedField(default=django.utils.timezone.now, editable=
        False, verbose_name='modified')), ('json', models.TextField())],
        options={'abstract': False}), migrations.CreateModel(name=
        'UploadedFile', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('created',
        model_utils.fields.AutoCreatedField(default=django.utils.timezone.
        now, editable=False, verbose_name='created')), ('modified',
        model_utils.fields.AutoLastModifiedField(default=django.utils.
        timezone.now, editable=False, verbose_name='modified')), (
        'original_filename', models.CharField(blank=True, max_length=255)),
        ('file', models.FileField(max_length=255, upload_to=reefsource.apps
        .albums.models.uploaded_file_to)), ('filesize', models.
        BigIntegerField(blank=True, null=True)), ('mime_type', models.
        CharField(max_length=30)), ('album_id', models.ForeignKey(on_delete
        =django.db.models.deletion.CASCADE, to='albums.Album'))], options={
        'abstract': False}), migrations.AddField(model_name='results', name
        ='uploaded_file_id', field=models.ForeignKey(on_delete=django.db.
        models.deletion.CASCADE, to='albums.UploadedFile'))]

# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-05-14 16:07
from __future__ import unicode_literals

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import model_utils.fields
import reefsource.apps.albums.models


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')),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('name', models.CharField(max_length=128)),
                ('lat', models.DecimalField(decimal_places=6, max_digits=9)),
                ('long', models.DecimalField(decimal_places=6, max_digits=9)),
                ('user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Results',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('json', models.TextField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='UploadedFile',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('original_filename', models.CharField(blank=True, max_length=255)),
                ('file', models.FileField(max_length=255, upload_to=reefsource.apps.albums.models.uploaded_file_to)),
                ('filesize', models.BigIntegerField(blank=True, null=True)),
                ('mime_type', models.CharField(max_length=30)),
                ('album_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='albums.Album')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AddField(
            model_name='results',
            name='uploaded_file_id',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='albums.UploadedFile'),
        ),
    ]
