Browse Source

Init users, Other improvements

master
Apostolos Fanakis 6 years ago
parent
commit
68cbd960a7
  1. 2
      Database design/res/diagrams/Copy of Flavors without borders ERD.svg
  2. 2
      Database design/res/diagrams/Copy of Flavors without borders relational diagram.svg
  3. 97
      Database design/res/diagrams/ERD.pdf_tex
  4. 175
      Database design/res/diagrams/Relational_Diagram.pdf_tex
  5. 6
      Database implementation/dumps/Project Folder/flavours_without_borders_diet.sql
  6. 4
      Database implementation/dumps/Project Folder/flavours_without_borders_diet_prohibits_ingredient.sql
  7. 4
      Database implementation/dumps/Project Folder/flavours_without_borders_drink.sql
  8. 2
      Database implementation/dumps/Project Folder/flavours_without_borders_drink_has_ingredient.sql
  9. 2
      Database implementation/dumps/Project Folder/flavours_without_borders_food.sql
  10. 2
      Database implementation/dumps/Project Folder/flavours_without_borders_food_has_ingredient.sql
  11. 2
      Database implementation/dumps/Project Folder/flavours_without_borders_ingredient.sql
  12. 2
      Database implementation/dumps/Project Folder/flavours_without_borders_permission.sql
  13. 2
      Database implementation/dumps/Project Folder/flavours_without_borders_restaurant.sql
  14. 2
      Database implementation/dumps/Project Folder/flavours_without_borders_role.sql
  15. 2
      Database implementation/dumps/Project Folder/flavours_without_borders_role_has_permission.sql
  16. 121
      Database implementation/dumps/Project Folder/flavours_without_borders_routines.sql
  17. 2
      Database implementation/dumps/Project Folder/flavours_without_borders_user.sql
  18. 4
      Database implementation/dumps/Project Folder/flavours_without_borders_user_follows_diet.sql
  19. 4
      Database implementation/dumps/Project Folder/flavours_without_borders_user_prohibits_ingredient.sql
  20. 4
      Database implementation/dumps/Project Folder/flavours_without_borders_user_rates_drink.sql
  21. 4
      Database implementation/dumps/Project Folder/flavours_without_borders_user_rates_food.sql
  22. 2
      Database implementation/dumps/Project Folder/flavours_without_borders_user_rates_restaurant.sql
  23. 110
      Database implementation/dumps/Self Contained/dump.sql
  24. BIN
      Database implementation/model/erd.png
  25. 2665
      Database implementation/model/erd.svg
  26. BIN
      Database implementation/model/model.mwb
  27. 39
      Database implementation/users/users.sql

2
Database design/res/diagrams/Copy of Flavors without borders ERD.svg

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 93 KiB

After

Width:  |  Height:  |  Size: 96 KiB

2
Database design/res/diagrams/Copy of Flavors without borders relational diagram.svg

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 81 KiB

97
Database design/res/diagrams/ERD.pdf_tex

