Skip to content

Commit

Permalink
Merge pull request #35 from ajaynegi45/project_structure
Browse files Browse the repository at this point in the history
Added UML Diagram
  • Loading branch information
ajaynegi45 authored Sep 21, 2024
2 parents 59cee3c + dbc1840 commit 3817c60
Show file tree
Hide file tree
Showing 4 changed files with 253 additions and 140 deletions.
Binary file added ProjectStructure/BookDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
115 changes: 115 additions & 0 deletions ProjectStructure/ER-Diagram.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
[//]: # (# ER Diagram)

[//]: # ()
[//]: # (```mermaid)

[//]: # (erDiagram)

[//]: # ( BOOKS {)

[//]: # ( int book_id PK)

[//]: # ( string title)

[//]: # ( string author)

[//]: # ( string isbn)

[//]: # ( string publisher)

[//]: # ( int published_year)

[//]: # ( string genre)

[//]: # ( int copies_available)

[//]: # ( })

[//]: # ()
[//]: # ( BORROWINGS {)

[//]: # ( int borrowing_id PK)

[//]: # ( int book_id FK)

[//]: # ( int fine_id FK)

[//]: # ( int member_id FK)

[//]: # ( date borrow_date)

[//]: # ( date due_date)

[//]: # ( date return_date)

[//]: # ( })

[//]: # ()
[//]: # ( FINES {)

[//]: # ( int fine_id PK)

[//]: # ( int borrowing_id FK)

[//]: # ( int member_id FK)

[//]: # ( decimal amount)

[//]: # ( boolean paid)

[//]: # ( })

[//]: # ()
[//]: # ( MEMBERS {)

[//]: # ( int member_id PK)

[//]: # ( string name)

[//]: # ( string email)

[//]: # ( string password)

[//]: # ( enum role)

[//]: # ( date membership_date)

[//]: # ( })

[//]: # ()
[//]: # ( NOTIFICATIONS {)

[//]: # ( int notification_id PK)

[//]: # ( int member_id FK)

[//]: # ( string message)

[//]: # ( enum notification_type)

[//]: # ( timestamp sent_date)

[//]: # ( string status)

[//]: # ( })

[//]: # ()
[//]: # ( MEMBERS ||--o{ BORROWINGS : has)

[//]: # ( BOOKS ||--o{ BORROWINGS : has)

[//]: # ( BORROWINGS ||--|{ FINES : generates)

[//]: # ( MEMBERS ||--o{ FINES : receives)

[//]: # ( MEMBERS ||--o{ NOTIFICATIONS : receives)

[//]: # ()
[//]: # (%% ||--o{: One-to-Many relationship.)

[//]: # (%% ||--|{: One-to-One relationship.)

[//]: # ()
[//]: # (```)

<img width="247" alt="Screenshot 2024-08-29 at 12 34 48 AM" src="https://github.com/user-attachments/assets/82d824ca-82fd-4e6b-be85-fd95199664a2">
Binary file added ProjectStructure/Whole-Project-Diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3817c60

Please sign in to comment.