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,7 +4,7 @@ type TransactionType struct {
tableName struct{} `pg:"transactionTypes,alias:transactionTypes"`
BaseModel
Name string `json:"name" pg:"name"`
Type string `json:"type" pg:"type"`
Type string `json:"type" pg:"type,notnull"`
}
type NewTransactionTypeBody struct {