admin control features and admin dashboard
This commit is contained in:
1 parent
c630f13c57
commit
37910e410b
69 files changed
+4959
-400
No files matched your search
@@ -0,0 +1,26 @@
|
||||
-- Dynamic configuration tables: sites, target_groups, check_types.
|
||||
-- validators already exists (0001_init.sql) and needs no new columns.
|
||||
-- Bootstrap semantics (apply YAML only when the table is empty) live in
|
||||
-- internal/db/bootstrap.go, not in this migration.
|
||||
|
||||
CREATE TABLE sites (
|
||||
idx INTEGER PRIMARY KEY, -- 1, 2 or 3 -- fixed slot
|
||||
site_id TEXT NOT NULL UNIQUE,
|
||||
created_at TIMESTAMP NOT NULL,
|
||||
updated_at TIMESTAMP NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE target_groups (
|
||||
group_name TEXT PRIMARY KEY,
|
||||
targets TEXT NOT NULL, -- JSON array of strings
|
||||
created_at TIMESTAMP NOT NULL,
|
||||
updated_at TIMESTAMP NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE check_types (
|
||||
name TEXT PRIMARY KEY,
|
||||
enabled BOOLEAN NOT NULL DEFAULT 1,
|
||||
target_groups TEXT NOT NULL, -- JSON array of group names
|
||||
created_at TIMESTAMP NOT NULL,
|
||||
updated_at TIMESTAMP NOT NULL
|
||||
);
|
||||
Reference in new issue
Block a user