MessageSkeleton
Defined in: src/lib/db/chat/types.ts:251
Lightweight, mostly-undecrypted projection of a message row. Contains just enough for consumers to build the conversation’s branch tree (parent/child structure) without paying the decrypt + embedding-parse cost of a full StoredMessage read.
content is populated (decrypted) ONLY for user-role rows whose parent is
also a user-role row — the regeneration artifacts that branch logic must
classify by content prefix. All other rows leave content undefined.
Properties
content?
optionalcontent:string
Defined in: src/lib/db/chat/types.ts:260
See interface docs — only set for user rows with a user-role parent.
conversationId
conversationId:
string
Defined in: src/lib/db/chat/types.ts:254
createdAt
createdAt:
Date
Defined in: src/lib/db/chat/types.ts:256
messageId
messageId:
number
Defined in: src/lib/db/chat/types.ts:253
model?
optionalmodel:string
Defined in: src/lib/db/chat/types.ts:258
parentMessageId?
optionalparentMessageId:string
Defined in: src/lib/db/chat/types.ts:257
role
role:
ChatRole
Defined in: src/lib/db/chat/types.ts:255
uniqueId
uniqueId:
string
Defined in: src/lib/db/chat/types.ts:252