Add HTTP /v1 MVC, TCP send path, groups with server-side member-avatar collage, object-storage upload, and friends/favorites around the architecture-v3 layout. Co-authored-by: Cursor <cursoragent@cursor.com>
11 lines
480 B
Go
11 lines
480 B
Go
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" }
|