- Adiciona campo templateDescription ao schema do checklist - Copia descricao do template ao aplicar checklist no ticket - Exibe ambas descricoes na visualizacao do ticket (template em italico) - Adiciona documentacao de desenvolvimento local (docs/LOCAL-DEV.md) - Corrige prisma-client.mjs para usar PostgreSQL em vez de SQLite 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
24 lines
643 B
JavaScript
24 lines
643 B
JavaScript
import pg from "pg"
|
|
|
|
// NOTE: This helper imports the generated Prisma client from TypeScript files.
|
|
// Run scripts that rely on it via a transpiling runner (e.g. `tsx` or Bun).
|
|
import { PrismaClient } from "../../src/generated/prisma/client.ts"
|
|
import { PrismaPg } from "@prisma/adapter-pg"
|
|
|
|
const { Pool } = pg
|
|
|
|
export function createPrismaClient() {
|
|
const databaseUrl = process.env.DATABASE_URL
|
|
|
|
if (!databaseUrl) {
|
|
throw new Error("DATABASE_URL environment variable is required")
|
|
}
|
|
|
|
const pool = new Pool({
|
|
connectionString: databaseUrl,
|
|
})
|
|
|
|
const adapter = new PrismaPg(pool)
|
|
|
|
return new PrismaClient({ adapter })
|
|
}
|