fix(db): align course metadata types with validation schema

Make reward.description and instructor.coursesNo optional in the course
metadata JSON type so API builds match Zod validation.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Rotimi Best
2026-06-16 20:36:01 +01:00
co-authored by Cursor
parent e9c41fa595
commit ab735505e5
+2 -2
View File
@@ -657,12 +657,12 @@ export const course = pgTable(
paymentLink?: string;
reward?: {
show: boolean;
description: string;
description?: string;
};
instructor?: {
name: string;
role: string;
coursesNo: number;
coursesNo?: number;
description: string;
imgUrl: string;
};