# Generated by Django 3.0.4 on 2020-03-20 09:26

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


class Migration(migrations.Migration):

    dependencies = [
        ('question', '0007_auto_20200319_0846'),
        ('crm', '0006_auto_20200310_1531'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='consumer',
            name='is_paid',
        ),
        migrations.CreateModel(
            name='PaySubject',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('create_time', models.DateTimeField(default=django.utils.timezone.now, help_text='创建时间', verbose_name='创建时间')),
                ('update_time', models.DateTimeField(auto_now=True, help_text='修改时间', verbose_name='修改时间')),
                ('is_delete', models.BooleanField(default=False, help_text='删除标记', verbose_name='删除标记')),
                ('consumer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='crm.Consumer')),
                ('subject', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='question.Questioncat')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AddField(
            model_name='consumer',
            name='subjects',
            field=models.ManyToManyField(through='crm.PaySubject', to='question.Questioncat', verbose_name='付费学科'),
        ),
    ]
