added email to user database
This commit is contained in:
parent
6660c1e3b3
commit
75c8dde932
1
db.go
1
db.go
|
@ -27,6 +27,7 @@ type User struct {
|
||||||
gorm.Model
|
gorm.Model
|
||||||
Username string `json:"username"`
|
Username string `json:"username"`
|
||||||
Password string `json:"password"`
|
Password string `json:"password"`
|
||||||
|
Email string `json:"email"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func ConnectDB(dbPath string) (*gorm.DB, error) {
|
func ConnectDB(dbPath string) (*gorm.DB, error) {
|
||||||
|
|
Loading…
Reference in New Issue