Version 14 (modified by 2 years ago) ( diff ) | ,
---|
Логички и физички дизајн
Релациска шема (со мапирачка трансформација)
Регуларни ентитети: Login, User, Receptionist, Server, Guests, Chef, Prepared_Meal, Meal, Product, Payment, On_site, Online, Reservation, Villa, Service, Beverage, Rooms, Events, Activities
- Примарни клучеви: underline and bold
- Надворешни клучеви: bold, со ознака *
- Not null атрибути: bold
- Останати атрибути: без ознака
- Reservation (reservation_id, start_date, end_date, number_guests, adults, children, villa_id*, payment_id*, room_id*)
- *Референцира villa_id кон Villa
- *Референцира payment_id кон Payment
- *Референцира room_id од Rooms
- Events (event_id, event_type, price, number_of_interested_guests)
- Activities (activity_id, activity_type, price, number_of_interested_guests, activity_location)
- Rooms (room_id, room_type, price,availability, villa_id*)
- *Референцира villa_id од Villa
- Service (service_id, service_type, price, user_id*, room_id*)
- *Референцира user_id од Waiter
- *Референцира room_id од Rooms
- Payment (payment_id, total_payment, pay_date, rec_id, customer_id, user_id*)
- *Референцира user_id од Guests
- Villa (villa_id, location, name, villa_view_type)
- Beverage (beverage_id, beverage_type, price)
- Product (product_id, number_of_products, product_type)
- Meal (meal_id, price, meal_type)
- Log_in (login_id, password, username, user_id*)
- *Референцира user_id од User_table
- User_table (user_id, EMBG, full_name, address, email, phone_number)
- Waiter (user_id*, shift, salary)
- *Референцира user_id од User_table
- Receptionist (user_id*, shift, salary)
- *Референцира user_id од User_table
- Chef (user_id*, shift, salary)
- *Референцира user_id од User_table
- Guests (user_id*, passport_number)
- *Референцира user_id од User_table
- Prepared_Meal (prepared_meal_id, meal_id*, user_id*)
- *Референцира meal_id од Meal
- *Референцира user_id од Chef
- On_Site (payment_id*, currency, payment_type, user_id*)
- *Референцира user_id од Receptionist
- *Референцира payment_id од Payment
- Online (payment_id*, card_number)
- reservation_for_events (reservation_id*, event_id*)
- *Референцира reservation_id од Reservation
- *Референцира event_id од Event
- reservation_for_activity (reservation_id*, activity*_id)
- *Референцира reservation_id од Reservation
- *Референцира activity_id од Activities
- reservation_for_prepared_meal (reservation_id*, (prepared_meal_id*, meal_id*), quantity)
- *Референцира reservation_id од Reservation
- *Референцира meal_id и prepared_meal_id од Prepared_Meal
- service_for_beverages (service_id*, beverage_id*, quantity)
- *Референцира service_id од Service
- *Референцира beverage_id од Beverage
- meal_made_of_product (meal_id*,product_id*)
- *Референцира meal_id од Meal
- *Референцира product_id од Product
- guests_make_reservation (user_id*,reservation_id*)
- *Референцира user_id од Guests
- *Референцира reservation_id од Reservation
Креирање на табели
Полнење на пример податоци
Дијаграм
Attachments (6)
- dijagram.png (91.1 KB ) - added by 2 years ago.
- dijagram.2.png (79.8 KB ) - added by 2 years ago.
- dijagram3.jpg (137.2 KB ) - added by 2 years ago.
- DDL1.sql (8.8 KB ) - added by 2 years ago.
- DML1.sql (7.4 KB ) - added by 2 years ago.
- dijagram4.jpg (139.6 KB ) - added by 2 years ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.