What problem does it solve?
This skill provides SQLite-based patterns to implement versioned data management for video assets. It helps teams maintain multiple versions of clips and videos while surfacing only the latest in standard views, preventing stale data across the gallery and exports.
Core Features & Use Cases
- Version-based identity across raw_clips, working_clips, and final_videos to support multi-version workflows.
- Latest-queries pattern to return one row per logical item, filtering by project while keeping historical records for audits.
- DDL and schema definitions for raw_clips, working_clips, working_videos, and final_videos, with version columns and FK constraints.
- Guidance on implementing foreign keys, cascade deletes, and using helper subqueries in app code.
- Use Case: A project with multiple edits can still display only the most recent frame for a clip in the gallery while maintaining versions.
Quick Start
Review the provided table definitions and the latest query pattern. Apply the version identity rules to your schema, then run the sample queries to fetch the latest versions for a given project.