diff --git a/src/entity/procurement/procurement_work_orders.ts b/src/entity/procurement/procurement_work_orders.ts index c75b577..a12d599 100644 --- a/src/entity/procurement/procurement_work_orders.ts +++ b/src/entity/procurement/procurement_work_orders.ts @@ -2,6 +2,7 @@ import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateCol import { ProcurementTender } from "./procurement_tender"; import { ProcurementWorkOrderStatus } from "../../types/procurement"; import { ProcurementWorkOrderCopy } from "./procurement_work_order_copies"; +import { HrmsEmployee } from "../hrms/hrms_employee"; @Entity("procurement_work_orders", { schema: "procurement" }) export class ProcurementWorkOrder { @@ -40,8 +41,9 @@ export class ProcurementWorkOrder { // SIGNATURE // ========================= - @Column({ length: 256, nullable: true }) - signer_name: string; // ENG. JOSÉ ANTÓNÍO SANCHES + @ManyToOne(() => HrmsEmployee, { nullable: true }) + @JoinColumn() + signer: HrmsEmployee; // ENG. JOSÉ ANTÓNÍO SANCHES @Column({ length: 256, nullable: true }) signer_position: string; // DIRECTOR U-APROVISIONAMENTO ANATL, E.P.