We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 430114c commit 8605ce8Copy full SHA for 8605ce8
models/user.model.go
@@ -9,3 +9,7 @@ type User struct {
9
Name string `json:"name" gorm:"type:varchar(255)" binding:"required"`
10
Email string `json:"email" gorm:"uniqueIndex" binding:"required"`
11
}
12
+
13
+func (User) UsersTable() string {
14
+ return "users"
15
+}
0 commit comments