Add chat_comments table to PGlite schema and thread_id to types

This commit is contained in:
CREDO23 2026-01-22 17:56:45 +02:00
parent ac7d84571d
commit 4b57ba9d2b
2 changed files with 19 additions and 0 deletions

View file

@ -6,6 +6,7 @@ import { z } from "zod";
export const rawComment = z.object({
id: z.number(),
message_id: z.number(),
thread_id: z.number(), // Denormalized for efficient Electric subscriptions
parent_id: z.number().nullable(),
author_id: z.string().nullable(),
content: z.string(),