Hey y’all, how I would define an `enum` of integer...
# orm-help
j
Hey y’all, how I would define an
enum
of integers in prisma schema? Say I want to build an NPS score system and part of the data is an
upvote
which translates to
1
and a
downvote
which translates to
0
?
Anyone with an idea on how to model this out?
r
@Joey 👋 How would a score system look like if you’re using enums? Would you have categories and provide a specific score based on that?
j
The score system would be just a
thumbs up
and a
thumbs down
emoji
Which would translate to a
1
or a
0