bindbox-game/internal/repository/mysql/model/app_message_log.gen.go
2025-10-16 13:28:24 +08:00

30 lines
1.6 KiB
Go

// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
)
const TableNameAppMessageLog = "app_message_log"
// AppMessageLog 消息日志表
type AppMessageLog struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"` // 主键ID
AppID string `gorm:"column:app_id;not null;comment:小程序ID" json:"app_id"` // 小程序ID
SenderID string `gorm:"column:sender_id;not null;comment:发送人ID" json:"sender_id"` // 发送人ID
SenderName string `gorm:"column:sender_name;not null;comment:发送人昵称" json:"sender_name"` // 发送人昵称
SendTime time.Time `gorm:"column:send_time;comment:发送时间" json:"send_time"` // 发送时间
ReceiverID string `gorm:"column:receiver_id;not null;comment:接收人ID" json:"receiver_id"` // 接收人ID
MsgType int32 `gorm:"column:msg_type;not null;comment:信息类型" json:"msg_type"` // 信息类型
Content string `gorm:"column:content;not null;comment:内容" json:"content"` // 内容
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"created_at"` // 创建时间
}
// TableName AppMessageLog's table name
func (*AppMessageLog) TableName() string {
return TableNameAppMessageLog
}