import { PcdBaseEntity } from "src/framework/custom/pcd-entity.custom";
import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from "typeorm";
import { TenderDoc } from "../tender-documents/tender-doc.entity";

@Entity('document-type')
export class DocumentType extends PcdBaseEntity{
    @PrimaryGeneratedColumn({
        name:"id"
    })
    id:number

    @Column({
        name:"document-type",
        type:"varchar",
        length:500,
        nullable:true
    })
    documentType:string

    
    @OneToMany(() => TenderDoc, (tenderDoc) => tenderDoc.documentTypeD )
    tenderDoc:TenderDoc[]
}