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

@@ -7,7 +7,7 @@ import (
)
type BaseModel struct {
Id string `json:"id" pg:"id,pk"`
Id string `json:"id" pg:"id,pk,notnull"`
DateCreated time.Time `json:"dateCreated" pg:"date_created"`
DateUpdated time.Time `json:"dateUpdated" pg:"date_updated"`
}