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

@Entity("product_category")
export class ProductCategory extends PcdBaseEntity{
    @PrimaryGeneratedColumn({
        name:"id"
    })
    id:number

    @Column({
        name:"product_category",
        type:"varchar",
        nullable:true
    })
    productCategory:string

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