SurfSense/surfsense_web/zero/schema/inbox.ts

17 lines
481 B
TypeScript
Raw Normal View History

2026-03-24 16:07:28 +02:00
import { boolean, json, number, string, table } from "@rocicorp/zero";
export const notificationTable = table("notifications")
.columns({
id: number(),
userId: string().from("user_id"),
searchSpaceId: number().optional().from("search_space_id"),
type: string(),
title: string(),
message: string(),
read: boolean(),
metadata: json().optional(),
createdAt: number().from("created_at"),
updatedAt: number().optional().from("updated_at"),
})
.primaryKey("id");