D
DreamLake

DB Schema

Video

Video asset index record. Binary data (HLS chunks, playlists) lives in BSS / S3.

FieldTypeDescription
idObjectIdPrimary key
projectIdStringParent project
episodeIdString?Optional episode link
nameString?Full path (e.g. "/camera/front/run01.mp4") — kept for compat
folderIdObjectId?→ Node.id (null = project root)
filenameString?Basename (e.g. "run01.mp4")
tagsString[]Tags
stFloatStart time: Unix timestamp (seconds)
dtFloatFrame interval: 1/fps
fpsFloatFrames per second
lengthIntTotal frames
offsetFloatTime shift in seconds (default: 0)
speedFloatPlayback speed multiplier (default: 1.0)
lensString"fisheye" | "pinhole" | "eqrec"
bssVideoIdString?BSS Video.id reference
metadataJson?Arbitrary metadata
deletedAtDateTime?Soft delete timestamp
createdAtDateTimeCreated timestamp
updatedAtDateTimeLast updated timestamp

Indexes: projectId, episodeId, folderId, lens, tags, deletedAt