
🎓 Student Projects (College Reports) · Database ERD
The database of a library system: books and their copies, authors, members, loans, reservations and fines, with keys and cardinality.
Drawing diagram…
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.
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
}Who uses a college library system and what each of them can do: members, the librarian and the system administrator.
How data moves through a library system: members and the librarian, the main processes, and the data stores they read and write.
The main classes of a library system with attributes, methods and UML relationships.
The steps when a member borrows a book: checks, loan record and the copy status update.
What students, examiners and the administrator do in an online examination system.
Database design for online exams: courses, exams, questions and options, attempts, answers and results.