feat: AMPP folder sync integration — pre-create folder hierarchy on upload, expose lookup endpoint for Script Task: schema_patch_ampp.sql
This commit is contained in:
parent
0fa9e960d4
commit
2b9499a606
1 changed files with 13 additions and 0 deletions
13
services/mam-api/src/db/schema_patch_ampp.sql
Normal file
13
services/mam-api/src/db/schema_patch_ampp.sql
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
-- Wild Dragon AMPP Integration Schema Patch
|
||||
-- Run after initial schema.sql
|
||||
|
||||
-- Key/value store for runtime configuration (AMPP credentials, etc.)
|
||||
CREATE TABLE IF NOT EXISTS settings (
|
||||
key TEXT PRIMARY KEY,
|
||||
value TEXT NOT NULL,
|
||||
updated_at TIMESTAMPTZ DEFAULT NOW()
|
||||
);
|
||||
|
||||
-- Track which AMPP folder each asset was synced to
|
||||
ALTER TABLE assets ADD COLUMN IF NOT EXISTS ampp_folder_id TEXT;
|
||||
ALTER TABLE assets ADD COLUMN IF NOT EXISTS ampp_synced_at TIMESTAMPTZ;
|
||||
Loading…
Reference in a new issue