-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.d.ts
60 lines (54 loc) · 907 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
54
55
56
57
58
59
60
import { ReactElement } from "react";
type Review = {
id: string,
user_id: string | undefined,
code_id: string,
review: string,
rating: string,
createdAt: string,
user: {
name:string
}
}
type Code = {
id: string,
user_id: string | undefined,
purchase_id: string,
title: string,
description: string,
price: number,
code_file?: string,
programming_language: string,
category: string,
rating: number,
thumbnail: string
author: string,
createdAt: string,
user: {
name: string,
email: string
}
}
type User = {
id: string,
name: string,
image: string,
phone: string,
email: string,
password: string
}
type Purchase = {
id: string,
code_id: string,
buyer_id: string,
total_amount: number,
quantity: number,
createdAt: string
}
type Test = {
price: number,
title: string,
author: string,
rating: number,
id: string
}