0001_initial.py 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Generated by Django 2.2.7 on 2020-06-20 06:34
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. initial = True
  6. dependencies = [
  7. ]
  8. operations = [
  9. migrations.CreateModel(
  10. name='Django_mf_bg',
  11. fields=[
  12. ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
  13. ('update_time', models.DateTimeField(auto_now=True, verbose_name='修改时间')),
  14. ('bg_no', models.CharField(max_length=30, primary_key=True, serialize=False, verbose_name='单据号码')),
  15. ('no_dd', models.DateTimeField(verbose_name='单据日期')),
  16. ('bg_id', models.CharField(default='', max_length=10, verbose_name='单据类别')),
  17. ('zc_no', models.CharField(default='', max_length=30, verbose_name='制程代号')),
  18. ('mo_no', models.CharField(default='', max_length=100, verbose_name='制令单号')),
  19. ('sal_no', models.CharField(blank=True, default='', max_length=150, null=True, verbose_name='作业人员')),
  20. ('create_user', models.CharField(blank=True, max_length=50, null=True, verbose_name='创建人')),
  21. ('update_user', models.CharField(blank=True, max_length=50, null=True, verbose_name='修改人')),
  22. ],
  23. options={
  24. 'verbose_name': '报工表头',
  25. 'verbose_name_plural': '报工表头',
  26. 'db_table': 'django_mf_bg',
  27. },
  28. ),
  29. migrations.CreateModel(
  30. name='Django_tf_bg',
  31. fields=[
  32. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  33. ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
  34. ('update_time', models.DateTimeField(auto_now=True, verbose_name='修改时间')),
  35. ('no_dd', models.DateTimeField(verbose_name='单据日期')),
  36. ('itm', models.IntegerField(default='', verbose_name='行号')),
  37. ('bg_id', models.CharField(default='', max_length=10, verbose_name='单据类别')),
  38. ('mo_no', models.CharField(default='', max_length=40, verbose_name='制令单号')),
  39. ('zt_no', models.CharField(default='', max_length=40, verbose_name='通知单号')),
  40. ('prd_no', models.CharField(default='', max_length=40, verbose_name='品号')),
  41. ('prd_name', models.CharField(default='', max_length=200, verbose_name='品名')),
  42. ('cc', models.CharField(default='', max_length=40, verbose_name='尺寸')),
  43. ('zy', models.CharField(default='', max_length=40, verbose_name='字印')),
  44. ('qty', models.DecimalField(decimal_places=2, default=0, max_digits=19, verbose_name='数量')),
  45. ('zl', models.CharField(default='', max_length=40, verbose_name='重量')),
  46. ('ms', models.TextField(default='', verbose_name='描述')),
  47. ('rem', models.TextField(default='', verbose_name='备注')),
  48. ('dd', models.CharField(default='', max_length=40, verbose_name='电镀')),
  49. ('prd_rem', models.TextField(default='', verbose_name='货品备注')),
  50. ('bg_no', models.ForeignKey(max_length='30', on_delete=django.db.models.deletion.CASCADE, to='bg.Django_mf_bg', verbose_name='单据号码')),
  51. ],
  52. options={
  53. 'verbose_name': '报工表身',
  54. 'verbose_name_plural': '报工表身',
  55. 'db_table': 'django_tf_bg',
  56. },
  57. ),
  58. ]