feat(orders): implement order ingestion pipeline, review ratings schema, and [Family] exclusion

This commit is contained in:
2026-07-26 18:52:34 +10:00
parent d06088fe34
commit bbb90238e4
13 changed files with 667 additions and 3 deletions
+5
View File
@@ -15,3 +15,8 @@ if (process.env.NODE_ENV !== "production") globalForPrisma.prisma = prisma;
export async function queryRaw<T>(sql: string, params: unknown[] = []): Promise<T[]> {
return prisma.$queryRawUnsafe<T[]>(sql, ...params);
}
export async function queryRow<T>(sql: string, params: unknown[] = []): Promise<T | null> {
const rows = await prisma.$queryRawUnsafe<T[]>(sql, ...params);
return rows.length > 0 ? rows[0] : null;
}