Yes
This commit is contained in:
@@ -25,6 +25,7 @@ type User struct {
|
||||
FirstName string `bun:"firstname,notnull"`
|
||||
LastName string `bun:"lastname,notnull"`
|
||||
Email string `bun:"email,unique,notnull"`
|
||||
Password string `bun:"password,notnull"`
|
||||
Phone string `bun:"phone,notnull"`
|
||||
Role Role `bun:"role,notnull,default:'user'"`
|
||||
CreatedAt time.Time `bun:"created_at,default:current_timestamp"`
|
||||
|
||||
Reference in New Issue
Block a user