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('payment-mode')
export class PaymentMode extends PcdBaseEntity{

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

    @Column({
        name:"payment_mode",
        type:"varchar",
        nullable:true
    })
    paymentMode:string

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