✨ (billing) Implement custom plan
This commit is contained in:
committed by
Baptiste Arnaud
parent
3f7dc79918
commit
385853ca3c
@ -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,
|
||||
})
|
||||
|
Reference in New Issue
Block a user