[feat] tweaking sort and facet matching

This commit is contained in:
2026-02-27 09:29:47 -05:00
parent 538416c22a
commit 2a827fd4f6
3 changed files with 20 additions and 6 deletions

View File

@@ -14,9 +14,16 @@ export const relations = defineRelations(schema, (r) => ({
from: r.cards.setId,
to: r.sets.setId,
}),
tcgdata: r.one.tcgcards({
from: r.cards.productId,
to: r.tcgcards.productId,
}),
},
sets: {
cards: r.many.cards(),
},
tcgcards: {
cards: r.many.cards(),
},
}));