DDeliverySelfRule.Class.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace JinDouYun\Dao\System;
  3. use JinDouYun\Dao\BaseDao;
  4. /**
  5. * Description:
  6. * Class DDeliverySelfRule
  7. * @package JinDouYun\Dao\System
  8. */
  9. class DDeliverySelfRule extends BaseDao
  10. {
  11. public function __construct($serviceDB = 'default')
  12. {
  13. $this->_table = 'delivery_self_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. "shopId"
  24. ];
  25. $this->_readonly = ['id'];
  26. $this->_create_autofill = [
  27. 'createTime' => time()
  28. ];
  29. $this->_update_autofill = [
  30. 'updateTime' => time()
  31. ];
  32. parent::__construct($serviceDB);
  33. }
  34. }