@ -60,7 +60,7 @@
\put(0,0){\includegraphics[width=\unitlength,page=3]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=3]{res/diagrams/ERD.pdf}}%
\put(0.58768204,0.17930825){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\end{tabular}}}}% \put(0.58768204,0.17930825){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=4]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=4]{res/diagrams/ERD.pdf}}%
\put(0.79945388,0.43841019){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\end{tabular}}}}% \put(0.79884709,0.43841019){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=5]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=5]{res/diagrams/ERD.pdf}}%
\put(0.40625,0.54277913){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}food\end{tabular}}}}% \put(0.40625,0.54277913){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}food\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=6]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=6]{res/diagrams/ERD.pdf}}%
@ -72,15 +72,15 @@
\put(0,0){\includegraphics[width=\unitlength,page=9]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=9]{res/diagrams/ERD.pdf}}%
\put(0.68476942,0.51061893){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{restaurant\_id}\end{tabular}}}}% \put(0.68476942,0.51061893){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{restaurant\_id}\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=10]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=10]{res/diagrams/ERD.pdf}}%
\put(0.93294903,0.50394417){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_rating\end{tabular}}}}% \put(0.93355583,0.50333738){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_rating\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=11]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=11]{res/diagrams/ERD.pdf}}%
\put(0.62408981,0.47967233){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}1\end{tabular}}}}% \put(0.62408981,0.47967233){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}1\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=12]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=12]{res/diagrams/ERD.pdf}}%
\put(0.47299757,0.53246359){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}N\end{tabular}}}}% \put(0.47299757,0.53367718){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}N\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=13]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=13]{res/diagrams/ERD.pdf}}%
\put(0.5306432,0.52032767){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}offers\end{tabular}}}}% \put(0.5306432,0.52032767){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}offers\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=14]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=14]{res/diagrams/ERD.pdf}}%
\put(0.92991505,0.46753641){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_reviews\_number\end{tabular}}}}% \put(0.92991505,0.46692961){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_reviews\_number\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=15]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=15]{res/diagrams/ERD.pdf}}%
\put(0.6871966,0.55491505){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_name\end{tabular}}}}% \put(0.6871966,0.55491505){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_name\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=16]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=16]{res/diagrams/ERD.pdf}}%
@ -110,11 +110,11 @@
\put(0,0){\includegraphics[width=\unitlength,page=28]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=28]{res/diagrams/ERD.pdf}}%
\put(0.46571602,0.68598301){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}food\_is\_approved\end{tabular}}}}% \put(0.46571602,0.68598301){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}food\_is\_approved\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=29]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=29]{res/diagrams/ERD.pdf}}%
\put(0.51729369,0.65928398){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}food\_rating\end{tabular}}}}% \put(0.51729369,0.65867718){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}food\_rating\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=30]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=30]{res/diagrams/ERD.pdf}}%
\put(0.55006068,0.62287621){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}food\_reviews\_number\end{tabular}}}}% \put(0.55066748,0.62226942){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}food\_reviews\_number\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=31]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=31]{res/diagrams/ERD.pdf}}%
\put(0.54824029,0.59010922){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}food\_portion\_size\end{tabular}}}}% \put(0.54824029,0.58950243){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}food\_portion\_size\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=32]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=32]{res/diagrams/ERD.pdf}}%
\put(0.10042476,0.51001214){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{drink\_id}\end{tabular}}}}% \put(0.10042476,0.51001214){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{drink\_id}\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=33]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=33]{res/diagrams/ERD.pdf}}%
@ -124,11 +124,11 @@
\put(0,0){\includegraphics[width=\unitlength,page=35]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=35]{res/diagrams/ERD.pdf}}%
\put(0.08222087,0.61680825){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}drink\_is\_approved\end{tabular}}}}% \put(0.08222087,0.61680825){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}drink\_is\_approved\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=36]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=36]{res/diagrams/ERD.pdf}}%
\put(0.15260922,0.64411408){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}drink\_rating\end{tabular}}}}% \put(0.15260922,0.64350728){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}drink\_rating\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=37]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=37]{res/diagrams/ERD.pdf}}%
\put(0.22542476,0.61438107){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}drink\_reviews\_number\end{tabular}}}}% \put(0.22603155,0.61377427){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}drink\_reviews\_number\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=38]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=38]{res/diagrams/ERD.pdf}}%
\put(0.28489078,0.55734223){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}drink\_portion\_size\end{tabular}}}}% \put(0.28549757,0.55673544){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}drink\_portion\_size\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=39]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=39]{res/diagrams/ERD.pdf}}%
\put(0.0779733,0.25394417){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{ingredient\_name}\end{tabular}}}}% \put(0.0779733,0.25394417){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{ingredient\_name}\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=40]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=40]{res/diagrams/ERD.pdf}}%
@ -142,9 +142,9 @@
\put(0,0){\includegraphics[width=\unitlength,page=44]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=44]{res/diagrams/ERD.pdf}}%
\put(0.35406553,0.08100728){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}diet\_is\_approved\end{tabular}}}}% \put(0.35406553,0.08100728){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}diet\_is\_approved\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=45]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=45]{res/diagrams/ERD.pdf}}%
\put(0.48149272,0.10831311){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{user\_id}\end{tabular}}}}% \put(0.48149272,0.12044903){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{user\_id}\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=46]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=46]{res/diagrams/ERD.pdf}}%
\put(0.49423544,0.07493932){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_email\end{tabular}}}}% \put(0.60588592,0.05612864){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_age\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=47]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=47]{res/diagrams/ERD.pdf}}%
\put(0.19265777,0.14775485){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}prohibits\end{tabular}}}}% \put(0.19265777,0.14775485){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}prohibits\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=48]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=48]{res/diagrams/ERD.pdf}}%
@ -156,7 +156,7 @@
\put(0,0){\includegraphics[width=\unitlength,page=51]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=51]{res/diagrams/ERD.pdf}}%
\put(0.19265777,0.38865291){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}has\end{tabular}}}}% \put(0.19265777,0.38865291){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}has\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=52]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=52]{res/diagrams/ERD.pdf}}%
\put(0.6878034,0.17930825){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}M\end{tabular}}}}% \put(0.6871966,0.17930825){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}1\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=53]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=53]{res/diagrams/ERD.pdf}}%
\put(0.77760922,0.17930825){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}has\end{tabular}}}}% \put(0.77760922,0.17930825){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}has\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=54]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=54]{res/diagrams/ERD.pdf}}%
@ -166,47 +166,47 @@
\put(0,0){\includegraphics[width=\unitlength,page=56]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=56]{res/diagrams/ERD.pdf}}%
\put(0.86620146,0.36559466){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}owns\end{tabular}}}}% \put(0.86620146,0.36559466){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}owns\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=57]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=57]{res/diagrams/ERD.pdf}}%
\put(0.69872573,0.4378034){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}1\end{tabular}}}}% \put(0.69811893,0.4378034){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}1\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=58]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=58]{res/diagrams/ERD.pdf}}%
\put(0.28489078,0.48331311){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}N\end{tabular}}}}% \put(0.28489078,0.48331311){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}N\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=59]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=59]{res/diagrams/ERD.pdf}}%
\put(0.19326456,0.43537621){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}1\end{tabular}}}}% \put(0.19265777,0.43598301){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}M\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=60]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=60]{res/diagrams/ERD.pdf}}%
\put(0.32615291,0.50212379){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}1\end{tabular}}}}% \put(0.32554612,0.50212379){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}M\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=61]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=61]{res/diagrams/ERD.pdf}}%
\put(0.24362864,0.14775485){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}M\end{tabular}}}}% \put(0.24302184,0.14775485){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}M\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=62]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=62]{res/diagrams/ERD.pdf}}%
\put(0.19265777,0.19205097){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}N\end{tabular}}}}% \put(0.19205097,0.19205097){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}N\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=63]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=63]{res/diagrams/ERD.pdf}}%
\put(0.48998786,0.16535194){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}M\end{tabular}}}}% \put(0.48998786,0.16535194){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}M\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=64]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=64]{res/diagrams/ERD.pdf}}%
\put(0.36498786,0.14775485){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}N\end{tabular}}}}% \put(0.36438107,0.14775485){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}N\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=65]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=65]{res/diagrams/ERD.pdf}}%
\put(0.49059466,0.20661408){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}M\end{tabular}}}}% \put(0.48998786,0.20661408){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}M\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=66]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=66]{res/diagrams/ERD.pdf}}%
\put(0.27336165,0.22785194){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}N\end{tabular}}}}% \put(0.27275485,0.22785194){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}N\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=67]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=67]{res/diagrams/ERD.pdf}}%
\put(0.84496359,0.17930825){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}N\end{tabular}}}}% \put(0.8443568,0.17930825){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}N\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=68]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=68]{res/diagrams/ERD.pdf}}%
\put(0.9214199,0.13379854){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}M\end{tabular}}}}% \put(0.9214199,0.13440534){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}M\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=69]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=69]{res/diagrams/ERD.pdf}}%
\put(0.90989078,0.02518204){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}N\end{tabular}}}}% \put(0.90989078,0.02578883){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}N\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=70]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=70]{res/diagrams/ERD.pdf}}%
\put(0.5476335,0.05066748){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_username\end{tabular}}}}% \put(0.52760922,0.0628034){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_username\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=71]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=71]{res/diagrams/ERD.pdf}}%
\put(0.62894417,0.06887136){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_hashed\_password\end{tabular}}}}% \put(0.6726335,0.08161408){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_hashed\_password\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=72]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=72]{res/diagrams/ERD.pdf}}%
\put(0.68294903,0.09617718){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_salt\end{tabular}}}}% \put(0.72360437,0.10770631){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_salt\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=73]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=73]{res/diagrams/ERD.pdf}}%
\put(0.71268204,0.12955097){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_number\_of\_reviews\end{tabular}}}}% \put(0.73027913,0.13865291){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_number\_of\_reviews\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=74]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=74]{res/diagrams/ERD.pdf}}%
\put(0.72845874,0.04399272){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{permission\_id}\end{tabular}}}}% \put(0.72845874,0.04399272){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{permission\_id}\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=75]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=75]{res/diagrams/ERD.pdf}}%
\put(0.71632282,0.00879854){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}permission\_description\end{tabular}}}}% \put(0.71632282,0.00879854){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}permission\_description\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=76]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=76]{res/diagrams/ERD.pdf}}%
\put(0.86620146,0.41231796){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}1\end{tabular}}}}% \put(0.86620146,0.41292476){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}1\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=77]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=77]{res/diagrams/ERD.pdf}}%
\put(0.78974515,0.21086165){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}1\end{tabular}}}}% \put(0.78974515,0.21146845){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}1\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=78]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=78]{res/diagrams/ERD.pdf}}%
\put(0.89532767,0.23027913){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{role\_id}\end{tabular}}}}% \put(0.89532767,0.23027913){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{role\_id}\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=79]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=79]{res/diagrams/ERD.pdf}}%
@ -214,23 +214,23 @@
\put(0,0){\includegraphics[width=\unitlength,page=80]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=80]{res/diagrams/ERD.pdf}}%
\put(0.90442961,0.26061893){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}role\_name\end{tabular}}}}% \put(0.90442961,0.26061893){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}role\_name\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=81]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=81]{res/diagrams/ERD.pdf}}%
\put(0.19326456,0.32251214){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}N\end{tabular}}}}% \put(0.19265777,0.32311893){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}N\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=82]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=82]{res/diagrams/ERD.pdf}}%
\put(0.23816748,0.30370146){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}N\end{tabular}}}}% \put(0.23756068,0.30370146){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}N\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=83]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=83]{res/diagrams/ERD.pdf}}%
\put(0.75758495,0.22178398){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}Μ\end{tabular}}}}% \put(0.75697816,0.22239078){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}Μ\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=84]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=84]{res/diagrams/ERD.pdf}}%
\put(0.79945388,0.36498786){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}Ν\end{tabular}}}}% \put(0.79884709,0.36498786){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}Ν\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=85]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=85]{res/diagrams/ERD.pdf}}%
\put(0.40260922,0.25879854){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}1\end{tabular}}}}% \put(0.40321602,0.25940534){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}1\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=86]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=86]{res/diagrams/ERD.pdf}}%
\put(0.48695388,0.30066748){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}Μ\end{tabular}}}}% \put(0.48634709,0.30127427){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}Μ\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=87]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=87]{res/diagrams/ERD.pdf}}%
\put(0.48756068,0.47845874){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}Ν\end{tabular}}}}% \put(0.48695388,0.47845874){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}Ν\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=88]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=88]{res/diagrams/ERD.pdf}}%
\put(0.40382282,0.27214806){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}Μ\end{tabular}}}}% \put(0.40382282,0.27275485){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}Μ\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=89]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=89]{res/diagrams/ERD.pdf}}%
\put(0.30248786,0.46510922){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}Ν\end{tabular}}}}% \put(0.30127427,0.46571602){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}Ν\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=90]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=90]{res/diagrams/ERD.pdf}}%
\put(0.31826456,0.38865291){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rates\end{tabular}}}}% \put(0.31826456,0.38865291){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rates\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=91]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=91]{res/diagrams/ERD.pdf}}%
@ -238,26 +238,31 @@
\put(0,0){\includegraphics[width=\unitlength,page=92]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=92]{res/diagrams/ERD.pdf}}%
\put(0.75758495,0.26001214){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rates\end{tabular}}}}% \put(0.75758495,0.26001214){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rates\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=93]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=93]{res/diagrams/ERD.pdf}}%
\put(0.38743932,0.44508495){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_grade\end{tabular}}}}% \put(0.38683252,0.44508495){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_grade\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=94]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=94]{res/diagrams/ERD.pdf}}%
\put(0.42081311,0.4056432){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_text\end{tabular}}}}% \put(0.42020631,0.4056432){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_text\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=95]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=95]{res/diagrams/ERD.pdf}}%
\put(0.42930825,0.36134709){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_date\end{tabular}}}}% \put(0.42930825,0.36134709){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_date\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=96]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=96]{res/diagrams/ERD.pdf}}%
\put(0.39654126,0.31462379){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_portion\_size\end{tabular}}}}% \put(0.39654126,0.31462379){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_portion\_size\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=97]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=97]{res/diagrams/ERD.pdf}}%
\put(0.6089199,0.41777913){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_grade\end{tabular}}}}% \put(0.60831311,0.41777913){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_grade\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=98]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=98]{res/diagrams/ERD.pdf}}%
\put(0.62651699,0.37773058){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_text\end{tabular}}}}% \put(0.62591019,0.37773058){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_text\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=99]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=99]{res/diagrams/ERD.pdf}}%
\put(0.60527913,0.34010922){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_date\end{tabular}}}}% \put(0.60527913,0.34010922){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_date\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=100]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=100]{res/diagrams/ERD.pdf}}%
\put(0.55734223,0.31158981){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_portion\_size\end{tabular}}}}% \put(0.55734223,0.31158981){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_portion\_size\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=101]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=101]{res/diagrams/ERD.pdf}}%
\put(0.66595874,0.29945388){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_grade\end{tabular}}}}% \put(0.65867718,0.28367718){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_grade\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=102]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=102]{res/diagrams/ERD.pdf}}%
\put(0.75212379,0.36438107){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_text\end{tabular}}}}% \put(0.70175971,0.34132282){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_text\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=103]{res/diagrams/ERD.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=103]{res/diagrams/ERD.pdf}}%
\put(0.68962379,0.33404126){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_date\end{tabular}}}}% \put(0.66959951,0.31462379){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_date\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=104]{res/diagrams/ERD.pdf}}%
\put(0.73634709,0.37166262){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_accessibility\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=105]{res/diagrams/ERD.pdf}}%
\put(0.48331311,0.08828883){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_email\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=106]{res/diagrams/ERD.pdf}}%
\end{picture}% \end{picture}%
\endgroup% \endgroup%

175
Database design/res/diagrams/Relational_Diagram.pdf_tex

