cm_message.go 944 B

12345678910111213141516171819
  1. package models
  2. import (
  3. "time"
  4. )
  5. type CmMessage struct {
  6. Id int `xorm:"not null pk autoincr comment('自增ID') INT(11)"`
  7. Title string `xorm:"comment('消息标题') VARCHAR(255)"`
  8. Content string `xorm:"comment('消息内容') TEXT"`
  9. CreateTime string `xorm:"comment('创建时间') VARCHAR(32)"`
  10. CreateUid int `xorm:"comment('创建者id') INT(11)"`
  11. ProjectId int `xorm:"comment('项目id,针对项目通知') INT(11)"`
  12. Creator int `xorm:"comment('创建者') INT(11)"`
  13. Type int `xorm:"comment('消息类型 1为项目 2为系统') TINYINT(1)"`
  14. Status int `xorm:"comment('消息状态,1:已发布,2:未发布') TINYINT(1)"`
  15. ReleaseTime int `xorm:"comment('发布时间') INT(11)"`
  16. Istop time.Time `xorm:"not null default 'CURRENT_TIMESTAMP' comment('是否置顶,0为非置顶,时间戳为置顶时间') TIMESTAMP"`
  17. }