Files
Mao NakamotoandCursor e4411bfd4f fix(db): Hetzner-only DATABASE_URL SSOT and user/admin E2E smoke
Retire cloud DB and AUTH_DB_* split in code, env examples, and docs so
local dev uses Docker Postgres and prod ops use the Hetzner tunnel pattern.
Add Playwright user-admin-flows spec with locale-aware auth helper.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 13:04:46 +02:00

22 lines
771 B
SQL

-- Migration: 035_org_numbers
-- Creates org_numbers table for shared organizational metrics (SSOT)
-- Both revampit and revamp-info share this table via the same Postgres DB
CREATE TABLE IF NOT EXISTS org_numbers (
key TEXT PRIMARY KEY,
value TEXT NOT NULL,
numeric_value NUMERIC,
label TEXT NOT NULL,
category TEXT NOT NULL CHECK (category IN ('impact', 'social', 'economic', 'operations')),
confidence TEXT NOT NULL CHECK (confidence IN ('high', 'medium', 'estimated', 'target')),
methodology TEXT,
calculation TEXT,
source_document TEXT,
external_link TEXT,
last_verified DATE NOT NULL,
updated_at TIMESTAMPTZ DEFAULT NOW()
);
-- Index for category-based queries
CREATE INDEX IF NOT EXISTS idx_org_numbers_category ON org_numbers(category);