Files
wallet-go-api/pkg/models/transactionTypes.go
Fran Jurmanović 81e55896b1 fixed pg types
2021-06-29 21:36:24 +02:00

14 lines
326 B
Go

package models
type TransactionType struct {
tableName struct{} `pg:"transactionTypes,alias:transactionTypes"`
BaseModel
Name string `json:"name" pg:"name"`
Type string `json:"type" pg:"type,notnull"`
}
type NewTransactionTypeBody struct {
Name string `json:"name" form:"name"`
Type string `json:"type" form:"type"`
}