wiki:konceptualenDizajnLogickiFizicki

Логички и физички дизајн

Релациска шема (мапирачка трансформација)

  • примарни клучеви: bold и underline
  • Надворешни клучеви: bold и * до името на надворешниот клуч, во заграда табелата кон која покажува

Шема

User(id, firstName, lastName, email, password, role, phone, address, membershipLevel, registrationDate)

Restaurant(restaurantId, name, address, cuisineType, phone, operatingHours, website, socialMediaLinks, rating)

TableEntity(tableId, restaurantId*(Restaurant), capacity, location, isSmokingArea, description, reservationDurationHours)

Menu(menuId, restaurantId*(Restaurant), itemName, category, price, description)

MenuTag(id, menuId*(Menu), tagName, tagValue)

Reservation(reservationId, userId(User), tableId(TableEntity), restaurantId*(Restaurant), reservationDateTime, partySize, specialRequests, status, checkInTime, checkOutTime, paymentStatus)

PreorderedItem(id, reservationId*(Reservation), name, quantity, price)

ReservationHistory(id, customerId(User), tableId(TableEntity), restaurantId*(Restaurant), reservationDateTime, partySize, specialRequests, status, cancellationReason, checkInDate)

DDL скрипта за бришење на табелите и креирање на табелите

DML скрипта за полнење на табелите со податоци

Релациски дијаграм изведен од DBeaver

Last modified 10 days ago Last modified on 05/05/25 13:03:20

Attachments (4)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.