update
This commit is contained in:
@ -1,39 +0,0 @@
|
|||||||
import { Column, CreateDateColumn, DeleteDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
|
||||||
|
|
||||||
@Entity("trx_transaction_deal_codes", { schema: "trx" })
|
|
||||||
export class TrxTransactionDealCode {
|
|
||||||
@PrimaryGeneratedColumn("uuid")
|
|
||||||
id: string;
|
|
||||||
|
|
||||||
@Column({
|
|
||||||
length: 256,
|
|
||||||
})
|
|
||||||
code: string;
|
|
||||||
|
|
||||||
@Column({
|
|
||||||
type: "float8",
|
|
||||||
default: 0,
|
|
||||||
})
|
|
||||||
rate: number;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
@CreateDateColumn()
|
|
||||||
created_at: Date;
|
|
||||||
|
|
||||||
@Column({ nullable: true, length: 256 })
|
|
||||||
created_by: string;
|
|
||||||
|
|
||||||
@Column({ nullable: true })
|
|
||||||
@UpdateDateColumn()
|
|
||||||
updated_at: Date;
|
|
||||||
|
|
||||||
@Column({ nullable: true, length: 256 })
|
|
||||||
updated_by: string;
|
|
||||||
|
|
||||||
@Column({ nullable: true })
|
|
||||||
@DeleteDateColumn()
|
|
||||||
deleted_at: Date;
|
|
||||||
|
|
||||||
@Column({ nullable: true, length: 256 })
|
|
||||||
deleted_by: string;
|
|
||||||
}
|
|
||||||
@ -9,7 +9,6 @@ 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";
|
import { TrxVerification } from "./trx_verifications";
|
||||||
import { TrxPurposes } from "./trx_purposes";
|
import { TrxPurposes } from "./trx_purposes";
|
||||||
import { TrxTransactionDealCode } from "./trx_transaction_deal_codes";
|
|
||||||
|
|
||||||
@Entity("trx_transactions", { schema: "trx" })
|
@Entity("trx_transactions", { schema: "trx" })
|
||||||
export class TrxTransaction {
|
export class TrxTransaction {
|
||||||
@ -29,10 +28,6 @@ export class TrxTransaction {
|
|||||||
})
|
})
|
||||||
type: TrxTransactionType;
|
type: TrxTransactionType;
|
||||||
|
|
||||||
@ManyToOne(() => TrxTransactionDealCode, { onDelete: "NO ACTION" })
|
|
||||||
@JoinColumn()
|
|
||||||
deal_code: TrxTransactionDealCode;
|
|
||||||
|
|
||||||
@ManyToOne(() => TrxCustomer, { onDelete: "NO ACTION" })
|
@ManyToOne(() => TrxCustomer, { onDelete: "NO ACTION" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
customer: TrxCustomer;
|
customer: TrxCustomer;
|
||||||
|
|||||||
@ -18,7 +18,6 @@ export * from "../entity/trx_banks";
|
|||||||
export * from "../entity/trx_bank_swifts";
|
export * from "../entity/trx_bank_swifts";
|
||||||
export * from "../entity/trx_receivers";
|
export * from "../entity/trx_receivers";
|
||||||
export * from "../entity/trx_transactions";
|
export * from "../entity/trx_transactions";
|
||||||
export * from "../entity/trx_transaction_deal_codes";
|
|
||||||
export * from "../entity/trx_transaction_slas";
|
export * from "../entity/trx_transaction_slas";
|
||||||
export * from "../entity/trx_transaction_amls";
|
export * from "../entity/trx_transaction_amls";
|
||||||
export * from "../entity/trx_transaction_signatures";
|
export * from "../entity/trx_transaction_signatures";
|
||||||
|
|||||||
Reference in New Issue
Block a user