Changes between Initial Version and Version 1 of RelationModel


Ignore:
Timestamp:
11/30/22 13:30:50 (2 years ago)
Author:
201084
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RelationModel

    v1 v1  
     1== Релациска шема (со мапирачка трансформација)
     2
     3=== Ознаки
     4
     5 - Примарните клучеви се означени со bold и underline
     6 - Надворешните клучеви се означени со *
     7 - Задолжителни атрибути, односно not null со bold
     8
     9=== Табели
     10
     11users_table (ID_user, username, e-mail, name_user, password, user_created_on, ID_user*(administrator))
     12client (ID_ user*(users_table), phone_number_client)
     13delivery_man (ID_ user*(users_table), employed_from)
     14warehouseman (ID_ user*(users_table), employed_from, ID_warehouse*(warehouse))
     15administrator (ID_ user*(users_table), authorized_from, authorized_till)
     16review (ID_review, review_rating, review_comment, ID_repair*(repair), ID_user*(client))
     17repair (ID_repair, VIN*(car_sample), ID_repair_shop*(repair_shop), ID_service_book*(service_book))
     18repair_shop (ID_repair_shop, rs_name, rs_location, rs_phone_number)
     19car_manufacturer (ID_car_manufacturer, cm_name, cm_country)
     20car (ID_car, in_production_since, in_production_till, car_type, ID_car_manufacturer*(car_manufacturer))
     21car_sample (VIN, year_of_production, engine_power, displacement, fuel_type, km_driven, ID_user*(client), ID_car*(car))
     22service_book (ID_service_book, sb_created_on, VIN*(car_sample))
     23order_table (ID_order, order_status, order_date), ID_user*(client))
     24part_manufacturer (ID_part_manufacturer, pm_name, pm_location)
     25part (ID_part, part_name, part_description, ID_part_manufacturer*(part_manufacturer))
     26delivery (ID_delivery, delivery_status, delivery_address, ID_user*(delivery_man), ID_order*(order))
     27warehouse (ID_warehouse, warehouse_location)
     28price (ID_price, price_from, price_till, amount, ID_part*(part))
     29category (ID_category, category_name, ID_parent_category*(category))
     30part_is_from_category (ID_part*(part), ID_category*(category))
     31repair_shop_is_authorized_for_car_make (ID_repair_shop*(repair_shop), ID_car_manufacturer*(car_manufacturer))
     32order_contains_part (ID_order*(order), ID_part*(part),quantity)
     33part_is_in_stock_in_warehouse (ID_part*(part), ID_warehouse*(warehouse),quantity)
     34part_is_appropriate_for_car (ID_part*(part), ID_car*(car))
     35
     36
     37== DDL скрипта за бришење на табелите и креирање на табелите
     38
     39'''[attachment:kreiranje_v1.sql]'''
     40
     41== DML скрипта за полнење на табелите со податоци
     42
     43'''[attachment:polnenje_v1.sql]'''
     44
     45== Релациски дијаграм изваден од DBeaver
     46
     47[[Image(schema_v1.jpg, 100%, center)]]