CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
πŸŒ™β˜€οΈ
Log inStart free
Home/Templates/Student Projects (College Reports)

πŸŽ“ Student Projects (College Reports) Β· Database ERD

Hotel Room Booking System ER Diagram

Database for hotel bookings: room types, rooms, guests, bookings, payments and stays.

More Student Projects (College Reports) templates

Drawing diagram…

What this diagram shows

  • Room type holds the rate; rooms belong to a type
  • Booking can cover several rooms through BookingRoom
  • Payments and invoices tied to the booking

Prompt used

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.

Mermaid code
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
  }

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.

Database ERDStudent Projects (College Reports)

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.

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.