fix: add ampp_folder_id/ampp_synced_at to assets; fix recorders.current_session_id type to TEXT
This commit is contained in:
parent
db73235149
commit
7ef8476bd3
1 changed files with 5 additions and 1 deletions
|
|
@ -72,6 +72,9 @@ CREATE TABLE assets (
|
|||
file_size BIGINT,
|
||||
tags TEXT[] DEFAULT '{}',
|
||||
notes TEXT,
|
||||
-- AMPP sync fields (used by upload.js to mirror folder structure)
|
||||
ampp_folder_id TEXT,
|
||||
ampp_synced_at TIMESTAMPTZ,
|
||||
created_at TIMESTAMPTZ DEFAULT NOW(),
|
||||
updated_at TIMESTAMPTZ DEFAULT NOW()
|
||||
);
|
||||
|
|
@ -138,6 +141,7 @@ CREATE INDEX idx_sessions_expire ON sessions(expire);
|
|||
CREATE TYPE source_type AS ENUM ('sdi', 'srt', 'rtmp');
|
||||
|
||||
-- Recorder instances table
|
||||
-- NOTE: current_session_id is TEXT (stores a human-readable clip name, not a UUID)
|
||||
CREATE TABLE recorders (
|
||||
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
|
||||
name TEXT NOT NULL,
|
||||
|
|
@ -151,7 +155,7 @@ CREATE TABLE recorders (
|
|||
project_id UUID REFERENCES projects,
|
||||
container_id TEXT,
|
||||
status TEXT DEFAULT 'stopped',
|
||||
current_session_id UUID,
|
||||
current_session_id TEXT,
|
||||
created_at TIMESTAMPTZ DEFAULT NOW(),
|
||||
updated_at TIMESTAMPTZ DEFAULT NOW()
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue