cal.pub0.org/packages/prisma/zod/selectedcalendar.ts

23 lines
689 B
TypeScript
Raw Normal View History

2022-02-17 18:26:53 +00:00
import * as z from "zod"
import * as imports from "../zod-utils"
import { CompleteUser, UserModel } from "./index"
export const _SelectedCalendarModel = z.object({
userId: z.number().int(),
integration: z.string(),
externalId: z.string(),
2022-02-17 18:26:53 +00:00
})
export interface CompleteSelectedCalendar extends z.infer<typeof _SelectedCalendarModel> {
2022-02-17 18:26:53 +00:00
user: CompleteUser
}
/**
* SelectedCalendarModel contains all relations on your model in addition to the scalars
*
* NOTE: Lazy required in case of potential circular dependencies within schema
*/
2022-02-17 18:26:53 +00:00
export const SelectedCalendarModel: z.ZodSchema<CompleteSelectedCalendar> = z.lazy(() => _SelectedCalendarModel.extend({
user: UserModel,
}))