add go gorm chi postgres starter
This commit is contained in:
11
web/other/go-postgresql-gorm-chi-starter/model/user.go
Normal file
11
web/other/go-postgresql-gorm-chi-starter/model/user.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package model
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type User struct {
|
||||
gorm.Model
|
||||
Name string
|
||||
Email string `gorm:"unique"`
|
||||
Password string
|
||||
Phone *string // Nullable
|
||||
}
|
||||
Reference in New Issue
Block a user