From 9303f3f3abb77b90f3ed18301ec835ae53154683 Mon Sep 17 00:00:00 2001 From: fadlydev Date: Tue, 4 Feb 2025 20:22:49 +0700 Subject: [PATCH] add remarks to each approval role --- src/entity/request_orders.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/entity/request_orders.ts b/src/entity/request_orders.ts index e28515a..f8f0e9a 100644 --- a/src/entity/request_orders.ts +++ b/src/entity/request_orders.ts @@ -50,6 +50,9 @@ export class RequestOrder { @Column({ type: 'enum', enum: ApprovalStatus, default: ApprovalStatus.PENDING }) spv_approval_status: ApprovalStatus; + @Column({ type: 'text', nullable: true }) + spv_approval_remarks: string | null; + // General Manager Approval @Column({ type: 'varchar', nullable: true }) approved_by_gm: string | null; @@ -60,6 +63,9 @@ export class RequestOrder { @Column({ type: 'enum', enum: ApprovalStatus, default: ApprovalStatus.PENDING }) gm_approval_status: ApprovalStatus; + @Column({ type: 'text', nullable: true }) + gm_approval_remarks: string | null; + // General Affairs (GA) Approval @Column({ type: 'varchar', nullable: true }) approved_by_ga: string | null; @@ -70,6 +76,10 @@ export class RequestOrder { @Column({ type: 'enum', enum: ApprovalStatus, default: ApprovalStatus.PENDING }) ga_approval_status: ApprovalStatus; + @Column({ type: 'text', nullable: true }) + ga_approval_remarks: string | null; + + // Storing goods as a JSON array, Use 'jsonb' for PostgreSQL or 'json' for MySQL @Column({ type: 'jsonb', nullable: true }) goods: Array<{