effectlab-effect-assets / catalog_schema.sql
Visecall's picture
Publish rendered effect ZIPs, preview cards and download catalog
74238af verified
Raw History Blame Contribute Delete
1.91 kB
CREATE TABLE categories(id TEXT PRIMARY KEY,name TEXT NOT NULL,position INTEGER NOT NULL,effect_type INTEGER NOT NULL);
CREATE TABLE category_effect(category_id TEXT REFERENCES categories(id),effect_id TEXT REFERENCES effects(id),position INTEGER NOT NULL,PRIMARY KEY(category_id,effect_id));
CREATE TABLE effects(
id TEXT PRIMARY KEY,name TEXT NOT NULL,family TEXT NOT NULL,effect_type INTEGER NOT NULL,section TEXT NOT NULL,
default_duration_ms INTEGER NOT NULL,is_vip INTEGER NOT NULL,
package_path TEXT NOT NULL,package_url TEXT NOT NULL,package_sha256 TEXT NOT NULL,package_bytes INTEGER NOT NULL,
preview_path TEXT NOT NULL,preview_url TEXT NOT NULL,preview_alt_path TEXT,preview_alt_url TEXT,
preview_sha256 TEXT NOT NULL,preview_bytes INTEGER NOT NULL,preview_alt_sha256 TEXT,preview_alt_bytes INTEGER,
preview_mime TEXT NOT NULL,preview_format TEXT NOT NULL,preview_width INTEGER NOT NULL,preview_height INTEGER NOT NULL,
preview_duration_ms INTEGER NOT NULL,preview_frames INTEGER NOT NULL,preview_count INTEGER NOT NULL,
content_rect_json TEXT NOT NULL,requirements_json TEXT NOT NULL,runtime_requirements_json TEXT NOT NULL,model_names_json TEXT NOT NULL,clip_count INTEGER NOT NULL,
render_status TEXT NOT NULL,visual_review TEXT NOT NULL,warnings_json TEXT NOT NULL);
CREATE TABLE meta(key TEXT PRIMARY KEY,value TEXT NOT NULL);
CREATE TABLE preview_inputs(effect_id text primary key references effects(id),profile text not null,source_path text not null,source_sha256 text not null,input_pan_pixels integer not null,render_width integer not null,render_height integer not null);
CREATE TABLE unavailable_effects(id text primary key,name text not null,effect_type integer not null,family text not null,status text not null,error text not null,model_names_json text not null);
CREATE INDEX effects_family ON effects(family);
CREATE INDEX effects_section ON effects(section);