CheckItem.php 911 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace app\admin\model;
  3. class CheckItem extends Base
  4. {
  5. //设置字段信息
  6. protected $schema = [
  7. 'id' =>'bigint',//
  8. 'bnCode' =>'varchar',//bn编号
  9. 'spuCode' =>'varchar',//商品属性code
  10. 'good_name' =>'varchar',//商品名称
  11. 'origin_price' =>'decimal',//成本价
  12. 'origin_num' =>'int',//盘点前数量
  13. 'check_num' =>'int',//盘点后的数量
  14. 'is_profit' =>'tinyint',//0盘盈1盘亏
  15. 'diff_num' =>'int',//差额数量
  16. 'status' =>'int',//审核状态
  17. 'remark' =>'varchar',//备注
  18. 'is_del' =>'int',//是否删除
  19. 'check_time' =>'varchar',//盘点时间
  20. 'addtime' =>'datetime',//新建时间
  21. 'updatetime' =>'datetime',//
  22. 'check_code' =>'varchar',//盘点编号
  23. ];
  24. }