Changes between Version 7 and Version 8 of RelationalDesign
- Timestamp:
- 12/02/22 11:43:10 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RelationalDesign
v7 v8 1 1 = Relational Design 2 2 == Релациска шема (со мапирачка трансформација) 3 * Bold и Italic-> Key attribute3 * Bold и Underline-> Key attribute 4 4 * Bold и * -> Foreign key 5 5 * Bold -> required 6 6 7 7 ---- 8 * Users(** ''user_id'',email,username,first_name,last_name,password,created_on**,modified_on)8 * Users(**__user_id__,email,username,first_name,last_name,password,created_on**,modified_on) 9 9 * Clients(**''user_id''***) 10 10 - user_id референцира кон Users(user_id) 11 * Business_Users(** ''user_id''***)11 * Business_Users(**__user_id__***) 12 12 - user_id референцира кон Users(user_id) 13 * Administrators(** ''user_id''***)13 * Administrators(**__user_id__***) 14 14 - user_id референцира кон Users(user_id) 15 * Delivery_Man(** ''user_id''*,business_user_id*,company_id* ,salary,date_of_employment**)15 * Delivery_Man(**__user_id__*,business_user_id*,company_id* ,salary,date_of_employment**) 16 16 - user_id референцира кон Users(user_id) 17 17 - business_user_id референцира кон Business_Users(user_id) 18 18 - company_id референцира кон Companies(company_id) 19 * Companies(** ''company_id'',company_name,company_email,created_on,created_by,user_id***,modified_on,modified_by,**administrator_id***)19 * Companies(**__company_id__,company_name,company_email,created_on,created_by,user_id***,modified_on,modified_by,**administrator_id***) 20 20 - user_id референцира кон Business_Users(user_id) 21 21 - administrator_id референцира кон Administrators(user_id) 22 * Vehicles(** ''vehicle_id'',chassis_number,vehicle_type,fuel_efficiency,company_id*,model_id* ,registration_id*,brand,price**)22 * Vehicles(**__vehicle_id__,chassis_number,vehicle_type,fuel_efficiency,company_id*,model_id* ,registration_id*,brand,price**) 23 23 - company_id референцира кон Companies(company_id) 24 24 - model_id референцира кон Models(model_id) 25 25 - registration_id референцира кон Registrations(registration_id) 26 * Models(** ''model_id'',model_name,year,color,number_of_seats,number_of_doors,fuel,transmission,vehicle_type**)27 * Registrations(** ''registration_id'',plate_num,registred_on,valid_thru,is_available**)28 * Payment_Cards(** ''card_id'',card_number,cvc,valid_thru,holder_name,user_id***)26 * Models(**__model_id__,model_name,year,color,number_of_seats,number_of_doors,fuel,transmission,vehicle_type**) 27 * Registrations(**__registration_id__,plate_num,registred_on,valid_thru,is_available**) 28 * Payment_Cards(**__card_id__,card_number,cvc,valid_thru,holder_name,user_id***) 29 29 - user_id референцира кон Clients(user_id) 30 * Locations(** ''location_id,company_id*'',city,street,street_number**)30 * Locations(**__location_id,company_id*__,city,street,street_number**) 31 31 - company_id референцира кон Companies(company_id) 32 * Payments(** ''payment_id,card_id*'', payment_date,time**)32 * Payments(**__payment_id,card_id*__, payment_date,time**) 33 33 - card_id референцира кон Payment_Cards(card_id) 34 * Contracts(** ''signed_date,user_id*,vehicle_id*,deliveryman_id*,payment_id*,card_id*'',address,from_date,to_date**)34 * Contracts(**__signed_date,user_id*,vehicle_id*,deliveryman_id*,payment_id*,card_id*__,address,from_date,to_date**) 35 35 - user_id референцира кон Clients(user_id) 36 36 - vehicle_id референцира кон Vehicles(vehicle_id) … … 38 38 - payment_id референцира кон Payments(payment_id) 39 39 - card_id референцира кон Payments(card_id) 40 * Is_responsible_for(** ''user_id*,vehicle_id*''**)40 * Is_responsible_for(**__user_id*,vehicle_id*__**) 41 41 - user_id референцира кон Delivery_Man(user_id) 42 42 - vehicle_id референцира кон Vehicles(vehicle_id)