Schema adjustment not being reflected.
Hi guys,
I'm hoping someone may be able to give me hand with this, I'm 90% confident I'm missing an extra step here or something.
I have a
Inside my
One of the schemas I have defined is named under
After making these changes, I have ran
When navigating to
However, when I use
Does anyone know how I should go about aligning the better auth types with my DB structs? Thanks
I'm hoping someone may be able to give me hand with this, I'm 90% confident I'm missing an extra step here or something.
I have a
/schemas/ folder, with multiple different files and an entry index.ts which exports * from the different files.Inside my
auth.ts file, I have the drizzleAdapter, and I pass in the schemas like so:One of the schemas I have defined is named under
auth.ts. It includes the user and the session tables. This is what the session table looks like:After making these changes, I have ran
npm run db:generate as well as npm run db:push.When navigating to
local.drizzle.studio I can see the extra columns created under the session table.However, when I use
getSession or the database hooks to manipulate the session object, when I hover over the object I see the following structure (Image attached).Does anyone know how I should go about aligning the better auth types with my DB structs? Thanks
