DComBinPackage.Class.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. namespace JinDouYun\Dao\Market;
  3. use JinDouYun\Dao\BaseDao;
  4. /**
  5. * @copyright Copyright (c) https://www.qianniaovip.com All rights reserved
  6. * Description: 组合套餐
  7. * Class DComBinPackage
  8. * @package JinDouYun\Dao\Market
  9. */
  10. class DComBinPackage extends BaseDao
  11. {
  12. /**
  13. * DComBinPackage constructor.
  14. * @param string $serviceDB
  15. */
  16. public function __construct($serviceDB = 'default')
  17. {
  18. $this->_table = 'combin_package';
  19. $this->_primary = 'id';
  20. $this->_fields = [
  21. "id",//int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  22. "title",//varchar(30) DEFAULT '' COMMENT '活动名称',
  23. "isExpire",//tinyint(3) DEFAULT '4' COMMENT '是否具有时间限制 默认5 4不限时间 5限制时间',
  24. "startTime",//int(10) NOT NULL DEFAULT '0' COMMENT '活动开始时间',
  25. "endTime",//int(10) NOT NULL DEFAULT '0' COMMENT '活动结束时间',
  26. "shopId",//int(10) NOT NULL DEFAULT '0' COMMENT '商铺id',
  27. "shopName",//varchar(30) DEFAULT NULL COMMENT '商铺名称',
  28. "goodsData",//json DEFAULT NULL COMMENT '活动商品数据',
  29. "price",//decimal(10,2) DEFAULT '0.00' COMMENT '套餐价格',
  30. "originPrice",//decimal(10,2) DEFAULT '0.00' COMMENT '套餐价格',
  31. "inventory",//decimal(10,2) DEFAULT NULL COMMENT '套餐设置库存',
  32. "saleNum",//decimal(10,2) DEFAULT NULL COMMENT '套餐已售数量',
  33. "isLimit",//tinyint(3) DEFAULT '4' COMMENT '是否开启每人限购 默认4 4不开启 5开启',
  34. "limitNum",//decimal(10,2) DEFAULT '0.00' COMMENT '每人限制购买数量',
  35. "expressType",//tinyint(3) DEFAULT '4' COMMENT '运费设置 默认4 4默认跟随商品 5包邮',
  36. "enableStatus",//tinyint(3) DEFAULT '4' COMMENT '是否启用 默认4 4禁用 5启用',
  37. "subOrderNum",//int(10) NOT NULL DEFAULT '0' COMMENT '订单数量',
  38. "subOrderPayMoney",//decimal(10,2) DEFAULT '0.00' COMMENT '订单实付金额',
  39. "createTime",//int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
  40. "updateTime",//int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
  41. "deleteStatus",
  42. "extends",//json DEFAULT NULL COMMENT '拓展字段',
  43. "materielNum",
  44. "goodsIds"
  45. ];
  46. $this->_readonly = ['id'];
  47. $this->_create_autofill = [
  48. 'createTime' => time()
  49. ];
  50. $this->_update_autofill = [
  51. 'updateTime' => time()
  52. ];
  53. parent::__construct($serviceDB);
  54. }
  55. }