update
This commit is contained in:
72
src/entity/remit_sender_identities.ts
Normal file
72
src/entity/remit_sender_identities.ts
Normal file
@ -0,0 +1,72 @@
|
||||
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||
import { RemitPartner } from "./remit_partners";
|
||||
import { District } from "./district";
|
||||
import { Munisipo } from "./munisipo";
|
||||
import { Administrativu } from "./administrativu";
|
||||
import { Suco } from "./suco";
|
||||
import { Aldeia } from "./aldeia";
|
||||
import { RemitConfigNationalities } from "./remit_config_nationalities";
|
||||
import { RemitConfigOccupation } from "./remit_config_occupations";
|
||||
import { RemitGender, RemitIdentityType, RemitSenderType } from "../types/remit";
|
||||
import { RemitConfigSourceIncome } from "./remit_config_source_incomes";
|
||||
import { RemitBeneficial } from "./remit_beneficials";
|
||||
import { RemitMunisipo } from "./remit_munisipos";
|
||||
import { RemitAdministrativu } from "./remit_administrativus";
|
||||
import { RemitSuco } from "./remit_sucos";
|
||||
import { RemitAldeia } from "./remit_aldeias";
|
||||
import { RemitSender } from "./remit_senders";
|
||||
|
||||
@Entity("remit_sender_identities", { schema: "remits" })
|
||||
export class RemitSenderIdentity {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ManyToOne(() => RemitSender, { onDelete: "NO ACTION", nullable: true })
|
||||
@JoinColumn()
|
||||
sender: RemitSender;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
type: RemitIdentityType;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
number: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
issued_place: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
expired_at: string;
|
||||
|
||||
@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;
|
||||
}
|
||||
@ -111,24 +111,6 @@ export class RemitSender {
|
||||
@JoinColumn()
|
||||
source_income: RemitConfigSourceIncome;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 4096,
|
||||
})
|
||||
identity_type: RemitIdentityType;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 4096,
|
||||
})
|
||||
identity_number: String;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 4096,
|
||||
})
|
||||
identity_file: String;
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
|
||||
@ -105,7 +105,9 @@ import { RemitPartnerOwners } from "./entity/remit_partner_owners";
|
||||
import { RemitPartnerUser } from "./entity/remit_partner_users";
|
||||
import { RemitPartner } from "./entity/remit_partners";
|
||||
import { RemitSender } from "./entity/remit_senders";
|
||||
import { RemitSenderIdentity } from "./entity/remit_sender_identities";
|
||||
import { RemitTransaction } from "./entity/remit_transactions";
|
||||
|
||||
import {
|
||||
RemitPartnerType,
|
||||
RemitPartnerStatus,
|
||||
@ -163,6 +165,7 @@ import { BriapiAppendixBank } from "./entity/briapi_appendix_banks";
|
||||
import { BriapiAppendixWallet } from "./entity/briapi_appendix_wallets";
|
||||
import { BriapiAppendixId } from "./entity/briapi_appendix_ids";
|
||||
|
||||
|
||||
export {
|
||||
User, //
|
||||
UserRole,
|
||||
@ -350,5 +353,6 @@ export {
|
||||
RemitPartnerUser,
|
||||
RemitPartner,
|
||||
RemitSender,
|
||||
RemitSenderIdentity,
|
||||
RemitTransaction
|
||||
};
|
||||
|
||||
@ -24,6 +24,7 @@ export enum RemitIdentityType {
|
||||
"electoral" = "electoral",
|
||||
"bilhete de identidade" = "bi",
|
||||
"passport" = "passport",
|
||||
"visa" = "visa",
|
||||
"citizen personal id" = "citizen_personal_id",
|
||||
"driver_license" = "driver_license"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user