add remarks to each approval role

This commit is contained in:
fadlydev
2025-02-04 20:22:49 +07:00
parent 99c9b85be3
commit 9303f3f3ab

View File

@ -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<{