DCustomerSourceDeploy.Class.php 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace JinDouYun\Dao\System;
  3. use JinDouYun\Dao\BaseDao;
  4. class DCustomerSourceDeploy extends BaseDao
  5. {
  6. public function __construct($serviceDB = 'default')
  7. {
  8. $this->_table = 'customer_source_deploy';
  9. $this->_primary = 'id';
  10. $this->_fields = [
  11. "id", //int(11) NOT NULL AUTO_INCREMENT,
  12. "sId", //int(10) DEFAULT NULL COMMENT '名称表id',
  13. "deleteStatus", //int(1) DEFAULT '5' COMMENT '删除(5删除 4正常)',
  14. "defaultStatus", //int(1) DEFAULT '5' COMMENT '默认状态(5默认)',
  15. "enableStatus", //int(1) DEFAULT '5' COMMENT '启用状态(5启用)',
  16. "createTime", //varchar(50) DEFAULT NULL COMMENT '创建时间',
  17. "updateTime", //varchar(50) DEFAULT NULL COMMENT '修改时间',
  18. "enterpriseId", //int(11) DEFAULT NULL COMMENT '企业id',
  19. ];
  20. $this->_readonly = ['id'];
  21. $this->_create_autofill = [
  22. 'createTime' => time()
  23. ];
  24. $this->_update_autofill = [
  25. 'updateTime' => time()
  26. ];
  27. parent::__construct($serviceDB);
  28. }
  29. }