@ -38,7 +38,7 @@
\newcommand*\fsize{\dimexpr\f@size pt\relax}% \newcommand*\fsize{\dimexpr\f@size pt\relax}%
\newcommand*\lineheight[1]{\fontsize{\fsize}{#1\fsize}\selectfont}% \newcommand*\lineheight[1]{\fontsize{\fsize}{#1\fsize}\selectfont}%
\ifx\svgwidth\undefined% \ifx\svgwidth\undefined%
\setlength{\unitlength}{592.125bp}% \setlength{\unitlength}{600.75bp}%
\ifx\svgscale\undefined% \ifx\svgscale\undefined%
\relax% \relax%
\else% \else%
@ -50,160 +50,163 @@
\global\let\svgwidth\undefined% \global\let\svgwidth\undefined%
\global\let\svgscale\undefined% \global\let\svgscale\undefined%
\makeatother% \makeatother%
\begin{picture}(1,1.34497209)% \begin{picture}(1,1.32566226)%
\lineheight{1}% \lineheight{1}%
\setlength\tabcolsep{0pt}% \setlength\tabcolsep{0pt}%
\put(0,0){\includegraphics[width=\unitlength,page=1]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=1]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.14692844,1.30968968){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{restaurant\_id}\end{tabular}}}}% \put(0.14481898,1.29088639){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{restaurant\_id}\end{tabular}}}}%
\put(0.12919569,1.33628879){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\end{tabular}}}}% \put(0.12734082,1.31710362){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=2]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=2]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.30778974,1.30968968){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_name\end{tabular}}}}% \put(0.30337079,1.29088639){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_name\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=3]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=3]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.49525016,1.30968968){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_category\end{tabular}}}}% \put(0.48813983,1.29088639){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_category\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=4]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=4]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.39138695,1.27802407){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_opening\end{tabular}}}}% \put(0.38576779,1.25967541){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_opening\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=5]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=5]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.70044332,1.30968968){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_longitude\end{tabular}}}}% \put(0.69038702,1.29088639){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_longitude\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=6]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=6]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.90436985,1.30968968){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_latitude\end{tabular}}}}% \put(0.89138577,1.29088639){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_latitude\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=7]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=7]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.58771374,1.27802407){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_closing\end{tabular}}}}% \put(0.57927591,1.25967541){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_closing\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=8]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=8]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.8030399,1.27802407){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_is\_approved\end{tabular}}}}% \put(0.79151061,1.25967541){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_is\_approved\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=9]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=9]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.96136795,1.27802407){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_id\end{tabular}}}}% \put(0.94756554,1.25967541){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_id\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=10]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=10]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.11652945,1.18556048){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{user\_id}\end{tabular}}}}% \put(0.11360799,1.16853933){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{user\_id}\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=11]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=11]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.23052565,1.18556048){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{restaurant\_id}\end{tabular}}}}% \put(0.22222222,1.16853933){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{restaurant\_id}\end{tabular}}}}%
\put(0.18366054,1.21215959){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_rates\_restaurant\end{tabular}}}}% \put(0.18102372,1.19475655){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_rates\_restaurant\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=12]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=12]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.36985434,1.18556048){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_grade\end{tabular}}}}% \put(0.43945069,1.16853933){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_grade\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=13]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=13]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.49778341,1.18556048){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_text\end{tabular}}}}% \put(0.56429463,1.16853933){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_text\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=14]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=14]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.61684611,1.18556048){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_date\end{tabular}}}}% \put(0.68289638,1.16853933){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_date\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=15]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=15]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.71564281,1.18556048){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}diet\_id\end{tabular}}}}% \put(0.33333333,1.16853933){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{diet\_id}\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=16]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=16]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.11526282,1.10069664){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{food\_id}\end{tabular}}}}% \put(0.11360799,1.08489388){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{food\_id}\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=17]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=17]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.20772641,1.10069664){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}food\_name\end{tabular}}}}% \put(0.20474407,1.08489388){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}food\_name\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=18]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=18]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.34452185,1.10069664){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}food\_description\end{tabular}}}}% \put(0.33957553,1.08489388){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}food\_description\end{tabular}}}}%
\put(0.10006333,1.12729576){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}food\end{tabular}}}}% \put(0.09862672,1.11111111){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}food\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=19]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=19]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.50284991,1.10069664){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}food\_calories\end{tabular}}}}% \put(0.49563046,1.08489388){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}food\_calories\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=20]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=20]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.66244459,1.10069664){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}food\_is\_approved\end{tabular}}}}% \put(0.65293383,1.08489388){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}food\_is\_approved\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=21]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=21]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.82077264,1.10069664){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_id\end{tabular}}}}% \put(0.80898876,1.08489388){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_id\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=22]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=22]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.12286257,1.01709943){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{food\_id}\end{tabular}}}}% \put(0.12109863,1.00249688){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{food\_id}\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=23]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=23]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.25585814,1.01709943){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{ingredient\_name}\end{tabular}}}}% \put(0.25218477,1.00249688){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{ingredient\_name}\end{tabular}}}}%
\put(0.17479417,1.04369854){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}food\_has\_ingredient\end{tabular}}}}% \put(0.17228464,1.02871411){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}food\_has\_ingredient\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=24]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=24]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.12286257,0.93223559){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{drink\_id}\end{tabular}}}}% \put(0.12109863,0.91885144){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{drink\_id}\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=25]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=25]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.2229259,0.93223559){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}drink\_name\end{tabular}}}}% \put(0.21972534,0.91885144){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}drink\_name\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=26]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=26]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.37112096,0.93223559){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}drink\_description\end{tabular}}}}% \put(0.36579276,0.91885144){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}drink\_description\end{tabular}}}}%
\put(0.10512983,0.95883471){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}drink\end{tabular}}}}% \put(0.10362047,0.94506866){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}drink\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=27]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=27]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.55478151,0.93223559){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}drink\_is\_approved\end{tabular}}}}% \put(0.54681648,0.91885144){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}drink\_is\_approved\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=28]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=28]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.71817606,0.93223559){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_id\end{tabular}}}}% \put(0.70786517,0.91885144){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}restaurant\_id\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=29]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=29]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.12159595,0.84863838){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{drink\_id}\end{tabular}}}}% \put(0.11985019,0.83645443){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{drink\_id}\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=30]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=30]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.25712476,0.84863838){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{ingredient\_name}\end{tabular}}}}% \put(0.25343321,0.83645443){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{ingredient\_name}\end{tabular}}}}%
\put(0.17859405,0.87523749){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}drink\_has\_ingredient\end{tabular}}}}% \put(0.17602996,0.86267166){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}drink\_has\_ingredient\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=31]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=31]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.11526282,0.76377454){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{user\_id}\end{tabular}}}}% \put(0.11360799,0.75280899){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{user\_id}\end{tabular}}}}%
\put(0.15452818,0.79037365){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_rates\_food\end{tabular}}}}% \put(0.15230961,0.77902622){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_rates\_food\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=32]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=32]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.19886004,0.76377454){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{food\_id}\end{tabular}}}}% \put(0.19600499,0.75280899){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{food\_id}\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=33]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=33]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.30652312,0.76377454){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_grade\end{tabular}}}}% \put(0.30212235,0.75280899){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_grade\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=34]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=34]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.43318556,0.76377454){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_text\end{tabular}}}}% \put(0.42696629,0.75280899){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_text\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=35]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=35]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.55478151,0.76377454){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_date\end{tabular}}}}% \put(0.54681648,0.75280899){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_date\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=36]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=36]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.71437619,0.76377454){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_pοrtion\_size\end{tabular}}}}% \put(0.70411985,0.75280899){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_pοrtion\_size\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=37]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=37]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.11526282,0.68017733){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{user\_id}\end{tabular}}}}% \put(0.11360799,0.67041199){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{user\_id}\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=38]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=38]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.20519316,0.68017733){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{drink\_id}\end{tabular}}}}% \put(0.20224719,0.67041199){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{drink\_id}\end{tabular}}}}%
\put(0.15959468,0.70677644){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_rates\_drink\end{tabular}}}}% \put(0.15730337,0.69662921){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_rates\_drink\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=39]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=39]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.73717543,0.68017733){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_pοrtion\_size\end{tabular}}}}% \put(0.72659176,0.67041199){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_pοrtion\_size\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=40]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=40]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.57124763,0.68017733){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_date\end{tabular}}}}% \put(0.56304619,0.67041199){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_date\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=41]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=41]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.44838505,0.68017733){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_text\end{tabular}}}}% \put(0.44194757,0.67041199){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_text\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=42]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=42]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.31792274,0.68017733){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_grade\end{tabular}}}}% \put(0.3133583,0.67041199){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_grade\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=43]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=43]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.15832806,0.59531349){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{ingredient\_name}\end{tabular}}}}% \put(0.15605493,0.58676654){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{ingredient\_name}\end{tabular}}}}%
\put(0.12919569,0.6219126){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}ingredient\end{tabular}}}}% \put(0.12734082,0.61298377){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}ingredient\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=44]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=44]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.35718809,0.59531349){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}ingredient\_has\_alcohol\end{tabular}}}}% \put(0.35205993,0.58676654){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}ingredient\_has\_alcohol\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=45]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=45]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.11652945,0.51171628){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{user\_id}\end{tabular}}}}% \put(0.11485643,0.50436954){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{user\_id}\end{tabular}}}}%
\put(0.20392654,0.53831539){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_prohibits\_ingredient\end{tabular}}}}% \put(0.20099875,0.53058677){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_prohibits\_ingredient\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=46]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=46]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.24445852,0.51171628){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{ingredient\_name}\end{tabular}}}}% \put(0.24094881,0.50436954){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{ingredient\_name}\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=47]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=47]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.70170994,0.25965801){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{diet\_id}\end{tabular}}}}% \put(0.69163546,0.25593009){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{diet\_id}\end{tabular}}}}%
\put(0.79037365,0.28625712){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}diet\_prohibits\_ingredient\end{tabular}}}}% \put(0.77902622,0.28214732){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}diet\_prohibits\_ingredient\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=48]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=48]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.82837239,0.25965801){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{ingredient\_name}\end{tabular}}}}% \put(0.8164794,0.25593009){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{ingredient\_name}\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=49]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=49]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.11652945,0.42685244){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{user\_id}\end{tabular}}}}% \put(0.11485643,0.42072409){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{user\_id}\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=50]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=50]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.33818873,0.42685244){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_username\end{tabular}}}}% \put(0.33333333,0.42072409){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_username\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=51]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=51]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.21025966,0.42685244){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_email\end{tabular}}}}% \put(0.20724095,0.42072409){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_email\end{tabular}}}}%
\put(0.10006333,0.45345155){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\end{tabular}}}}% \put(0.09862672,0.44694132){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=52]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=52]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.51551615,0.42685244){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_hashed\_password\end{tabular}}}}% \put(0.60799001,0.42072409){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_hashed\_password\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=53]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=53]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.67131096,0.42685244){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_salt\end{tabular}}}}% \put(0.76154806,0.42072409){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_salt\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=54]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=54]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.76250792,0.42685244){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}role\_id\end{tabular}}}}% \put(0.85143571,0.42072409){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}role\_id\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=55]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=55]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.11652945,0.34325522){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{user\_id}\end{tabular}}}}% \put(0.11485643,0.33832709){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{user\_id}\end{tabular}}}}%
\put(0.16466118,0.36985434){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_follows\_diet\end{tabular}}}}% \put(0.16229713,0.36454432){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_follows\_diet\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=56]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=56]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.19886004,0.34325522){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{diet\_id}\end{tabular}}}}% \put(0.19600499,0.33832709){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{diet\_id}\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=57]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=57]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.11652945,0.25965801){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}diet\_id\end{tabular}}}}% \put(0.11485643,0.25593009){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}diet\_id\end{tabular}}}}%
\put(0.10006333,0.28625712){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}diet\end{tabular}}}}% \put(0.09862672,0.28214732){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}diet\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=58]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=58]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.21025966,0.25965801){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}diet\_name\end{tabular}}}}% \put(0.20724095,0.25593009){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}diet\_name\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=59]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=59]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.35085497,0.25965801){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}diet\_description\end{tabular}}}}% \put(0.34581773,0.25593009){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}diet\_description\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=60]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=60]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.52184927,0.25965801){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}diet\_is\_approved\end{tabular}}}}% \put(0.51435705,0.25593009){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}diet\_is\_approved\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=61]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=61]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.12159595,0.17479417){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{role\_id}\end{tabular}}}}% \put(0.11985019,0.16479401){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{role\_id}\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=62]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=62]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.2229259,0.17479417){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}role\_name\end{tabular}}}}% \put(0.21972534,0.16479401){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}role\_name\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=63]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=63]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.36225459,0.17479417){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}role\_description\end{tabular}}}}% \put(0.35705368,0.16479401){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}role\_description\end{tabular}}}}%
\put(0.10006333,0.20139329){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}role\end{tabular}}}}% \put(0.09862672,0.19101124){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}role\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=64]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=64]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.12286257,0.09119696){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{role\_id}\end{tabular}}}}% \put(0.12109863,0.08988764){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{role\_id}\end{tabular}}}}%
\put(0.17479417,0.11779607){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}role\_has\_permission\end{tabular}}}}% \put(0.17228464,0.11610487){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}role\_has\_permission\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=65]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=65]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.24319189,0.09119696){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{permission\_id}\end{tabular}}}}% \put(0.23970037,0.08988764){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{permission\_id}\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=66]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=66]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.14692844,0.00633312){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{permission\_id}\end{tabular}}}}% \put(0.14481898,0.0062422){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}\underline{permission\_id}\end{tabular}}}}%
\put(0.12919569,0.03293224){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}permission\end{tabular}}}}% \put(0.12734082,0.03245943){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}permission\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=67]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=67]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.3369221,0.00633312){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}permission\_description\end{tabular}}}}% \put(0.33208489,0.0062422){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}permission\_description\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=68]{res/diagrams/Relational_Diagram.pdf}}% \put(0,0){\includegraphics[width=\unitlength,page=68]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.84893883,1.16853933){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}rating\_accessibility\end{tabular}}}}%
\put(0,0){\includegraphics[width=\unitlength,page=69]{res/diagrams/Relational_Diagram.pdf}}%
\put(0.4556804,0.42072409){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}user\_age\end{tabular}}}}%
\end{picture}% \end{picture}%
\endgroup% \endgroup%

