update credit
This commit is contained in:
76
src/entity/credit_config_insurance.ts
Normal file
76
src/entity/credit_config_insurance.ts
Normal file
@ -0,0 +1,76 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from 'typeorm';
|
||||
|
||||
import { Status } from '../types/status';
|
||||
|
||||
@Entity('credit_config_insurances')
|
||||
export class CreditConfigInsurance {
|
||||
@PrimaryGeneratedColumn('uuid')
|
||||
id: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256
|
||||
})
|
||||
debtor_type: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: 'int2'
|
||||
})
|
||||
age: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: 'int2'
|
||||
})
|
||||
year: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: 'float8'
|
||||
})
|
||||
amount: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256
|
||||
})
|
||||
remark: string;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
default: Status['Not Active'],
|
||||
length: 64
|
||||
})
|
||||
status: Status;
|
||||
|
||||
@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;
|
||||
}
|
||||
@ -48,10 +48,11 @@ import { CreditApplicationForm } from "./entity/credit_application_forms";
|
||||
import { CreditCompanyUser } from "./entity/credit_company_users";
|
||||
import { CreditCompanyUserRefreshToken } from "./entity/credit_company_user_refresh_token";
|
||||
import { CreditApplicationChat } from "./entity/credit_application_chats";
|
||||
import { CreditConfigs } from "./entity/credit_config";
|
||||
import { CreditConfigInsurance } from "./entity/credit_config_insurance";
|
||||
import { Application } from "./entity/application";
|
||||
import { TellerMutation } from "./entity/teller_mutation";
|
||||
import { LogHikvision } from "./entity/log_hikvision";
|
||||
import { CreditConfigs } from "./entity/credit_config";
|
||||
import { BrivaCompany } from "./entity/briva_companies"
|
||||
import { BrivaCompanyUser } from "./entity/briva_company_users"
|
||||
import { BrivaCompanyUserRefreshToken } from "./entity/briva_company_user_refresh_token"
|
||||
@ -131,10 +132,11 @@ export {
|
||||
CreditCompanyUserRefreshToken,
|
||||
CreditApplicationChat,
|
||||
CreditApplicationFileStatus,
|
||||
CreditConfigs,
|
||||
CreditConfigInsurance,
|
||||
Application,
|
||||
TellerMutation,
|
||||
LogHikvision,
|
||||
CreditConfigs,
|
||||
BrivaCompany,
|
||||
BrivaCompanyUser,
|
||||
BrivaCompanyUserRefreshToken,
|
||||
|
||||
Reference in New Issue
Block a user