13 lines
617 B
Go
13 lines
617 B
Go
|
|
package model
|
||
|
|
|
||
|
|
import "time"
|
||
|
|
|
||
|
|
// ConversationVersionLog 会话版本日志(用于增量同步)
|
||
|
|
type ConversationVersionLog struct {
|
||
|
|
ID uint `gorm:"primaryKey;autoIncrement"`
|
||
|
|
UserID string `gorm:"not null;size:36;index:idx_vlog_user_version,priority:1"`
|
||
|
|
ConversationID string `gorm:"not null;size:20;index:idx_vlog_conv"`
|
||
|
|
Version int64 `gorm:"not null;index:idx_vlog_user_version,priority:2"`
|
||
|
|
ChangeType string `gorm:"not null;type:varchar(20)"` // new_msg, read, pin, unpin, mute, unmute, hide, group_update
|
||
|
|
CreatedAt time.Time `gorm:"autoCreateTime"`
|
||
|
|
}
|