aboutsummaryrefslogtreecommitdiff
path: root/models/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/models/user.go b/models/user.go
index 73afdce..73358fe 100644
--- a/models/user.go
+++ b/models/user.go
@@ -18,4 +18,13 @@ type User struct {
Password string
Username string
Photo *string
+ Role UserRole
}
+
+type UserRole int
+
+const (
+ RoleUser UserRole = iota
+ RoleModerator
+ RoleAdmin
+)