mirror of
https://github.com/bitbaum/evig.git
synced 2026-12-04 15:37:55 +01:00
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>
22 lines
771 B
SQL
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);
|