Here is a conceptual Entity-Relationship Diagram (ERD) for our conceptual reservation system. This diagram includes entities such as Customer
, Reservation
, and Resource
, along with their attributes and relationships.
erDiagram
%% Customer Entity
Customer {
int Id
string FullName
string Email
string Phone
}
%% Resource Entity
Resource {
int Id
string Name
string Description
int Capacity
}
%% Reservation Entity
Reservation {
int Id
int CustomerId
int ResourceId
DateTime StartDate
DateTime EndDate
string Status
}
%% Relationships
Customer ||--o{ Reservation : "creates"
Resource ||--o{ Reservation : "associated with"
Explanation
Entities:
- Customer: Contains attributes like
Id
,FullName
,Email
, andPhone
to store customer details. - Resource: Includes attributes such as
Id
,Name
,Description
, andCapacity
to represent items or venues available for reservation. - Reservation: Represents the booking and contains fields like
Id
,CustomerId
,ResourceId
,StartDate
,EndDate
, andStatus
(e.g., Pending, Confirmed, Cancelled).
- Customer: Contains attributes like
Relationships:
- A Customer can create one or more Reservations, resulting in a one-to-many relationship.
- Each Reservation is associated with a single Resource, but a Resource can be reserved by multiple Reservations, forming another one-to-many relationship.