fix: TypeORM rejects string|null union type for mysql

This commit is contained in:
2026-07-06 10:49:59 +08:00
parent 9b0a9749a2
commit 94251b66ce

View File

@@ -48,7 +48,7 @@ export class Deposit {
recordedBy: number;
@Column({ name: 'refund_status', length: 30, nullable: true })
refundStatus: string | null; // pending | head_teacher_approved | finance_approved | refunded
refundStatus: string; // pending | head_teacher_approved | finance_approved | refunded
@Column({ name: 'refund_requested_at', type: 'datetime', nullable: true })
refundRequestedAt: Date;