# -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-22 08:47
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion
import uuid


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('account', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='FileStorage',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('upload', models.FileField(upload_to='uploads/')),
            ],
            options={
                'verbose_name': 'File Storage',
                'verbose_name_plural': 'File Storages',
            },
        ),
        migrations.CreateModel(
            name='ReportRelease',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='ReportUpload',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('name', models.CharField(help_text='Name', max_length=64)),
                ('description', models.TextField(blank=True, help_text='Description')),
                ('created', models.DateTimeField(auto_now_add=True, help_text='Date when object was created. Should be assigned automatically only.')),
                ('file', models.ForeignKey(help_text='File upload', on_delete=django.db.models.deletion.CASCADE, to='report.FileStorage')),
                ('user', models.ForeignKey(help_text='Owner account', on_delete=django.db.models.deletion.CASCADE, to='account.Account')),
            ],
            options={
                'verbose_name': 'Report Upload',
                'verbose_name_plural': 'Report Uploads',
            },
        ),
        migrations.AddField(
            model_name='reportrelease',
            name='report',
            field=models.ForeignKey(help_text='Report upload', on_delete=django.db.models.deletion.CASCADE, to='report.ReportUpload'),
        ),
        migrations.AddField(
            model_name='reportrelease',
            name='user',
            field=models.ForeignKey(help_text='Owner account', on_delete=django.db.models.deletion.CASCADE, to='account.Account'),
        ),
    ]
