Changes between Version 8 and Version 9 of ERModel


Ignore:
Timestamp:
05/04/26 02:17:52 (3 days ago)
Author:
232012
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ERModel

    v8 v9  
    1 == Entity-Relationship Model v.02
     1== Entity-Relationship Model v.03
    22
    33[[Image(ERModel_v03.png, align=center)]]
    44
    55== Entities
    6 
    7 List all entities and relationships with the following information for each of them
    8 
    9 Entity/relationship name: one paragraph of explanation, what does the entity/relationship represent, why it is needed, why is it modeled the way it is
    10 
    11 Candidate keys: If you have multiple candidates for the primary key, list them and explain which one you chose as the primary key and why you chose it as the primary key
    12 
    13 List of entity attributes, for each of them: the data type (numeric/text/date/…) and whether there are any restrictions in the input form/format (required/optional, special format, value interval, …)
    14 
    15 **NAME OF ENTITY/RELATIONSHIP**
    166
    177DESCREPTION OF THE ENTITY/RELATIONSHIP
     
    2313
    2414**1.User:**
     15* **Candidate Keys**
    2516   * user_id (bigint) - primary key
     17* **Attirbutes**
    2618   * email (text)
    2719   * username (bigint)
     
    3022
    3123**2.Admin:**
     24* **Candidate Keys**
     25* **Attributes:**
    3226   * type (text)
    3327   * employee_id (bigint)
     
    3529**3.Consumer**
    3630* **Candidate Keys**
     31* **Attributes:**
    3732   * telephone_number (text)
    3833   * shipping_address (text)
     
    4742   * wishlist_id (bigint) - foreign key(Wishlist)
    4843   * product_id (bigint) - foreign key(Product)
     44* **Attributes:**
    4945   * added_at (date)
    5046
     
    5248* **Candidate Keys**
    5349   * product_id (bigint) - primary key
     50* **Attributes:**
    5451   * format (enum)
    5552   * price (bigint)
     
    6057* **Candidate Keys**
    6158   * release_id (bigint) - primary key
     59* **Attributes:**
    6260   * title (text)
    6361   * record_label (text)
     
    7674* **Candidate Keys**
    7775   * artist_id (bigint) - primary key
     76* **Attributes:**
    7877   * artist_name(text)
    7978   * description(text)
     
    8382* **Candidate Keys**
    8483   * song_id(bigint) - primary key
     84* **Attributes:**
    8585   * song_name(text)
    8686   * featured_artist (text)
     
    9191   * order_id (bigint) - foreign key(Order)
    9292   * product_id (bigint) - foreign key(Product)
     93* **Attributes:**
    9394   * price_at_purchase (bigint)
    9495   * quantity (bigint)