| 1 | ''Релациска шема (со мапирачка трансформација)'' |
| 2 | ---- |
| 3 | |
| 4 | |
| 5 | {{{ |
| 6 | |
| 7 | Регуларни ентитети: Person, Employee, Member, SchoolType, MemberShipType, Price, Library, Room, Genre, Review, Writer |
| 8 | Слаби ентитети: OnlineDownload, ReservationBook, Book, ReservationPlace |
| 9 | |
| 10 | Примарни клучеви: underline and bold |
| 11 | Надворешни клучеви*: bold, со ознака * и до нив стои во заграда на која табела покажуваат |
| 12 | Not null атрибути: bold |
| 13 | }}} |
| 14 | |
| 15 | |
| 16 | ---- |
| 17 | |
| 18 | Person ( **id_person**, **name**,** surname**, address, town, **phone_num**) |
| 19 | Employee (**id_person***(Person), **id_library***(Library), **position**) |
| 20 | Member (**id_person***(Person), **id_school***(SchoolType), **id_membership***(MembershipType), **id_library ***(Library), **birth**, **email**, **pass**) |
| 21 | Library (**id_library**, **name**, **city**) |
| 22 | SchoolType (**id_school**, **id_membership***(MemberShipType), **primary**,** high_school**, **other**) |
| 23 | MembershipType (**id_membership**, **id_school***(SchoolType), **month**, **year**) |
| 24 | Price (**id_price**, **id_membership***(MemberShipType), **month_price**,** year_price**, **primary_price**, **highSchool_price**) |
| 25 | Genre (**id_genre**, **id_book***(Book), **name**) |
| 26 | Writer (**id_writer**, **id_book***(Book),** name**) |
| 27 | Review (**id_review**, **id_book***(Book), **rate**, **rent_num**) |
| 28 | Room (**id_room**, **id_library***(Library), **places**, **free_places**) |
| 29 | OnlineDownload (**id_onlineDown**, **id_book***(Book), **id_person_member***(Member)), |
| 30 | ReservationBook (**id_resBook**, **id_book***(Book), **is_person_member***(Member), **take_date**, **return_date**) |
| 31 | Book (**id_book**, **id_writer***(Writer), **id_library***(Library), **name**, **book_num**, **if_free**, **book_price**, **book_price_late**) |
| 32 | ReservationPlace (**id_resRoom**, **id_room***(Room),** id_person_member***(Member),** date**, **duration**) |
| 33 | |
| 34 | Membership_of_SchoolType(**id_membership***(MembershipType), **id_school***(SchoolType)) |
| 35 | Who_Wrote_Book (**id_book***(Book), **id_writer***(Writer)) |
| 36 | |
| 37 | |
| 38 | ---- |
| 39 | |
| 40 | **DDL скрипта за креирање и бришење на табелите**'''' |
| 41 | ---- |
| 42 | |
| 43 | |