Update to pg v9
This commit is contained in:
parent
91beca9a55
commit
defaa2ae0b
9 changed files with 75 additions and 44 deletions
|
@ -7,10 +7,10 @@ import (
|
|||
)
|
||||
|
||||
type Visit struct {
|
||||
ID int `sql:"type:serial"`
|
||||
Downloads int `sql:"type:integer,notnull"`
|
||||
Views int `sql:"type:integer,notnull"`
|
||||
BookID string `sql:"type:varchar(16),unique"`
|
||||
ID int `pg:"type:serial"`
|
||||
Downloads int `pg:"type:integer,notnull"`
|
||||
Views int `pg:"type:integer,notnull"`
|
||||
BookID string `pg:"type:varchar(16),unique"`
|
||||
Book *Book
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue