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
4b0e8ee6
Commit
4b0e8ee6
authored
5 months ago
by
Eliaz
Browse files
Options
Downloads
Patches
Plain Diff
More complete Schema
parent
556504fb
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+46
-5
46 additions, 5 deletions
README.md
with
46 additions
and
5 deletions
README.md
+
46
−
5
View file @
4b0e8ee6
...
...
@@ -4,15 +4,56 @@
```mermaid
---
title: Biblio4 Schema
Example
title: Biblio4 Schema
---
erDiagram
BOOK }o--|{ USER : read_by
USER ||--o{ COLLECTIONS : owns
USER {
string username PK
secret password_hash
}
COLLECTIONS }o--o{ PHYSICAL_BOOK : are_composed_of
COLLECTIONS {
uuid id PK
bool isTheMainCollection
string name
string owner PK, FK
}
USER ||--o{ ACCESS_KEYS : has
COLLECTIONS ||--o{ ACCESS_KEYS : has
ACCESS_KEYS {
uuid id PK
uuid collection_id PK, FK
string user_id PK, FK
rights rights
date expiration_date
}
BOOK {
string isbn PK
}
REVIEW }o--|| BOOK : review_of
REVIEW }o--|| USER : review_by
COLLECTIONS }o--o{ BOOK : are_composed_of
BOOK {
string isbn
REVIEW {
bool read
int rating
string notes
}
PHYSICAL_BOOK }o--|| BOOK : is_a
PHYSICAL_BOOK {
uuid id PK
any sticked_label
string isbn PK, FK
uuid[] collections_ids FK
}
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
}
```
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