Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gitlab-profile
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
biblio4
gitlab-profile
Commits
c0d7e4e1
Commit
c0d7e4e1
authored
3 months ago
by
Lorenzo BARBEY
Browse files
Options
Downloads
Patches
Plain Diff
Update file README.md
parent
7276c8f3
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+30
-38
30 additions, 38 deletions
README.md
with
30 additions
and
38 deletions
README.md
+
30
−
38
View file @
c0d7e4e1
...
...
@@ -4,42 +4,36 @@
```mermaid
---
title: Biblio4 Schema
title: Biblio4 Schema
- Updated
---
erDiagram
USER ||--o{ COLLECTION
S
: owns
USER ||--o{ COLLECTION : owns
USER {
string username PK
s
ecret
password
_hash
s
tring
password
}
COLLECTION
S
}o--o{ PHYSICAL_BOOK : are_composed_of
COLLECTION
S
{
COLLECTION }o--o{ PHYSICAL_BOOK : are_composed_of
COLLECTION {
uuid id PK
bool isTheMainCollection
string name
string
owner PK,
FK
string
user_id
FK
}
USER ||--o{
ACCESS
_KEY
S
: has
COLLECTION
S
||--o{
ACCESS
_KEY
S
: has
ACCESS
_KEY
S
{
USER ||--o{
SHARE
_KEY : has
COLLECTION ||--o{
SHARE
_KEY : has
SHARE
_KEY {
uuid id PK
uuid collection_id PK, FK
string user_id PK, FK
rights rights
date expiration_date
}
BOOK {
string isbn PK
string title
date publication_date
string author
uuid user_id PK, FK
uuid[] collection_ids FK
string key_value
datetime expiration_date
enum permission_type
}
REVIEW }o--|| BOOK : review_of
REVIEW }o--|| USER :
review
_by
USER ||--o{ REVIEW : writes
BOOK ||--o{ REVIEW : has_
review
s
REVIEW {
uuid id PK
string isbn
PK,
FK
uuid user_id PK,
FK
string
book_
isbn FK
string username
FK
bool read
int rating
string notes
...
...
@@ -48,20 +42,18 @@ erDiagram
PHYSICAL_BOOK }o--|| BOOK : is_a
PHYSICAL_BOOK {
uuid id PK
any sticked_label
string isbn PK, FK
uuid[] collections_ids FK
string place_where_is_stored
string isbn FK
uuid user_id FK
string storage_location
}
PHYSICAL_BOOK ||--o{ LENDING : is_lended
USER ||--o{ LENDING : is_borrower
USER ||--o{ LENDING : is_lender
LENDING {
uuid id PK
uuid physical_book_id PK, FK
string borrower_id PK, FK
string lender_id PK, FK
date start_date
date end_date
PHYSICAL_BOOK ||--o{ COLLECTION : belongs_to
BOOK {
string isbn PK
string title
string author
string description
string publish_date
string image_url
int average_rating
}
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment