DSupplierOrderDetails.Class.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. namespace JinDouYun\Dao\Order;
  3. use JinDouYun\Dao\BaseDao;
  4. /**
  5. * @copyright Copyright (c) https://www.qianniaovip.com All rights reserved
  6. * Description: 供应商订单详情记录表
  7. * Class DSupplierOrderDetails
  8. * @package JinDouYun\Dao\Order
  9. */
  10. class DSupplierOrderDetails extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'supplier_order_details';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. "id",//int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  18. "no",//char(25) NOT NULL COMMENT '订单编号',
  19. "supplierId",//int(10) DEFAULT NULL COMMENT '供应商Id',
  20. "supplierName",//varchar(30) DEFAULT NULL COMMENT '供应商名称',
  21. "userCenterId",//int(10) DEFAULT NULL COMMENT '供应商Id',
  22. "customerId",//int(10) DEFAULT NULL COMMENT '客户id',
  23. "customerName",//varchar(30) DEFAULT NULL COMMENT '客户名称',
  24. "shopId",//int(10) NOT NULL DEFAULT '0' COMMENT '商铺id',
  25. "shopName",//varchar(30) DEFAULT NULL COMMENT '商铺名称',
  26. "materielId",//int(11) NOT NULL COMMENT '物料id',
  27. "materielCode",//varchar(255) NOT NULL DEFAULT '' COMMENT '物料code',
  28. "goodsId",//int(11) NOT NULL COMMENT '商品id',
  29. "goodsName",//varchar(50) NOT NULL DEFAULT '' COMMENT '商品名称',
  30. "goodsImages",//varchar(255) DEFAULT '' COMMENT '商品图',
  31. "skuId",//int(10) DEFAULT NULL COMMENT 'skuId',
  32. "unitName",//varchar(50) DEFAULT NULL COMMENT '单位名称',
  33. "conversion",//decimal(10,2) DEFAULT NULL COMMENT '换算比率',
  34. "specGroup",//json DEFAULT NULL COMMENT '规格明细',
  35. "categoryPath",//varchar(50) DEFAULT '' COMMENT '分类路径',
  36. "brandId",//int(5) DEFAULT '0' COMMENT '品牌id',
  37. "categoryName",//varchar(255) DEFAULT '' COMMENT '分类名称',
  38. "brandName",//varchar(255) DEFAULT '' COMMENT '品牌名称',
  39. "barCode",//char(50) DEFAULT '' COMMENT '商品条码',
  40. "storageCode",//varchar(50) DEFAULT '' COMMENT '商品货架编码',
  41. "buyNum",//double(10,4) NOT NULL DEFAULT '0.0000' COMMENT '购买数量',
  42. "costPrice",//decimal(10,2) DEFAULT NULL COMMENT '商品成本价格',
  43. "price",//decimal(12,2) DEFAULT '0.00' COMMENT '商品销售单价',
  44. "totalMoney",//decimal(12,2) DEFAULT '0.00' COMMENT '商品小计金额',
  45. "createTime",//int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
  46. "updateTime",//int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
  47. "extends",//json DEFAULT NULL COMMENT '拓展字段',
  48. "reservoir",//库位信息
  49. ];
  50. $this->_readonly = ['id'];
  51. $this->_create_autofill = [
  52. 'createTime' => time()
  53. ];
  54. $this->_update_autofill = [
  55. 'updateTime' => time()
  56. ];
  57. parent::__construct($serviceDB);
  58. }
  59. }