mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
subscription controller, service and model
This commit is contained in:
@@ -15,6 +15,8 @@ type Transaction struct {
|
||||
Amount int `json:"amount", pg:"amount"`
|
||||
Wallet *Wallet `json:"wallet" pg:"rel:has-one, fk:wallet_id"`
|
||||
TransactionDate time.Time `json:"transactionDate" pg:"transaction_date"`
|
||||
SubscriptionID string `json:"subscriptionId", pg:"subscription_id"`
|
||||
Subscription *Subscription `json:"subscription", pg:"rel:has-one, fk:subscription_id"`
|
||||
}
|
||||
|
||||
type NewTransactionBody struct {
|
||||
|
||||
Reference in New Issue
Block a user