spark-server/internal/module/message/model/message_delete.go
2026-09-18 14:50:41 +08:00

14 lines
591 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package model
import "time"
// MessageDelete maps table message_deletes. PK is (user_id, msg_id).
type MessageDelete struct {
UserID int64 `gorm:"column:user_id;primaryKey;comment:删除者 user_id,仅该用户历史不可见"`
MsgID int64 `gorm:"column:msg_id;primaryKey;comment:被删除的 Snowflake MsgId"`
ConversationID int64 `gorm:"column:conversation_id;comment:所属会话,便于按会话过滤"`
CreatedAt time.Time `gorm:"column:created_at;comment:删除时间"`
}
func (MessageDelete) TableName() string { return "message_deletes" }