core: initial Go module skeleton (config, db pool, tenant registry migration)

This commit is contained in:
sysops
2026-08-27 17:27:59 +02:00
parent 72261cc69f
commit c895a67c4b
7 changed files with 136 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
-- Control-plane registry: tenant list + connection info (Modell C).
-- Core TEN-01 (siehe core-kanban).
CREATE TABLE tenants (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
slug TEXT NOT NULL UNIQUE,
name TEXT NOT NULL,
db_dsn TEXT NOT NULL,
status TEXT NOT NULL DEFAULT 'active',
created_at TIMESTAMPTZ NOT NULL DEFAULT now()
);