GithubHelp home page GithubHelp logo

update attributes about recipe-search-api HOT 5 OPEN

chickenkyiv avatar chickenkyiv commented on July 19, 2024
update attributes

from recipe-search-api.

Comments (5)

sanjeeb-sang avatar sanjeeb-sang commented on July 19, 2024

When adding course attribute to recipe, don't I have to create a new course model and create one to many or many-to-many relation between course and recipe. The same goes for cuisine, holiday and flavors.

from recipe-search-api.

atherdon avatar atherdon commented on July 19, 2024

yeah, you right @sanjeeb9853 1-to-many relation (one recipe - few attributes(i.e. few courses))

from recipe-search-api.

sanjeeb-sang avatar sanjeeb-sang commented on July 19, 2024

Hi @atherdon I updated the attributes and have created a pull request, it's at #66.

from recipe-search-api.

atherdon avatar atherdon commented on July 19, 2024

@sanjeeb9853 yeah, i saw it, but i this is not exactly what we needed here.
we faced a similar probem before, when we also added separated relations for diets, allergies, etc.
But we decide to simplify the database logic and instead of having 5 relations - we add an attribute field, and this field contain all the stuff.
so i think we should create an arrays, each of them will be related to one field, like saulty and then we'll add that arrays to our import script, that stored at bin folder.
Tell me if this is not clear - adn i'll explain more

from recipe-search-api.

atherdon avatar atherdon commented on July 19, 2024

@sanjeeb9853 tell me what should be our next steps

from recipe-search-api.

Related Issues (20)

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.