# Generated by Django 2.1 on 2018-08-21 11:56

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


class Migration(migrations.Migration):

    dependencies = [
        ('gifts', '0003_migrate_collected'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='santaentry',
            name='collected',
        ),
        migrations.CreateModel(
            name='Report',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('time', models.DateTimeField(verbose_name='Время')),
                ('action', models.CharField(choices=[('collect', 'Взял'), ('return', 'Вернул')], max_length=32,
                                            verbose_name='Что сделал')),
                ('count', models.IntegerField(default=1, verbose_name='Количество')),
            ],
        ),
        migrations.AlterModelOptions(
            name='gifttype',
            options={'ordering': ['position', 'id']},
        ),
        migrations.AddField(
            model_name='event',
            name='max_count',
            field=models.IntegerField(default=1, verbose_name='Максимальное количество (0 - безлимит)'),
        ),
        migrations.AddField(
            model_name='event',
            name='returnable',
            field=models.BooleanField(default=False, verbose_name='Можно вернуть подарок'),
        ),
        migrations.AddField(
            model_name='report',
            name='entry',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gifts.SantaEntry'),
        ),
    ]
