Changes between Version 8 and Version 9 of Normalization


Ignore:
Timestamp:
09/21/26 20:37:19 (7 days ago)
Author:
201165
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Normalization

    v8 v9  
    127127
    128128=== R4 - RESTRICTION
     129Проверка на кандидат-клучот: restriction_id е примарен клуч; restr_description е алтернативен K.
     130{{{
     131{restriction_id} → {restr_description, restr_type}
     132}}}
     133||= restriction_id =||= restr_description =||= type =||
     134|| 12 || No animal origins || vegan ||
     135|| 20 || Only animal origins || carnivore ||
     136* Спојување без загуба во случајов се изведува од R4 ∩ R′ = {restriction_id}
    129137=== R5 - RECIPE
     138Проверка на кандидат-клучот: recipe_id е примарен клуч. user_id е надворешен клуч кон R1.
     139{{{
     140{recipe_id} → {recipe_name, guide, kcal_sum, servings, user_id}
     141}}}
     142
     143||= recipe_id =||= name =||= guide =||= kcal_sum =||= servings =||= user_id =||
     144|| 1 || Omlette|| 1.Get Eggs 2... || 1167 || 1 || 2 ||
     145|| 2 || Cesar Salad || 1. Get Bowl 2... || 2400 || 2 || 3 ||
     146* Спојување без загуба во случајов се изведува од R5 ∩ R′ = {recipe_id, user_id}
     147
     148
    130149=== R6 - POST
     150Проверка на кандидат-клучот: post_id е примарен клуч. recipe_id е алтернативен клуч (UNIQUE, дозволува NULL), кој ја реализира врската POSTS_ON 1:1. user_id ја реализира CREATES.
     151{{{
     152{post_id} → {media, media_type, media_name, is_private, is_favourite, status, post_created_at, user_id, recipe_id}
     153}}}
     154
     155||= post_id =||= is_private =||= is_favourite =||= status =||= created_at =||= user_id =||= recipe_id =||=
     156|| 1 || true || true  || published || 2026-01-30 07:30 || 2 || NULL ||
     157|| 2 || true  || false || published || 2026-03-20 09:35 || 3 || 1 ||
     158* Спојување без загуба во случајов се изведува од R6 ∩ R′ = {post_id, user_id, recipe_id}.
    131159=== R7 - COMMENT
     160
    132161=== R8 - GROCERY_LIST
    133162=== R9 - INTAKE_PLANNER