-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.d.ts
53 lines (47 loc) · 925 Bytes
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
export type NAV_LINK = {
id: string;
path: string;
name: string;
};
export type Video = {
video_id: string;
video_url: string;
course_id: string;
section_id?: string;
};
export type SubSection = {
title: string;
video: Video;
};
export type Section = {
section_id: string;
course_id: string;
section_title: string;
sub_sections: SubSection[];
};
export type Course = {
course_id: string;
course_name: string;
instructor_id: string;
image_url: string;
category: string;
project_id: string;
project_name: string;
demo_video: Video;
sections: Section[];
description: string;
average_rating: number;
};
export type Project = {
project_id: string;
project_name: string;
date_created: Date;
courses: Course[];
created_by: string;
};
export type User = {
user_id: string;
role: string; // default to 'user'
date_joined: string;
courses_purchased: Course[];
};