From 7631009d2be78ab2e1ff19679c407ffc16f4ba37 Mon Sep 17 00:00:00 2001 From: daniel Date: Wed, 7 Aug 2024 23:32:03 +0500 Subject: [PATCH] add user default role --- shared/toscale.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"`