Coder Social home page Coder Social logo

gettoknowaplace_restaurant_db's Introduction

gettoknowaplace_restaurant_db

Introduction

Gettoknowaplace offers personalised recommendations to newcomers in big cities, based on paid for research topics.

The brief was to create an entity relationship diagram for a database of restaurants in Barcelona. We had the following questions to answer:

  1. Which parts of the city have the most restaurants per sq km?
  2. Where can a vegan burger restaurant be found, with an opening time filter... eg. customer wants to visit on thursday at 6pm?
  3. How many specified cuisine (eg Vietnamese) restaurants are there in the city?
  4. Which restaurants are the best for big groups/parties?

ERD Structure

In order to be able to answer our clients questions regarding restaurants in Barcelona, we have structured the database so that it can be easily queried for a variety of topics. Each table is linked to the main restaurant table and we have added additional links between other useful tables, such as location and cuisine.

The tables include information about primary and foreign keys as well as data types for each field. Each entity relationship indicates cardinality such as zero-to-many and one-to-many relationships.

Process

We started by sketching potential relationships between known entities to start to conceptualise the tables we would need and poential links between them.

We used LucidChart to create the schema. This tool allowed us to easily design, connect and make changes to the tables and to work collaborativley on the project making simultaneous edits.

Outcome

Screenshot 2021-11-05 at 10 38 30

Further Steps

Having access to data on real life questions from restaurant goers in Barcelona would be helpful to be able to better structure the tables and engineer more efficient connections.

gettoknowaplace_restaurant_db's People

Contributors

zachighton avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.