minor fix bg pending
This commit is contained in:
@ -1,7 +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 { Branch } from "./branchs";
|
||||||
import { BankGaransiPic } from "./bank_garansi_pic";
|
|
||||||
|
|
||||||
// import { CategorySource } from '../types/category_source';
|
// import { CategorySource } from '../types/category_source';
|
||||||
// import { Status } from '../types/status';
|
// import { Status } from '../types/status';
|
||||||
@ -11,9 +10,7 @@ import { BankGaransiPic } from "./bank_garansi_pic";
|
|||||||
export class BankGaransiPending {
|
export class BankGaransiPending {
|
||||||
@PrimaryGeneratedColumn("uuid")
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
@ManyToOne(() => BankGaransiPic)
|
|
||||||
@JoinColumn()
|
|
||||||
bankgaransipic: BankGaransiPic;
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
})
|
})
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user