10
packages/schemas/features/collaborators.ts
Normal file
10
packages/schemas/features/collaborators.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import { CollaborationType, CollaboratorsOnTypebots } from '@typebot.io/prisma'
|
||||
import { z } from 'zod'
|
||||
|
||||
export const collaboratorSchema = z.object({
|
||||
type: z.nativeEnum(CollaborationType),
|
||||
userId: z.string(),
|
||||
typebotId: z.string(),
|
||||
createdAt: z.date(),
|
||||
updatedAt: z.date(),
|
||||
}) satisfies z.ZodType<CollaboratorsOnTypebots>
|
Reference in New Issue
Block a user