# Generated by Django 3.1.4 on 2021-01-25 14:19

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


class Migration(migrations.Migration):

    dependencies = [
        ('sales', '0143_consumerwinner_tm_used'),
        ('company', '0130_auto_20210125_1057'),
    ]

    operations = [
        migrations.CreateModel(
            name='Leave_Message',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('subject', models.CharField(blank=True, max_length=200, null=True, verbose_name='主题')),
                ('name', models.CharField(blank=True, max_length=50, null=True, verbose_name='用户姓名')),
                ('tel', models.CharField(blank=True, max_length=20, null=True, verbose_name='用户电话')),
                ('address', models.CharField(blank=True, max_length=300, null=True, verbose_name='用户地址')),
                ('message', models.CharField(blank=True, max_length=1000, null=True, verbose_name='留言信息')),
                ('leave_date', models.DateField(auto_now_add=True, verbose_name='留言日期')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='提交信息')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.company', verbose_name='公司名称')),
                ('consumer', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='sales.consumeraccount', verbose_name='消费者账号')),
            ],
            options={
                'verbose_name': '客户留言',
                'verbose_name_plural': '客户留言',
            },
        ),
    ]
