Files
sim/packages/db/migrations/0118_tiresome_landau.sql
2025-12-08 14:07:03 -08:00

4 lines
410 B
SQL

CREATE TYPE "public"."billing_blocked_reason" AS ENUM('payment_failed', 'dispute');--> statement-breakpoint
ALTER TABLE "organization" ADD COLUMN "credit_balance" numeric DEFAULT '0' NOT NULL;--> statement-breakpoint
ALTER TABLE "user_stats" ADD COLUMN "credit_balance" numeric DEFAULT '0' NOT NULL;--> statement-breakpoint
ALTER TABLE "user_stats" ADD COLUMN "billing_blocked_reason" "billing_blocked_reason";