# Generated by Django 3.1.4 on 2021-07-08 17:02

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


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('company', '0217_salesman'),
        ('sales', '0209_auto_20210707_2007'),
    ]

    operations = [
        migrations.CreateModel(
            name='KangNian_WriteOffLabel',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('labelcode', models.CharField(blank=True, max_length=100, null=True, verbose_name='labelcode')),
                ('tm', models.DateTimeField(auto_now_add=True, null=True, verbose_name='核销时间')),
                ('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.company', verbose_name='核销公司')),
                ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='核销帐号')),
            ],
            options={
                'verbose_name': '康年皇冠活动标签核销表',
                'verbose_name_plural': '康年皇冠活动标签核销表',
            },
        ),
        migrations.CreateModel(
            name='KangNian_ReserveLabel',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('labelcode', models.CharField(blank=True, max_length=100, null=True, verbose_name='labelcode')),
                ('tm', models.DateTimeField(auto_now_add=True, null=True, verbose_name='预约时间')),
                ('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.company', verbose_name='预约终端店')),
                ('consumer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='sales.consumeraccount', verbose_name='预约用户')),
            ],
            options={
                'verbose_name': '康年皇冠活动标签预约表',
                'verbose_name_plural': '康年皇冠活动标签预约表',
            },
        ),
        migrations.CreateModel(
            name='KangNian_ActiveLabel',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('labelcode', models.CharField(blank=True, max_length=100, null=True, verbose_name='labelcode')),
                ('is_active', models.BooleanField(default=False, verbose_name='是否已激活')),
                ('tm', models.DateTimeField(auto_now_add=True, null=True, verbose_name='激活时间')),
                ('enabled', models.BooleanField(default=True, verbose_name='是否启用')),
                ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='激活用户')),
            ],
            options={
                'verbose_name': '康年皇冠活动标签激活表',
                'verbose_name_plural': '康年皇冠活动标签激活表',
            },
        ),
    ]
