Add Stripe migration files

This commit is contained in:
Joe Au-Yeung 2022-10-21 16:20:00 -04:00
parent 4feb65d130
commit 523a2172af
3 changed files with 7 additions and 12 deletions

View File

@ -1,10 +0,0 @@
/*
Warnings:
- Added the required column `stripeCustomerId` to the `Team` table without a default value. This is not possible if the table is not empty.
- Added the required column `stripeSubscriptionId` to the `Team` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "Team" ADD COLUMN "stripeCustomerId" TEXT NOT NULL,
ADD COLUMN "stripeSubscriptionId" TEXT NOT NULL;

View File

@ -0,0 +1,4 @@
-- AlterTable
ALTER TABLE "Team" ADD COLUMN "stripeCustomerId" TEXT,
ADD COLUMN "stripeSubscriptionId" TEXT,
ADD COLUMN "subscriptionStatus" TEXT;

View File

@ -207,8 +207,9 @@ model Team {
hideBranding Boolean @default(false)
members Membership[]
eventTypes EventType[]
stripeCustomerId String
stripeSubscriptionId String
stripeCustomerId String?
stripeSubscriptionId String?
subscriptionStatus String?
}
enum MembershipRole {