File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,15 @@ import (
8
8
9
9
type User struct {
10
10
ID uuid.UUID `gorm:"type:uuid;default:uuid_generate_v4();primary_key"`
11
- Name string `gorm:"type:varchar(255)"`
12
- Email string `gorm:"uniqueIndex"`
13
- Password string
14
- Role string `gorm:"type:varchar(255)"`
15
- Provider string
16
- Photo string
17
- Verified bool
18
- CreatedAt time.Time
19
- UpdatedAt time.Time
11
+ Name string `gorm:"type:varchar(255);not null "`
12
+ Email string `gorm:"uniqueIndex;not null "`
13
+ Password string `gorm:"not null"`
14
+ Role string `gorm:"type:varchar(255);not null "`
15
+ Provider string `gorm:"not null"`
16
+ Photo string `gorm:"not null"`
17
+ Verified bool `gorm:"not null"`
18
+ CreatedAt time.Time `gorm:"not null"`
19
+ UpdatedAt time.Time `gorm:"not null"`
20
20
}
21
21
22
22
func (User ) UsersTable () string {
You can’t perform that action at this time.
0 commit comments