a2a-source-edit: write db/migrations/001_app_records.sql

This commit is contained in:
a2a-cloud
2026-07-18 06:52:00 +00:00
parent a1fe3bc562
commit 58c41434a4

View File

@@ -1,5 +1,11 @@
-- QuoteJudge Studio v0.1.0 managed Postgres baseline. CREATE TABLE IF NOT EXISTS app_records (
-- The product tables are created by 001_quote_judge.sql. This scaffold id BIGSERIAL PRIMARY KEY,
-- placeholder is intentionally inert so fresh installs converge without tenant_key TEXT NOT NULL,
-- retaining the generic app_records table from the full-stack template. record_kind TEXT NOT NULL,
SELECT 1; payload JSONB NOT NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
CREATE INDEX IF NOT EXISTS app_records_tenant_kind_idx
ON app_records (tenant_key, record_kind, created_at DESC);