
π Student Projects (College Reports) Β· Database ERD
Database for hotel bookings: room types, rooms, guests, bookings, payments and stays.
Drawing diagramβ¦
ER diagram for a hotel room booking system: RoomType (name, rate, capacity), Room (number, floor, status, belongs to a room type), Guest, Booking (check-in and check-out dates, status, made by a guest), BookingRoom linking bookings to rooms, Payment for a booking, and Invoice generated at check-out.
erDiagram
ROOM_TYPE ||--o{ ROOM : groups
GUEST ||--o{ BOOKING : makes
BOOKING ||--|{ BOOKING_ROOM : includes
ROOM ||--o{ BOOKING_ROOM : "reserved in"
BOOKING ||--o{ PAYMENT : "paid by"
BOOKING ||--o| INVOICE : "billed in"
ROOM_TYPE {
int type_id PK
string name
decimal rate
int capacity
}
ROOM {
int room_no PK
int type_id FK
int floor
string status
}
GUEST {
int guest_id PK
string name
string phone
string email
}
BOOKING {
int booking_id PK
int guest_id FK
date check_in
date check_out
string status
}
BOOKING_ROOM {
int booking_id FK
int room_no FK
}
PAYMENT {
int payment_id PK
int booking_id FK
decimal amount
string method
}
INVOICE {
int invoice_id PK
int booking_id FK
decimal total
date issued_on
}Who uses a college library system and what each of them can do: members, the librarian and the system administrator.
The database of a library system: books and their copies, authors, members, loans, reservations and fines, with keys and cardinality.
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.