Replies: 3 comments
-
Shouldn't |
Beta Was this translation helpful? Give feedback.
0 replies
-
Why there is no PR about this? specially the uuid change is very important for speed. Also it will be good account.userId and session.userId to be indexed. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi did this got a PR or something? it's a nice change and should absolutely be added |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Goals
timestamp
to store the datetime. However,timestamptz
is preferred because it can also store the timezone info, which helps prevent bugs related to timezone. more detail: Don't_Do_Thisuuid
column type, we can use uuid column type to store the user's id instead of usingtext
column type.Non-Goals
No response
Background
While the current schema works fine, I believe we can improve (or fix) some column types for the drizzle adapter.
https://authjs.dev/reference/adapter/drizzle
Proposal
We could implement by changing the current schema like this:
This is potentially a breaking change, but since we are under v1, I believe this is worth doing.
Beta Was this translation helpful? Give feedback.
All reactions