DCustomerTagLib.Class.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace JinDouYun\Dao\Customer;
  3. use JinDouYun\Dao\BaseDao;
  4. class DCustomerTagLib extends BaseDao
  5. {
  6. public function __construct($serviceDB = 'default')
  7. {
  8. $this->_table = 'customer_taglib';
  9. $this->_primary = 'id';
  10. $this->_fields = [
  11. 'id', //int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
  12. 'enterpriseId', //int(10) NOT NULL COMMENT '企业id',
  13. 'name', //char(255) NOT NULL DEFAULT '' COMMENT '标签名/标签组名',
  14. 'pid', //int(10) NOT NULL DEFAULT '0' COMMENT '归属组id',
  15. 'colour', //tinyint(125) NOT NULL DEFAULT '0' COMMENT '颜色标识',
  16. 'mustValue', //tinyint(125) NOT NULL DEFAULT '4' COMMENT '是否必填',
  17. 'createTime', //int(10) DEFAULT NULL COMMENT '创建时间',
  18. 'updateTime', //int(10) DEFAULT NULL COMMENT '修改时间',
  19. 'extend', //json DEFAULT NULL COMMENT '扩展字段',
  20. 'deleteStatus'
  21. ];
  22. $this->_readonly = ['id'];
  23. $this->_create_autofill = [
  24. 'createTime' => time()
  25. ];
  26. $this->_update_autofill = [
  27. 'updateTime' => time()
  28. ];
  29. parent::__construct($serviceDB);
  30. }
  31. }