# Generated by Django 3.1.4 on 2022-04-22 08:57

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0281_usersharethings'),
        ('mes', '0034_promotional'),
    ]

    operations = [
        migrations.CreateModel(
            name='Accessories',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('code', models.CharField(blank=True, db_index=True, max_length=50, null=True, verbose_name='编码')),
                ('name', models.CharField(max_length=100, verbose_name='名称')),
                ('unit_name', models.CharField(max_length=50, verbose_name='单位名称')),
                ('remark', models.CharField(blank=True, max_length=100, null=True, verbose_name='备注')),
                ('is_delete', models.BooleanField(blank=True, db_index=True, default=False, null=True, verbose_name='是否已删除')),
                ('tm', models.DateTimeField(blank=True, default=django.utils.timezone.now, null=True, verbose_name='时间')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='accessories_company', to='company.company', verbose_name='公司名称')),
                ('unit', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='accessories_unit', to='mes.unit', verbose_name='单位')),
            ],
            options={
                'verbose_name': '促销物料',
                'verbose_name_plural': '促销物料',
                'unique_together': {('company', 'code')},
            },
        ),
        migrations.DeleteModel(
            name='Promotional',
        ),
    ]
