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

@Entity('tender-type')
export class TenderType extends PcdBaseEntity{

    @PrimaryGeneratedColumn({
        name:"id"
    })
    id:number

    @Column({
        name:"tender_type",
        type:"varchar",
        nullable:true
    })
    tenderType:string


    
    @OneToMany(() => TenderMaster, (tenderMaster) => tenderMaster.tenderTypeD )
    tenderMaster:TenderMaster[]
}