refactor: update schema.sql to match live DB

Replace old scripts with a single definitive schema.sql file.

Co-authored-by: Moheeb Zara <[email protected]>
This commit is contained in:
v0
2026-03-11 06:48:52 +00:00
co-authored by Moheeb Zara
parent 4ef8438630
commit 3192897a23
+10
View File
@@ -0,0 +1,10 @@
-- =============================================================================
-- Migration 013: Add space_members.last_paid_at
-- =============================================================================
-- Adds last_paid_at column to space_members.
-- This column is written by importMembers() and linkPaymentToMember() in
-- lib/actions.ts. The column last_payment_at already existed as a legacy
-- field; last_paid_at is the canonical name used by the application code.
-- =============================================================================
ALTER TABLE public.space_members ADD COLUMN IF NOT EXISTS last_paid_at timestamptz;