Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix/migrate to prisma #31

Merged
merged 14 commits into from
Nov 14, 2024
Merged

Fix/migrate to prisma #31

merged 14 commits into from
Nov 14, 2024

Conversation

zulfikarrosadi
Copy link
Owner

No description provided.

my schema is using big int for primary key, but JSON.stringify doesn't know how to convert bigint to json
id is db generated so i create auth token before saving user data to database to reduce db call
change user id type from number to bigint following db schema file
user registration flow now will create the auth token and otp first
then it will save user data, auth token, and otp at once
this will reduce db call overhead
Copy link

vercel bot commented Nov 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
juadah-backend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 14, 2024 1:20am

@zulfikarrosadi zulfikarrosadi merged commit dd86a4c into fix/deployment Nov 14, 2024
2 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant