Skip to content

Schema: video

Part of the generated database reference.

video_analytics

  • Domain: video Β· Feature gate: #[cfg(feature = "video")] Β· Migration: 6.5.26-video-analytics
  • Rust source: botschema/src/video.rs
Column SQL type Null Default Key References
id UUID no gen_random_uuid() PK β€”
project_id UUID no β€” β€” β€”
export_id UUID yes β€” β€” β€”
views BIGINT no 0 β€” β€”
unique_viewers bigint no β€” β€” β€”
total_watch_time_ms BIGINT no 0 β€” β€”
avg_watch_percent REAL no 0 β€” β€”
completions BIGINT no 0 β€” β€”
shares BIGINT no 0 β€” β€”
likes BIGINT no 0 β€” β€”
engagement_score REAL no 0 β€” β€”
viewer_retention_json JSONB yes β€” β€” β€”
geography_json JSONB yes β€” β€” β€”
device_json JSONB yes β€” β€” β€”
created_at TIMESTAMPTZ no NOW() β€” β€”
updated_at TIMESTAMPTZ no NOW() β€” β€”

Indexes: idx_video_analytics_project(project_id)

Drift: not found in migrations: unique_viewers

video_audio_tracks

  • Domain: video Β· Feature gate: #[cfg(feature = "video")] Β· Migration: 6.7.13-video-json-columns
  • Rust source: botschema/src/video.rs
Column SQL type Null Default Key References
id UUID no gen_random_uuid() PK β€”
project_id UUID no β€” FK video_projects.id
name TEXT no β€” β€” β€”
source_url TEXT no β€” β€” β€”
track_type TEXT no β€” β€” β€”
start_ms BIGINT no 0 β€” β€”
duration_ms BIGINT no 0 β€” β€”
volume REAL no 1.0 β€” β€”
fade_in_ms BIGINT no 0 β€” β€”
fade_out_ms BIGINT no 0 β€” β€”
created_at TIMESTAMPTZ no NOW() β€” β€”
waveform_json jsonb yes β€” β€” β€”
beat_markers_json jsonb yes β€” β€” β€”

Drift: not found in migrations: beat_markers_json, waveform_json

video_clips

  • Domain: video Β· Feature gate: #[cfg(feature = "video")] Β· Migration: 6.0.6-01-video
  • Rust source: botschema/src/video.rs
Column SQL type Null Default Key References
id UUID no gen_random_uuid() PK β€”
project_id UUID no β€” FK video_projects.id
name TEXT no β€” β€” β€”
source_url TEXT no β€” β€” β€”
start_ms BIGINT no 0 β€” β€”
duration_ms BIGINT no 0 β€” β€”
trim_in_ms BIGINT no 0 β€” β€”
trim_out_ms BIGINT no 0 β€” β€”
volume REAL no 1.0 β€” β€”
clip_order INT no 0 β€” β€”
transition_in TEXT yes β€” β€” β€”
transition_out TEXT yes β€” β€” β€”
created_at TIMESTAMPTZ no NOW() β€” β€”

video_command_history

  • Domain: video Β· Feature gate: #[cfg(feature = "video")] Β· Migration: 6.0.6-01-video
  • Rust source: botschema/src/video.rs
Column SQL type Null Default Key References
id UUID no gen_random_uuid() PK β€”
project_id UUID no β€” FK video_projects.id
user_id UUID yes β€” β€” β€”
command_type TEXT no β€” β€” β€”
command_json JSONB no β€” β€” β€”
executed_at TIMESTAMPTZ no NOW() β€” β€”

video_exports

  • Domain: video Β· Feature gate: #[cfg(feature = "video")] Β· Migration: 6.7.13-video-json-columns
  • Rust source: botschema/src/video.rs
Column SQL type Null Default Key References
id UUID no gen_random_uuid() PK β€”
project_id UUID no β€” FK video_projects.id
format TEXT no 'mp4' β€” β€”
quality TEXT no 'high' β€” β€”
status TEXT no 'pending' β€” β€”
progress INT no 0 β€” β€”
output_url TEXT yes β€” β€” β€”
error_message TEXT yes β€” β€” β€”
created_at TIMESTAMPTZ no NOW() β€” β€”
completed_at TIMESTAMPTZ yes β€” β€” β€”
gbdrive_path TEXT yes β€” β€” β€”

video_keyframes

  • Domain: video Β· Feature gate: #[cfg(feature = "video")] Β· Migration: 6.7.12-missing-feature-tables
  • Rust source: botschema/src/video.rs
Column SQL type Null Default Key References
id UUID no gen_random_uuid() PK β€”
layer_id UUID no β€” FK video_layers.id
property_name TEXT no β€” β€” β€”
time_ms BIGINT no β€” β€” β€”
value_json JSONB no β€” β€” β€”
easing TEXT no β€” β€” β€”
created_at TIMESTAMPTZ no NOW() β€” β€”

Indexes: idx_video_keyframes_layer(layer_id, time_ms)

video_layers

  • Domain: video Β· Feature gate: #[cfg(feature = "video")] Β· Migration: 6.7.13-video-json-columns
  • Rust source: botschema/src/video.rs
Column SQL type Null Default Key References
id UUID no gen_random_uuid() PK β€”
project_id UUID no β€” FK video_projects.id
name TEXT no β€” β€” β€”
layer_type TEXT no β€” β€” β€”
track_index INT no 0 β€” β€”
start_ms BIGINT no 0 β€” β€”
end_ms BIGINT no 5000 β€” β€”
x REAL no 0.5 β€” β€”
y REAL no 0.5 β€” β€”
width REAL no 0.5 β€” β€”
height REAL no 0.2 β€” β€”
rotation REAL no 0.0 β€” β€”
opacity REAL no 1.0 β€” β€”
properties_json JSONB no '{}' β€” β€”
animation_in TEXT yes β€” β€” β€”
animation_out TEXT yes β€” β€” β€”
locked BOOLEAN no FALSE β€” β€”
created_at TIMESTAMPTZ no NOW() β€” β€”
keyframes_json JSONB yes β€” β€” β€”

video_projects

  • Domain: video Β· Feature gate: #[cfg(feature = "video")] Β· Migration: 6.0.6-01-video
  • Rust source: botschema/src/video.rs
Column SQL type Null Default Key References
id UUID no gen_random_uuid() PK β€”
organization_id UUID yes β€” β€” β€”
created_by UUID yes β€” β€” β€”
name TEXT no β€” β€” β€”
description TEXT yes β€” β€” β€”
resolution_width INT no 1920 β€” β€”
resolution_height INT no 1080 β€” β€”
fps INT no 30 β€” β€”
total_duration_ms BIGINT no 0 β€” β€”
timeline_json JSONB no '{"clips": []}' β€” β€”
layers_json JSONB no '[]' β€” β€”
audio_tracks_json JSONB no '[]' β€” β€”
playhead_ms BIGINT no 0 β€” β€”
selection_json JSONB no '{"type": "None"}' β€” β€”
zoom_level REAL no 1.0 β€” β€”
thumbnail_url TEXT yes β€” β€” β€”
status TEXT no 'draft' β€” β€”
created_at TIMESTAMPTZ no NOW() β€” β€”
updated_at TIMESTAMPTZ no NOW() β€” β€”