Janic
Janic
Explore posts from servers
TTCTheo's Typesafe Cult
Created by ramseyv on 4/18/2023 in #questions
Scalar Lists in PlanetScale not supported
I highly recommend using a supported connector like Postgres or MySQL since it supports more features you are looking for. There is no real work-around without caveats.
5 replies
TTCTheo's Typesafe Cult
Created by Aryan on 4/19/2023 in #questions
How to let 2 types of users to login to my app - customers and businesses
You may add a role attribute to your user model in your database as string like 'customer' | 'business'. When a user is authenticated you can show the views according to this attribute. This approach works well with next-auth. At least this would be a more common version of authorization.
7 replies