update
This commit is contained in:
@ -7,6 +7,7 @@ import { TrxCurrencyRate } from "./trx_currency_rates";
|
||||
import { TrxCustomerCost } from "./trx_customer_costs";
|
||||
import { TrxCustomerUser } from "./trx_customer_users";
|
||||
import { TrxTransactionPosition, TrxTransactionStatus, TrxTransactionType } from "../types/trx";
|
||||
import { TrxVerification } from "./trx_verifications";
|
||||
|
||||
@Entity("trx_transactions", { schema: "trx" })
|
||||
export class TrxTransaction {
|
||||
@ -34,6 +35,10 @@ export class TrxTransaction {
|
||||
@JoinColumn()
|
||||
customer_user: TrxCustomerUser;
|
||||
|
||||
@ManyToOne(() => TrxVerification, { onDelete: "NO ACTION", nullable: true })
|
||||
@JoinColumn()
|
||||
maker_verification: TrxVerification;
|
||||
|
||||
@ManyToOne(() => TrxCustomerAccount, { onDelete: "NO ACTION" })
|
||||
@JoinColumn()
|
||||
customer_account: TrxCustomerAccount;
|
||||
@ -96,12 +101,20 @@ export class TrxTransaction {
|
||||
@Column({ nullable: true })
|
||||
checked_at: Date;
|
||||
|
||||
@ManyToOne(() => TrxVerification, { onDelete: "NO ACTION", nullable: true })
|
||||
@JoinColumn()
|
||||
checker_verification: TrxVerification;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
signed_by: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
signed_at: Date;
|
||||
|
||||
@ManyToOne(() => TrxVerification, { onDelete: "NO ACTION", nullable: true })
|
||||
@JoinColumn()
|
||||
signer_verification: TrxVerification;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
|
||||
Reference in New Issue
Block a user