Coder Social home page Coder Social logo

schemas's People

Contributors

cmbirk avatar kaschman avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

kaschman

schemas's Issues

Style vs SKU level

How do we handle this difference in our schema? Are Product entities at the Style or SKU level? Can see a few approaches at the moment:

  1. Style-Level Products including SKUs - The big pro to me here is that all the information is saved at the style level and not repeated for it's x SKUs. In this design SKUs are saved as a collection on the Style Level Product.

  2. SKU-Level Products - All information is saved at the SKU level. Looking at the Style level requires a query or aggregate where Style ID = Style ID. Downside - editing style-level info must be saved to each individual SKU.

  3. Both! We create a Style and a Product and they have a relationship. A Style has many Products. Downside is now we have 2 entities to deal with vs 1. Did we overcomplicate, or is this a good model of the domain?

Personally I'm a fan of 1 or 3.

Publish npm package

Need to publish the schemas as an npm package for importing into highstreet

Top Level Schemas

Need to fill out the rest of the top-level schemas for:

  • Product
  • Account
  • Role

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.