WA-10 - Implemented transactions

This commit is contained in:
Fran Jurmanović
2021-05-16 17:43:58 +02:00
parent 55010c83d6
commit a99b44194a
8 changed files with 251 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
package models
type TransactionType struct {
tableName struct{} `pg:"transactionTypes,alias:transactionTypes"`
BaseModel
Name string `json:"name" pg:"name"`
Type string `json:"type" pg:"type"`
}
type NewTransactionTypeBody struct {
Name string `json:"name"`
Type string `json:"type"`
}