DB Schema
Episode
Training episode or experiment run. Belongs to a Space, optionally organized in a folder.
| Field | Type | Description |
|---|---|---|
id | ObjectId | Primary key |
name | String | Episode name |
description | String? | Description |
tags | String[] | Tags |
projectId | String | Parent project |
folderId | ObjectId? | → Node.id (null = project root level) |
status | String | "running" | "completed" | "failed" | "archived" (default: "running") |
writeProtected | Boolean | Once true, episode is fully immutable (default: false) |
metadata | Json? | Arbitrary metadata |
deletedAt | DateTime? | Soft delete timestamp |
createdAt | DateTime | Created timestamp |
updatedAt | DateTime | Last updated timestamp |
Relations: logEntries, logChunks, logMetadata, tracks, textTracks, labelTracks, audio, parameters
Unique: [projectId, name]
Indexes: projectId, folderId, deletedAt, tags, status, writeProtected