update entity bank_garansi
This commit is contained in:
@ -1,6 +1,8 @@
|
|||||||
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||||
import { BankGaransiType } from "./bank_garansi_type";
|
import { BankGaransiType } from "./bank_garansi_type";
|
||||||
import { BankGaransiStatus } from "./bank_garansi_status";
|
import { BankGaransiStatus } from "./bank_garansi_status";
|
||||||
|
import { BankGaransiPic } from "./bank_garansi_pic";
|
||||||
|
import { Branch } from "./branchs";
|
||||||
|
|
||||||
// import { CategorySource } from '../types/category_source';
|
// import { CategorySource } from '../types/category_source';
|
||||||
// import { Status } from '../types/status';
|
// import { Status } from '../types/status';
|
||||||
@ -16,6 +18,11 @@ export class BankGaransi {
|
|||||||
})
|
})
|
||||||
open_date: Date;
|
open_date: Date;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
application_date: Date;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
})
|
})
|
||||||
@ -27,6 +34,12 @@ export class BankGaransi {
|
|||||||
})
|
})
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 4096,
|
||||||
|
})
|
||||||
|
submitter_address: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 256,
|
length: 256,
|
||||||
@ -45,11 +58,22 @@ export class BankGaransi {
|
|||||||
})
|
})
|
||||||
bg_number: string;
|
bg_number: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
contract_number: Date;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 4096,
|
||||||
|
})
|
||||||
|
contract_title: String;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 256,
|
length: 256,
|
||||||
})
|
})
|
||||||
contract_number: string;
|
contract_date: string;
|
||||||
|
|
||||||
@ManyToOne(() => BankGaransiType, (bank_garansi_type) => bank_garansi_type.bank_garansi)
|
@ManyToOne(() => BankGaransiType, (bank_garansi_type) => bank_garansi_type.bank_garansi)
|
||||||
@JoinColumn({ name: "bgTypeId" }) // Add foreign key column
|
@JoinColumn({ name: "bgTypeId" }) // Add foreign key column
|
||||||
@ -64,6 +88,12 @@ export class BankGaransi {
|
|||||||
})
|
})
|
||||||
project_owner: string;
|
project_owner: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 4096,
|
||||||
|
})
|
||||||
|
project_owner_address: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 256,
|
length: 256,
|
||||||
@ -158,12 +188,46 @@ export class BankGaransi {
|
|||||||
@Column({ nullable: false })
|
@Column({ nullable: false })
|
||||||
bgStatusId: string;
|
bgStatusId: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => Branch, (branch) => branch.bank_garansi)
|
||||||
|
@JoinColumn({ name: "bgBranchId" })
|
||||||
|
branch: Branch;
|
||||||
|
|
||||||
|
@Column({ nullable: false })
|
||||||
|
bgBranchId: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 4096,
|
length: 4096,
|
||||||
})
|
})
|
||||||
description: string;
|
description: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
tin_number: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
sign_by_name: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
sign_by_title: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 4096,
|
||||||
|
})
|
||||||
|
bri_party: string;
|
||||||
|
|
||||||
|
@OneToMany(() => BankGaransiPic, (bank_garansi_pic) => bank_garansi_pic.bank_garansi)
|
||||||
|
bank_garansi_pic: BankGaransiPic[];
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
created_at: Date;
|
created_at: Date;
|
||||||
|
|||||||
57
src/entity/bank_garansi_pic.ts
Normal file
57
src/entity/bank_garansi_pic.ts
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||||
|
import { BankGaransi } from "./bank_garansi";
|
||||||
|
|
||||||
|
@Entity("bank_garansi_pic")
|
||||||
|
export class BankGaransiPic {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => BankGaransi, (bank_garansi) => bank_garansi.bank_garansi_pic)
|
||||||
|
@JoinColumn({ name: "bgId" })
|
||||||
|
bank_garansi: BankGaransi;
|
||||||
|
|
||||||
|
@Column({ nullable: false })
|
||||||
|
bgId: number;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
name: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
position: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
title: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 4096,
|
||||||
|
})
|
||||||
|
address: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
number_type: string;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
@CreateDateColumn()
|
||||||
|
created_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
@UpdateDateColumn()
|
||||||
|
updated_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
@DeleteDateColumn()
|
||||||
|
deleted_at: Date;
|
||||||
|
}
|
||||||
@ -1,40 +1,44 @@
|
|||||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index } from 'typeorm';
|
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, OneToMany } from "typeorm";
|
||||||
|
|
||||||
import { Status } from '../types/status';
|
import { Status } from "../types/status";
|
||||||
|
import { BankGaransi } from "./bank_garansi";
|
||||||
|
|
||||||
@Entity('branchs')
|
@Entity("branchs")
|
||||||
export class Branch {
|
export class Branch {
|
||||||
@PrimaryGeneratedColumn('uuid')
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
unique: true,
|
unique: true,
|
||||||
length: 6
|
length: 6,
|
||||||
})
|
})
|
||||||
code: string;
|
code: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 256
|
length: 256,
|
||||||
})
|
})
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
length: 64
|
length: 64,
|
||||||
})
|
})
|
||||||
status: Status;
|
status: Status;
|
||||||
|
|
||||||
@Column()
|
@OneToMany(() => BankGaransi, (bank_garansi) => bank_garansi.bgBranchId)
|
||||||
@CreateDateColumn()
|
bank_garansi: BankGaransi[];
|
||||||
created_at: Date;
|
|
||||||
|
|
||||||
@Column({ nullable: true })
|
@Column()
|
||||||
@UpdateDateColumn()
|
@CreateDateColumn()
|
||||||
updated_at: Date;
|
created_at: Date;
|
||||||
|
|
||||||
@Column({ nullable: true })
|
@Column({ nullable: true })
|
||||||
@DeleteDateColumn()
|
@UpdateDateColumn()
|
||||||
deleted_at: Date;
|
updated_at: Date;
|
||||||
}
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
@DeleteDateColumn()
|
||||||
|
deleted_at: Date;
|
||||||
|
}
|
||||||
|
|||||||
@ -31,6 +31,8 @@ import { Target } from "./entity/targets";
|
|||||||
import { BankGaransi } from "./entity/bank_garansi";
|
import { BankGaransi } from "./entity/bank_garansi";
|
||||||
import { BankGaransiType } from "./entity/bank_garansi_type";
|
import { BankGaransiType } from "./entity/bank_garansi_type";
|
||||||
import { BankGaransiStatus } from "./entity/bank_garansi_status";
|
import { BankGaransiStatus } from "./entity/bank_garansi_status";
|
||||||
|
import { BankGaransiPending } from "./entity/bank_garansi_pending";
|
||||||
|
import { BankGaransiPic } from "./entity/bank_garansi_pic";
|
||||||
import { CategoryType } from "./types/category";
|
import { CategoryType } from "./types/category";
|
||||||
import { Summarize } from "./entity/summarizes";
|
import { Summarize } from "./entity/summarizes";
|
||||||
import { SummarizeLog } from "./entity/summarize_log";
|
import { SummarizeLog } from "./entity/summarize_log";
|
||||||
@ -67,7 +69,6 @@ import { GoodsHandover } from "./entity/goods_handover";
|
|||||||
import { AssetJournalEntry } from "./entity/journal_entries";
|
import { AssetJournalEntry } from "./entity/journal_entries";
|
||||||
import { PaymentApproval } from "./entity/payment_approval";
|
import { PaymentApproval } from "./entity/payment_approval";
|
||||||
import { FinanceMemo } from "./entity/finance_memo";
|
import { FinanceMemo } from "./entity/finance_memo";
|
||||||
import { BankGaransiPending } from "./entity/bank_garansi_pending";
|
|
||||||
import { TellerMutation } from "./entity/teller_mutation";
|
import { TellerMutation } from "./entity/teller_mutation";
|
||||||
import { LogHikvision } from "./entity/log_hikvision";
|
import { LogHikvision } from "./entity/log_hikvision";
|
||||||
import { CreditConfigs } from "./entity/credit_config";
|
import { CreditConfigs } from "./entity/credit_config";
|
||||||
@ -114,6 +115,7 @@ export {
|
|||||||
BankGaransiPending,
|
BankGaransiPending,
|
||||||
BankGaransiType,
|
BankGaransiType,
|
||||||
BankGaransiStatus,
|
BankGaransiStatus,
|
||||||
|
BankGaransiPic,
|
||||||
Summarize,
|
Summarize,
|
||||||
SummarizeLog,
|
SummarizeLog,
|
||||||
SummarizeLogStatus,
|
SummarizeLogStatus,
|
||||||
@ -152,5 +154,5 @@ export {
|
|||||||
Application,
|
Application,
|
||||||
TellerMutation,
|
TellerMutation,
|
||||||
LogHikvision,
|
LogHikvision,
|
||||||
CreditConfigs
|
CreditConfigs,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user