wiki:konceptualenDizajnLogickiFizicki

Version 20 (modified by 213209, 12 days ago) ( diff )

--

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

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

  • примарни клучеви: 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 скрипта за бришење на табелите и креирање на табелите

No image "kreiranje.sql" attached to WikiFormatting

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

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

Attachments (4)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.