package fr.codetics.ev_server.models.people
enum class UserRole {
ADMIN,
OPERATOR,
VIEWER,
DRIVER,
/** B2B fleet manager: charges like a driver, and follows the fleet of the employees who report to them. */
MANAGER;
/** Driver-facing endpoints only show this account's own sessions, badges and invoices. */
val selfScoped: Boolean
get() = this == DRIVER || this == MANAGER
}