message_info.go 1.0 KB

123456789101112131415161718192021
  1. // Code generated by sql2gorm. DO NOT EDIT.
  2. package gorm_model
  3. import (
  4. "time"
  5. )
  6. type YounggeeMessageInfo struct {
  7. ID int `gorm:"column:id;primary_key;AUTO_INCREMENT"` // id,递增
  8. MessageID int `gorm:"column:message_id;NOT NULL"` // 消息内容id,对应info_message
  9. MessageType int `gorm:"column:message_type;NOT NULL"` // 消息类型,1-4分别表示成功、通知、错误、警告
  10. TalentID string `gorm:"column:talent_id;NOT NULL"` // 达人id
  11. ProjectName string `gorm:"column:project_name;NOT NULL"` // 项目名称
  12. CreatedAt time.Time `gorm:"column:created_at;NOT NULL"` // 消息创建时间
  13. IsReaded int `gorm:"column:is_readed;default:0;NOT NULL"` // 是否已读,1表示未读,2表示已读
  14. IsDeleted int `gorm:"column:is_deleted;default:0;NOT NULL"` // 是否删除,1表示未删,2表示已删
  15. }
  16. func (m *YounggeeMessageInfo) TableName() string {
  17. return "younggee_message_info"
  18. }