© 2026 Hedgehog Software, LLC
Error: no such column: unboxes.rarity
unboxes.rarity
where
export const getFilteredUnboxes = async (onlyCoverts?: boolean) => db.query.unboxes.findMany({ with: { item: true, case: true, }, where: onlyCoverts ? inArray(items.rarity, ["Covert", "Extraordinary"]) : undefined, });
items
export const items = sqliteTable( "items", { id: text("id").primaryKey().notNull(), name: text("name").notNull(), description: text("description"), image: text("image").notNull(), rarity: text("rarity").notNull(), phase: text("phase"), }, table => { return { idxRarity: index("idx_rarity").on(table.rarity), }; }, );