remit upadte
This commit is contained in:
@ -12,6 +12,9 @@ import { RemitConfigSourceIncome } from "./remit_config_source_incomes";
|
|||||||
import { RemitConfigBank } from "./remit_config_banks";
|
import { RemitConfigBank } from "./remit_config_banks";
|
||||||
import { RemitIndoProvince } from "./remit_indo_provinces";
|
import { RemitIndoProvince } from "./remit_indo_provinces";
|
||||||
import { RemitIndoCity } from "./remit_indo_cities";
|
import { RemitIndoCity } from "./remit_indo_cities";
|
||||||
|
import { RemitConfigRelation } from "./remit_config_relations";
|
||||||
|
import { RemitConfigBusinessType } from "./remit_config_business_types";
|
||||||
|
import { RemitConfigBusinessField } from "./remit_config_business_fields";
|
||||||
|
|
||||||
@Entity("remit_beneficiaries", { schema: "remits" })
|
@Entity("remit_beneficiaries", { schema: "remits" })
|
||||||
export class RemitBeneficiary {
|
export class RemitBeneficiary {
|
||||||
@ -96,4 +99,24 @@ export class RemitBeneficiary {
|
|||||||
@ManyToOne(() => RemitBeneficiary, { onDelete: "NO ACTION", nullable: true })
|
@ManyToOne(() => RemitBeneficiary, { onDelete: "NO ACTION", nullable: true })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
parent: RemitBeneficiary;
|
parent: RemitBeneficiary;
|
||||||
|
|
||||||
|
@ManyToOne(() => RemitConfigRelation, { onDelete: "NO ACTION", nullable: true })
|
||||||
|
@JoinColumn()
|
||||||
|
relation: RemitConfigRelation;
|
||||||
|
|
||||||
|
@ManyToOne(() => RemitConfigOccupation, { onDelete: "NO ACTION", nullable: true })
|
||||||
|
@JoinColumn()
|
||||||
|
occupation: RemitConfigOccupation;
|
||||||
|
|
||||||
|
@ManyToOne(() => RemitConfigBusinessType, { onDelete: "NO ACTION", nullable: true })
|
||||||
|
@JoinColumn()
|
||||||
|
business_type: RemitConfigBusinessType;
|
||||||
|
|
||||||
|
@ManyToOne(() => RemitConfigBusinessField, { onDelete: "NO ACTION", nullable: true })
|
||||||
|
@JoinColumn()
|
||||||
|
business_field: RemitConfigBusinessField;
|
||||||
|
|
||||||
|
@ManyToOne(() => RemitConfigNationalities, { onDelete: "NO ACTION", nullable: true })
|
||||||
|
@JoinColumn()
|
||||||
|
nationality: RemitConfigNationalities;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,6 +15,8 @@ import { RemitAdministrativu } from "./remit_administrativus";
|
|||||||
import { RemitSuco } from "./remit_sucos";
|
import { RemitSuco } from "./remit_sucos";
|
||||||
import { RemitAldeia } from "./remit_aldeias";
|
import { RemitAldeia } from "./remit_aldeias";
|
||||||
import { RemitSenderIdentity } from "./remit_sender_identities";
|
import { RemitSenderIdentity } from "./remit_sender_identities";
|
||||||
|
import { RemitConfigBusinessType } from "./remit_config_business_types";
|
||||||
|
import { RemitConfigBusinessField } from "./remit_config_business_fields";
|
||||||
|
|
||||||
@Entity("remit_senders", { schema: "remits" })
|
@Entity("remit_senders", { schema: "remits" })
|
||||||
export class RemitSender {
|
export class RemitSender {
|
||||||
@ -139,4 +141,12 @@ export class RemitSender {
|
|||||||
@ManyToOne(() => RemitSender, { onDelete: "NO ACTION", nullable: true })
|
@ManyToOne(() => RemitSender, { onDelete: "NO ACTION", nullable: true })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
parent: RemitSender;
|
parent: RemitSender;
|
||||||
|
|
||||||
|
@ManyToOne(() => RemitConfigBusinessType, { onDelete: "NO ACTION", nullable: true })
|
||||||
|
@JoinColumn()
|
||||||
|
business_type: RemitConfigBusinessType;
|
||||||
|
|
||||||
|
@ManyToOne(() => RemitConfigBusinessField, { onDelete: "NO ACTION", nullable: true })
|
||||||
|
@JoinColumn()
|
||||||
|
business_field: RemitConfigBusinessField;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,6 +9,7 @@ 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 { RemitConfigRate } from "./remit_config_rates";
|
import { RemitConfigRate } from "./remit_config_rates";
|
||||||
|
import { RemitMunisipo } from "./remit_munisipos";
|
||||||
|
|
||||||
@Entity("remit_transactions", { schema: "remits" })
|
@Entity("remit_transactions", { schema: "remits" })
|
||||||
export class RemitTransaction {
|
export class RemitTransaction {
|
||||||
@ -29,11 +30,11 @@ export class RemitTransaction {
|
|||||||
})
|
})
|
||||||
reference: string;
|
reference: string;
|
||||||
|
|
||||||
@ManyToOne(() => RemitPartner, { onDelete: "RESTRICT" })
|
@ManyToOne(() => RemitPartner, { onDelete: "NO ACTION" })
|
||||||
@JoinTable()
|
@JoinTable()
|
||||||
partner: RemitPartner;
|
partner: RemitPartner;
|
||||||
|
|
||||||
@ManyToOne(() => RemitSender, { onDelete: "RESTRICT" })
|
@ManyToOne(() => RemitSender, { onDelete: "NO ACTION" })
|
||||||
@JoinTable()
|
@JoinTable()
|
||||||
sender: RemitSender;
|
sender: RemitSender;
|
||||||
|
|
||||||
@ -41,14 +42,18 @@ export class RemitTransaction {
|
|||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
benefecial: RemitBeneficial;
|
benefecial: RemitBeneficial;
|
||||||
|
|
||||||
@ManyToOne(() => RemitBeneficiary, { onDelete: "RESTRICT" })
|
@ManyToOne(() => RemitBeneficiary, { onDelete: "NO ACTION" })
|
||||||
@JoinTable()
|
@JoinTable()
|
||||||
beneficiary: RemitBeneficiary;
|
beneficiary: RemitBeneficiary;
|
||||||
|
|
||||||
@ManyToOne(() => RemitConfigPurpose, { onDelete: "RESTRICT" })
|
@ManyToOne(() => RemitConfigPurpose, { onDelete: "NO ACTION" })
|
||||||
@JoinTable()
|
@JoinTable()
|
||||||
purpose: RemitConfigPurpose;
|
purpose: RemitConfigPurpose;
|
||||||
|
|
||||||
|
@ManyToOne(() => RemitMunisipo, { onDelete: "NO ACTION", nullable: true })
|
||||||
|
@JoinTable()
|
||||||
|
munisipo: RemitMunisipo;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 5,
|
length: 5,
|
||||||
|
|||||||
Reference in New Issue
Block a user