DSystemPushMessageSetting.Class.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * 系统推送消息
  4. * Created by PhpStorm.
  5. * User: phperstar
  6. * Date: 2021/05/07
  7. * Time: 15:09
  8. */
  9. namespace JinDouYun\Dao\System;
  10. use JinDouYun\Dao\BaseDao;
  11. class DSystemPushMessageSetting extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'system_push_message_setting';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. 'id', //int(10) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  19. 'messageId', //int(10) NOT NULL COMMENT '推送消息模板id',
  20. 'enterpriseId', //int(10) NOT NULL COMMENT '企业id',
  21. 'enabledStatus', //tinyint(3) NOT NULL DEFAULT '5' COMMENT '启用状态 5启用',
  22. 'weixinTemplateId', //varchar(255) NOT NULL COMMENT '微信订阅消息模板id',
  23. 'weixinEnabledStatus', //tinyint(3) NOT NULL DEFAULT '5' COMMENT '微信订阅消息推送状态 5推送 4不推送',
  24. 'smsEnabledStatus', //tinyint(3) NOT NULL DEFAULT '5' COMMENT '短信推送状态 5推送 4不推送',
  25. 'createTime', //int(10) DEFAULT NULL COMMENT '添加时间',
  26. 'updateTime', //int(10) DEFAULT NULL COMMENT '修改时间',
  27. 'extend', //json DEFAULT NULL COMMENT '扩展字段',
  28. ];
  29. $this->_readonly = ['id'];
  30. $this->_create_autofill = [
  31. 'createTime' => time()
  32. ];
  33. $this->_update_autofill = [
  34. 'updateTime' => time()
  35. ];
  36. parent::__construct($serviceDB);
  37. }
  38. }