# Generated by Django 3.1.4 on 2021-05-07 20:06

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0209_cgroup_tm_edit'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('entertainment', '0025_auto_20210422_1723'),
    ]

    operations = [
        migrations.CreateModel(
            name='GiftApplication',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('receiver', models.CharField(max_length=20, verbose_name='姓名')),
                ('cellphone', models.CharField(max_length=20, verbose_name='联系电话')),
                ('entity', models.CharField(max_length=50, verbose_name='单位名称')),
                ('remark', models.CharField(blank=True, max_length=50, verbose_name='备注说明')),
                ('actapplication', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='giftapp_act', to='entertainment.actapplication', verbose_name='会议活动')),
                ('agent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='giftapp_agent', to='company.company', verbose_name='公司名称')),
                ('category', models.ForeignKey(default=10, on_delete=django.db.models.deletion.CASCADE, to='entertainment.category', verbose_name='用酒类别')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='giftapp_company', to='company.company', verbose_name='公司名称')),
                ('department', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='giftapp_deptment', to='company.department', verbose_name='部门名称')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='giftapp_user', to=settings.AUTH_USER_MODEL, verbose_name='操作员')),
            ],
            options={
                'verbose_name': '赠品申报',
                'verbose_name_plural': '赠品申报',
            },
        ),
        migrations.AddField(
            model_name='entwriteoff',
            name='giftapplication',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='entwriteoff_gift', to='entertainment.giftapplication', verbose_name='礼品申报'),
        ),
    ]
