spark-server/internal/module/sync/model/device_sync_cursor.go
zhr ae9a71034d feat: implement Spark IM V3 modular monolith
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>
2026-09-17 19:52:11 +08:00

15 lines
617 B
Go

package model
import "time"
// DeviceSyncCursor maps table device_sync_cursors.
type DeviceSyncCursor struct {
UserID int64 `gorm:"column:user_id;primaryKey;comment:用户 id"`
DeviceID int64 `gorm:"column:device_id;primaryKey;comment:设备 id"`
MailboxSeq int64 `gorm:"column:mailbox_seq;comment:该设备已同步到的 mailbox_events.seq"`
DialogScore int64 `gorm:"column:dialog_score;comment:会话列表 Redis ZSET 游标"`
UpdatedAt time.Time `gorm:"column:updated_at;comment:游标更新时间"`
}
func (DeviceSyncCursor) TableName() string { return "device_sync_cursors" }