51f95e0fd6
Part of GRO-802 monorepo breakdown. Changes: - Extract apps/api/ as the main API service - Inline packages/db/ (database schema, migrations, utilities) - Inline packages/types/ (shared TypeScript types) - Add CI workflow for lint, typecheck, test, build, docker - Port Dockerfile with 4 stages: runner, migrate, seed, reset Co-Authored-By: Paperclip <noreply@paperclip.ing>
7 lines
465 B
SQL
7 lines
465 B
SQL
ALTER TABLE "clients" ADD COLUMN "stripe_customer_id" text;
|
|
ALTER TABLE "clients" ADD CONSTRAINT "idx_clients_stripe_customer_id" UNIQUE("stripe_customer_id");
|
|
ALTER TABLE "invoices" ADD COLUMN "stripe_payment_intent_id" text;
|
|
ALTER TABLE "invoices" ADD COLUMN "stripe_refund_id" text;
|
|
ALTER TABLE "invoices" ADD COLUMN "payment_failure_reason" text;
|
|
ALTER TABLE "invoices" ADD CONSTRAINT "idx_invoices_stripe_payment_intent_id" UNIQUE("stripe_payment_intent_id");
|