Skip to content

Commit

Permalink
add user default role
Browse files Browse the repository at this point in the history
  • Loading branch information
krabiworld committed Aug 7, 2024
1 parent 6af7da9 commit 7631009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/toscale.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type User struct {
ID uint64 `gorm:"primaryKey"`
Name string
Email string
Role string
Role string `gorm:"default:user"`
Avatar string
Password string
CreatedAt uint64 `gorm:"column:createdAt"`
Expand Down

0 comments on commit 7631009

Please sign in to comment.