Skip to content

Commit 756570a

Browse files
Merge pull request #21 from inplayer-org/transaction-history-structure
Resolved structure variable types
2 parents daaae8c + b4cce25 commit 756570a

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
package entities
22

3+
import (
4+
"time"
5+
)
6+
37
type TransactionHistory struct {
4-
Id int `db: "id"`
5-
UserId int `db: "user_id"`
6-
AccountId int `db:"account_id"`
7-
Amount float64 `db: "amount"`
8-
Action string `db: "action"`
9-
CreatedAt string `db: "created_at"`
8+
Id int `db: "id"`
9+
UserId int `db: "user_id"`
10+
AccountId int `db:"account_id"`
11+
Amount float64 `db: "amount"`
12+
Action string `db: "action"`
13+
CreatedAt time.Time `db: "created_at"`
1014
}

0 commit comments

Comments
 (0)