mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 14:18:12 +00:00
partial repository layer added
This commit is contained in:
13
pkg/model/transactionType.go
Normal file
13
pkg/model/transactionType.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package model
|
||||
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user