Replies: 2 comments 1 reply
-
|
just to be clear it works this way: but i would like to have an auto incremented field, which in sqlite i believe gets replaced by the primary key? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@avnav0 - How did you go with this one? I am approaching the same problem, just with postgres. I'm considering moving an existing project to Lucia auth, but changing the primary key to text would be quite difficult because all of the foreign key relations |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hey thanks for this library!
i'm trying to setup my db (turso) in a way that conforms to my previous approaches:
there is a primary key that is unique and auto incrementing - and acts as the id on the table. i recognize that lucia uses provider id's as a primary key, so i'm wondering if there's a way to work this. my goal is to have everyone in one table, but i also don't like that i am forced to use text.
here is the way i have it setup:
but i'm unsure of how to implement so that the user id is actually id and not (for example with google) the sub:
basically, wondering if it's possible to have the google id (googleUser.sub) be a column but not the primary key on the table. so lucia would check on that field, but the sessions table and the auth key table would be tied to the auto incrementing user id.
Beta Was this translation helpful? Give feedback.
All reactions