D
DreamLake

DB Schema

Dataset & Collection

Dataset

Optional compiled/aggregated data container at project level.

FieldTypeDescription
idObjectIdPrimary key
nameStringDataset name
descriptionString?Description
tagsString[]Tags
projectIdStringParent project
metadataJson?Arbitrary metadata
deletedAtDateTime?Soft delete timestamp
createdAtDateTimeCreated timestamp
updatedAtDateTimeLast updated

Relations: collections: Collection[]

Unique: [projectId, name]

Indexes: projectId, deletedAt, tags

Collection

Named curated collection of references to data across the project. Members are typed references to video segments, track ranges, episodes, or files.

FieldTypeDescription
idObjectIdPrimary key
nameStringCollection name
descriptionString?Description
tagsString[]Tags
projectIdStringParent project
datasetIdString?Optional parent Dataset (null = standalone)
membersJsonArray of typed references (default: [])
metadataJson?Arbitrary metadata
deletedAtDateTime?Soft delete timestamp
createdAtDateTimeCreated timestamp
updatedAtDateTimeLast updated

Unique: [projectId, name]

Indexes: projectId, datasetId, deletedAt, tags

Example member:

[
  { "kind": "video_segment", "videoId": "...", "startMs": 0, "endMs": 5000 },
  { "kind": "track_range", "trackId": "...", "startIndex": 0, "endIndex": 100 }
]