init panel-service

This commit is contained in:
2023-09-27 16:13:48 +01:00
parent 55a533c461
commit e0bd8ef953
24 changed files with 2602 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
CREATE TABLE panels (
"id" serial PRIMARY KEY,
"name" varchar(32) NOT NULL,
"description" varchar(512) NOT NULL,
"created_at" timestamp NOT NULL DEFAULT timezone('utc', now()),
"updated_at" timestamp
);
CREATE UNIQUE INDEX panels_name_unique ON "panels" (LOWER("name"));
INSERT INTO panels ("name", "description") VALUES ('Panel', 'The de facto panel.') ON CONFLICT DO NOTHING;