Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4631b94

Browse files
committed
updated
1 parente0bc54d commit4631b94

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

‎models/user.model.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ import (
88

99
typeUserstruct {
1010
ID uuid.UUID`gorm:"type:uuid;default:uuid_generate_v4();primary_key"`
11-
Namestring`gorm:"type:varchar(255)"`
12-
Emailstring`gorm:"uniqueIndex"`
13-
Passwordstring
14-
Rolestring`gorm:"type:varchar(255)"`
15-
Providerstring
16-
Photostring
17-
Verifiedbool
18-
CreatedAt time.Time
19-
UpdatedAt time.Time
11+
Namestring`gorm:"type:varchar(255);not null"`
12+
Emailstring`gorm:"uniqueIndex;not null"`
13+
Passwordstring`gorm:"not null"`
14+
Rolestring`gorm:"type:varchar(255);not null"`
15+
Providerstring`gorm:"not null"`
16+
Photostring`gorm:"not null"`
17+
Verifiedbool`gorm:"not null"`
18+
CreatedAt time.Time`gorm:"not null"`
19+
UpdatedAt time.Time`gorm:"not null"`
2020
}
2121

2222
func (User)UsersTable()string {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp