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

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


class Migration(migrations.Migration):

    dependencies = [
        ('erp', '0010_auto_20220414_1506'),
    ]

    operations = [
        migrations.CreateModel(
            name='SalesOrdeAccessories',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('company_id', models.IntegerField(verbose_name='企业ID')),
                ('itype_id', models.IntegerField(verbose_name='物料类别ID')),
                ('mat_id', models.IntegerField(blank=True, null=True, verbose_name='物料ID')),
                ('mat_name', models.CharField(max_length=50, verbose_name='物料名称')),
                ('unit_id', models.IntegerField(blank=True, null=True, verbose_name='计量单位ID')),
                ('unit_name', models.CharField(blank=True, max_length=20, null=True, verbose_name='单位名称')),
                ('qty', models.DecimalField(decimal_places=2, max_digits=12, verbose_name='数量')),
                ('remark', models.CharField(blank=True, max_length=50, null=True, verbose_name='备注说明')),
                ('salesorder', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='salesorer_accessories', to='erp.salesorder', verbose_name='销售订单')),
            ],
            options={
                'verbose_name': '销售订单辅料促销品',
                'verbose_name_plural': '销售订单辅料促销品',
            },
        ),
    ]
