fixed pg types

This commit is contained in:
Fran Jurmanović
2021-06-29 21:36:24 +02:00
parent a5f8a8818c
commit 81e55896b1
6 changed files with 13 additions and 13 deletions

View File

@@ -4,9 +4,9 @@ type User struct {
tableName struct{} `pg:"users,alias:users"`
BaseModel
IsActive bool `json:"isActive" pg:"is_active" form:"isActive"`
Username string `json:"username" pg:"username" form:"username"`
Password string `json:"password" pg:"password" form:"password"`
Email string `json:"email" pg:"email" form:"email"`
Username string `json:"username" pg:"username,notnull" form:"username"`
Password string `json:"password" pg:"password,notnull" form:"password"`
Email string `json:"email" pg:"email,notnull" form:"email"`
}
type UserReturnInfo struct {