© 2026 Hedgehog Software, LLC
let tc = await db.query.ATable.findFirst({ where: and( eq(ATable.year, year), eq(ATable.week, week), eq(ATable.ownerId, userId) ), with: { bs: true, cs: true } })
COALESCE types smallint and text cannot be matched