infoalloggi-monorepo/apps/infoalloggi/.kanelrc.js
2025-08-04 17:45:44 +02:00

24 lines
570 B
JavaScript

const { makeKyselyHook } = require("kanel-kysely");
const ignoredTables = [];
/** @type {import('kanel').Config} */
module.exports = {
connection: {
host: "localhost",
user: "postgres",
database: "postgres",
password: "rootpost",
port: 5432,
},
typeFilter: (pgType) => !ignoredTables.includes(pgType.name),
preDeleteOutputFolder: true,
outputPath: "./src/schemas",
customTypeMap: {
"pg_catalog.tsvector": "string",
"pg_catalog.bpchar": "string",
//"pg_catalog.json": "string",
},
preRenderHooks: [makeKyselyHook()],
};