I am attempting to add an enum of Roles for users. I have a roles table that has a FK constraint to a roles_name table for the role name. How do I deal with the roles as an enum and as an entity?
Need help?
Contact usI am attempting to add an enum of Roles for users. I have a roles table that has a FK constraint to a roles_name table for the role name. How do I deal with the roles as an enum and as an entity?