diff --git a/shared/toscale.go b/shared/toscale.go index e2e90d0..9ec6af3 100644 --- a/shared/toscale.go +++ b/shared/toscale.go @@ -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"`