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 <cursoragent@cursor.com>
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; paymentLink?: string;
reward?: { reward?: {
show: boolean; show: boolean;
description: string; description?: string;
}; };
instructor?: { instructor?: {
name: string; name: string;
role: string; role: string;
coursesNo: number; coursesNo?: number;
description: string; description: string;
imgUrl: string; imgUrl: string;
}; };