# Generated by Django 2.2.7 on 2020-06-20 06:34 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Django_mf_bg', fields=[ ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='修改时间')), ('bg_no', models.CharField(max_length=30, primary_key=True, serialize=False, verbose_name='单据号码')), ('no_dd', models.DateTimeField(verbose_name='单据日期')), ('bg_id', models.CharField(default='', max_length=10, verbose_name='单据类别')), ('zc_no', models.CharField(default='', max_length=30, verbose_name='制程代号')), ('mo_no', models.CharField(default='', max_length=100, verbose_name='制令单号')), ('sal_no', models.CharField(blank=True, default='', max_length=150, null=True, verbose_name='作业人员')), ('create_user', models.CharField(blank=True, max_length=50, null=True, verbose_name='创建人')), ('update_user', models.CharField(blank=True, max_length=50, null=True, verbose_name='修改人')), ], options={ 'verbose_name': '报工表头', 'verbose_name_plural': '报工表头', 'db_table': 'django_mf_bg', }, ), migrations.CreateModel( name='Django_tf_bg', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='修改时间')), ('no_dd', models.DateTimeField(verbose_name='单据日期')), ('itm', models.IntegerField(default='', verbose_name='行号')), ('bg_id', models.CharField(default='', max_length=10, verbose_name='单据类别')), ('mo_no', models.CharField(default='', max_length=40, verbose_name='制令单号')), ('zt_no', models.CharField(default='', max_length=40, verbose_name='通知单号')), ('prd_no', models.CharField(default='', max_length=40, verbose_name='品号')), ('prd_name', models.CharField(default='', max_length=200, verbose_name='品名')), ('cc', models.CharField(default='', max_length=40, verbose_name='尺寸')), ('zy', models.CharField(default='', max_length=40, verbose_name='字印')), ('qty', models.DecimalField(decimal_places=2, default=0, max_digits=19, verbose_name='数量')), ('zl', models.CharField(default='', max_length=40, verbose_name='重量')), ('ms', models.TextField(default='', verbose_name='描述')), ('rem', models.TextField(default='', verbose_name='备注')), ('dd', models.CharField(default='', max_length=40, verbose_name='电镀')), ('prd_rem', models.TextField(default='', verbose_name='货品备注')), ('bg_no', models.ForeignKey(max_length='30', on_delete=django.db.models.deletion.CASCADE, to='bg.Django_mf_bg', verbose_name='单据号码')), ], options={ 'verbose_name': '报工表身', 'verbose_name_plural': '报工表身', 'db_table': 'django_tf_bg', }, ), ]