# Generated by Django 1.11.2 on 2018-08-20 19:08

import functools

from django.db import migrations, models
import django.utils.timezone
import intranet.femida.src.attachments.models
import model_utils.fields


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Attachment',
            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(blank=True, default='', max_length=255)),
                ('size', models.IntegerField(blank=True, null=True)),
                ('content_type', models.CharField(blank=True, default='', max_length=255)),
                ('attached_file', models.FileField(
                    max_length=512,
                    upload_to=functools.partial(
                        intranet.femida.src.attachments.models.upload_to,
                        *(),
                        **{'prefix': 'attachments'},
                    )
                )),
                ('sha1', models.CharField(blank=True, db_index=True, default='', max_length=40)),
                ('text', models.TextField(blank=True, null=True)),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
