派生Collectionも可能
export const drawCalcHistoryCollection = createLiveQueryCollection((q) =>
q.from({ calculations: drawCalcCollection })
.orderBy(({ calculations }) => calculations.updatedAt, "desc"),
);
export const createDrawCalcByGameCollection = (gameTemplate: string) =>
createLiveQueryCollection((q) =>
q.from({ calculations: drawCalcCollection })
.where(({ calculations }) => eq(calculations.gameTemplate, gameTemplate))
.orderBy(({ calculations }) => calculations.updatedAt, "desc"),
);