DDeliveryRule.Class.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace JinDouYun\Dao\System;
  3. use JinDouYun\Dao\BaseDao;
  4. /**
  5. * Description:
  6. * Class DDeliveryRule
  7. * @package JinDouYun\Dao\System
  8. */
  9. class DDeliveryRule extends BaseDao
  10. {
  11. public function __construct($serviceDB = 'default')
  12. {
  13. $this->_table = 'delivery_rule';
  14. $this->_primary = 'id';
  15. $this->_fields = [
  16. "id",//int(10) NOT NULL AUTO_INCREMENT,
  17. "setData",//json DEFAULT NULL COMMENT '配置详情',
  18. "deleteStatus",//tinyint(3) NOT NULL DEFAULT '5' COMMENT '是否删除 默认5 正常 4删除',
  19. "extends",//json DEFAULT NULL COMMENT '拓展字段',
  20. "createTime",//int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
  21. "updateTime",//int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
  22. "enableStatus",
  23. "isDefault",
  24. "shopId"
  25. ];
  26. $this->_readonly = ['id'];
  27. $this->_create_autofill = [
  28. 'createTime' => time()
  29. ];
  30. $this->_update_autofill = [
  31. 'updateTime' => time()
  32. ];
  33. parent::__construct($serviceDB);
  34. }
  35. }