mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
WA-10 - Implemented transactions
This commit is contained in:
13
pkg/models/transactionTypes.go
Normal file
13
pkg/models/transactionTypes.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user