diff --git a/1/GBD/assignments/ej15-menu-diario/ej15-menu-diario.png b/1/GBD/assignments/ej15-menu-diario/ej15-menu-diario.png new file mode 100644 index 0000000..4f4fd81 Binary files /dev/null and b/1/GBD/assignments/ej15-menu-diario/ej15-menu-diario.png differ diff --git a/1/GBD/assignments/ej15-menu-diario/ej15-menu-diario.uml b/1/GBD/assignments/ej15-menu-diario/ej15-menu-diario.uml new file mode 100644 index 0000000..6b4c7ca --- /dev/null +++ b/1/GBD/assignments/ej15-menu-diario/ej15-menu-diario.uml @@ -0,0 +1,25 @@ +@startuml + +entity "Menú" as menu { + ofrecido : date + -- + personas : number + temperatura : number +} + +entity "Plato" as plato { + *nombre : string + -- + descripción : string +} + +plato ||--o{ menu : es 1er plato de +note on link : cantidad + +plato ||--o{ menu : es 2o plato de +note on link : cantidad + +plato ||--o{ menu : es postre de +note on link : cantidad + +@enduml diff --git a/1/GBD/assignments/ej15-menu-diario/ej15-tablas.txt b/1/GBD/assignments/ej15-menu-diario/ej15-tablas.txt new file mode 100644 index 0000000..ed3bdd8 --- /dev/null +++ b/1/GBD/assignments/ej15-menu-diario/ej15-tablas.txt @@ -0,0 +1,16 @@ +Menus( + ofrecido (PK), + personas, + temperatura, + primer_plato (FK -> Platos.nombre), + cantidad_primer_plato, + segundo_plato (FK -> Platos.nombre), + cantidad_segundo_plato, + postre (FK -> Platos.nombre), + cantidad_postre + ) + +Platos( + nombre (PK), + descripción + )