Added 4 Demo Users, with Coast emails, Hierarchy, roles etc.

This commit is contained in:
2026-06-18 13:13:29 +02:00
parent 3f839bc0fc
commit 5238b59140
22 changed files with 973 additions and 286 deletions
+24
View File
@@ -0,0 +1,24 @@
import { Pool } from "pg"
const pool = new Pool({
connectionString: process.env.DATABASE_URL,
max: 20,
idleTimeoutMillis: 30000,
connectionTimeoutMillis: 5000,
})
pool.on("error", (err) => {
console.error("Unexpected database pool error:", err)
})
export async function query(text: string, params?: unknown[]) {
const client = await pool.connect()
try {
const result = await client.query(text, params)
return result
} finally {
client.release()
}
}
export default pool