DSystemPushMessage.Class.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 DSystemPushMessage extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'system_push_message';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. 'id', //int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
  19. 'name', //char(50) NOT NULL COMMENT '通知名称',
  20. 'type', //tinyint(3) NOT NULL COMMENT '通知类型 1交易物流 2营销关怀',
  21. 'tid',
  22. 'kidList',
  23. 'weixinTemplate', //text NOT NULL COMMENT '订阅消息模板内容',
  24. 'smsTemplate', //text NOT NULL COMMENT '短信模板内容',
  25. 'deleteStatus',
  26. 'createTime', //int(10) DEFAULT NULL COMMENT '创建时间',
  27. 'updateTime', //int(10) DEFAULT NULL COMMENT '修改时间',
  28. 'extend', //json DEFAULT NULL COMMENT '扩展字段',
  29. ];
  30. $this->_readonly = ['id'];
  31. $this->_create_autofill = [
  32. 'createTime' => time()
  33. ];
  34. $this->_update_autofill = [
  35. 'updateTime' => time()
  36. ];
  37. parent::__construct($serviceDB);
  38. }
  39. }