| | 102 | |
| | 103 | === Relations=== |
| | 104 | === 1:1 === |
| | 105 | * Restaurant → Menu \\ |
| | 106 | **''has''** – a relation which indicates that a restaurant has one menu and a menu belongs to only one restaurant. |
| | 107 | |
| | 108 | * Address → Restaurant \\ |
| | 109 | **''is_located_at''** – a relation which indicates that a restaurant is located at one location, and a location can have only 1 restaurant. |
| | 110 | === 1:M === |
| | 111 | * User → Address \\ |
| | 112 | **''has''** – a relation which indicates that a user can have multiple addresses, and an address can belong to one user. |
| | 113 | |
| | 114 | * Customer → Order \\ |
| | 115 | **''has''** – a relation which indicates that a user can have multiple addresses, and an address can belong to one user. |
| | 116 | === M:N === |