# Generated by Django 2.2.6 on 2020-02-10 11:39

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import storages.backends.s3boto3


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('project_core', '0101_auto_20200207_1144'),
        ('comments', '0003_rename_comment_category_to_category'),
    ]

    operations = [
        migrations.AlterField(
            model_name='proposalcomment',
            name='proposal',
            field=models.OneToOneField(help_text='Proposal that this comment refers to', on_delete=django.db.models.deletion.PROTECT, to='project_core.Proposal'),
        ),
        migrations.CreateModel(
            name='ProposalAttachment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created_on', models.DateTimeField(auto_now_add=True, help_text='Date and time at which the entry was created')),
                ('modified_on', models.DateTimeField(auto_now=True, help_text='Date and time at which the entry was modified', null=True)),
                ('file', models.FileField(storage=storages.backends.s3boto3.S3Boto3Storage(), upload_to='attachments/')),
                ('created_by', models.ForeignKey(blank=True, help_text='User by which the entry was created', null=True, on_delete=django.db.models.deletion.PROTECT, related_name='comments_proposalattachment_created_by_related', to=settings.AUTH_USER_MODEL)),
                ('modified_by', models.ForeignKey(blank=True, help_text='User by which the entry was modified', null=True, on_delete=django.db.models.deletion.PROTECT, related_name='comments_proposalattachment_modified_by_related', to=settings.AUTH_USER_MODEL)),
                ('proposal', models.OneToOneField(help_text='Proposal that this attachments belongs to', on_delete=django.db.models.deletion.PROTECT, to='project_core.Proposal')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
