Openstatus www.openstatus.dev
at main 10 lines 304 B view raw
1import { createSelectSchema } from "drizzle-zod"; 2import { z } from "zod"; 3 4import { incidentTable } from "./incident"; 5 6export const selectIncidentSchema = createSelectSchema(incidentTable).extend({ 7 monitorName: z.string().optional(), 8}); 9 10export type Incident = z.infer<typeof selectIncidentSchema>;