Diffdown is a real-time collaborative Markdown editor/previewer built on the AT Protocol diffdown.com

model: add CommentRecord type for separate collection

+18
+18
internal/model/models.go
··· 60 60 CreatedAt string `json:"createdAt"` // RFC3339 61 61 } 62 62 63 + type CommentRecord struct { 64 + ThreadID string `json:"threadId"` // groups replies into threads 65 + DocRKey string `json:"docRKey"` // document rkey this comment belongs to 66 + DocOwnerDID string `json:"docOwnerDid"` // owner DID for quick filtering 67 + QuotedText string `json:"quotedText"` // text the comment was anchored to 68 + Text string `json:"text"` // comment content 69 + Author string `json:"author"` // DID 70 + AuthorHandle string `json:"authorHandle"` // resolved handle 71 + CreatedAt string `json:"createdAt"` // RFC3339 72 + ReplyTo string `json:"replyTo,omitempty"` // parent comment URI (null for root) 73 + Resolved bool `json:"resolved"` // thread resolution state 74 + } 75 + 63 76 type Invite struct { 64 77 ID string `json:"id"` 65 78 DocumentRKey string `json:"document_rkey"` ··· 77 90 } 78 91 return "" 79 92 } 93 + 94 + const ( 95 + CollectionDocument = "com.diffdown.document" 96 + CollectionComment = "app.diffdown.comment" 97 + )