enum Backend::Api::Schema::UserRole
Overview
Possible roles of a user
Defined in:
backend/api/schema/user.crEnum Members
-
Teacher =
0
-
Student =
1
Constructors
-
.from_db(role : Db::UserRole) : self
GraphQL representation of the DB enum
Instance Method Summary
- #student?
- #teacher?
-
#to_db : Db::UserRole
DB representation of the enum