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:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user