- Timestamp:
- 12/24/25 23:10:35 (7 months ago)
- Branches:
- main
- Children:
- 3fca46c
- Parents:
- 67dfe57
- Location:
- database/drizzle
- Files:
-
- 2 edited
-
db.ts (modified) (1 diff)
-
queries/builds.ts (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
database/drizzle/db.ts
r67dfe57 re729b88 7 7 }) 8 8 9 pool.on("connect", (client) => { 10 client.query('SET search_path TO pcforge, public'); 11 }); 12 9 13 export const db = drizzle(pool, { schema }); 10 14 -
database/drizzle/queries/builds.ts
r67dfe57 re729b88 100 100 name: buildsTable.name, 101 101 created_at: buildsTable.createdAt, 102 total_price: buildsTable.totalPrice 102 total_price: buildsTable.totalPrice, 103 avgRating: sql<number>`AVG(${ratingBuildsTable.value}::float)` 103 104 }) 104 105 .from(buildsTable)
Note:
See TracChangeset
for help on using the changeset viewer.
