-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.json
70 lines (60 loc) · 1.78 KB
/
schema.json
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
61
62
63
64
65
66
67
68
69
70
{
"books" : {
"_id" : "object(b823d77af...)",
"name" : "some-name",
"categories" : ["Electronics", "Computer", "Comic"],
"first-publish-date" : "01-02-2016",
"publish-duration" : "30 days",
"publish-start-date" : "5-05-2016",
"publish-end-date " : "5-06-2016",
"pages" : "167",
"cover-img " : "path-of-cover-image-of-book.jpg",
"pdf-path" : "/pdf/xyz.pdf",
"views " : "30",
"response" : "14",
"response-ratio" : "0.46",
"slug" : "some-url-with-dashes",
"publisher" : "_id of publisher"
},
"user" : {
"_id" : "object(a4bdfe752....)",
"username" : "ankitwrk or something else.",
"name" : "Ankit Yadav",
"email" : "[email protected]",
"Mobile" : "8087850104",
"Password" : "ff328f3c4b162768c86433a09e7329ee0f2f10fa",
"profile-img " : "path-of-profile-image.jpg",
"verified" : "0 or 1",
"role" : "Publisher/reader",
"Packages" : [
{
"_id" : "object(a67b23c45f23ed....)",
"name" : "freemium",
"book-limit" : "1"
},
{
"_id" : "object(ab32bd12fe....)",
"name" : "pre-mium",
"book-limit" : "10"
},
{
"_id" : "object(a56b2d12fe...)",
"name" : "pro-mium",
"book-limit" : "unlimited"
}
],
"categories" : ["Electronics", "Computer", "Comic"],
"Favourite-books" : [ "object_id_of_book1", "object_id_of_book2"],
"Completed-books" : [ "object_id_of_book1", "object_id_of_book2"],
"half-read-books" : [
{
"object_id_of_book1" : "object(a234b87df23e...)",
"last_page" : "123"
},
{
"object_id_of_book2" : "object(23b87a7f...)",
"last_page" : "67"
}
]
}
}