import { PcdBaseEntity } from "src/framework/custom/pcd-entity.custom";
import { TenderMaster } from "src/tables/tender-master/tender-master.entity";
import { Column, Entity, JoinColumn, ManyToOne, PrimaryColumn } from "typeorm";

@Entity('payment-instrument')
export class paymentInstrument extends PcdBaseEntity{
    @PrimaryColumn({
        name:"id"
    })
    id:number

    @Column({
        name:"bank_name",
        type:"varchar",
        nullable:true
    })
    bankName:string
    @Column({
        name:"tender_id",
        type:"numeric",
        //length:500,
        nullable:true
    })
    tenderId:number

    @ManyToOne(() => TenderMaster,(tenderMaster)=> tenderMaster.importantDoc)
    @JoinColumn([{ name: "tender_id", referencedColumnName: "id" }])
    tenderIdD:TenderMaster
    
}