Download src/lib/db/migrations/011_webhooks.sql from automindy/fiemwl: direct link, hf CLI and curl.
- Browser
- Download file 437 Bytes
-
https://huggingface.co/spaces/automindy/fiemwl/resolve/main/src/lib/db/migrations/011_webhooks.sql
- Command line
-
hf download hf://spaces/automindy/fiemwl/src/lib/db/migrations/011_webhooks.sql
-
curl -L -o 011_webhooks.sql https://huggingface.co/spaces/automindy/fiemwl/resolve/main/src/lib/db/migrations/011_webhooks.sql
437 Bytes
| -- Migration 011: Webhooks for event subscriptions | |
| -- Part of API Endpoints dashboard (#563) | |
| CREATE TABLE IF NOT EXISTS webhooks ( | |
| id TEXT PRIMARY KEY, | |
| url TEXT NOT NULL, | |
| events TEXT NOT NULL DEFAULT '["*"]', | |
| secret TEXT, | |
| enabled INTEGER DEFAULT 1, | |
| description TEXT DEFAULT '', | |
| created_at TEXT DEFAULT (datetime('now')), | |
| last_triggered_at TEXT, | |
| last_status INTEGER, | |
| failure_count INTEGER DEFAULT 0 | |
| ); | |