Update to pg v9
This commit is contained in:
parent
91beca9a55
commit
defaa2ae0b
9 changed files with 75 additions and 44 deletions
|
@ -16,11 +16,11 @@ import (
|
|||
var alphaNumeric = regexp.MustCompile(`^[a-zA-Z0-9_\-\.]+$`).MatchString
|
||||
|
||||
type User struct {
|
||||
ID int `sql:"type:serial"`
|
||||
Username string `sql:"type:varchar(255),unique"`
|
||||
ID int `pg:"type:serial"`
|
||||
Username string `pg:"type:varchar(255),unique"`
|
||||
Password []byte
|
||||
Salt []byte
|
||||
Role string `sql:"type:varchar(255)"`
|
||||
Role string `pg:"type:varchar(255)"`
|
||||
LastLogin time.Time
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue