-- Schema: public_schema.sql -- Purpose: Complete schema definition for Momentry Core -- Source: Derived from production database + M4 verification -- Date: 2026-10-05 -- Status: Validated on M5Max128 (Worker startup success) -- This file is the single source of truth for new installations. -- For existing database upgrades, use migrations/ directory. BEGIN; -- Extensions CREATE EXTENSION IF NOT EXISTS vector; -- Schema version tracking CREATE TABLE IF NOT EXISTS schema_migrations ( version VARCHAR(255) PRIMARY KEY, applied_at TIMESTAMPTZ DEFAULT NOW() ); -- Tables will be added here based on M4's schema2.sql -- This is a template file COMMIT;