Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
TypeScript
123456789101112131415import { createSelectSchema } from "drizzle-zod";import type { z } from "zod";
import { incident, incidentEvent } from "./incident";import { incidentPostmortem } from "./postmortem";
export const selectIncidentSchema = createSelectSchema(incident);export const selectIncidentEventSchema = createSelectSchema(incidentEvent);export const selectIncidentPostmortemSchema = createSelectSchema(incidentPostmortem);
export type Incident = z.infer<typeof selectIncidentSchema>;export type IncidentEvent = z.infer<typeof selectIncidentEventSchema>;export type IncidentPostmortem = z.infer<typeof selectIncidentPostmortemSchema>;