-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema
80 lines (80 loc) · 1.04 KB
/
schema
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
/**
* This file contains the schema of the database.
*
* Books
* |
* |___ID AS PRIMARY KEY
* |
* |___ISBN
* |
* |___Title
* |
* |___Author Name
* |
* |___Image URL
* |
* |___Publisher name
* |
* |___Genre
* | |
* | |___Foregin key to Genre
* |
* |___Description
* |
* |___Rating
*
*
* Users
* |
* |___id
* | |
* | |___Primary Key
* |
* |___firstname
* |
* |___lastname
* |
* |___Password
* |
* |___E-mail id
* |
* |___Number of books issued
* |
* |___Profile Image
* |
* |___isAdmin
* |
* |___address
* |
* |___username
*
*
* Issue History
* |
* |___User ID
* | |
* | |___Foregin key to User.id
* |
* |___Book ID
* | |
* | |___Foregin key to Books.id
* |
* |___Issue date
* |
* |___Rating
*
*
* Genre
* |
* |___ID as PRIMARY KEY
* |
* |___Name
*
* Comments
* |
* |___ID as PRIMARY KEY
* |
* |___userID as FOREIGN KEY To User.id
* |
* |___Comment
**/