# Generated by Django 2.1.7 on 2020-09-23 14:54

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0063_company_lng_lat'),
        ('promotion', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Material',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('code', models.CharField(blank=True, max_length=10, null=True, verbose_name='物料编码')),
                ('name', models.CharField(max_length=100, verbose_name='物料名称')),
                ('specification', models.CharField(blank=True, max_length=50, null=True, verbose_name='规格型号')),
                ('unit', models.CharField(blank=True, max_length=20, null=True, verbose_name='单位')),
                ('remark', models.CharField(blank=True, max_length=100, null=True, verbose_name='备注')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.Company', verbose_name='公司名称')),
            ],
            options={
                'verbose_name': '促销物料',
                'verbose_name_plural': '促销物料',
                'ordering': ['name'],
            },
        ),
        migrations.AlterUniqueTogether(
            name='material',
            unique_together={('company', 'name')},
        ),
    ]
