// Models generated by mesh dev cli,@Author: David Yan(david.yan@qq.com).
package models

import (
	"git.apinb.com/bsm-sdk/core/database"
	"git.apinb.com/bsm-sdk/core/types"
)

/*
 * PassportNotify
 * Comment: 会员消息通知表
 * Version: 10
 * Created: 2022-04-12 10:37:50 , Updated:0001-01-01 00:00:00
 */
type PassportNotify struct {
	types.Std_IICUDS
	types.Std_Passport
	Type  int8   `gorm:"column:type;default:0;" json:"type"`                      // 类型
	Body  string `gorm:"column:body;type:text;default:'';" json:"body"`           // 正文
	Title string `gorm:"column:title;type:varchar(255);default:'';" json:"title"` // 标题
	From  string `gorm:"column:from;type:varchar(36);default:'';" json:"from"`    // 发信人
}

func init() {
	database.AppendMigrate(&PassportNotify{})
}

// TableName .
func (table *PassportNotify) TableName() string {
	return "passport_notify" //对应数据库表名
}
