feat: make billing better (#203)
This commit is contained in:
1 parent
8ce5e4b2dd
commit
3f9094e95d
25 files changed
+956
-360
No files matched your search
@@ -0,0 +1,8 @@
|
||||
-- CreateEnum
|
||||
CREATE TYPE "SendingDisabledReason" AS ENUM ('FREE_LIMIT_REACHED', 'BILLING_ISSUE', 'SPAM');
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "Subscription" ADD COLUMN "priceIds" TEXT[];
|
||||
|
||||
-- Populate priceIds array with existing priceId values
|
||||
UPDATE "Subscription" SET "priceIds" = ARRAY["priceId"] WHERE "priceId" IS NOT NULL;
|
||||
Reference in new issue
Block a user