Additional Fields default value not being applied (drizzle)
In my auth.ts I am trying to add a few fields to the user table
I have this command in my package.json to
that will generate to auth.schema.ts but when the user table is being generated it displays this
it makes the fields required but the default values are not being applied
6 Replies
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
when I tried to sign up it gives this error, stating that the field is required.
I am using Supabase and it doesn't apply the default to field


A default on Supabase would look like this, where the default value has already been applied.

I tried to change it so it will be
input: false
but this didnt fix itUnknown User•3mo ago
Message Not Public
Sign In & Join Server To View
I created an issue on this https://github.com/better-auth/better-auth/issues/1343
GitHub
Additional Fields not setting default value (drizzle) · Issue #1343...
Is this suited for github? Yes, this is suited for github To Reproduce EX: I ran: "auth:generate": "pnpm dlx @better-auth/cli@latest generate --y --output ./lib/server/schema/auth.sc...