I have users with many roles and I want to mark those roles with numbers or priority numbers.
Ex:
Admin - 4
Client - 3
User - 2
Guest - 1
instead of adding a new column on my roles table which will look like this
| id | name | priority_num |
|---|---|---|
| 1 | Admin | 4 |
| 2 | Client | 3 |
| 3 | User | 2 |
| 4 | Guest | 1 |
I was wondering if I could do it in my roles model class so I won't have to create a migration to my table and make it a constant value. Is this even possible?