update
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn, ManyToMany } from "typeorm";
|
||||||
import { RemitPartner } from "./remit_partners";
|
import { RemitPartner } from "./remit_partners";
|
||||||
import { District } from "./district";
|
import { District } from "./district";
|
||||||
import { Munisipo } from "./munisipo";
|
import { Munisipo } from "./munisipo";
|
||||||
@ -14,6 +14,7 @@ import { RemitMunisipo } from "./remit_munisipos";
|
|||||||
import { RemitAdministrativu } from "./remit_administrativus";
|
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";
|
||||||
|
|
||||||
@Entity("remit_senders", { schema: "remits" })
|
@Entity("remit_senders", { schema: "remits" })
|
||||||
export class RemitSender {
|
export class RemitSender {
|
||||||
@ -85,19 +86,19 @@ export class RemitSender {
|
|||||||
|
|
||||||
@ManyToOne(() => RemitMunisipo, { onDelete: "NO ACTION" })
|
@ManyToOne(() => RemitMunisipo, { onDelete: "NO ACTION" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
munisipo: RemitMunisipo
|
munisipo: RemitMunisipo;
|
||||||
|
|
||||||
@ManyToOne(() => RemitAdministrativu, { onDelete: "NO ACTION" })
|
@ManyToOne(() => RemitAdministrativu, { onDelete: "NO ACTION" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
administrativu: RemitAdministrativu
|
administrativu: RemitAdministrativu;
|
||||||
|
|
||||||
@ManyToOne(() => RemitSuco, { onDelete: "NO ACTION" })
|
@ManyToOne(() => RemitSuco, { onDelete: "NO ACTION" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
suco: RemitSuco
|
suco: RemitSuco;
|
||||||
|
|
||||||
@ManyToOne(() => RemitAldeia, { onDelete: "NO ACTION" })
|
@ManyToOne(() => RemitAldeia, { onDelete: "NO ACTION" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
aldeia: RemitAldeia
|
aldeia: RemitAldeia;
|
||||||
|
|
||||||
@ManyToOne(() => RemitConfigNationalities, { onDelete: "NO ACTION", nullable: true })
|
@ManyToOne(() => RemitConfigNationalities, { onDelete: "NO ACTION", nullable: true })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
@ -115,7 +116,7 @@ export class RemitSender {
|
|||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
created_at: Date;
|
created_at: Date;
|
||||||
|
|
||||||
@Column({ nullable: true, length: 256, })
|
@Column({ nullable: true, length: 256 })
|
||||||
created_by: string;
|
created_by: string;
|
||||||
|
|
||||||
@Column({ nullable: true })
|
@Column({ nullable: true })
|
||||||
@ -131,4 +132,7 @@ export class RemitSender {
|
|||||||
|
|
||||||
@Column({ nullable: true, length: 256 })
|
@Column({ nullable: true, length: 256 })
|
||||||
deleted_by: string;
|
deleted_by: string;
|
||||||
|
|
||||||
|
@ManyToMany(() => RemitSenderIdentity, (identity) => identity.sender)
|
||||||
|
sender_identities: RemitSenderIdentity[];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user