export const auth = betterAuth({
database: drizzleAdapter(db, {
provider: "pg",
schema: schema,
}),
// ... other configurations ...
/* BA Core schema change */
user: {
fields: {
// Trying to map the internal 'id' field to my 'id_user' column
id_user: "id_user" // <-- This is where I'm attempting the configuration
},
additionalFields: {
first_name: {
type: "string",
required: true,
},
},
},
});
export const auth = betterAuth({
database: drizzleAdapter(db, {
provider: "pg",
schema: schema,
}),
// ... other configurations ...
/* BA Core schema change */
user: {
fields: {
// Trying to map the internal 'id' field to my 'id_user' column
id_user: "id_user" // <-- This is where I'm attempting the configuration
},
additionalFields: {
first_name: {
type: "string",
required: true,
},
},
},
});