-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinput.txt
92 lines (92 loc) · 932 Bytes
/
input.txt
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
//Insert 5 books - Hunger Games as comic(saved as 2 unique digital and physical) , Anna Karenina as paperback, To Kill a Mockingbird as eBook,
//Where the Sidewalk Ends as Audiobook,Forbes as Magazine(saved as 2 unique digital and physical)
1
1
7
Hunger Games
Suzanne Collins
1
5
1
1
4
Anna Karenina
Leo Tolsoy
1
1
1
To Kill a Mockingbird
Harper Lee
3
1
1
2
Where the Sidewalk Ends
Shel Silverstein
7
1
1
6
Forbes
Forbes Organisation
1
100
1
1
3
The Siege
Helen Dunmore
1
1
7
Bad Blood
Lorna Sage
2
//Inserting 3 users
2
1
Sam
15
2
1
Tom
20
2
1
Tim
28
//borrowing hunger games
2
2
Sam
7
Hunger Games
1
//returning hunger games
2
3
Sam
7
Hunger Games
1
//JSON
//Insert Book
{
"booktype":2,
"name":"Journey 150",
"author":"Samuel",
"capacity":5,
"borrowed":0
}
//insert user
{
"name":"Samuel",
"age":12,
"books":[]
}
//borrow or return
{
"name":"Tim",
"type":3,
"bookname":"Anna Karenina"
}