update tbale
This commit is contained in:
@ -9,13 +9,13 @@ export class Administrativu {
|
|||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
length: 32
|
length: 128
|
||||||
})
|
})
|
||||||
code: string;
|
code: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
length: 128
|
length: 256
|
||||||
})
|
})
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
|
|||||||
@ -9,13 +9,13 @@ export class Aldeia {
|
|||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
length: 32
|
length: 128
|
||||||
})
|
})
|
||||||
code: string;
|
code: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
length: 128
|
length: 256
|
||||||
})
|
})
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,13 @@
|
|||||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from 'typeorm';
|
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, JoinColumn, ManyToOne } 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 {
|
export class CifAccount {
|
||||||
@ -23,34 +32,18 @@ export class CifAccount {
|
|||||||
})
|
})
|
||||||
account_number: string;
|
account_number: string;
|
||||||
|
|
||||||
@Column({
|
@ManyToOne(() => Branch, { onDelete: "RESTRICT" })
|
||||||
nullable: true,
|
@JoinColumn()
|
||||||
length: 128
|
branch: Branch
|
||||||
})
|
|
||||||
branch_code: string;
|
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: true,
|
|
||||||
length: 128
|
|
||||||
})
|
|
||||||
branch_name: string;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
})
|
})
|
||||||
open_date: Date;
|
open_date: Date;
|
||||||
|
|
||||||
@Column({
|
@ManyToOne(() => Product, { onDelete: "RESTRICT" })
|
||||||
type: 'int4',
|
@JoinColumn()
|
||||||
nullable: true,
|
product: Product
|
||||||
})
|
|
||||||
product_type: number;
|
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: true,
|
|
||||||
length: 256
|
|
||||||
})
|
|
||||||
product_description: string;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
type: 'float8',
|
type: 'float8',
|
||||||
@ -76,11 +69,9 @@ export class CifAccount {
|
|||||||
})
|
})
|
||||||
exposed_person_flag: string;
|
exposed_person_flag: string;
|
||||||
|
|
||||||
@Column({
|
@ManyToOne(() => IncomeTier, { onDelete: "RESTRICT" })
|
||||||
nullable: true,
|
@JoinColumn()
|
||||||
length: 128
|
income_tier: IncomeTier
|
||||||
})
|
|
||||||
income_tiering: string;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
@ -105,41 +96,29 @@ export class CifAccount {
|
|||||||
})
|
})
|
||||||
birth_date: Date;
|
birth_date: Date;
|
||||||
|
|
||||||
@Column({
|
@ManyToOne(() => ClassEconomi, { onDelete: "RESTRICT" })
|
||||||
// type: 'uuid',
|
@JoinColumn()
|
||||||
nullable: true,
|
class_economi: ClassEconomi
|
||||||
})
|
|
||||||
economic_sub_clasification: string;
|
|
||||||
|
|
||||||
@Column({
|
@ManyToOne(() => District, { onDelete: "RESTRICT" })
|
||||||
// type: 'uuid',
|
@JoinColumn()
|
||||||
nullable: true,
|
district: District
|
||||||
})
|
|
||||||
district: string;
|
|
||||||
|
|
||||||
@Column({
|
@ManyToOne(() => Munisipo, { onDelete: "RESTRICT" })
|
||||||
// type: 'uuid',
|
@JoinColumn()
|
||||||
nullable: true,
|
munisipiu: Munisipo
|
||||||
})
|
|
||||||
munisipiu: string;
|
|
||||||
|
|
||||||
@Column({
|
@ManyToOne(() => Administrativu, { onDelete: "RESTRICT" })
|
||||||
// type: 'uuid',
|
@JoinColumn()
|
||||||
nullable: true,
|
administrativu: Administrativu
|
||||||
})
|
|
||||||
administrativu: string;
|
|
||||||
|
|
||||||
@Column({
|
@ManyToOne(() => Suco, { onDelete: "RESTRICT" })
|
||||||
// type: 'uuid',
|
@JoinColumn()
|
||||||
nullable: true,
|
suco: Suco
|
||||||
})
|
|
||||||
suco: string;
|
|
||||||
|
|
||||||
@Column({
|
@ManyToOne(() => Aldeia, { onDelete: "RESTRICT" })
|
||||||
// type: 'uuid',
|
@JoinColumn()
|
||||||
nullable: true,
|
aldeia: Aldeia
|
||||||
})
|
|
||||||
aldeia: string;
|
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
|
|||||||
@ -9,13 +9,13 @@ export class ClassEconomi {
|
|||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
length: 32
|
length: 256
|
||||||
})
|
})
|
||||||
code: string;
|
code: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
length: 128
|
length: 256
|
||||||
})
|
})
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
|
|||||||
@ -9,13 +9,13 @@ export class District {
|
|||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
length: 32
|
length: 128
|
||||||
})
|
})
|
||||||
code: string;
|
code: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
length: 128
|
length: 256
|
||||||
})
|
})
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
|
|||||||
@ -9,13 +9,13 @@ export class IncomeTier {
|
|||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
length: 32
|
length: 128
|
||||||
})
|
})
|
||||||
code: string;
|
code: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
length: 128
|
length: 256
|
||||||
})
|
})
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from 'typeorm';
|
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, JoinColumn, ManyToOne } from 'typeorm';
|
||||||
|
import { Product } from './products';
|
||||||
|
|
||||||
@Entity('lnkolek')
|
@Entity('lnkolek')
|
||||||
export class LNKOLEK {
|
export class LNKOLEK {
|
||||||
@PrimaryGeneratedColumn('uuid')
|
@PrimaryGeneratedColumn('uuid')
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@Column({
|
@ManyToOne(() => Product, { onDelete: "RESTRICT" })
|
||||||
nullable: false
|
@JoinColumn()
|
||||||
})
|
product: Product
|
||||||
type: string;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
type: 'float',
|
type: 'float',
|
||||||
nullable: false
|
nullable: false
|
||||||
})
|
})
|
||||||
rate: string;
|
rate: number;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
@ -34,18 +34,6 @@ export class LNKOLEK {
|
|||||||
})
|
})
|
||||||
loan_number: string;
|
loan_number: string;
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: false,
|
|
||||||
length: 4
|
|
||||||
})
|
|
||||||
branch_code: string;
|
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: true,
|
|
||||||
length: 128
|
|
||||||
})
|
|
||||||
branch_name: string;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
})
|
})
|
||||||
@ -99,13 +87,13 @@ export class LNKOLEK {
|
|||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
type: 'float',
|
type: 'float',
|
||||||
nullable: false,
|
nullable: true,
|
||||||
})
|
})
|
||||||
ppap_percent: number;
|
ppap_percent: number;
|
||||||
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: true,
|
||||||
})
|
})
|
||||||
ppap: string;
|
ppap: string;
|
||||||
|
|
||||||
|
|||||||
@ -19,12 +19,30 @@ export class LogPull {
|
|||||||
})
|
})
|
||||||
filename: string;
|
filename: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 32
|
||||||
|
})
|
||||||
|
branch_code: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 32
|
||||||
|
})
|
||||||
|
date_index: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
default: false
|
default: false
|
||||||
})
|
})
|
||||||
is_file_deleted: boolean;
|
is_file_deleted: boolean;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
type: 'text'
|
||||||
|
})
|
||||||
|
error_log: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
length: 64
|
length: 64
|
||||||
@ -35,6 +53,15 @@ export class LogPull {
|
|||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
created_at: Date;
|
created_at: Date;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
@UpdateDateColumn()
|
||||||
|
updated_at: Date;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true
|
||||||
|
})
|
||||||
|
scheduled_at: Date;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true
|
nullable: true
|
||||||
})
|
})
|
||||||
|
|||||||
@ -9,13 +9,13 @@ export class Munisipo {
|
|||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
length: 32
|
length: 128
|
||||||
})
|
})
|
||||||
code: string;
|
code: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
length: 128
|
length: 256
|
||||||
})
|
})
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
|
|||||||
@ -9,13 +9,13 @@ export class Suco {
|
|||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
length: 32
|
length: 128
|
||||||
})
|
})
|
||||||
code: string;
|
code: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
length: 128
|
length: 256
|
||||||
})
|
})
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
|
|||||||
89
src/entity/trial_balance_branch.ts
Normal file
89
src/entity/trial_balance_branch.ts
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, JoinColumn, ManyToOne } from 'typeorm';
|
||||||
|
import { Branch } from './branchs';
|
||||||
|
|
||||||
|
@Entity('trial_balance_branch')
|
||||||
|
export class TrialBalanceBranch {
|
||||||
|
@PrimaryGeneratedColumn('uuid')
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: false,
|
||||||
|
length: 64
|
||||||
|
})
|
||||||
|
ledger: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => Branch, { onDelete: "RESTRICT" })
|
||||||
|
@JoinColumn()
|
||||||
|
branch: Branch
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256
|
||||||
|
})
|
||||||
|
description: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 32
|
||||||
|
})
|
||||||
|
type: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 1
|
||||||
|
})
|
||||||
|
dc: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
type: 'float8',
|
||||||
|
nullable: false,
|
||||||
|
})
|
||||||
|
initial_balance: number;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
type: 'float8',
|
||||||
|
nullable: false,
|
||||||
|
})
|
||||||
|
debet_transaction: number;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
type: 'float8',
|
||||||
|
nullable: false,
|
||||||
|
})
|
||||||
|
credit_transaction: number;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
type: 'float8',
|
||||||
|
nullable: false,
|
||||||
|
})
|
||||||
|
closing_balance: number;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
type: 'float8',
|
||||||
|
nullable: false,
|
||||||
|
})
|
||||||
|
closing_balance_eq: number;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: false,
|
||||||
|
length: 3
|
||||||
|
})
|
||||||
|
currency: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: false,
|
||||||
|
})
|
||||||
|
position_date: Date;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
@CreateDateColumn()
|
||||||
|
created_at: Date;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
@UpdateDateColumn()
|
||||||
|
updated_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
@DeleteDateColumn()
|
||||||
|
deleted_at: Date;
|
||||||
|
}
|
||||||
@ -1,7 +1,8 @@
|
|||||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from 'typeorm';
|
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, JoinColumn, ManyToOne } from 'typeorm';
|
||||||
|
import { Branch } from './branchs';
|
||||||
|
|
||||||
@Entity('trial_balance')
|
@Entity('trial_balance_consolidation')
|
||||||
export class TrialBalance {
|
export class TrialBalanceConsolidation {
|
||||||
@PrimaryGeneratedColumn('uuid')
|
@PrimaryGeneratedColumn('uuid')
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@ -12,19 +13,19 @@ export class TrialBalance {
|
|||||||
ledger: string;
|
ledger: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: true,
|
||||||
length: 256
|
length: 256
|
||||||
})
|
})
|
||||||
description: string;
|
description: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: true,
|
||||||
length: 32
|
length: 32
|
||||||
})
|
})
|
||||||
type: string;
|
type: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: true,
|
||||||
length: 1
|
length: 1
|
||||||
})
|
})
|
||||||
dc: string;
|
dc: string;
|
||||||
@ -1,6 +1,7 @@
|
|||||||
import { CifAccount } from "./entity/cif_account";
|
import { CifAccount } from "./entity/cif_account";
|
||||||
import { LNKOLEK } from "./entity/lnkolek";
|
import { LNKOLEK } from "./entity/lnkolek";
|
||||||
import { TrialBalance } from "./entity/trial_balance";
|
import { TrialBalanceBranch } from "./entity/trial_balance_branch";
|
||||||
|
import { TrialBalanceConsolidation } from "./entity/trial_balance_consolidation";
|
||||||
import { UserActivity } from "./entity/user_activity";
|
import { UserActivity } from "./entity/user_activity";
|
||||||
import { UserRefreshToken } from "./entity/user_refresh_token";
|
import { UserRefreshToken } from "./entity/user_refresh_token";
|
||||||
import { User } from "./entity/users";
|
import { User } from "./entity/users";
|
||||||
@ -29,7 +30,8 @@ export {
|
|||||||
UserRole,
|
UserRole,
|
||||||
UserActivity,
|
UserActivity,
|
||||||
UserRefreshToken,
|
UserRefreshToken,
|
||||||
TrialBalance,
|
TrialBalanceBranch,
|
||||||
|
TrialBalanceConsolidation,
|
||||||
LNKOLEK,
|
LNKOLEK,
|
||||||
CifAccount,
|
CifAccount,
|
||||||
ActivityType,
|
ActivityType,
|
||||||
|
|||||||
Reference in New Issue
Block a user