Hello, I was wondering if there was any way to sto...
# random
c
Hello, I was wondering if there was any way to store enum with the caractère “-” like in locale codes :
enum LocaleCode {
es
en-GB
}
1
h
This is how I use my Enums
Copy code
enum requests_status {
To_be_Started                  @map("To be Started")
 Work_in_Progress               @map("Work in Progress")
 Awaiting_Customer_Confirmation @map("Awaiting Customer Confirmation")
Completed
}
Then in my frontend code. I just do something like this:
Copy code
data.status.replace(/_/g, ' ')
2