Skip to content

Instantly share code, notes, and snippets.

@GunpowderGuy
Last active September 7, 2022 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GunpowderGuy/56f49dc66307001211953b3f0dec6d25 to your computer and use it in GitHub Desktop.
Save GunpowderGuy/56f49dc66307001211953b3f0dec6d25 to your computer and use it in GitHub Desktop.
laboratorio 4.2
Producto = {
id:string,nombre:string,precio:int,tipo:varchar
'3789','Cuba libre',9,'BEBIDA'
'3821','limonada arabe,10,'BEBIDA'
'9840','Falafel,12,'COMIDA'
'9841','Shawarma,14,'COMIDA'
}
Bebida = {
P.id:string, volumen:int
'Cuba libre',0.1
'limonada arabe,0.4
}
Comida = {
P.id:string, vegetariano:boolean
'Falafel',true
'Shawarma,false
}
Boleta = {
codigo:string, mesa:int, hora:time, fecha:date
'123',2,13,2022-05-03
'124',3,14,2022-06-02
}
Item = {
B.codigo:string, P.id:string, cantidad:int)
"123","Cuba libre",1
"123","Falafel",2
'124','limonada arabe',2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment