2
0

(billing) Implement custom plan

This commit is contained in:
Baptiste Arnaud
2022-10-27 11:32:21 +02:00
committed by Baptiste Arnaud
parent 3f7dc79918
commit 385853ca3c
23 changed files with 395 additions and 68 deletions

View File

@ -1,4 +1,10 @@
import { CollaborationType, DashboardFolder, PrismaClient, Workspace } from 'db'
import {
CollaborationType,
DashboardFolder,
Prisma,
PrismaClient,
Workspace,
} from 'db'
import Stripe from 'stripe'
import { proWorkspaceId } from 'utils/playwright/databaseSetup'
@ -74,3 +80,10 @@ export const createFolder = (workspaceId: string, name: string) =>
name,
},
})
export const createClaimableCustomPlan = async (
data: Prisma.ClaimableCustomPlanUncheckedCreateInput
) =>
prisma.claimableCustomPlan.create({
data,
})