DCashierCart.Class.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace JinDouYun\Dao\Cashier;
  3. use JinDouYun\Dao\BaseDao;
  4. /**
  5. * Description: 收银台购物车
  6. * Class DCashierCart
  7. * @package JinDouYun\Dao\Cashier
  8. */
  9. class DCashierCart extends BaseDao
  10. {
  11. public function __construct($serviceDB = 'default')
  12. {
  13. $this->_table = 'cashier_cart';
  14. $this->_primary = 'id';
  15. $this->_fields = [
  16. "id",//int(10) NOT NULL AUTO_INCREMENT,
  17. "goodsCode",//varchar(255) DEFAULT '' COMMENT '商品编号',
  18. "goodsId",//int(10) NOT NULL DEFAULT '0' COMMENT '商品Id',
  19. "buyNum",//int(10) NOT NULL COMMENT '购买数量',
  20. "cashierUid",//int(10) NOT NULL DEFAULT '0' COMMENT '收银员id',
  21. "shopId",//int(10) NOT NULL DEFAULT '0' COMMENT '店铺Id',
  22. "selection",//tinyint(3) NOT NULL DEFAULT '4' COMMENT '是否选中 默认4 未选中 5已选中',
  23. "source",//tinyint(3) DEFAULT NULL COMMENT '订单来源 默认1 ios 2android 3小程序 4后台创建',
  24. "extends",//json DEFAULT NULL COMMENT '拓展字段',
  25. "createTime",//int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
  26. "updateTime",//int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
  27. "skuId",//int(10) DEFAULT NULL COMMENT '计量单位id',
  28. "goodsBasicId",//int(10) DEFAULT NULL COMMENT 'goodsBasicId',
  29. "shopCode",//varchar(255) DEFAULT '' COMMENT '店铺编码',
  30. "warehouseId",//int(10) DEFAULT NULL COMMENT '仓库id',
  31. "activityId",//int(10) DEFAULT '0' COMMENT '活动id',
  32. ];
  33. $this->_readonly = ['id'];
  34. $this->_create_autofill = [
  35. 'createTime' => time()
  36. ];
  37. $this->_update_autofill = [
  38. 'updateTime' => time()
  39. ];
  40. parent::__construct($serviceDB);
  41. }
  42. }