chore: add new route for get single transaction for user
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import Decimal from "decimal.js";
|
||||
import { Column, Entity, ManyToOne } from "typeorm";
|
||||
import { Column, Entity, ManyToOne, OneToMany } from "typeorm";
|
||||
|
||||
import { BankAccount } from "./bank-account.entity";
|
||||
import { BaseEntity } from "../../../common/entities/base.entity";
|
||||
import { DecimalTransformer } from "../../../common/transformers/decimal.transformer";
|
||||
import { User } from "../../users/entities/user.entity";
|
||||
import { WalletTransaction } from "../../wallets/entities/transaction.entity";
|
||||
import { DepositRequestStatus } from "../enums/deposit-request-status.enum";
|
||||
import { TransferType } from "../enums/payment-type.enum";
|
||||
|
||||
@@ -30,4 +31,7 @@ export class DepositRequest extends BaseEntity {
|
||||
|
||||
@Column({ type: "enum", enum: DepositRequestStatus, default: DepositRequestStatus.PENDING })
|
||||
status: DepositRequestStatus;
|
||||
|
||||
@OneToMany(() => WalletTransaction, (transaction) => transaction.depositRequest)
|
||||
transactions: WalletTransaction[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user