package model // P2PConversation maps table p2p_conversations. type P2PConversation struct { UserSmall int64 `gorm:"column:user_small;primaryKey;comment:两人中较小的 user_id,保证同一对用户只有一行"` UserBig int64 `gorm:"column:user_big;primaryKey;comment:两人中较大的 user_id"` ConversationID int64 `gorm:"column:conversation_id;comment:对应 conversations.id"` } func (P2PConversation) TableName() string { return "p2p_conversations" }