Changes between Version 12 and Version 13 of konceptualenDizajn
- Timestamp:
- 12/16/24 16:01:47 (4 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
konceptualenDizajn
v12 v13 5 5 == Ентитети 6 6 7 * '''Entity: Customer'''7 '''Ентитет: Корисник (Customer)''' 8 8 9 Description: Represents a customer who can make reservations. 10 Primary Key: customerId(autogenerated). 11 Attributes: 9 Опис: Претставува корисник кој може да прави резервации. 10 Примарен клуч: customerId (автоматски генериран). 11 Атрибути: 12 * Датум на регистрација (registrationDate) 13 * Име (firstName) 14 * Презиме (lastName) 15 * Е-пошта (email) 16 * Лозинка (password) 17 * Улога (role) 18 * Адреса (address) 19 * Телефон (phone) 20 * Ниво на членство (membershipLevel) 12 21 13 *'''Entity: Restaurant'''22 '''Entity: Restaurant''' 14 23 15 Description: Represents a restaurant, which contains menus and tables.16 Primary Key: RestaurantID(autogenerated).17 Attributes: 24 * Description: Represents a restaurant, which contains menus and tables. 25 * Primary Key: RestaurantID(autogenerated). 26 * Attributes: rating, socialMediaLinks, website, operatingHours, phone, cusineType, address, name. 18 27 19 28 * '''Entity: Menu''' … … 21 30 Description: Represents the menu associated with a restaurant. 22 31 Primary Key: MenuID(autogenerated). 23 Attributes: 32 Attributes: itemName, category, price, description, dietaryInformation. 24 33 25 34 * '''Entity: Table''' … … 27 36 Description: Represents a table in a restaurant that can be reserved. 28 37 Primary Key: TableID(autogenerated). 29 Attributes: 38 Attributes: capacity, location, isSmokingArea, description. 30 39 31 40 * '''Entity: Reservation''' … … 33 42 Description: Represents a reservation made by a customer. 34 43 Primary Key: ReservationID(autogenerated). 35 Attributes: 44 Attributes: paymentStatus, partySize, reservationDateTime, specialRequests, checkInTime, checkOutTime. 36 45 37 46 * '''Entity: Payment''' … … 39 48 Partial Key: paymentId - Artificial ID for the payment. 40 49 Attributes: 41 date: Payment date. 42 reservation_nr: Number of reservation paid. 43 total_price: Derived attribute. 50 date, reservation_nr, total_price. 44 51 45 52 == Релации … … 48 55 49 56 Description: A 1:N relationship between Restaurant and Menu. 50 Details: 51 A restaurant can have multiple menus. 52 A menu belongs to one restaurant. 57 Details: Each restaurant has its menu. A restaurant can have multiple menus. A menu belongs to one restaurant. 58 53 59 Relationship: contains 54 60 55 61 Description: A 1:N relationship between Restaurant and Table. 56 Details: 57 A restaurant contains multiple tables. 58 A table belongs to one restaurant. 62 Details: Each restaurant has multiple different tables. A restaurant contains multiple tables. A table belongs to one restaurant. 63 59 64 Relationship: makes 60 65 61 66 Description: A 1:N relationship between Customer and Reservation. 62 Details: 63 A customer can make multiple reservations. 64 A reservation is made by one customer. 67 Details: A customer can make multiple reservations. A reservation is made by one customer. 68 65 69 Relationship: none specified for Table to Reservation 66 70