wiki:RelationalDesign

Version 14 (modified by 193064, 3 years ago) ( diff )

--

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

Ознаки

  • Примарните клучеви се означени со underline
  • Сите задолжителни клучеви се болдирани
  • Надворешните клучеви се означени со * и во заграда стои на кои табели референцираат

Табели

  • Payment_type(payment_type_id, payment_type, payment_id*(Payment))
  • Payment(payment_id, payment_date,client_id*(Client))
  • Reservation(reservation_id, reservation_end_date,payment_id*(Payment), payment_type_id*(Payment_type),client_id*(Client), projection_id*(Movieprojection))
  • Client(client_id,user_id*(Users))
  • Seat(seat_id, seat_number, seat_row_number,(seat_id,auditorium_id,projection_id),auditorium_id*(Auditorium),reservation_id*(Reservation),projection_id*(Movieprojection))
  • Auditorium(auditorium_id,auditorium_name, auditorium_capacity,projection_id*(Movieprojection))
  • Firm(firm_id, firm_city, firm_adress, firm_name,auditorium_id*(Auditorium), employee_id*(Employee))
  • Movieprojection(projection_id, projection_movie_start, projection_movie_end, projection_screening_date, projection_type, projection_price,movie_id*(Movie))
  • Employee(employee_id,user_id*(Users))
  • Genre(genre_id, genre_name)
  • Movie(movie_id, movie_name, movie_age_category,movie_production, movie_film_director, movie_cast,movie_time_duration,genre_id*(Genre))
  • User(user_id, user_username, user_password,user_phone_number,user_name, user_surname, user_email, user_role)

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

kreiranje.sql

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

polnenje.sql

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

No image "schema_v02.png" attached to RelationalDesign

Attachments (4)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.