# Generated by Django 3.1.4 on 2022-08-26 15:22

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0300_user_roles'),
        ('inventory', '0172_stockcount'),
    ]

    operations = [
        migrations.CreateModel(
            name='Nuit',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('package_id', models.SmallIntegerField(blank=True, null=True, verbose_name='标签类型')),
                ('name', models.CharField(max_length=30, verbose_name='单位名称')),
                ('remark', models.CharField(blank=True, max_length=100, null=True, verbose_name='备注')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='unit_company', to='company.company', verbose_name='企业名称')),
            ],
            options={
                'verbose_name': '产品包装单位',
                'verbose_name_plural': '产品包装单位',
                'unique_together': {('company', 'name')},
            },
        ),
    ]