6
Database implementation/dumps/Project Folder/flavours_without_borders_diet.sql

@ -27,7 +27,7 @@ DROP TABLE IF EXISTS `diet`;
CREATE TABLE `diet` ( CREATE TABLE `diet` (
`diet_id` int(11) NOT NULL, `diet_id` int(11) NOT NULL,
`diet_name` varchar(200) NOT NULL, `diet_name` varchar(200) NOT NULL,
`diet_description` varchar(150) DEFAULT NULL, `diet_description` varchar(350) DEFAULT NULL,
`diet_is_approved` bit(1) DEFAULT b'0', `diet_is_approved` bit(1) DEFAULT b'0',
PRIMARY KEY (`diet_id`), PRIMARY KEY (`diet_id`),
UNIQUE KEY `diet_id_UNIQUE` (`diet_id`) UNIQUE KEY `diet_id_UNIQUE` (`diet_id`)
@ -40,7 +40,7 @@ CREATE TABLE `diet` (
LOCK TABLES `diet` WRITE; LOCK TABLES `diet` WRITE;
/*!40000 ALTER TABLE `diet` DISABLE KEYS */; /*!40000 ALTER TABLE `diet` DISABLE KEYS */;
INSERT INTO `diet` VALUES (2,'Διαβητικός/Διαβητική','Χαρακτηρίζεται από φαγητά χαμηλά σε ζάχαρη',_binary ''),(7,'Vegan','Not found',_binary '\0'),(13,'Bulking','Μόνο κρέας',_binary ''),(18,'Christian Fasting','Όχι τροφές παραγώμενες από ζώα και όχι λάδι',_binary ''),(20,'Vegetarian','Όχι vegan',_binary '\0'); INSERT INTO `diet` VALUES (2,'Διαβητικός/Διαβητική','Χαρακτηρίζεται από φαγητά χαμηλά σε ζάχαρη',_binary ''),(5,'Fruitarian','Διατροφή που αποτελείται κυρίως από φρούτα',_binary ''),(7,'Vegan','Not found',_binary '\0'),(9,'Ketogenic','Πρέπει να πετύχεις τη λεγόμενη κέτωση',_binary '\0'),(13,'Bulking','Μόνο κρέας',_binary ''),(14,'Kangatarian','Μορφή vegeterian διατροφής που περιλαμβάνει όμως κρέας κανγουρό',_binary ''),(18,'Christian Fasting','Όχι τροφές παραγώμενες από ζώα και όχι λάδι',_binary ''),(20,'Vegetarian','Όχι vegan',_binary '\0');
/*!40000 ALTER TABLE `diet` ENABLE KEYS */; /*!40000 ALTER TABLE `diet` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@ -53,4 +53,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-12-21 14:34:56 -- Dump completed on 2018-12-22 19:43:57

4
Database implementation/dumps/Project Folder/flavours_without_borders_diet_prohibits_ingredient.sql

@ -40,7 +40,7 @@ CREATE TABLE `diet_prohibits_ingredient` (
LOCK TABLES `diet_prohibits_ingredient` WRITE; LOCK TABLES `diet_prohibits_ingredient` WRITE;
/*!40000 ALTER TABLE `diet_prohibits_ingredient` DISABLE KEYS */; /*!40000 ALTER TABLE `diet_prohibits_ingredient` DISABLE KEYS */;
INSERT INTO `diet_prohibits_ingredient` VALUES (2,'sugar'),(13,'whiskey'),(18,'μοσχαρίσια πόδια'),(18,'ψάρι'); INSERT INTO `diet_prohibits_ingredient` VALUES (2,'sugar'),(13,'whiskey'),(5,'κιμάς'),(5,'μοσχαρίσια πόδια'),(18,'μοσχαρίσια πόδια'),(5,'πατάτα'),(5,'πιπεριά'),(5,'ρύζι'),(5,'ψάρι'),(18,'ψάρι');
/*!40000 ALTER TABLE `diet_prohibits_ingredient` ENABLE KEYS */; /*!40000 ALTER TABLE `diet_prohibits_ingredient` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@ -53,4 +53,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-12-21 14:34:59 -- Dump completed on 2018-12-22 19:44:00

4
Database implementation/dumps/Project Folder/flavours_without_borders_drink.sql

@ -44,7 +44,7 @@ CREATE TABLE `drink` (
LOCK TABLES `drink` WRITE; LOCK TABLES `drink` WRITE;
/*!40000 ALTER TABLE `drink` DISABLE KEYS */; /*!40000 ALTER TABLE `drink` DISABLE KEYS */;
INSERT INTO `drink` VALUES (3,'Κόκκινη πλατεία','Απολαυστικό τσάι με ιβίσκο',_binary '\0',_binary '\0',768),(46,'Long Island',NULL,_binary '',_binary '\0',768),(69,'Πορτοκαλάδα',NULL,_binary '\0',_binary '',9),(494,'La Trappe Quadrupel','Μερικοί υποστηρίζουν ότι είναι η καλύτερη μοναστηριακή μπύρα στον κόσμο',_binary '',_binary '',683),(984,'Long Island','Το πιο βαρή coctail που υπάρχει',_binary '',_binary '\0',1356),(3214,'Mojito','Δροσιστικό κουβανέζικο κοκτέιλ',_binary '',_binary '',1356),(6363,'White Russian','Διάσημο coctail που έπινε ο Jeff Bridges στη ταινία \"The big Lebowski\"',_binary '',_binary '',6211),(26427,'Old Fashioned','Κοκτέιλ με αμερικάνικες ρίζες',_binary '',_binary '\0',6211); INSERT INTO `drink` VALUES (3,'Κόκκινη πλατεία','Απολαυστικό τσάι με ιβίσκο',_binary '\0',_binary '',768),(25,'Λεμονάδα',NULL,_binary '\0',_binary '\0',4330),(46,'Long Island',NULL,_binary '',_binary '',768),(69,'Πορτοκαλάδα',NULL,_binary '\0',_binary '',9),(494,'La Trappe Quadrupel','Μερικοί υποστηρίζουν ότι είναι η καλύτερη μοναστηριακή μπύρα στον κόσμο',_binary '',_binary '',683),(984,'Long Island','Το πιο βαρή coctail που υπάρχει',_binary '',_binary '',1356),(3214,'Mojito','Δροσιστικό κουβανέζικο κοκτέιλ',_binary '',_binary '',1356),(3568,'Τσάι του βουνού','Καλό για τα λαιμά',_binary '\0',_binary '\0',236),(5673,'Ρετσίνα Μαλαματίνα','ΜΠΑΟΚ ΡΕ',_binary '',_binary '\0',8132),(6363,'White Russian','Διάσημο coctail που έπινε ο Jeff Bridges στη ταινία \"The big Lebowski\"',_binary '',_binary '',6211),(26427,'Old Fashioned','Κοκτέιλ με αμερικάνικες ρίζες',_binary '',_binary '',6211);
/*!40000 ALTER TABLE `drink` ENABLE KEYS */; /*!40000 ALTER TABLE `drink` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@ -57,4 +57,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-12-21 14:34:55 -- Dump completed on 2018-12-22 19:43:56

2
Database implementation/dumps/Project Folder/flavours_without_borders_drink_has_ingredient.sql

@ -53,4 +53,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-12-21 14:34:52 -- Dump completed on 2018-12-22 19:43:54

2
Database implementation/dumps/Project Folder/flavours_without_borders_food.sql

@ -57,4 +57,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-12-21 14:34:54 -- Dump completed on 2018-12-22 19:43:55

2
Database implementation/dumps/Project Folder/flavours_without_borders_food_has_ingredient.sql

@ -53,4 +53,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-12-21 14:35:06 -- Dump completed on 2018-12-22 19:44:05

2
Database implementation/dumps/Project Folder/flavours_without_borders_ingredient.sql

@ -51,4 +51,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-12-21 14:35:07 -- Dump completed on 2018-12-22 19:44:06

2
Database implementation/dumps/Project Folder/flavours_without_borders_permission.sql

@ -51,4 +51,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-12-21 14:34:53 -- Dump completed on 2018-12-22 19:43:54

2
Database implementation/dumps/Project Folder/flavours_without_borders_restaurant.sql

@ -60,4 +60,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-12-21 14:35:00 -- Dump completed on 2018-12-22 19:44:00

2
Database implementation/dumps/Project Folder/flavours_without_borders_role.sql

@ -52,4 +52,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-12-21 14:35:05 -- Dump completed on 2018-12-22 19:44:04

2
Database implementation/dumps/Project Folder/flavours_without_borders_role_has_permission.sql

@ -53,4 +53,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-12-21 14:35:04 -- Dump completed on 2018-12-22 19:44:04

121
Database implementation/dumps/Project Folder/flavours_without_borders_routines.sql

@ -0,0 +1,121 @@
CREATE DATABASE IF NOT EXISTS `flavours_without_borders` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `flavours_without_borders`;
-- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64)
--
-- Host: 83.212.109.171 Database: flavours_without_borders
-- ------------------------------------------------------
-- Server version 5.7.24-0ubuntu0.16.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Temporary table structure for view `mods_view`
--
DROP TABLE IF EXISTS `mods_view`;
/*!50001 DROP VIEW IF EXISTS `mods_view`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
/*!50001 CREATE VIEW `mods_view` AS SELECT
1 AS `restaurant_id`,
1 AS `restaurant_name`,
1 AS `restaurant_category`,
1 AS `restaurant_longitude`,
1 AS `restaurant_latitude`,
1 AS `restaurant_opening`,
1 AS `restaurant_closing`,
1 AS `user_id`,
1 AS `food_id`,
1 AS `food_name`,
1 AS `food_description`,
1 AS `food_calories`,
1 AS `drink_id`,
1 AS `drink_name`,
1 AS `drink_description`,
1 AS `ingredient_name`,
1 AS `ingredient_has_alcohol`*/;
SET character_set_client = @saved_cs_client;
--
-- Temporary table structure for view `users_view`
--
DROP TABLE IF EXISTS `users_view`;
/*!50001 DROP VIEW IF EXISTS `users_view`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
/*!50001 CREATE VIEW `users_view` AS SELECT
1 AS `restaurant_id`,
1 AS `restaurant_name`,
1 AS `restaurant_category`,
1 AS `restaurant_longitude`,
1 AS `restaurant_latitude`,
1 AS `restaurant_opening`,
1 AS `restaurant_closing`,
1 AS `user_id`,
1 AS `food_id`,
1 AS `food_name`,
1 AS `food_description`,
1 AS `food_calories`,
1 AS `drink_id`,
1 AS `drink_name`,
1 AS `drink_description`,
1 AS `ingredient_name`,
1 AS `ingredient_has_alcohol`*/;
SET character_set_client = @saved_cs_client;
--
-- Final view structure for view `mods_view`
--
/*!50001 DROP VIEW IF EXISTS `mods_view`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
/*!50001 SET @saved_col_connection = @@collation_connection */;
/*!50001 SET character_set_client = utf8 */;
/*!50001 SET character_set_results = utf8 */;
/*!50001 SET collation_connection = utf8_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`flavoursUser`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `mods_view` AS select `restaurant`.`restaurant_id` AS `restaurant_id`,`restaurant`.`restaurant_name` AS `restaurant_name`,`restaurant`.`restaurant_category` AS `restaurant_category`,`restaurant`.`restaurant_longitude` AS `restaurant_longitude`,`restaurant`.`restaurant_latitude` AS `restaurant_latitude`,`restaurant`.`restaurant_opening` AS `restaurant_opening`,`restaurant`.`restaurant_closing` AS `restaurant_closing`,`restaurant`.`user_id` AS `user_id`,NULL AS `food_id`,NULL AS `food_name`,NULL AS `food_description`,NULL AS `food_calories`,NULL AS `drink_id`,NULL AS `drink_name`,NULL AS `drink_description`,NULL AS `ingredient_name`,NULL AS `ingredient_has_alcohol` from `restaurant` where (`restaurant`.`restaurant_is_approved` = FALSE) union select `restaurant`.`restaurant_id` AS `restaurant_id`,`restaurant`.`restaurant_name` AS `restaurant_name`,`restaurant`.`restaurant_category` AS `restaurant_category`,`restaurant`.`restaurant_longitude` AS `restaurant_longitude`,`restaurant`.`restaurant_latitude` AS `restaurant_latitude`,`restaurant`.`restaurant_opening` AS `restaurant_opening`,`restaurant`.`restaurant_closing` AS `restaurant_closing`,`restaurant`.`user_id` AS `user_id`,`food`.`food_id` AS `food_id`,`food`.`food_name` AS `food_name`,`food`.`food_description` AS `food_description`,`food`.`food_calories` AS `food_calories`,NULL AS `drink_id`,NULL AS `drink_name`,NULL AS `drink_description`,`ingredient`.`ingredient_name` AS `ingredient_name`,`ingredient`.`ingredient_has_alcohol` AS `ingredient_has_alcohol` from (((`restaurant` left join `food` on((`restaurant`.`restaurant_id` = `food`.`restaurant_id`))) left join `food_has_ingredient` on((`food`.`food_id` = `food_has_ingredient`.`food_id`))) left join `ingredient` on((`food_has_ingredient`.`ingredient_name` = `ingredient`.`ingredient_name`))) where (`food`.`food_is_approved` = FALSE) union select `restaurant`.`restaurant_id` AS `restaurant_id`,`restaurant`.`restaurant_name` AS `restaurant_name`,`restaurant`.`restaurant_category` AS `restaurant_category`,`restaurant`.`restaurant_longitude` AS `restaurant_longitude`,`restaurant`.`restaurant_latitude` AS `restaurant_latitude`,`restaurant`.`restaurant_opening` AS `restaurant_opening`,`restaurant`.`restaurant_closing` AS `restaurant_closing`,`restaurant`.`user_id` AS `user_id`,NULL AS `food_id`,NULL AS `food_name`,NULL AS `food_description`,NULL AS `food_calories`,`drink`.`drink_id` AS `drink_id`,`drink`.`drink_name` AS `drink_name`,`drink`.`drink_description` AS `drink_description`,`ingredient`.`ingredient_name` AS `ingredient_name`,`ingredient`.`ingredient_has_alcohol` AS `ingredient_has_alcohol` from (((`restaurant` left join `drink` on((`restaurant`.`restaurant_id` = `drink`.`restaurant_id`))) left join `drink_has_ingredient` on((`drink`.`drink_id` = `drink_has_ingredient`.`drink_id`))) left join `ingredient` on((`drink_has_ingredient`.`ingredient_name` = `ingredient`.`ingredient_name`))) where (`drink`.`drink_is_approved` = FALSE) */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
--
-- Final view structure for view `users_view`
--
/*!50001 DROP VIEW IF EXISTS `users_view`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
/*!50001 SET @saved_col_connection = @@collation_connection */;
/*!50001 SET character_set_client = utf8 */;
/*!50001 SET character_set_results = utf8 */;
/*!50001 SET collation_connection = utf8_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`flavoursUser`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `users_view` AS select `restaurant`.`restaurant_id` AS `restaurant_id`,`restaurant`.`restaurant_name` AS `restaurant_name`,`restaurant`.`restaurant_category` AS `restaurant_category`,`restaurant`.`restaurant_longitude` AS `restaurant_longitude`,`restaurant`.`restaurant_latitude` AS `restaurant_latitude`,`restaurant`.`restaurant_opening` AS `restaurant_opening`,`restaurant`.`restaurant_closing` AS `restaurant_closing`,`restaurant`.`user_id` AS `user_id`,NULL AS `food_id`,NULL AS `food_name`,NULL AS `food_description`,NULL AS `food_calories`,NULL AS `drink_id`,NULL AS `drink_name`,NULL AS `drink_description`,NULL AS `ingredient_name`,NULL AS `ingredient_has_alcohol` from `restaurant` where (`restaurant`.`restaurant_is_approved` = TRUE) union select `restaurant`.`restaurant_id` AS `restaurant_id`,`restaurant`.`restaurant_name` AS `restaurant_name`,`restaurant`.`restaurant_category` AS `restaurant_category`,`restaurant`.`restaurant_longitude` AS `restaurant_longitude`,`restaurant`.`restaurant_latitude` AS `restaurant_latitude`,`restaurant`.`restaurant_opening` AS `restaurant_opening`,`restaurant`.`restaurant_closing` AS `restaurant_closing`,`restaurant`.`user_id` AS `user_id`,`food`.`food_id` AS `food_id`,`food`.`food_name` AS `food_name`,`food`.`food_description` AS `food_description`,`food`.`food_calories` AS `food_calories`,NULL AS `drink_id`,NULL AS `drink_name`,NULL AS `drink_description`,`ingredient`.`ingredient_name` AS `ingredient_name`,`ingredient`.`ingredient_has_alcohol` AS `ingredient_has_alcohol` from (((`restaurant` left join `food` on((`restaurant`.`restaurant_id` = `food`.`restaurant_id`))) left join `food_has_ingredient` on((`food`.`food_id` = `food_has_ingredient`.`food_id`))) left join `ingredient` on((`food_has_ingredient`.`ingredient_name` = `ingredient`.`ingredient_name`))) where ((`restaurant`.`restaurant_is_approved` = TRUE) and (`food`.`food_is_approved` = TRUE)) union select `restaurant`.`restaurant_id` AS `restaurant_id`,`restaurant`.`restaurant_name` AS `restaurant_name`,`restaurant`.`restaurant_category` AS `restaurant_category`,`restaurant`.`restaurant_longitude` AS `restaurant_longitude`,`restaurant`.`restaurant_latitude` AS `restaurant_latitude`,`restaurant`.`restaurant_opening` AS `restaurant_opening`,`restaurant`.`restaurant_closing` AS `restaurant_closing`,`restaurant`.`user_id` AS `user_id`,NULL AS `food_id`,NULL AS `food_name`,NULL AS `food_description`,NULL AS `food_calories`,`drink`.`drink_id` AS `drink_id`,`drink`.`drink_name` AS `drink_name`,`drink`.`drink_description` AS `drink_description`,`ingredient`.`ingredient_name` AS `ingredient_name`,`ingredient`.`ingredient_has_alcohol` AS `ingredient_has_alcohol` from (((`restaurant` left join `drink` on((`restaurant`.`restaurant_id` = `drink`.`restaurant_id`))) left join `drink_has_ingredient` on((`drink`.`drink_id` = `drink_has_ingredient`.`drink_id`))) left join `ingredient` on((`drink_has_ingredient`.`ingredient_name` = `ingredient`.`ingredient_name`))) where ((`restaurant`.`restaurant_is_approved` = TRUE) and (`drink`.`drink_is_approved` = TRUE)) */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-12-22 19:44:07

2
Database implementation/dumps/Project Folder/flavours_without_borders_user.sql

@ -58,4 +58,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-12-21 14:34:58 -- Dump completed on 2018-12-22 19:43:58

4
Database implementation/dumps/Project Folder/flavours_without_borders_user_follows_diet.sql

@ -40,7 +40,7 @@ CREATE TABLE `user_follows_diet` (
LOCK TABLES `user_follows_diet` WRITE; LOCK TABLES `user_follows_diet` WRITE;
/*!40000 ALTER TABLE `user_follows_diet` DISABLE KEYS */; /*!40000 ALTER TABLE `user_follows_diet` DISABLE KEYS */;
INSERT INTO `user_follows_diet` VALUES (1566,2),(12,18),(1566,18); INSERT INTO `user_follows_diet` VALUES (1566,2),(9,5),(666,13),(75813,13),(1566,14),(9,18),(12,18),(1566,18);
/*!40000 ALTER TABLE `user_follows_diet` ENABLE KEYS */; /*!40000 ALTER TABLE `user_follows_diet` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@ -53,4 +53,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-12-21 14:35:02 -- Dump completed on 2018-12-22 19:44:02

4
Database implementation/dumps/Project Folder/flavours_without_borders_user_prohibits_ingredient.sql

@ -40,7 +40,7 @@ CREATE TABLE `user_prohibits_ingredient` (
LOCK TABLES `user_prohibits_ingredient` WRITE; LOCK TABLES `user_prohibits_ingredient` WRITE;
/*!40000 ALTER TABLE `user_prohibits_ingredient` DISABLE KEYS */; /*!40000 ALTER TABLE `user_prohibits_ingredient` DISABLE KEYS */;
INSERT INTO `user_prohibits_ingredient` VALUES (356,'club soda'),(12,'μπούκοβο'),(12,'σκόρδο'); INSERT INTO `user_prohibits_ingredient` VALUES (356,'club soda'),(75813,'Cola'),(7,'μαϊντανός'),(7,'μπούκοβο'),(12,'μπούκοβο'),(9,'πιπεριά'),(7,'σκόρδο'),(12,'σκόρδο'),(8756,'σκόρδο');
/*!40000 ALTER TABLE `user_prohibits_ingredient` ENABLE KEYS */; /*!40000 ALTER TABLE `user_prohibits_ingredient` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@ -53,4 +53,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-12-21 14:35:03 -- Dump completed on 2018-12-22 19:44:03

4
Database implementation/dumps/Project Folder/flavours_without_borders_user_rates_drink.sql

@ -44,7 +44,7 @@ CREATE TABLE `user_rates_drink` (
LOCK TABLES `user_rates_drink` WRITE; LOCK TABLES `user_rates_drink` WRITE;
/*!40000 ALTER TABLE `user_rates_drink` DISABLE KEYS */; /*!40000 ALTER TABLE `user_rates_drink` DISABLE KEYS */;
INSERT INTO `user_rates_drink` VALUES (12,3214,4,'2018-12-17',NULL,'medium'),(12,6363,5,'2018-07-08','Τέλειο!!1',NULL),(215,3214,5,'2018-05-01',NULL,NULL),(356,26427,2,'2018-06-28','Μετριότης κύριοι.','small'); INSERT INTO `user_rates_drink` VALUES (7,46,5,'2016-10-12','Πολύ σωστά φτιαγμένο!','big'),(7,984,4,'2017-12-06','Αρκετά καλό','medium'),(9,26427,2,'2018-06-28','Μετριότης κύριοι.','small'),(12,3214,4,'2018-12-17',NULL,'medium'),(12,6363,5,'2018-07-08','Τέλειο!!1',NULL),(215,3214,5,'2018-05-01',NULL,NULL),(666,494,5,'2015-06-11',NULL,NULL),(8756,494,5,'2017-05-10','ΜΠΥΡΑΡΑΑΑΑΑΑΑ!!!!!',NULL),(75813,3,3,'2018-11-04','Δεν ήταν φρέσκια',NULL),(75813,69,4,'2018-04-05',NULL,'medium');
/*!40000 ALTER TABLE `user_rates_drink` ENABLE KEYS */; /*!40000 ALTER TABLE `user_rates_drink` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@ -57,4 +57,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-12-21 14:34:58 -- Dump completed on 2018-12-22 19:43:59

4
Database implementation/dumps/Project Folder/flavours_without_borders_user_rates_food.sql

@ -44,7 +44,7 @@ CREATE TABLE `user_rates_food` (
LOCK TABLES `user_rates_food` WRITE; LOCK TABLES `user_rates_food` WRITE;
/*!40000 ALTER TABLE `user_rates_food` DISABLE KEYS */; /*!40000 ALTER TABLE `user_rates_food` DISABLE KEYS */;
INSERT INTO `user_rates_food` VALUES (215,548,1,'2018-09-07',NULL,'small'),(1566,124,2,'2018-08-20',NULL,'medium'),(8756,124,3,'2018-11-11','Μέτριο',NULL),(8756,478,5,'2018-03-25','Πολύ γευστικό',NULL); INSERT INTO `user_rates_food` VALUES (7,6,4,'2018-08-12',NULL,'medium'),(9,6,4,'2018-12-22','Νόστιμα!','big'),(9,48,2,'2017-09-07','Δε χόρτασα καθόλου','medium'),(9,73,5,'2016-06-15','Πολύ καλή','big'),(12,2,5,'2016-07-17',NULL,NULL),(12,73,5,'2017-03-28',NULL,NULL),(215,548,1,'2018-09-07',NULL,'small'),(8756,124,3,'2018-11-11','Μέτριο',NULL),(8756,478,5,'2018-03-25','Πολύ γευστικό',NULL),(75813,124,2,'2018-08-20',NULL,'medium');
/*!40000 ALTER TABLE `user_rates_food` ENABLE KEYS */; /*!40000 ALTER TABLE `user_rates_food` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@ -57,4 +57,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-12-21 14:34:57 -- Dump completed on 2018-12-22 19:43:57

2
Database implementation/dumps/Project Folder/flavours_without_borders_user_rates_restaurant.sql

@ -60,4 +60,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-12-21 14:35:01 -- Dump completed on 2018-12-22 19:44:01

110
Database implementation/dumps/Self Contained/dump.sql

@ -27,7 +27,7 @@ DROP TABLE IF EXISTS `diet`;
CREATE TABLE `diet` ( CREATE TABLE `diet` (
`diet_id` int(11) NOT NULL, `diet_id` int(11) NOT NULL,
`diet_name` varchar(200) NOT NULL, `diet_name` varchar(200) NOT NULL,
`diet_description` varchar(150) DEFAULT NULL, `diet_description` varchar(350) DEFAULT NULL,
`diet_is_approved` bit(1) DEFAULT b'0', `diet_is_approved` bit(1) DEFAULT b'0',
PRIMARY KEY (`diet_id`), PRIMARY KEY (`diet_id`),
UNIQUE KEY `diet_id_UNIQUE` (`diet_id`) UNIQUE KEY `diet_id_UNIQUE` (`diet_id`)
@ -40,7 +40,7 @@ CREATE TABLE `diet` (
LOCK TABLES `diet` WRITE; LOCK TABLES `diet` WRITE;
/*!40000 ALTER TABLE `diet` DISABLE KEYS */; /*!40000 ALTER TABLE `diet` DISABLE KEYS */;
INSERT INTO `diet` VALUES (2,'Διαβητικός/Διαβητική','Χαρακτηρίζεται από φαγητά χαμηλά σε ζάχαρη',_binary ''),(7,'Vegan','Not found',_binary '\0'),(13,'Bulking','Μόνο κρέας',_binary ''),(18,'Christian Fasting','Όχι τροφές παραγώμενες από ζώα και όχι λάδι',_binary ''),(20,'Vegetarian','Όχι vegan',_binary '\0'); INSERT INTO `diet` VALUES (2,'Διαβητικός/Διαβητική','Χαρακτηρίζεται από φαγητά χαμηλά σε ζάχαρη',_binary ''),(5,'Fruitarian','Διατροφή που αποτελείται κυρίως από φρούτα',_binary ''),(7,'Vegan','Not found',_binary '\0'),(9,'Ketogenic','Πρέπει να πετύχεις τη λεγόμενη κέτωση',_binary '\0'),(13,'Bulking','Μόνο κρέας',_binary ''),(14,'Kangatarian','Μορφή vegeterian διατροφής που περιλαμβάνει όμως κρέας κανγουρό',_binary ''),(18,'Christian Fasting','Όχι τροφές παραγώμενες από ζώα και όχι λάδι',_binary ''),(20,'Vegetarian','Όχι vegan',_binary '\0');
/*!40000 ALTER TABLE `diet` ENABLE KEYS */; /*!40000 ALTER TABLE `diet` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
@ -67,7 +67,7 @@ CREATE TABLE `diet_prohibits_ingredient` (
LOCK TABLES `diet_prohibits_ingredient` WRITE; LOCK TABLES `diet_prohibits_ingredient` WRITE;
/*!40000 ALTER TABLE `diet_prohibits_ingredient` DISABLE KEYS */; /*!40000 ALTER TABLE `diet_prohibits_ingredient` DISABLE KEYS */;
INSERT INTO `diet_prohibits_ingredient` VALUES (2,'sugar'),(13,'whiskey'),(18,'μοσχαρίσια πόδια'),(18,'ψάρι'); INSERT INTO `diet_prohibits_ingredient` VALUES (2,'sugar'),(13,'whiskey'),(5,'κιμάς'),(5,'μοσχαρίσια πόδια'),(18,'μοσχαρίσια πόδια'),(5,'πατάτα'),(5,'πιπεριά'),(5,'ρύζι'),(5,'ψάρι'),(18,'ψάρι');
/*!40000 ALTER TABLE `diet_prohibits_ingredient` ENABLE KEYS */; /*!40000 ALTER TABLE `diet_prohibits_ingredient` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
@ -98,7 +98,7 @@ CREATE TABLE `drink` (
LOCK TABLES `drink` WRITE; LOCK TABLES `drink` WRITE;
/*!40000 ALTER TABLE `drink` DISABLE KEYS */; /*!40000 ALTER TABLE `drink` DISABLE KEYS */;
INSERT INTO `drink` VALUES (3,'Κόκκινη πλατεία','Απολαυστικό τσάι με ιβίσκο',_binary '\0',_binary '\0',768),(46,'Long Island',NULL,_binary '',_binary '\0',768),(69,'Πορτοκαλάδα',NULL,_binary '\0',_binary '',9),(494,'La Trappe Quadrupel','Μερικοί υποστηρίζουν ότι είναι η καλύτερη μοναστηριακή μπύρα στον κόσμο',_binary '',_binary '',683),(984,'Long Island','Το πιο βαρή coctail που υπάρχει',_binary '',_binary '\0',1356),(3214,'Mojito','Δροσιστικό κουβανέζικο κοκτέιλ',_binary '',_binary '',1356),(6363,'White Russian','Διάσημο coctail που έπινε ο Jeff Bridges στη ταινία \"The big Lebowski\"',_binary '',_binary '',6211),(26427,'Old Fashioned','Κοκτέιλ με αμερικάνικες ρίζες',_binary '',_binary '\0',6211); INSERT INTO `drink` VALUES (3,'Κόκκινη πλατεία','Απολαυστικό τσάι με ιβίσκο',_binary '\0',_binary '',768),(25,'Λεμονάδα',NULL,_binary '\0',_binary '\0',4330),(46,'Long Island',NULL,_binary '',_binary '',768),(69,'Πορτοκαλάδα',NULL,_binary '\0',_binary '',9),(494,'La Trappe Quadrupel','Μερικοί υποστηρίζουν ότι είναι η καλύτερη μοναστηριακή μπύρα στον κόσμο',_binary '',_binary '',683),(984,'Long Island','Το πιο βαρή coctail που υπάρχει',_binary '',_binary '',1356),(3214,'Mojito','Δροσιστικό κουβανέζικο κοκτέιλ',_binary '',_binary '',1356),(3568,'Τσάι του βουνού','Καλό για τα λαιμά',_binary '\0',_binary '\0',236),(5673,'Ρετσίνα Μαλαματίνα','ΜΠΑΟΚ ΡΕ',_binary '',_binary '\0',8132),(6363,'White Russian','Διάσημο coctail που έπινε ο Jeff Bridges στη ταινία \"The big Lebowski\"',_binary '',_binary '',6211),(26427,'Old Fashioned','Κοκτέιλ με αμερικάνικες ρίζες',_binary '',_binary '',6211);
/*!40000 ALTER TABLE `drink` ENABLE KEYS */; /*!40000 ALTER TABLE `drink` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
@ -212,6 +212,34 @@ INSERT INTO `ingredient` VALUES ('Angostura bitters',_binary ''),('club soda',_
/*!40000 ALTER TABLE `ingredient` ENABLE KEYS */; /*!40000 ALTER TABLE `ingredient` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
--
-- Temporary table structure for view `mods_view`
--
DROP TABLE IF EXISTS `mods_view`;
/*!50001 DROP VIEW IF EXISTS `mods_view`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
/*!50001 CREATE VIEW `mods_view` AS SELECT
1 AS `restaurant_id`,
1 AS `restaurant_name`,
1 AS `restaurant_category`,
1 AS `restaurant_longitude`,
1 AS `restaurant_latitude`,
1 AS `restaurant_opening`,
1 AS `restaurant_closing`,
1 AS `user_id`,
1 AS `food_id`,
1 AS `food_name`,
1 AS `food_description`,
1 AS `food_calories`,
1 AS `drink_id`,
1 AS `drink_name`,
1 AS `drink_description`,
1 AS `ingredient_name`,
1 AS `ingredient_has_alcohol`*/;
SET character_set_client = @saved_cs_client;
-- --
-- Table structure for table `permission` -- Table structure for table `permission`
-- --
@ -379,7 +407,7 @@ CREATE TABLE `user_follows_diet` (
LOCK TABLES `user_follows_diet` WRITE; LOCK TABLES `user_follows_diet` WRITE;
/*!40000 ALTER TABLE `user_follows_diet` DISABLE KEYS */; /*!40000 ALTER TABLE `user_follows_diet` DISABLE KEYS */;
INSERT INTO `user_follows_diet` VALUES (1566,2),(12,18),(1566,18); INSERT INTO `user_follows_diet` VALUES (1566,2),(9,5),(666,13),(75813,13),(1566,14),(9,18),(12,18),(1566,18);
/*!40000 ALTER TABLE `user_follows_diet` ENABLE KEYS */; /*!40000 ALTER TABLE `user_follows_diet` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
@ -406,7 +434,7 @@ CREATE TABLE `user_prohibits_ingredient` (
LOCK TABLES `user_prohibits_ingredient` WRITE; LOCK TABLES `user_prohibits_ingredient` WRITE;
/*!40000 ALTER TABLE `user_prohibits_ingredient` DISABLE KEYS */; /*!40000 ALTER TABLE `user_prohibits_ingredient` DISABLE KEYS */;
INSERT INTO `user_prohibits_ingredient` VALUES (356,'club soda'),(12,'μπούκοβο'),(12,'σκόρδο'); INSERT INTO `user_prohibits_ingredient` VALUES (356,'club soda'),(75813,'Cola'),(7,'μαϊντανός'),(7,'μπούκοβο'),(12,'μπούκοβο'),(9,'πιπεριά'),(7,'σκόρδο'),(12,'σκόρδο'),(8756,'σκόρδο');
/*!40000 ALTER TABLE `user_prohibits_ingredient` ENABLE KEYS */; /*!40000 ALTER TABLE `user_prohibits_ingredient` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
@ -437,7 +465,7 @@ CREATE TABLE `user_rates_drink` (
LOCK TABLES `user_rates_drink` WRITE; LOCK TABLES `user_rates_drink` WRITE;
/*!40000 ALTER TABLE `user_rates_drink` DISABLE KEYS */; /*!40000 ALTER TABLE `user_rates_drink` DISABLE KEYS */;
INSERT INTO `user_rates_drink` VALUES (12,3214,4,'2018-12-17',NULL,'medium'),(12,6363,5,'2018-07-08','Τέλειο!!1',NULL),(215,3214,5,'2018-05-01',NULL,NULL),(356,26427,2,'2018-06-28','Μετριότης κύριοι.','small'); INSERT INTO `user_rates_drink` VALUES (7,46,5,'2016-10-12','Πολύ σωστά φτιαγμένο!','big'),(7,984,4,'2017-12-06','Αρκετά καλό','medium'),(9,26427,2,'2018-06-28','Μετριότης κύριοι.','small'),(12,3214,4,'2018-12-17',NULL,'medium'),(12,6363,5,'2018-07-08','Τέλειο!!1',NULL),(215,3214,5,'2018-05-01',NULL,NULL),(666,494,5,'2015-06-11',NULL,NULL),(8756,494,5,'2017-05-10','ΜΠΥΡΑΡΑΑΑΑΑΑΑ!!!!!',NULL),(75813,3,3,'2018-11-04','Δεν ήταν φρέσκια',NULL),(75813,69,4,'2018-04-05',NULL,'medium');
/*!40000 ALTER TABLE `user_rates_drink` ENABLE KEYS */; /*!40000 ALTER TABLE `user_rates_drink` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
@ -468,7 +496,7 @@ CREATE TABLE `user_rates_food` (
LOCK TABLES `user_rates_food` WRITE; LOCK TABLES `user_rates_food` WRITE;
/*!40000 ALTER TABLE `user_rates_food` DISABLE KEYS */; /*!40000 ALTER TABLE `user_rates_food` DISABLE KEYS */;
INSERT INTO `user_rates_food` VALUES (215,548,1,'2018-09-07',NULL,'small'),(1566,124,2,'2018-08-20',NULL,'medium'),(8756,124,3,'2018-11-11','Μέτριο',NULL),(8756,478,5,'2018-03-25','Πολύ γευστικό',NULL); INSERT INTO `user_rates_food` VALUES (7,6,4,'2018-08-12',NULL,'medium'),(9,6,4,'2018-12-22','Νόστιμα!','big'),(9,48,2,'2017-09-07','Δε χόρτασα καθόλου','medium'),(9,73,5,'2016-06-15','Πολύ καλή','big'),(12,2,5,'2016-07-17',NULL,NULL),(12,73,5,'2017-03-28',NULL,NULL),(215,548,1,'2018-09-07',NULL,'small'),(8756,124,3,'2018-11-11','Μέτριο',NULL),(8756,478,5,'2018-03-25','Πολύ γευστικό',NULL),(75813,124,2,'2018-08-20',NULL,'medium');
/*!40000 ALTER TABLE `user_rates_food` ENABLE KEYS */; /*!40000 ALTER TABLE `user_rates_food` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
@ -505,6 +533,70 @@ LOCK TABLES `user_rates_restaurant` WRITE;
INSERT INTO `user_rates_restaurant` VALUES (7,15,2,2,'2017-06-01','Χάλι μαύρο',NULL),(7,7365,NULL,3,'2018-02-21','Μέτριο.',NULL),(9,15,NULL,3,'2016-05-08','Δεν χόρτασα','easy'),(215,4330,18,5,'2018-10-02','Χορταστικό φαΐ!','hard'),(215,6211,NULL,4,'2018-04-04','','hard'),(356,4330,NULL,4,'2018-09-16',NULL,NULL),(666,7365,NULL,3,'2018-04-16',NULL,'easy'),(8756,15,18,2,'2017-09-11',NULL,'moderate'),(24788,1356,NULL,5,'2018-06-08','Φιλικότατο προσωπικό!','moderate'),(24788,4330,2,3,'2018-01-04','Λίγες επιλογές για διαβητικούς.',NULL); INSERT INTO `user_rates_restaurant` VALUES (7,15,2,2,'2017-06-01','Χάλι μαύρο',NULL),(7,7365,NULL,3,'2018-02-21','Μέτριο.',NULL),(9,15,NULL,3,'2016-05-08','Δεν χόρτασα','easy'),(215,4330,18,5,'2018-10-02','Χορταστικό φαΐ!','hard'),(215,6211,NULL,4,'2018-04-04','','hard'),(356,4330,NULL,4,'2018-09-16',NULL,NULL),(666,7365,NULL,3,'2018-04-16',NULL,'easy'),(8756,15,18,2,'2017-09-11',NULL,'moderate'),(24788,1356,NULL,5,'2018-06-08','Φιλικότατο προσωπικό!','moderate'),(24788,4330,2,3,'2018-01-04','Λίγες επιλογές για διαβητικούς.',NULL);
/*!40000 ALTER TABLE `user_rates_restaurant` ENABLE KEYS */; /*!40000 ALTER TABLE `user_rates_restaurant` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
--
-- Temporary table structure for view `users_view`
--
DROP TABLE IF EXISTS `users_view`;
/*!50001 DROP VIEW IF EXISTS `users_view`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
/*!50001 CREATE VIEW `users_view` AS SELECT
1 AS `restaurant_id`,
1 AS `restaurant_name`,
1 AS `restaurant_category`,
1 AS `restaurant_longitude`,
1 AS `restaurant_latitude`,
1 AS `restaurant_opening`,
1 AS `restaurant_closing`,
1 AS `user_id`,
1 AS `food_id`,
1 AS `food_name`,
1 AS `food_description`,
1 AS `food_calories`,
1 AS `drink_id`,
1 AS `drink_name`,
1 AS `drink_description`,
1 AS `ingredient_name`,
1 AS `ingredient_has_alcohol`*/;
SET character_set_client = @saved_cs_client;
--
-- Final view structure for view `mods_view`
--
/*!50001 DROP VIEW IF EXISTS `mods_view`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
/*!50001 SET @saved_col_connection = @@collation_connection */;
/*!50001 SET character_set_client = utf8 */;
/*!50001 SET character_set_results = utf8 */;
/*!50001 SET collation_connection = utf8_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`flavoursUser`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `mods_view` AS select `restaurant`.`restaurant_id` AS `restaurant_id`,`restaurant`.`restaurant_name` AS `restaurant_name`,`restaurant`.`restaurant_category` AS `restaurant_category`,`restaurant`.`restaurant_longitude` AS `restaurant_longitude`,`restaurant`.`restaurant_latitude` AS `restaurant_latitude`,`restaurant`.`restaurant_opening` AS `restaurant_opening`,`restaurant`.`restaurant_closing` AS `restaurant_closing`,`restaurant`.`user_id` AS `user_id`,NULL AS `food_id`,NULL AS `food_name`,NULL AS `food_description`,NULL AS `food_calories`,NULL AS `drink_id`,NULL AS `drink_name`,NULL AS `drink_description`,NULL AS `ingredient_name`,NULL AS `ingredient_has_alcohol` from `restaurant` where (`restaurant`.`restaurant_is_approved` = FALSE) union select `restaurant`.`restaurant_id` AS `restaurant_id`,`restaurant`.`restaurant_name` AS `restaurant_name`,`restaurant`.`restaurant_category` AS `restaurant_category`,`restaurant`.`restaurant_longitude` AS `restaurant_longitude`,`restaurant`.`restaurant_latitude` AS `restaurant_latitude`,`restaurant`.`restaurant_opening` AS `restaurant_opening`,`restaurant`.`restaurant_closing` AS `restaurant_closing`,`restaurant`.`user_id` AS `user_id`,`food`.`food_id` AS `food_id`,`food`.`food_name` AS `food_name`,`food`.`food_description` AS `food_description`,`food`.`food_calories` AS `food_calories`,NULL AS `drink_id`,NULL AS `drink_name`,NULL AS `drink_description`,`ingredient`.`ingredient_name` AS `ingredient_name`,`ingredient`.`ingredient_has_alcohol` AS `ingredient_has_alcohol` from (((`restaurant` left join `food` on((`restaurant`.`restaurant_id` = `food`.`restaurant_id`))) left join `food_has_ingredient` on((`food`.`food_id` = `food_has_ingredient`.`food_id`))) left join `ingredient` on((`food_has_ingredient`.`ingredient_name` = `ingredient`.`ingredient_name`))) where (`food`.`food_is_approved` = FALSE) union select `restaurant`.`restaurant_id` AS `restaurant_id`,`restaurant`.`restaurant_name` AS `restaurant_name`,`restaurant`.`restaurant_category` AS `restaurant_category`,`restaurant`.`restaurant_longitude` AS `restaurant_longitude`,`restaurant`.`restaurant_latitude` AS `restaurant_latitude`,`restaurant`.`restaurant_opening` AS `restaurant_opening`,`restaurant`.`restaurant_closing` AS `restaurant_closing`,`restaurant`.`user_id` AS `user_id`,NULL AS `food_id`,NULL AS `food_name`,NULL AS `food_description`,NULL AS `food_calories`,`drink`.`drink_id` AS `drink_id`,`drink`.`drink_name` AS `drink_name`,`drink`.`drink_description` AS `drink_description`,`ingredient`.`ingredient_name` AS `ingredient_name`,`ingredient`.`ingredient_has_alcohol` AS `ingredient_has_alcohol` from (((`restaurant` left join `drink` on((`restaurant`.`restaurant_id` = `drink`.`restaurant_id`))) left join `drink_has_ingredient` on((`drink`.`drink_id` = `drink_has_ingredient`.`drink_id`))) left join `ingredient` on((`drink_has_ingredient`.`ingredient_name` = `ingredient`.`ingredient_name`))) where (`drink`.`drink_is_approved` = FALSE) */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
--
-- Final view structure for view `users_view`
--
/*!50001 DROP VIEW IF EXISTS `users_view`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
/*!50001 SET @saved_col_connection = @@collation_connection */;
/*!50001 SET character_set_client = utf8 */;
/*!50001 SET character_set_results = utf8 */;
/*!50001 SET collation_connection = utf8_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`flavoursUser`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `users_view` AS select `restaurant`.`restaurant_id` AS `restaurant_id`,`restaurant`.`restaurant_name` AS `restaurant_name`,`restaurant`.`restaurant_category` AS `restaurant_category`,`restaurant`.`restaurant_longitude` AS `restaurant_longitude`,`restaurant`.`restaurant_latitude` AS `restaurant_latitude`,`restaurant`.`restaurant_opening` AS `restaurant_opening`,`restaurant`.`restaurant_closing` AS `restaurant_closing`,`restaurant`.`user_id` AS `user_id`,NULL AS `food_id`,NULL AS `food_name`,NULL AS `food_description`,NULL AS `food_calories`,NULL AS `drink_id`,NULL AS `drink_name`,NULL AS `drink_description`,NULL AS `ingredient_name`,NULL AS `ingredient_has_alcohol` from `restaurant` where (`restaurant`.`restaurant_is_approved` = TRUE) union select `restaurant`.`restaurant_id` AS `restaurant_id`,`restaurant`.`restaurant_name` AS `restaurant_name`,`restaurant`.`restaurant_category` AS `restaurant_category`,`restaurant`.`restaurant_longitude` AS `restaurant_longitude`,`restaurant`.`restaurant_latitude` AS `restaurant_latitude`,`restaurant`.`restaurant_opening` AS `restaurant_opening`,`restaurant`.`restaurant_closing` AS `restaurant_closing`,`restaurant`.`user_id` AS `user_id`,`food`.`food_id` AS `food_id`,`food`.`food_name` AS `food_name`,`food`.`food_description` AS `food_description`,`food`.`food_calories` AS `food_calories`,NULL AS `drink_id`,NULL AS `drink_name`,NULL AS `drink_description`,`ingredient`.`ingredient_name` AS `ingredient_name`,`ingredient`.`ingredient_has_alcohol` AS `ingredient_has_alcohol` from (((`restaurant` left join `food` on((`restaurant`.`restaurant_id` = `food`.`restaurant_id`))) left join `food_has_ingredient` on((`food`.`food_id` = `food_has_ingredient`.`food_id`))) left join `ingredient` on((`food_has_ingredient`.`ingredient_name` = `ingredient`.`ingredient_name`))) where ((`restaurant`.`restaurant_is_approved` = TRUE) and (`food`.`food_is_approved` = TRUE)) union select `restaurant`.`restaurant_id` AS `restaurant_id`,`restaurant`.`restaurant_name` AS `restaurant_name`,`restaurant`.`restaurant_category` AS `restaurant_category`,`restaurant`.`restaurant_longitude` AS `restaurant_longitude`,`restaurant`.`restaurant_latitude` AS `restaurant_latitude`,`restaurant`.`restaurant_opening` AS `restaurant_opening`,`restaurant`.`restaurant_closing` AS `restaurant_closing`,`restaurant`.`user_id` AS `user_id`,NULL AS `food_id`,NULL AS `food_name`,NULL AS `food_description`,NULL AS `food_calories`,`drink`.`drink_id` AS `drink_id`,`drink`.`drink_name` AS `drink_name`,`drink`.`drink_description` AS `drink_description`,`ingredient`.`ingredient_name` AS `ingredient_name`,`ingredient`.`ingredient_has_alcohol` AS `ingredient_has_alcohol` from (((`restaurant` left join `drink` on((`restaurant`.`restaurant_id` = `drink`.`restaurant_id`))) left join `drink_has_ingredient` on((`drink`.`drink_id` = `drink_has_ingredient`.`drink_id`))) left join `ingredient` on((`drink_has_ingredient`.`ingredient_name` = `ingredient`.`ingredient_name`))) where ((`restaurant`.`restaurant_is_approved` = TRUE) and (`drink`.`drink_is_approved` = TRUE)) */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
@ -515,4 +607,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-12-21 14:35:34 -- Dump completed on 2018-12-22 19:43:12

BIN
Database implementation/model/erd.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 KiB

2665
Database implementation/model/erd.svg

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 250 KiB

BIN
Database implementation/model/model.mwb

Binary file not shown.

39
Database implementation/users/users.sql

@ -0,0 +1,39 @@
# Simple users of the application (aka customers)
CREATE USER 'user'@'localhost' IDENTIFIED BY 'userPasswd';
CREATE USER 'user'@'%' IDENTIFIED BY 'userPasswd';
# Users can access, add and update rows for all the tables
GRANT SELECT, INSERT, UPDATE ON flavours_without_borders.* TO 'user'@'localhost';
GRANT SELECT, INSERT, UPDATE ON flavours_without_borders.* TO 'user'@'%';
# except the columns that indicate whether a restaurant/food/drink/diet is approved or not
REVOKE SELECT, INSERT, UPDATE (restaurant_is_approved) ON flavours_without_borders.restaurant FROM 'user'@'localhost';
REVOKE SELECT, INSERT, UPDATE (restaurant_is_approved) ON flavours_without_borders.restaurant FROM 'user'@'%';
REVOKE SELECT, INSERT, UPDATE (food_is_approved) ON flavours_without_borders.food FROM 'user'@'localhost';
REVOKE SELECT, INSERT, UPDATE (food_is_approved) ON flavours_without_borders.food FROM 'user'@'%';
REVOKE SELECT, INSERT, UPDATE (drink_is_approved) ON flavours_without_borders.drink FROM 'user'@'localhost';
REVOKE SELECT, INSERT, UPDATE (drink_is_approved) ON flavours_without_borders.drink FROM 'user'@'%';
REVOKE SELECT, INSERT, UPDATE (diet_is_approved) ON flavours_without_borders.diet FROM 'user'@'localhost';
REVOKE SELECT, INSERT, UPDATE (diet_is_approved) ON flavours_without_borders.diet FROM 'user'@'%';
# Moderators
CREATE USER 'moderator'@'localhost' IDENTIFIED BY 'moderatorPasswd';
CREATE USER 'moderator'@'%' IDENTIFIED BY 'moderatorPasswd';
# Mods have elevated privileges
GRANT SELECT, INSERT, UPDATE, DELETE ON flavours_without_borders.* TO 'moderator'@'localhost';
GRANT SELECT, INSERT, UPDATE, DELETE ON flavours_without_borders.* TO 'moderator'@'%';
# Owners of restaurants or other stuff (cooks etc.)
CREATE USER 'owner'@'localhost' IDENTIFIED BY 'ownerPasswd';
CREATE USER 'owner'@'%' IDENTIFIED BY 'ownerPasswd';
# Owners can access, add and update rows for all the tables
GRANT SELECT, INSERT, UPDATE ON flavours_without_borders.* TO 'user'@'localhost';
GRANT SELECT, INSERT, UPDATE ON flavours_without_borders.* TO 'user'@'%';
# except the columns that indicate whether a restaurant/diet is approved or not
REVOKE SELECT, INSERT, UPDATE (restaurant_is_approved) ON flavours_without_borders.restaurant FROM 'user'@'localhost';
REVOKE SELECT, INSERT, UPDATE (restaurant_is_approved) ON flavours_without_borders.restaurant FROM 'user'@'%';
REVOKE SELECT, INSERT, UPDATE (diet_is_approved) ON flavours_without_borders.diet FROM 'user'@'localhost';
REVOKE SELECT, INSERT, UPDATE (diet_is_approved) ON flavours_without_borders.diet FROM 'user'@'%';
# They can however view and alter the columns that indicate whether a food/drink is approved or not!
Loading…
Cancel
Save