Changes between Version 1 and Version 2 of RelationalDesign


Ignore:
Timestamp:
01/04/24 17:51:07 (6 months ago)
Author:
184006
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RelationalDesign

    v1 v2  
    1 == primer
     1== Релациска шема
     2
     3=== Ознаки
     4* PK Примарните клучеви се означени со bold и underline
     5* FK Надворешните клучеви се означени со *,#,%,&, @
     6* Задолжителни атрибути, односно **not null со bold**
     7
     8=== Табели
     9* Roles **(__id__, type)**
     10* Cities **(__id__, name, adress, phonenumber)**
     11* Vet_Centers **(__id__, name, description, adress, phonenumber, latitude, longitude, workinghours, citiesid*)**
     12{{{
     13*референца од Cities(id)
     14}}}
     15* Jobs **(__id__, description, predictedsalery, vetcenters_id*)**
     16{{{
     17*референца од Vet_centers(id)
     18}}}
     19* Users**(__id__, name, lastname, email, password number, role_id*, jobs_id@)**
     20{{{
     21*референца од Roles(id)
     22@референца од Jobs(id)
     23}}}
     24* Blog_Post_For_Consultations **(__id__, date_asked, title, description, users_id* )**
     25{{{
     26*референца од Users(id)
     27}}}
     28* Blog_Post_Answers **(__id__, parent_id, reply, blogpostconsid* )**
     29{{{
     30*референца од Blog_Post_For_Consultations(id)
     31}}}
     32* Pet_Cares **(__id__, title, description, dateending, usersid*, vetcentersid@ )**
     33{{{
     34*референца од Users(id)
     35*референца од Vet_centers(id)
     36}}}
     37* Type_of_pets**(__id__, description, name)**
     38* Pets **(__id__, color, description, dateofbirthday, usersid*, typeofpetsid@ )**
     39{{{
     40*референца од Users(id)
     41*референца од Type_of_pets(id)
     42}}}
     43* Pet_galery **(__id__, picture, petsid*)**
     44{{{
     45*референца од Pets(id)
     46}}}
     47* Reports **(__id__, description, usersid*, petsid@ )**
     48{{{
     49*референца од Users(id)
     50@референца од Pets(id)
     51}}}
     52* Diagnostics **(__id__, description, usersid*)**
     53{{{
     54*референца од Users(id)
     55}}}
     56* Manufacturers **(__id__, description, city, state)**
     57* Medecines **(__id__, name, description, dateofbirthday, diagnosticsid*, manufacturersid@ )**
     58{{{
     59*референца од Diagnostics(id)
     60@референца од Manufacturers(id)
     61}}}
     62* Pet_status **(__id__, type, node)**
     63* Therapy **(__id__, description, appoitmentdate, diagnosticsid*, petstatus@ )**
     64{{{
     65*референца од Diagnostics(id)
     66@референца од Pet_status(id)
     67}}}
     68* Breeds **(__id__, name)**
     69* Products **(__id__, name, description, price, isactive, dateadded, category)**
     70* Orders **(__id__, quantity)**
     71* Pets_visit_vet_centers **(__id_pets*__, __id_vet_centers@__)**
     72{{{
     73*референца од Pets(id)
     74@референца од Vet_centers(id)
     75}}}
     76* Products_there_are_for_pets **(__id_products*__, __id_pets@__)**
     77{{{
     78*референца од Products(id)
     79@референца од Pets(id)
     80}}}
     81* Product_are_made_orders **(__id_products*__, __id_orders@__)**
     82{{{
     83*референца од Products(id)
     84@референца од Orders(id)
     85}}}
     86* Products_available_type_of_pets **(__id_products*__, __id_type_of_pets@__)**
     87{{{
     88*референца од Products(id)
     89@референца од Type_of_pets(id)
     90}}}
     91* Therapy_takes_pets**(__id_therapy*__, __id_pets@__)**
     92{{{
     93*референца од Therapy(id)
     94@референца од Pets(id)
     95}}}
     96
     97=== DDL скрипта за бришење на табелите и креирање на табелите
     98
     99[https://develop.finki.ukim.mk/projects/VetCareConnect/attachment/wiki/RelationalDesign/Kreiranje1.sql kreiranje.sql]
     100=== DML скрипта за полнење на табелите со податоци
     101[https://develop.finki.ukim.mk/projects/VetCareConnect/attachment/wiki/RelationalDesign/Dodavanje1.sql
     102dodavanje.sql]
     103=== Релациски дијаграм изваден од DBeaver
     104[[Image(schema_1.jpg)]]