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