Merge branch 'feature/ops-02-zentrale-statusseite' into feature/qa-09-barrierefreiheits-audit
# Conflicts: # DEVLOG.md # scripts/reset-test-env.sh
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
DROP TABLE status_history;
|
||||
DROP TABLE status_targets;
|
||||
@@ -0,0 +1,15 @@
|
||||
-- Zentrale Statusseite (OPS-02, siehe core-kanban/tickets/OPS-02.md) —
|
||||
-- ueberwachte Module und der Verlauf ihrer Statusaenderungen.
|
||||
CREATE TABLE status_targets (
|
||||
name TEXT PRIMARY KEY,
|
||||
health_url TEXT NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE status_history (
|
||||
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
name TEXT NOT NULL,
|
||||
status TEXT NOT NULL,
|
||||
changed_at TIMESTAMPTZ NOT NULL DEFAULT now()
|
||||
);
|
||||
|
||||
CREATE INDEX status_history_name_idx ON status_history (name, changed_at DESC);
|
||||
Reference in New Issue
Block a user