diff --git a/BankAccount/pkg/entities/transactionhistory.go b/BankAccount/pkg/entities/transactionhistory.go index f59cf5f..0cfbca7 100644 --- a/BankAccount/pkg/entities/transactionhistory.go +++ b/BankAccount/pkg/entities/transactionhistory.go @@ -1,10 +1,14 @@ package entities +import ( + "time" +) + type TransactionHistory struct { - Id int `db: "id"` - UserId int `db: "user_id"` - AccountId int `db:"account_id"` - Amount float64 `db: "amount"` - Action string `db: "action"` - CreatedAt string `db: "created_at"` + Id int `db: "id"` + UserId int `db: "user_id"` + AccountId int `db:"account_id"` + Amount float64 `db: "amount"` + Action string `db: "action"` + CreatedAt time.Time `db: "created_at"` }