How can I properly configure Drizzle?

I'm following the Prisma migration guide and I have a few problems: My database is in my own schema, but I can't find the option to specify the schema. Drizzle defaults to
public
which is an antipattern (and also empty in my case).
Apart from this even though I configure Drizzle to put the schema file in a specific folder:
export default defineConfig({
    dialect: "postgresql",
    out: "./src/drizzle",
    schema: "./src/repository/schema.ts",
    dbCredentials: {
        url: process.env.DATABASE_URL ?? fail("DATABASE_URL is not defined"),
    },
    verbose: true,
    strict: true,
});

it puts the resulting
schema.ts
in ./src/drizzle/schema.ts Is this something I can configure?
Was this page helpful?