basalt / files-versions/src / FileVersion
Interface: FileVersion
Defined in: files-versions/src/store.ts:8
One revision of a document.
A version points at a file rather than containing it. @basaltkit/files already owns bytes, checksums, quotas and scanning; repeating any of that here would mean two records that can disagree about the same upload.
Properties
by?
> optional by?: string
Defined in: files-versions/src/store.ts:19
Who uploaded this revision.
createdAt
> createdAt: number
Defined in: files-versions/src/store.ts:20
fileId
> fileId: string
Defined in: files-versions/src/store.ts:13
The FileRecord holding this revision's bytes.
groupId
> groupId: string
Defined in: files-versions/src/store.ts:11
The document this revision belongs to — stable across every revision.
note?
> optional note?: string
Defined in: files-versions/src/store.ts:17
What changed, in the author's words.
tenantId
> tenantId: string
Defined in: files-versions/src/store.ts:9
version
> version: number
Defined in: files-versions/src/store.ts:15
1 for the first revision, then 2, 3 … Assigned by the store, never by the caller.