```js export const historyRelations = relations(histories, ({ many }) => ({ files: many(historyFiles), })); const history = await ctx.db.query.histories.findFirst({ where: and( eq(histories.hospitalId, user.organizationId), eq(histories.id, input.id) ), with: { files: { where: (files, { eq }) => eq(files.historyId, input.id), }, }, }); ``` im doing this according to the docs. am i missing something?