Changes between Version 16 and Version 17 of RelationalSchema


Ignore:
Timestamp:
01/09/25 12:36:54 (6 days ago)
Author:
221514
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RelationalSchema

    v16 v17  
    1313=== Relations - Relational Schema ===
    1414
    15 `ACCOUNT`(__**email**__, name, surname, password)
     15`ACCOUNT`(__**account_id**__, account_email, name, surname, password)
    1616
    17 `TRANSPORT_ORGANIZER`(__***account_email**__ (`ACCOUNT`), company_name, company_embg)
     17`TRANSPORT_ORGANIZER`(__***account_id**__ (`ACCOUNT`), company_name, company_embg)
    1818
    19 `ADMIN`(__***account_email**__ (`ACCOUNT`))
     19`ADMIN`(__***account_id**__ (`ACCOUNT`))
    2020
    21 `STUDENT`(__***account_email**__ (`ACCOUNT`), university, index)
     21`STUDENT`(__***account_id**__ (`ACCOUNT`), university, index)
    2222
    23 `DRIVER`(__***account_email**__ (`ACCOUNT`), years_experience, *works_for_email(`TRANSPORT_ORGANIZER`))
     23`DRIVER`(__***account_id**__ (`ACCOUNT`), years_experience, *works_for_id(`TRANSPORT_ORGANIZER`))
    2424
    25 `VEHICLE`(__**plate_num**__, model, brand, capacity, year_manuf)
     25`VEHICLE`(__**vehicle_id**__, plate_num, model, brand, capacity, year_manuf)
    2626
    27 `AUTOMOBILE`(__***plate_num**__ (`VEHICLE`))
     27`AUTOMOBILE`(__***vehicle_id**__ (`VEHICLE`))
    2828
    29 `TRAIN`(__***plate_num**__ (`VEHICLE`))
     29`TRAIN`(__***vehicle_id**__ (`VEHICLE`))
    3030
    31 `BUS`(__***plate_num**__ (`VEHICLE`))
     31`BUS`(__***vehicle_id**__ (`VEHICLE`))
    3232
    33 `VAN`(__***plate_num**__ (`VEHICLE`))
     33`VAN`(__***vehicle_id**__ (`VEHICLE`))
    3434
    35 `DRIVER_VEHICLE_OPERATION`(__***driver_email**__(`DRIVER`), __***plate_num**__(`VEHICLE`))
     35`DRIVER_VEHICLE_OPERATION`(__***driver_id**__(`DRIVER`), __***vehicle_id**__(`VEHICLE`))
    3636
    37 `TRIP`(__**trid_id**__, __***transport_organizer_email**__(`TRANSPORT_ORGANIZER`), __***route_id**__(`ROUTE`), free_seats, date, status)
     37`TRIP`(__**trid_id**__, __***transport_organizer_id**__(`TRANSPORT_ORGANIZER`), __***route_id**__(`ROUTE`), free_seats, date, status)
    3838
    39 `DRIVES_ON`(__***driver_email**__(`DRIVER`), __***trip_id**__(`TRIP`))
     39`DRIVES_ON`(__***driver_id**__(`DRIVER`), __***trip_id**__(`TRIP`))
    4040
    41 `ROUTE`(__**id**__, *transport_organizer_email(`TRANSPORT_ORGANIZER`), *from_loc (`LOCATION`), *to_loc (`LOCATION`))
     41`ROUTE`(__**id**__, *transport_organizer_id(`TRANSPORT_ORGANIZER`), *from_loc (`LOCATION`), *to_loc (`LOCATION`))
    4242
    4343`DAY_ACTIVE`(__***route_id**(`ROUTE`) __**day**__)
    4444
    45 `LOCATION`(__**latitude**__, __**longitude**__, name)
     45`LOCATION`(__**location_id**__, latitude, longitude, name)
    4646
    4747`TRIP_STOPS`(__***trip_id**__(`TRIP`), __***location**__, time)
    4848
    49 `TICKET`(__**id**__, *trip_id(`TRIP`), *gets_on_loc (`LOCATION`), *gets_off_loc (`LOCATION`), *account_email (`ACCOUNT`), date_purchased, time_purchased, price, seat)
     49`TICKET`(__**id**__, *trip_id(`TRIP`), *gets_on_loc (`LOCATION`), *gets_off_loc (`LOCATION`), *account_id (`ACCOUNT`), date_purchased, time_purchased, price, seat)
    5050
    5151`TICKET_RELATIONS`(*parent_ticket_id(`TICKET`), *child_ticket_id(`TICKET`))
     
    5555`CHILD_TICKET`(__***ticket_id**__ (`TICKET`), discount, embg, parent_embg)
    5656
    57 `PAYMENT`(__**payment_id**__, __***account_email**__ (`ACCOUNT`), date, total_price, n_tickets)
     57`PAYMENT`(__**payment_id**__, __***account_id**__ (`ACCOUNT`), date, total_price, n_tickets)
    5858
    59 `FAVORITE`(__***route_id**__(`ROUTE`), __***account_email**__ (`ACCOUNT`))
     59`FAVORITE`(__***route_id**__(`ROUTE`), __***account_id**__ (`ACCOUNT`))
    6060
    61 `REVIEW`(__**review_id**__, __***account_email**__ (`ACCOUNT`), *ticket_id, description, rating)
     61`REVIEW`(__**review_id**__, __***account_id**__ (`ACCOUNT`), *ticket_id, description, rating)
    6262
    6363== DDL - Creation and Deletion of Tables ==
    6464[attachment:routemk_create_and_delete.sql​ RouteMK_Create_and_Delete]
    6565== Relational Schema Diagram ==
    66 [[Image(Route_MK_RD_2.png​​)]]
     66[[Image(RouteMK-Relational-Schema.jpg​​​)]]