I've noticed more SAAS products following a patter...
# orm-help
b
I've noticed more SAAS products following a pattern of prefixing entity IDs with a few letters for the purpose of quickly identifying what type of entity is represented by the ID, for example a
Product
in Stripe would look like
prod_abcdefg
while a
Customer
would have
cus_abcdefg
... I know I could manually generate IDs in my code, but it would be very cool if I could do something like this in the schema
Copy code
model Customer {
  id        String   @id @default(cuid(prefix: "cus"))  
}
🙌 1
s
Yep, I would really love this too.
r
@Bryan Migliorisi @Sam Roth 👋 I would suggest adding a 👍 to this request so that we know the priority for this 🙂 https://github.com/prisma/prisma/issues/6719
👍 1
b
oh thanks for linking to that Ryan
s
Done!