This commit is contained in:
fro1991
2025-11-21 00:39:21 +09:00
parent 879a15c351
commit d458283076

View File

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