Add permission aware search

This commit is contained in:
ZacharyZhang-NY committed 2026-05-23 17:34:50 -04:00
1 parent 38c68ca4af
commit 1ee877e630
17 files changed
+608 -4

No files matched your search

@@ -0,0 +1,13 @@
export const searchDocumentsSchema = `
create virtual table if not exists search_documents using fts5(
org_id unindexed,
entity_type unindexed,
entity_id unindexed,
title,
body,
facet_json unindexed
);
insert into schema_migrations(version, name, applied_at)
values (13, 'search_documents', datetime('now'));
`;