Merge branch 'dev/cedric' into dev/guerby

This commit is contained in:
gom-by
2025-01-16 14:45:52 +01:00
12 changed files with 215 additions and 65 deletions

View File

@@ -47,7 +47,7 @@ type User struct {
FirstName string `bun:"firstname,notnull" json:"firstname"`
LastName string `bun:"lastname,notnull" json:"lastname"`
Email string `bun:"email,unique,notnull" json:"email"`
Password string `bun:"password,notnull" json:"password"`
Password string `bun:"password,notnull" json:"password,omitempty"`
Phone string `bun:"phone,notnull" json:"phone"`
Role Role `bun:"role,notnull,default:'user'" json:"role"`
CreatedAt time.Time `bun:"created_at,default:current_timestamp" json:"createdAt"`