-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema_example.json
More file actions
142 lines (142 loc) · 4.29 KB
/
Copy pathschema_example.json
File metadata and controls
142 lines (142 loc) · 4.29 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{
"users": {
"description": "Stores information about library members",
"columns": [
{
"name": "user_id",
"type": "uuid",
"description": "Unique identifier for the library member"
},
{
"name": "first_name",
"type": "varchar",
"description": "Member's first name"
},
{
"name": "last_name",
"type": "varchar",
"description": "Member's last name"
},
{
"name": "email",
"type": "varchar",
"description": "Member's email address"
},
{
"name": "membership_date",
"type": "timestamp",
"description": "When the member joined the library"
}
]
},
"books": {
"description": "Catalog of books in the library",
"columns": [
{
"name": "book_id",
"type": "uuid",
"description": "Unique identifier for the book"
},
{
"name": "isbn",
"type": "varchar",
"description": "International Standard Book Number"
},
{
"name": "title",
"type": "varchar",
"description": "Title of the book"
},
{
"name": "author",
"type": "varchar",
"description": "Author of the book"
},
{
"name": "publication_year",
"type": "integer",
"description": "Year the book was published"
},
{
"name": "genre",
"type": "varchar",
"description": "Genre of the book"
},
{
"name": "copies_available",
"type": "integer",
"description": "Number of copies available for borrowing"
}
]
},
"book_loans": {
"description": "Records of books borrowed by members",
"columns": [
{
"name": "loan_id",
"type": "uuid",
"description": "Unique identifier for the loan record"
},
{
"name": "user_id",
"type": "uuid",
"description": "Reference to the user who borrowed the book"
},
{
"name": "book_id",
"type": "uuid",
"description": "Reference to the borrowed book"
},
{
"name": "loan_date",
"type": "timestamp",
"description": "When the book was borrowed"
},
{
"name": "due_date",
"type": "timestamp",
"description": "When the book is due to be returned"
},
{
"name": "return_date",
"type": "timestamp",
"description": "When the book was returned (null if not returned)"
}
]
},
"book_reviews": {
"description": "Reviews and ratings for books",
"columns": [
{
"name": "review_id",
"type": "uuid",
"description": "Unique identifier for the review"
},
{
"name": "book_id",
"type": "uuid",
"description": "Reference to the reviewed book"
},
{
"name": "user_id",
"type": "uuid",
"description": "Reference to the user who wrote the review"
},
{
"name": "rating",
"type": "integer",
"description": "Rating given to the book (1-5)"
},
{
"name": "review_text",
"type": "text",
"description": "Text of the review"
},
{
"name": "review_date",
"type": "timestamp",
"description": "When the review was posted"
}
]
}
}