feat(zero): add userTable + queries.user.me() synced query

This commit is contained in:
Anish Sarkar 2026-05-02 03:31:50 +05:30
parent e9d964514b
commit 05eef5a7db
4 changed files with 26 additions and 0 deletions

View file

@ -3,6 +3,7 @@ import { chatCommentTable, chatSessionStateTable, newChatMessageTable } from "./
import { documentTable, searchSourceConnectorTable } from "./documents";
import { folderTable } from "./folders";
import { notificationTable } from "./inbox";
import { userTable } from "./user";
const chatCommentRelationships = relationships(chatCommentTable, ({ one }) => ({
message: one({
@ -34,6 +35,7 @@ export const schema = createSchema({
newChatMessageTable,
chatCommentTable,
chatSessionStateTable,
userTable,
],
relationships: [chatCommentRelationships, newChatMessageRelationships],
});