Record project continuation changes

This commit is contained in:
2026-05-12 21:02:29 +03:00
parent 3059d1d7a3
commit 8f69d53193
339 changed files with 101111 additions and 1769 deletions
@@ -0,0 +1,17 @@
CREATE TABLE IF NOT EXISTS fabric_service_channel_rebuild_alert_silences (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
cluster_id UUID NOT NULL REFERENCES clusters(id) ON DELETE CASCADE,
reporter_node_id UUID NOT NULL REFERENCES nodes(id) ON DELETE CASCADE,
route_id TEXT NOT NULL,
guard_status TEXT NOT NULL,
generation TEXT NOT NULL DEFAULT '',
reason TEXT NOT NULL DEFAULT '',
created_by_user_id UUID REFERENCES users(id) ON DELETE SET NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
expires_at TIMESTAMPTZ NOT NULL,
payload JSONB NOT NULL DEFAULT '{}'::jsonb,
UNIQUE (cluster_id, reporter_node_id, route_id, guard_status, generation)
);
CREATE INDEX IF NOT EXISTS idx_fsc_rebuild_alert_silences_active
ON fabric_service_channel_rebuild_alert_silences (cluster_id, expires_at DESC);