This commit is contained in:
fro1991
2025-02-12 10:22:33 +07:00
3 changed files with 64 additions and 1 deletions

View File

@ -38,7 +38,7 @@ export class BankGaransi {
@Column({ @Column({
nullable: true, nullable: true,
length: 4096, length: 256,
}) })
applicant_account_number: string; applicant_account_number: string;

View File

@ -1,5 +1,6 @@
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 { 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';
@ -15,6 +16,11 @@ export class BankGaransiPending {
}) })
open_date: Date; open_date: Date;
@Column({
nullable: true,
})
application_date: Date;
@Column({ @Column({
nullable: true, nullable: true,
}) })
@ -26,6 +32,18 @@ export class BankGaransiPending {
}) })
name: string; name: string;
@Column({
nullable: true,
length: 4096,
})
applicant_address: string;
@Column({
nullable: true,
length: 4096,
})
applicant_account_number: string;
@Column({ @Column({
nullable: true, nullable: true,
length: 256, length: 256,
@ -44,6 +62,12 @@ export class BankGaransiPending {
}) })
contract_number: string; contract_number: string;
@Column({
nullable: true,
length: 256,
})
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
bank_garansi_type: BankGaransiType; bank_garansi_type: BankGaransiType;
@ -57,6 +81,12 @@ export class BankGaransiPending {
}) })
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,
@ -102,6 +132,34 @@ export class BankGaransiPending {
}) })
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;
@ManyToOne(() => Branch, { onDelete: "RESTRICT" })
@JoinColumn()
branch: Branch;
@Column() @Column()
@CreateDateColumn() @CreateDateColumn()
created_at: Date; created_at: Date;

View File

@ -1,5 +1,6 @@
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 { BankGaransi } from "./bank_garansi"; import { BankGaransi } from "./bank_garansi";
import { BankGaransiPending } from "./bank_garansi_pending";
@Entity("bank_garansi_pic") @Entity("bank_garansi_pic")
export class BankGaransiPic { export class BankGaransiPic {
@ -10,6 +11,10 @@ export class BankGaransiPic {
@JoinColumn() @JoinColumn()
bank_garansi: BankGaransi; bank_garansi: BankGaransi;
@ManyToOne(() => BankGaransiPending)
@JoinColumn()
bank_garansi_pending: BankGaransiPending;
@Column({ @Column({
nullable: true, nullable: true,
length: 256, length: 256,