DCashierGuide.Class.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace JinDouYun\Dao\Cashier;
  3. use JinDouYun\Dao\BaseDao;
  4. /**
  5. * Description:
  6. * Class DCashierGuide
  7. * @package JinDouYun\Dao\Cashier
  8. */
  9. class DCashierGuide extends BaseDao
  10. {
  11. public function __construct($serviceDB = 'default')
  12. {
  13. $this->_table = 'cashier_guide';
  14. $this->_primary = 'id';
  15. $this->_fields = [
  16. "id",//int(10) NOT NULL AUTO_INCREMENT COMMENT 'id',
  17. "name",//varchar(255) DEFAULT '' COMMENT '导购员姓名',
  18. "mobile",//char(11) DEFAULT '' COMMENT '手机号',
  19. "enableStatus",//tinyint(4) DEFAULT '5' COMMENT '启用状态(5启用 4禁用)',
  20. "deleteStatus",//tinyint(4) DEFAULT '5' COMMENT '删除状态(5未删除 4已删除)',
  21. "isSetRule",//tinyint(4) DEFAULT '5' COMMENT '规则状态(5启用 4不启用)',
  22. "rule",//json DEFAULT NULL COMMENT '自定义规则',
  23. "createTime",//int(10) DEFAULT '0' COMMENT '创建时间',
  24. "updateTime",//int(10) DEFAULT '0' COMMENT '修改时间',
  25. "extend",//json DEFAULT NULL COMMENT '扩展字段',
  26. ];
  27. $this->_readonly = ['id'];
  28. $this->_create_autofill = [
  29. 'createTime' => time()
  30. ];
  31. $this->_update_autofill = [
  32. 'updateTime' => time()
  33. ];
  34. parent::__construct($serviceDB);
  35. }
  36. }