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