== Релациска шема (со мапирачка трансформација) === Ознаки - Примарните клучеви се означени со bold и underline - Надворешните клучеви се означени со *,#,%,& - Задолжителни атрибути, односно not null со bold === Табели - //users// (**__ID_user__**, **username**, **password**, **first_name**, **last_name**, **address**, **contact_number**, **date_created**) - //workers//(**__ID_worker*__**(users), **position**, **work_hours_from**, **work_hours_to**, **ID_cinema#**(cinemas)) - //customers//(**__ID_customer*__**(users), points) - //salaries//(**__ID_salary__**, **sum**, **date_from**, date_to, **ID_worker*__**(Workers)) - //films//(**__ID_film__**, **name**, **duration**, **actors**, **genre**, **age_category**, **director**, **start_date**, **end_date**, description) - //cinemas//(**__ID_Cinema__**, **name**, **location**) - //events//(**__ID_event__**, **theme**, **duration**, **repeating**, **start_dates**) - //projections//(**__ID_projection__**, **date_time_start**, **type_of_technology**, **date_time_end**, **ID_film*__*(Films), ID_discount#(Discounts), ID_event%(Events)) - //tickets//(**__ID_ticket__**, **price** , **ID_customer*__**(Customer), **ID_projection&**(Projections), ID_discount#(Discounts), **ID_seat%**(Seats)) - //discounts//(**__ID_discount__**, **validity**, **code**, **type**, **percent**) - //seats//(**__ID_seat__**, **seat_number**, **ID_room*__**(Projection_Rooms) , **ID_category&**(Categories)) - //projection_rooms//(**__ID_room__**, **number_of_seats** ,**projection_room_number**, **ID_cinema*__**(Cinemas)) - //categories//(**__ID_category__**, **name**, extra_amount) - customer_rates_film(**__ID_customer*__**(Customer),**__ID_film&__**(Films),**rating**) - cinema_plays_film(**__ID_cinema*__**(Cinemas),**__ID_film&__**(Films)) - cinema_organizes_event(**__ID_cinema*__**(Cinemas),**__ID_Event&__**(Events)) - projection_is_played_in_room(**__ID_projection*__**(Projections),**__ID_Room&__**(Projection_Rooms)) - customer_is_interested_in_event(**__ID_customer*__**(Customers),**__ID_event&__**(Events)) == DDL скрипта за бришење на табелите и креирање на табелите '''[attachment:kreiranje.sql]''' == DML скрипта за полнење на табелите со податоци '''[attachment:polnenje.sql]''' == Релациски дијаграм изваден од DBeaver [[Image(er_dijagram_dbeaver2.png, 100%, center)]]