update
This commit is contained in:
@ -1,40 +1,40 @@
|
|||||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, JoinColumn, ManyToOne, Index } from 'typeorm';
|
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, JoinColumn, ManyToOne, Index } from "typeorm";
|
||||||
import { Branch } from './branchs';
|
import { Branch } from "./branchs";
|
||||||
import { Product } from './products';
|
import { Product } from "./products";
|
||||||
import { IncomeTier } from './income_tier';
|
import { IncomeTier } from "./income_tier";
|
||||||
import { ClassEconomi } from './class_economi';
|
import { ClassEconomi } from "./class_economi";
|
||||||
import { District } from './district';
|
import { District } from "./district";
|
||||||
import { Munisipo } from './munisipo';
|
import { Munisipo } from "./munisipo";
|
||||||
import { Administrativu } from './administrativu';
|
import { Administrativu } from "./administrativu";
|
||||||
import { Suco } from './suco';
|
import { Suco } from "./suco";
|
||||||
import { Aldeia } from './aldeia';
|
import { Aldeia } from "./aldeia";
|
||||||
|
|
||||||
@Entity('cif_account')
|
@Entity("cif_account")
|
||||||
export class CifAccount {
|
export class CifAccount {
|
||||||
@PrimaryGeneratedColumn('uuid')
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 12
|
length: 12,
|
||||||
})
|
})
|
||||||
cif_number: string;
|
cif_number: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 128
|
length: 128,
|
||||||
})
|
})
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 20
|
length: 20,
|
||||||
})
|
})
|
||||||
account_number: string;
|
account_number: string;
|
||||||
|
|
||||||
@ManyToOne(() => Branch, { onDelete: "RESTRICT" })
|
@ManyToOne(() => Branch, { onDelete: "RESTRICT" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
branch: Branch
|
branch: Branch;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
@ -49,51 +49,51 @@ export class CifAccount {
|
|||||||
|
|
||||||
@ManyToOne(() => Product, { onDelete: "RESTRICT" })
|
@ManyToOne(() => Product, { onDelete: "RESTRICT" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
product: Product
|
product: Product;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
type: 'float8',
|
type: "float8",
|
||||||
nullable: true,
|
nullable: true,
|
||||||
})
|
})
|
||||||
current_balance: number;
|
current_balance: number;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 2
|
length: 2,
|
||||||
})
|
})
|
||||||
country_code: string;
|
country_code: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 128
|
length: 128,
|
||||||
})
|
})
|
||||||
country_name: string;
|
country_name: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 128
|
length: 128,
|
||||||
})
|
})
|
||||||
exposed_person_flag: string;
|
exposed_person_flag: string;
|
||||||
|
|
||||||
@ManyToOne(() => IncomeTier, { onDelete: "RESTRICT" })
|
@ManyToOne(() => IncomeTier, { onDelete: "RESTRICT" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
income_tier: IncomeTier
|
income_tier: IncomeTier;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 128
|
length: 128,
|
||||||
})
|
})
|
||||||
cif_type: string;
|
cif_type: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
type: 'int2',
|
type: "int2",
|
||||||
nullable: true,
|
nullable: true,
|
||||||
})
|
})
|
||||||
status: number;
|
status: number;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 128
|
length: 128,
|
||||||
})
|
})
|
||||||
gender: string;
|
gender: string;
|
||||||
|
|
||||||
@ -102,29 +102,35 @@ export class CifAccount {
|
|||||||
})
|
})
|
||||||
birth_date: Date;
|
birth_date: Date;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
type: "float8",
|
||||||
|
})
|
||||||
|
age: Number;
|
||||||
|
|
||||||
@ManyToOne(() => ClassEconomi, { onDelete: "RESTRICT" })
|
@ManyToOne(() => ClassEconomi, { onDelete: "RESTRICT" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
class_economi: ClassEconomi
|
class_economi: ClassEconomi;
|
||||||
|
|
||||||
@ManyToOne(() => District, { onDelete: "RESTRICT" })
|
@ManyToOne(() => District, { onDelete: "RESTRICT" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
district: District
|
district: District;
|
||||||
|
|
||||||
@ManyToOne(() => Munisipo, { onDelete: "RESTRICT" })
|
@ManyToOne(() => Munisipo, { onDelete: "RESTRICT" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
munisipiu: Munisipo
|
munisipiu: Munisipo;
|
||||||
|
|
||||||
@ManyToOne(() => Administrativu, { onDelete: "RESTRICT" })
|
@ManyToOne(() => Administrativu, { onDelete: "RESTRICT" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
administrativu: Administrativu
|
administrativu: Administrativu;
|
||||||
|
|
||||||
@ManyToOne(() => Suco, { onDelete: "RESTRICT" })
|
@ManyToOne(() => Suco, { onDelete: "RESTRICT" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
suco: Suco
|
suco: Suco;
|
||||||
|
|
||||||
@ManyToOne(() => Aldeia, { onDelete: "RESTRICT" })
|
@ManyToOne(() => Aldeia, { onDelete: "RESTRICT" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
aldeia: Aldeia
|
aldeia: Aldeia;
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
|
|||||||
Reference in New Issue
Block a user