-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
56 lines (51 loc) · 980 Bytes
/
types.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
54
55
56
export type User = {
email: string;
google_id: string;
name: string;
photo: string;
admin: number;
num_reviews: number;
banned: number;
};
export type Feedback = {
id: number;
email: string;
name: string;
course_code: string;
recommend: number;
anonymous: number;
general_feedback: string;
general_feedback_score: number;
grading: string;
grading_score: number;
liteness: string;
liteness_score: number;
suggestions: string;
upvotes: number;
downvotes: number;
review_title: string;
photo: string;
timestamp: number;
};
export type Attachment = {
id: number;
name: string;
weburl: string;
course_code: string;
timestamp: number;
};
export type Course = {
com_code: number;
course_code: string;
course_name: string;
instructors: string;
hits: number;
};
export type Without<T, K> = Pick<T, Exclude<keyof T, K>>;
declare global {
namespace Express {
interface Request {
user?: User;
}
}
}