remite update
This commit is contained in:
@ -1,15 +1,13 @@
|
||||
import bcrypt from "bcryptjs";
|
||||
import { Status } from "../types/status";
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, OneToOne, JoinColumn, ManyToOne, OneToMany, ManyToMany, JoinTable } from "typeorm";
|
||||
import { RemitPartner } from "./remit_partners";
|
||||
import { ApprovalStatus } from "../enum/approvalStatus";
|
||||
import { RemitSender } from "./remit_senders";
|
||||
import { RemitBeneficiary } from "./remit_beneficiaries";
|
||||
import { RemitConfigPurpose } from "./remit_config_purposes";
|
||||
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, JoinTable, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||
import { RemitTransactionCurrencyType, RemitTransactionStatus } from "../types/remit";
|
||||
import { RemitBeneficial } from "./remit_beneficials";
|
||||
import { RemitBeneficiary } from "./remit_beneficiaries";
|
||||
import { RemitConfigPurpose } from "./remit_config_purposes";
|
||||
import { RemitConfigRate } from "./remit_config_rates";
|
||||
import { RemitMunisipo } from "./remit_munisipos";
|
||||
import { RemitPartner } from "./remit_partners";
|
||||
import { RemitSender } from "./remit_senders";
|
||||
import { RemitConfigTransactionType } from "./remit_config_transaction_types";
|
||||
|
||||
@Entity("remit_transactions", { schema: "remits" })
|
||||
export class RemitTransaction {
|
||||
@ -66,7 +64,7 @@ export class RemitTransaction {
|
||||
})
|
||||
amount: Number;
|
||||
|
||||
@ManyToOne(() => RemitConfigRate, { onDelete: "RESTRICT", nullable: true })
|
||||
@ManyToOne(() => RemitConfigRate, { onDelete: "NO ACTION", nullable: true })
|
||||
@JoinTable()
|
||||
rate: RemitConfigRate;
|
||||
|
||||
@ -153,4 +151,8 @@ export class RemitTransaction {
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
deleted_by: string;
|
||||
|
||||
@ManyToOne(() => RemitConfigTransactionType, { onDelete: "NO ACTION", nullable: true })
|
||||
@JoinTable()
|
||||
transaction_type: RemitConfigTransactionType;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user