migrate from github

This commit is contained in:
2026-07-15 22:42:31 +08:00
commit 3ad559f05e
262 changed files with 21637 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
package model
import "time"
type DocumentYjsSnapshot struct {
DocID int64 `gorm:"primaryKey;column:doc_id" json:"doc_id"`
YjsState []byte `gorm:"type:bytea;not null" json:"yjs_state"`
Version int64 `gorm:"not null" json:"version"`
UpdatedAt time.Time `json:"updated_at"`
}
func (DocumentYjsSnapshot) TableName() string {
return "documents_yjs_snapshot"
}