CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
🌙☀️
Log inStart free
Home/Templates/Student Projects (College Reports)

🎓 Student Projects (College Reports) · Database ERD

Library Management System ER Diagram

The database of a library system: books and their copies, authors, members, loans, reservations and fines, with keys and cardinality.

More Student Projects (College Reports) templates

Drawing diagram…

What this diagram shows

  • Book and BookCopy kept apart, as a real library needs
  • Many-to-many Book–Author through BookAuthor
  • Loans, reservations and fines linked to members

Prompt used

ER diagram for a library management system: Book (ISBN, title, publisher, year), Author, BookAuthor linking books and authors, BookCopy (each physical copy of a book with a status), Member (name, email, member type), Loan (a copy lent to a member with issue, due and return dates), Reservation of a book by a member, and Fine for a late loan.

Mermaid code
erDiagram
  BOOK ||--o{ BOOK_COPY : "has copies"
  BOOK ||--o{ BOOK_AUTHOR : "written by"
  AUTHOR ||--o{ BOOK_AUTHOR : writes
  MEMBER ||--o{ LOAN : borrows
  BOOK_COPY ||--o{ LOAN : "lent in"
  MEMBER ||--o{ RESERVATION : makes
  BOOK ||--o{ RESERVATION : "reserved in"
  LOAN ||--o| FINE : incurs
  BOOK {
    string isbn PK
    string title
    string publisher
    int year
  }
  AUTHOR {
    int author_id PK
    string name
  }
  BOOK_AUTHOR {
    string isbn FK
    int author_id FK
  }
  BOOK_COPY {
    int copy_id PK
    string isbn FK
    string status
    string shelf
  }
  MEMBER {
    int member_id PK
    string name
    string email
    string member_type
  }
  LOAN {
    int loan_id PK
    int copy_id FK
    int member_id FK
    date issue_date
    date due_date
    date return_date
  }
  RESERVATION {
    int reservation_id PK
    string isbn FK
    int member_id FK
    date reserved_on
  }
  FINE {
    int fine_id PK
    int loan_id FK
    decimal amount
    boolean paid
  }

Related templates

Use CaseStudent Projects (College Reports)

Library Management System Use Case Diagram

Who uses a college library system and what each of them can do: members, the librarian and the system administrator.

Data FlowStudent Projects (College Reports)

Library Management System Data Flow Diagram (Level 1)

How data moves through a library system: members and the librarian, the main processes, and the data stores they read and write.

Class UMLStudent Projects (College Reports)

Library Management System Class Diagram

The main classes of a library system with attributes, methods and UML relationships.

SequenceStudent Projects (College Reports)

Library Management System Sequence Diagram (Issue a Book)

The steps when a member borrows a book: checks, loan record and the copy status update.

Use CaseStudent Projects (College Reports)

Online Examination System Use Case Diagram

What students, examiners and the administrator do in an online examination system.

Database ERDStudent Projects (College Reports)

Online Examination System ER Diagram

Database design for online exams: courses, exams, questions and options, attempts, answers and results.