Download migrations/006_create_integration_catalog.sql from techprotrade/annator-command-center: direct link, hf CLI and curl.
- Browser
- Download file 852 Bytes
-
https://huggingface.co/spaces/techprotrade/annator-command-center/resolve/main/migrations/006_create_integration_catalog.sql
- Command line
-
hf download hf://spaces/techprotrade/annator-command-center/migrations/006_create_integration_catalog.sql
-
curl -L -o 006_create_integration_catalog.sql https://huggingface.co/spaces/techprotrade/annator-command-center/resolve/main/migrations/006_create_integration_catalog.sql
852 Bytes
| -- Create integration_catalog table | |
| CREATE TABLE IF NOT EXISTS integration_catalog ( | |
| id TEXT PRIMARY KEY, | |
| name TEXT NOT NULL, | |
| description TEXT, | |
| category TEXT NOT NULL, | |
| icon TEXT, | |
| color TEXT DEFAULT '#6366F1', | |
| auth_type TEXT DEFAULT 'none', | |
| native_id TEXT, -- Link to native implementation (e.g., 'slack') | |
| triggers TEXT DEFAULT '[]', -- JSON field as text | |
| actions TEXT DEFAULT '[]', -- JSON field as text | |
| popular BOOLEAN DEFAULT FALSE, | |
| created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP, | |
| updated_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP | |
| ); | |
| -- Index for faster filtering | |
| CREATE INDEX IF NOT EXISTS idx_integration_catalog_category ON integration_catalog(category); | |
| CREATE INDEX IF NOT EXISTS idx_integration_catalog_popular ON integration_catalog(popular); | |