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_category')
export class TenderCategory extends PcdBaseEntity{

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

    @Column({
        name:"tender_category",
        type:"varchar",
        nullable:true
    })
    tenderCategory:string

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

}