mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-08 22:22:17 +02:00
- Introduced a comprehensive specification for renaming `searchSpace` to `workspace` in `surfsense_web` and `surfsense_desktop`, ensuring all TypeScript identifiers, React props, and local data structures are updated. - Implemented migration shims for persisted local state to prevent data loss during the transition. - Updated observability metrics and IPC channels to reflect the new naming convention. - Removed legacy `active-search-space` module and replaced it with `active-workspace` to maintain consistency. - Ensured no behavioral changes or data loss for users during the renaming process.
16 lines
476 B
TypeScript
16 lines
476 B
TypeScript
import { boolean, json, number, string, table } from "@rocicorp/zero";
|
|
|
|
export const notificationTable = table("notifications")
|
|
.columns({
|
|
id: number(),
|
|
userId: string().from("user_id"),
|
|
workspaceId: number().optional().from("workspace_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");
|