Changes between Version 4 and Version 5 of ddl


Ignore:
Timestamp:
09/02/25 19:45:53 (8 hours ago)
Author:
221046
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ddl

    v4 v5  
    1 Track ( track_id, name, album_id* (Album), media_type_id* (MediaType), genre_id* (Genre), composer, milliseconds, bytes )
    2 
    3 Album ( album_id, title, artist_id* (Artist) )
    4 
    5 Artist ( artist_id, name )
    6 
    7 Genre ( genre_id, name )
    8 
    9 !MediaType ( media_type_id, name )
    10 
    11 Price ( price_id, value, date, track_id* (Track) )
    12 
    13 !InvoiceLine ( invoice_line_id, invoice_id* (Invoice), track_id* (Track), quantity )
    14 
    15 Invoice ( invoice_id, customer_id* (Customer), invoice_date, billing_address, billing_city, billing_state, billing_country, billing_postal_code, total )
    16 
    17 Customer ( customer_id, first_name, last_name, company, support_rep_id* (Employee), personal_info_id* (AddressInfo), contact_id* (Contact) )
    18 
    19 Employee ( employee_id, first_name, last_name, title, reports_to* (Employee), birth_date, hire_date, personal_info_id* (AddressInfo), contact_id* (Contact) )
    20 
    21 !AddressInfo ( address_info_id, address, city, state, country, postal_code )
    22 
    23 Contact ( contact_id, phone, fax, email )
    24 
    25 Playlist ( playlist_id, name )
    26 
    27 !PlaylistTrack ( playlist_track_id, playlist_id* (Playlist), track_id* (Track) )
    28 
     1== Релации: ==
    292= Track =
    303 * __**track_id**__ (PK)
     
    6033 * track_id* (FK → Track)
    6134
    62 = InvoiceLine =
     35= !InvoiceLine =
    6336 * __**invoice_line_id**__ (PK)
    6437 * invoice_id* (FK → Invoice)
     
    9770 * contact_id* (FK → Contact)
    9871
    99 = AddressInfo =
     72= !AddressInfo =
    10073 * __**address_info_id**__ (PK)
    10174 * **address** (NOT NULL)
     
    11588 * **name** (NOT NULL)
    11689
    117 = PlaylistTrack =
     90= !PlaylistTrack =
    11891 * __**playlist_track_id**__ (PK)
    11992 * playlist_id* (FK → Playlist)