-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add User table to postgres #4554
Comments
Ran into the following problems with pgtyped:
As an experiment, i tried installing zapatos to achieve this task. What I found:
Other differences:
|
citext is the right answer. emails don't always have tlds, they just need an at sign. custom domains can often do more harm than good
defaulting to native arrays over JSON arrays is probably the right answer here, can always explicitly stringify if we absolutely need a JSON array
totally fair! could you give an example where this might hurt us in the future? After reviewing your PR, I think zapatos is too young to adopt:
let's stick with pgtyped for now |
when deleting a user then creating a new account, locally created accounts get recreated with a new row and id. but when using google auth, the newly created account reuses the same db row and id and the email stays "DELETED". |
oh that's interesting! probably because the userId that's generated isn't random, so it'll find that record. if they rejoin, we could still re-use the same User object, but just update the email. |
we need to merge users with duplicate emails |
r |
implemented in #4787 |
let's start to move to postgres. see #4530
AC
Estimate: 16 hours
The text was updated successfully, but these errors were encountered: