forked from wangziqi/gongxue-base
fix: TypeORM rejects string|null union type for mysql
This commit is contained in:
@@ -48,7 +48,7 @@ export class Deposit {
|
|||||||
recordedBy: number;
|
recordedBy: number;
|
||||||
|
|
||||||
@Column({ name: 'refund_status', length: 30, nullable: true })
|
@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 })
|
@Column({ name: 'refund_requested_at', type: 'datetime', nullable: true })
|
||||||
refundRequestedAt: Date;
|
refundRequestedAt: Date;
|
||||||
|
|||||||
Reference in New Issue
Block a user