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.
816 B ยท 27 lines
TypeScript
12345678910111213141516171819202122232425262728import { createInsertSchema, createSelectSchema } from "drizzle-zod";import type { z } from "zod";
import { chatSession } from "./chat_session";import { chatStoredMessagesSchema, chatTitleSchema } from "./messages";
export { chatStoredMessagesSchema, chatTitleSchema, messagePartSchema, storedMessageSchema, type ChatMessagePart, type ChatStoredMessage,} from "./messages";
export const insertChatSessionSchema = createInsertSchema(chatSession, { title: chatTitleSchema, messages: chatStoredMessagesSchema,});
export const selectChatSessionSchema = createSelectSchema(chatSession, { title: chatTitleSchema, messages: chatStoredMessagesSchema,});
export type InsertChatSession = z.infer<typeof insertChatSessionSchema>;export type ChatSession = z.infer<typeof selectChatSessionSchema>;