7 Replies
The Typescript type for role is basically
"admin" | "maintainer"
does nt seem to work
i even tried "admin"
I get this
when i do
Can you show the migration where this column was created? Or can you do
describe userAuth
on your database and show the result?Reminds me https://discord.com/channels/1043890932593987624/1056966312997429278/1100436967017164880
I have dropped enum in favor of:
But it is no longer reinforced on the database side (until you add constraints).
In time I found it easier to use when you want to alter enum values.
Isn't
typeof clubStatuses[number]
equivalent to "active" | "closed"
?
Oh, I get it now, you have to write the array because drizzle needs it. And you derive the type from it with as const
Having same issue, found this https://discord.com/channels/1043890932593987624/1120919676457848946/1120919676457848946