DNoticeSetting.Class.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace JinDouYun\Dao\System;
  3. use JinDouYun\Dao\BaseDao;
  4. /**
  5. * @copyright Copyright (c) https://www.qianniaovip.com All rights reserved
  6. * Description: 语音设置
  7. * Class DNoticeSetting
  8. * @package JinDouYun\Dao\System
  9. */
  10. class DNoticeSetting extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'notice_setting';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. 'id',//int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  18. 'content',//json DEFAULT NULL COMMENT '配置内容',
  19. 'enterpriseId',
  20. 'extend',//json DEFAULT NULL COMMENT '扩展字段',
  21. 'createTime',//int(11) DEFAULT NULL COMMENT '创建时间',
  22. 'updateTime',//int(11) DEFAULT NULL COMMENT '修改时间',
  23. ];
  24. $this->_readonly = ['id'];
  25. $this->_create_autofill = [
  26. 'createTime' => time()
  27. ];
  28. $this->_update_autofill = [
  29. 'updateTime' => time()
  30. ];
  31. parent::__construct($serviceDB);
  32. }
  33. }