feat: make billing better (#203)
This commit is contained in:
@@ -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;
|
@@ -138,6 +138,7 @@ model Subscription {
|
||||
teamId Int
|
||||
status String
|
||||
priceId String
|
||||
priceIds String[]
|
||||
currentPeriodEnd DateTime?
|
||||
currentPeriodStart DateTime?
|
||||
cancelAtPeriodEnd DateTime?
|
||||
|
Reference in New Issue
Block a user