= ''Логички и физички дизајн'' = == Релациска шема (со мапирачка трансформација) == ''Регуларни ентитети:'' Person, Employee, Member, SchoolType, MemberShipType, Price, Library, Room, Genre, Review, Writer \\ ''Слаби ентитети:'' OnlineDownload, ReservationBook, Book, ReservationPlace \\ * Примарни клучеви: underline and bold \\ * Надворешни клучеви: bold, со ознака * и до нив стои во заграда на која табела покажуваат \\ * Not null атрибути: bold \\ * Останати атрибути: без ознака \\ ---- * Person (**__id_person__**, **name**,** surname**, address, town, **phone_num**) * Employee (**__id_person__***(Person), **id_library***(Library), **position**) * Member (**__id_person__***(Person), **id_school***(SchoolType), **id_membership***(MembershipType), **id_library ***(Library), **birth**, **email**, **pass**) * Library (**__id_library__**, **name**, **city**) * SchoolType (**__id_school__**, **id_membership***(MemberShipType), **primary**,** high_school**, **other**) * MembershipType (**__id_membership__**, **id_school***(SchoolType), **month**, **year**) * Price (**__id_price__**, **id_membership***(MemberShipType), **month_price**,** year_price**, **primary_price**, **highSchool_price**) * Genre (**__id_genre__**, **id_book***(Book), **name**) * Writer (**__id_writer__**, **id_book***(Book),** name**) * Review (**__id_review__**, **id_book***(Book), **rate**, **rent_num**) * Room (**__id_room__**, **id_library***(Library), **places**, **free_places**) * OnlineDownload (**__id_onlineDown__**, **id_book***(Book), **id_person_member***(Member)), * ReservationBook (**__id_resBook__**, **id_book***(Book), **is_person_member***(Member), **take_date**, **return_date**) * Book (**__id_book__**, **id_writer***(Writer), **id_library***(Library), **name**, **book_num**, **if_free**, **book_price**, **book_price_late**) * ReservationPlace (**__id_resRoom__**, **id_room***(Room),** id_person_member***(Member),** date**, **duration**) * Membership_of_SchoolType(**__id_membership__***(MembershipType), **id_school***(SchoolType)) * Who_Wrote_Book (**__id_book__***(Book), **id_writer***(Writer)) == DDL скрипта за креирање и бришење на табелите == [attachment:kreiranje.sql]] == DML скрипта за полнење на табела со податоци == [attachment:polnenje.sql] == Релациски дијаграм изваден од DBeaver == [[Image(vintageLibrary_diagram.png)]]