message_personal.go 739 字节
package models

import "time"

// MessagePersonal 记录个人的提示消息
type MessagePersonal struct {
	tableName    struct{}  `comment:"记录个人的提示消息" pg:"message_personal"`
	Id           int       `pg:"id,pk"`          //
	Types        string    `pg:"types"`          //消息类型
	TargetUserId int       `pg:"target_user_id"` //消息指向的用户
	ReadFlag     string    `pg:"read_flag"`      //1:已读、2:未读
	Title        string    `pg:"title"`          //消息的标题
	Content      string    `pg:"content"`        //消息的内容
	CreatedAt    time.Time `pg:"created_at"`
	UpdatedAt    time.Time `pg:"updated_at"`
	Payload      string    `pg:"payload,type:jsonb"` //消息的额外承载的数据
}