0003_goodssummarymodel.py 1.3 KB

123456789101112131415161718192021222324252627282930
  1. # Generated by Django 4.1.2 on 2025-07-25 18:15
  2. from decimal import Decimal
  3. from django.db import migrations, models
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ('reportcenter', '0002_alter_flowmodel_goods_in_alter_flowmodel_goods_out'),
  7. ]
  8. operations = [
  9. migrations.CreateModel(
  10. name='GoodsSummaryModel',
  11. fields=[
  12. ('goods_code', models.CharField(max_length=50, primary_key=True, serialize=False, verbose_name='货品编码')),
  13. ('goods_desc', models.CharField(max_length=100, verbose_name='货品描述')),
  14. ('total_in', models.DecimalField(decimal_places=3, default=Decimal('0'), max_digits=15, verbose_name='总入库量')),
  15. ('total_out', models.DecimalField(decimal_places=3, default=Decimal('0'), max_digits=15, verbose_name='总出库量')),
  16. ('net_change', models.DecimalField(decimal_places=3, default=Decimal('0'), max_digits=15, verbose_name='净变化量')),
  17. ('last_updated', models.DateTimeField(auto_now=True, verbose_name='最后更新时间')),
  18. ],
  19. options={
  20. 'verbose_name': '货品汇总',
  21. 'verbose_name_plural': '货品汇总',
  22. 'db_table': 'goods_summary',
  23. },
  24. ),
  25. ]