Merge branch 'main' of https://git.shiblysolution.id/BRITL/entity
This commit is contained in:
@ -38,7 +38,7 @@ export class BankGaransi {
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 4096,
|
||||
length: 256,
|
||||
})
|
||||
applicant_account_number: string;
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||
import { BankGaransiType } from "./bank_garansi_type";
|
||||
import { Branch } from "./branchs";
|
||||
|
||||
// import { CategorySource } from '../types/category_source';
|
||||
// import { Status } from '../types/status';
|
||||
@ -15,6 +16,11 @@ export class BankGaransiPending {
|
||||
})
|
||||
open_date: Date;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
})
|
||||
application_date: Date;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
})
|
||||
@ -26,6 +32,18 @@ export class BankGaransiPending {
|
||||
})
|
||||
name: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 4096,
|
||||
})
|
||||
applicant_address: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 4096,
|
||||
})
|
||||
applicant_account_number: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
@ -44,6 +62,12 @@ export class BankGaransiPending {
|
||||
})
|
||||
contract_number: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
contract_date: string;
|
||||
|
||||
@ManyToOne(() => BankGaransiType, (bank_garansi_type) => bank_garansi_type.bank_garansi)
|
||||
@JoinColumn({ name: "bgTypeId" }) // Add foreign key column
|
||||
bank_garansi_type: BankGaransiType;
|
||||
@ -57,6 +81,12 @@ export class BankGaransiPending {
|
||||
})
|
||||
project_owner: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 4096,
|
||||
})
|
||||
project_owner_address: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
@ -102,6 +132,34 @@ export class BankGaransiPending {
|
||||
})
|
||||
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()
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||
import { BankGaransi } from "./bank_garansi";
|
||||
import { BankGaransiPending } from "./bank_garansi_pending";
|
||||
|
||||
@Entity("bank_garansi_pic")
|
||||
export class BankGaransiPic {
|
||||
@ -10,6 +11,10 @@ export class BankGaransiPic {
|
||||
@JoinColumn()
|
||||
bank_garansi: BankGaransi;
|
||||
|
||||
@ManyToOne(() => BankGaransiPending)
|
||||
@JoinColumn()
|
||||
bank_garansi_pending: BankGaransiPending;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
|
||||
Reference in New Issue
Block a user