Changes between Version 3 and Version 4 of Logical and Physical Design - Database creation (with SQL Scripts)


Ignore:
Timestamp:
11/19/22 23:59:16 (2 years ago)
Author:
201101
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Logical and Physical Design - Database creation (with SQL Scripts)

    v3 v4  
    99* '''Останати атрибути''': без ознака
    1010
    11 1. Reservation ('''__reservation_id__''', '''start_date''', '''end_date''', '''number_guests''', '''adults''', children, '''villa_id*''', '''payment_id*''', '''room_id*''')
     111. ''Reservation'' ('''__reservation_id__''', '''start_date''', '''end_date''', '''number_guests''', '''adults''', children, '''villa_id*''', '''payment_id*''', '''room_id*''')
    1212        * '''*'''Референцира villa_id кон Villa
    1313        * '''*'''Референцира payment_id кон Payment
    1414        * '''*'''Референцира room_id од Room
    15 2. Events('''__event_id__''', '''event_type''', '''price''', '''number_of_interested_guests''')
    16 3. Activities('''__activity_id__''', '''activity_type''', '''price''', '''number_of_interested_guests''', '''location''')
    17 4. Rooms('''__room_id__''', room_type, price,availability, villa_id*)
     152. ''Events'' ('''__event_id__''', '''event_type''', '''price''', '''number_of_interested_guests''')
     163. ''Activities'' ('''__activity_id__''', '''activity_type''', '''price''', '''number_of_interested_guests''', '''location''')
     174. ''Rooms'' ('''__room_id__''', room_type, price,availability, villa_id*)
    1818        * '''*'''Референцира villa_id од Villa
    19 5. Service('''__service_id__''', '''service_type''', '''price''', '''user_id*''', '''room_id*''')
     195. ''Service'' ('''__service_id__''', '''service_type''', '''price''', '''user_id*''', '''room_id*''')
    2020        * '''*'''Референцира user_id од Server
    2121        * '''*'''Референцира room_id од Rooms
    22 6. Payment('''__payment_id__''', '''total_payment''', '''pay_date''', '''rec_id''', '''customer_id''', '''user_id*''')
     226. ''Payment'' ('''__payment_id__''', '''total_payment''', '''pay_date''', '''rec_id''', '''customer_id''', '''user_id*''')
    2323        * '''*'''Референцира user_id од Guests
    24 7. Villa('''__villa_id__''', '''location''', '''name''', villa_view_type)
    25 8. Beverage('''__beverage_id__''', '''beverage_type''', '''price''')
    26 9. Product('''__product_id__''', '''number_of_products''', '''product_type''')
    27 10. Meal('''__meal_id__''', '''price''', '''meal_type''')
    28 11. Log in('''__login_id__''', '''password''', '''username''', '''user_id*''')
     247. ''Villa'' ('''__villa_id__''', '''location''', '''name''', villa_view_type)
     258. ''Beverage'' ('''__beverage_id__''', '''beverage_type''', '''price''')
     269. ''Product'' ('''__product_id__''', '''number_of_products''', '''product_type''')
     2710. ''Meal'' ('''__meal_id__''', '''price''', '''meal_type''')
     2811. ''Log in'' ('''__login_id__''', '''password''', '''username''', '''user_id*''')
    2929        * '''*'''Референцира user_id од User
    30 12. User('''__user_id__''', '''EMBG''', '''address''', '''email''', '''phone_number''')
    31 13. Server('''__user_id*__''', '''shift''', '''salary''')
     3012. ''User'' ('''__user_id__''', '''EMBG''', '''address''', '''email''', '''phone_number''')
     3113. ''Server'' ('''__user_id*__''', '''shift''', '''salary''')
    3232        * '''*'''Референцира user_id од User
    33 14. Receptionist('''__user_id*__''', '''shift''', '''salary''')
     3314. ''Receptionist'' ('''__user_id*__''', '''shift''', '''salary''')
    3434        * '''*'''Референцира user_id од User
    35 15. Chef('''__user_id*__''', '''shift''', '''salary''')
     3515. ''Chef'' ('''__user_id*__''', '''shift''', '''salary''')
    3636        * '''*'''Референцира user_id од User
    37 16. Guests('''__user_id*__''', '''passport_number''')
     3716. ''Guests'' ('''__user_id*__''', '''passport_number''')
    3838        * '''*'''Референцира user_id од User
    39 17. Prepared_Meal('''__prepared_meal_id__''', '''meal_id*''',  '''user_id*''')
     3917. ''Prepared_Meal'' ('''__prepared_meal_id__''', '''meal_id*''',  '''user_id*''')
    4040        * '''*'''Референцира meal_id од Meal
    4141        * '''*'''Референцира user_id од Chef
    42 18. On_Site('''__payment_id*__''', '''currency''', '''payment_type''', '''user_id*''')
     4218. ''On_Site'' ('''__payment_id*__''', '''currency''', '''payment_type''', '''user_id*''')
    4343        * '''*'''Референцира user_id од Receptionist
    4444        * '''*'''Референцира payment_id од Payment
    45 19. Online('''__payment_id*__''',  '''card_number''')
     4519. ''Online'' ('''__payment_id*__''',  '''card_number''')
    4646
    47 20. reservation_for_events ('''__reservation_id*, event_id*__''')
     4720. ''reservation_for_events'' ('''__reservation_id*, event_id*__''')
    4848        * '''*'''Референцира reservation_id од Reservation
    4949        * '''*'''Референцира event_id од Event
    50 21. reservation_for_activity('''__reservation_id*, activity*__''')
     5021. ''reservation_for_activity'' ('''__reservation_id*, activity*__''')
    5151        * '''*'''Референцира reservation_id од Reservation
    5252        * '''*'''Референцира activity_id од Activities
    53 22. reservation_for_prepared_meal('''__reservation_id*, (prepared_meal_id*, meal_id*)__''', '''quantity''')
     5322. ''reservation_for_prepared_meal'' ('''__reservation_id*, (prepared_meal_id*, meal_id*)__''', '''quantity''')
    5454        * '''*'''Референцира reservation_id од Reservation
    5555        * '''*'''Референцира meal_id  и prepared_meal_id од  Prepared_Meal
    56 23. service_for_beverages('''__service_id*, beverage_id*__''', '''quantity''')
     5623. ''service_for_beverages'' ('''__service_id*, beverage_id*__''', '''quantity''')
    5757        * '''*'''Референцира service_id од Service
    5858        * '''*'''Референцира beverage_id од Beverage
    59 24. meal_madeof_product('''__meal_id*,product_id*__''')
     5924. ''meal_madeof_product'' ('''__meal_id*,product_id*__''')
    6060        * '''*'''Референцира meal_id од Meal
    6161        * '''*'''Референцира product_id од Product
    62 25. guests_make_reservation('''__user_id*,reservation_id*__''')
     6225. ''guests_make_reservation'' ('''__user_id*,reservation_id*__''')
    6363        * '''*'''Референцира user_id од Guests
    6464        * '''*'''Референцира reservation_id од Reservation