message.sql 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. drop table if exists `notice`.`message`;
  2. create table `notice`.`message`(
  3. `id` int(11) not null auto_increment,
  4. `msg_type_id` int(11) not null default 0,
  5. `msg_content` text not null ,
  6. `target` varchar(64) not null default '',
  7. `push_count` int(11) not null default 0,
  8. `push_limit` int(11) not null default 0,
  9. `status` int(11) not null default 0,
  10. `create_at` DATETIME not null default CURRENT_TIMESTAMP,
  11. `update_at` DATETIME not null ON UPDATE CURRENT_TIMESTAMP ,
  12. primary key(`id`)
  13. )ENGINE=InnoDB DEFAULT CHARSET=utf8 comment '消息';
  14. -- create table `user`(
  15. -- `id` int(11) not null auto_increment,
  16. -- openid varchar(64) not null default '',
  17. -- phone varchar(64) not null default '',
  18. -- primary key (`id`)
  19. -- )ENGINE=InnoDB DEFAULT CHARSET=utf8 comment='用户表';
  20. drop table if exists `msg_push`.`message`;
  21. create table `msg_push`.`message` (
  22. `id` int(11) not null auto_increment,
  23. `sys_name` varchar(64) not null default '',
  24. `remind_type` varchar(64) not null default '',
  25. `target` varchar(64) not null default '',
  26. `content` text not null ,
  27. `status` int(11) not null default 0,
  28. `create_at` DATETIME not null default CURRENT_TIMESTAMP,
  29. `update_at` DATETIME not null ON UPDATE CURRENT_TIMESTAMP ,
  30. primary key(`id`)
  31. )