feat: Add by_owner index to the projects table, remove redundant query filter, and update isAuthenticated export.

This commit is contained in:
2026-02-03 18:59:55 +00:00
parent be7db36126
commit eff3316480
3 changed files with 14 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ const schema = defineSchema({
dorkingConfig: v.object({
selectedSourceIds: v.array(v.id("dataSources")),
}),
}),
}).index("by_owner", ["userId"]),
dataSources: defineTable({
projectId: v.id("projects"),
type: v.literal("website"),