Skip to content

Instantly share code, notes, and snippets.

@hribeirosantana
Last active May 25, 2019 19:50
Show Gist options
  • Save hribeirosantana/4878cc00ef0843d3cd32c10511520579 to your computer and use it in GitHub Desktop.
Save hribeirosantana/4878cc00ef0843d3cd32c10511520579 to your computer and use it in GitHub Desktop.
group:Name of the group (imported from SQL)
Person = {
name:string, age:number, gender:string
'Amy' , 16 , 'female'
'Ben' , 21 , 'male'
'Cal' , 33 , 'male'
'Dan' , 13 , 'male'
'Eli' , 45 , 'male'
'Fay' , 21 , 'female'
'Gus' , 24 , 'male'
'Hil' , 30 , 'female'
'Ian' , 18 , 'male'
}
Frequents = {
name:string, pizzeria:string
'Amy' , 'Pizza Hut'
'Ben' , 'Pizza Hut'
'Ben' , 'Chicago Pizza'
'Cal' , 'Straw Hat'
'Cal' , 'New York Pizza'
'Dan' , 'Straw Hat'
'Dan' , 'New York Pizza'
'Eli' , 'Straw Hat'
'Eli' , 'Chicago Pizza'
'Fay' , 'Dominos'
'Fay' , 'Little Caesars'
'Gus' , 'Chicago Pizza'
'Gus' , 'Pizza Hut'
'Hil' , 'Dominos'
'Hil' , 'Straw Hat'
'Hil' , 'Pizza Hut'
'Ian' , 'New York Pizza'
'Ian' , 'Straw Hat'
'Ian' , 'Dominos'
}
Eats = {
name:string, pizza:string
'Amy' , 'pepperoni'
'Amy' , 'mushroom'
'Ben' , 'pepperoni'
'Ben' , 'cheese'
'Cal' , 'supreme'
'Dan' , 'pepperoni'
'Dan' , 'cheese'
'Dan' , 'sausage'
'Dan' , 'supreme'
'Dan' , 'mushroom'
'Eli' , 'supreme'
'Eli' , 'cheese'
'Fay' , 'mushroom'
'Gus' , 'mushroom'
'Gus' , 'supreme'
'Gus' , 'cheese'
'Hil' , 'supreme'
'Hil' , 'cheese'
'Ian' , 'supreme'
'Ian' , 'pepperoni'
}
Serves = {
pizzeria:string , pizza:string, price:number
'Pizza Hut' , 'pepperoni' , 12
'Pizza Hut' , 'sausage' , 12
'Pizza Hut' , 'cheese' , 9
'Pizza Hut' , 'supreme' , 12
'Little Caesars', 'pepperoni' , 9.75
'Little Caesars', 'sausage' , 9.5
'Little Caesars', 'cheese' , 7
'Little Caesars', 'mushroom' , 9.25
'Dominos' , 'cheese' , 9.75
'Dominos' , 'mushroom' , 11
'Straw Hat' , 'pepperoni' , 8
'Straw Hat' , 'cheese' , 9.25
'Straw Hat' , 'sausage' , 9.75
'New York Pizza', 'pepperoni' , 8
'New York Pizza', 'cheese' , 7
'New York Pizza', 'supreme' , 8.5
'Chicago Pizza' , 'cheese' , 7.75
'Chicago Pizza' , 'supreme' , 8.5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment