feat(spoons): find owned spoons by pushed repo (indexed)

This commit is contained in:
Gabriel Brown
2026-07-11 14:12:30 -04:00
parent f7c3aa6482
commit 68dc7bb4ee
3 changed files with 207 additions and 2 deletions
+2 -1
View File
@@ -135,7 +135,8 @@ const applicationTables = {
.index('by_owner', ['ownerId'])
.index('by_owner_status', ['ownerId', 'status'])
.index('by_owner_provider', ['ownerId', 'provider'])
.index('by_upstream', ['provider', 'upstreamOwner', 'upstreamRepo']),
.index('by_upstream', ['provider', 'upstreamOwner', 'upstreamRepo'])
.index('by_fork', ['provider', 'forkOwner', 'forkRepo']),
spoonRepositoryStates: defineTable({
spoonId: v.id('spoons'),
ownerId: v.id('users'),