Skip to content

Commit 8605ce8

Browse files
committed
updated
1 parent 430114c commit 8605ce8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

models/user.model.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ type User struct {
99
Name string `json:"name" gorm:"type:varchar(255)" binding:"required"`
1010
Email string `json:"email" gorm:"uniqueIndex" binding:"required"`
1111
}
12+
13+
func (User) UsersTable() string {
14+
return "users"
15+
}

0 commit comments

Comments
 (0)