Skip to content

Open-source status page, incident response and uptime monitoring

352 B
Raw Blame
import { createSelectSchema } from "drizzle-zod";
import { z } from "zod";

import { monitorIncidentTable } from "./monitor_incident";

export const selectMonitorIncidentSchema = createSelectSchema(
  monitorIncidentTable,
).extend({
  monitorName: z.string().optional(),
});

export type MonitorIncident = z.infer<typeof selectMonitorIncidentSchema>;