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

@Entity('form_of_contract')
export class FormOfContract extends PcdBaseEntity{

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

    @Column({
        name:"form_of_contract",
        type:"varchar",
        length:500,
        nullable:true
    })
    formOfContract:string

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