DCustomerSource.Class.php 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace JinDouYun\Dao\System;
  3. use JinDouYun\Dao\BaseDao;
  4. class DCustomerSource extends BaseDao
  5. {
  6. public function __construct($serviceDB = 'default')
  7. {
  8. $this->_table = 'customer_source';
  9. $this->_primary = 'id';
  10. $this->_fields = [
  11. "id", //int(11) NOT NULL AUTO_INCREMENT,
  12. "name", //varchar(255) DEFAULT NULL COMMENT '名称',
  13. "type", //tinyint(3) DEFAULT NULL COMMENT '类型 0:用户添加 1:全局配置',
  14. 'modelType',//tinyint(3) DEFAULT '0' COMMENT '业务模式',
  15. "isEvidence", //tinyint(3) DEFAULT '4' COMMENT '是否上传营业执照',
  16. "createTime", //varchar(50) DEFAULT NULL COMMENT '创建时间',
  17. "updateTime", //varchar(50) DEFAULT NULL COMMENT '修改时间',
  18. ];
  19. $this->_readonly = ['id'];
  20. $this->_create_autofill = [
  21. 'createTime' => time()
  22. ];
  23. $this->_update_autofill = [
  24. 'updateTime' => time()
  25. ];
  26. parent::__construct($serviceDB);
  27. }
  28. }