Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: product attributes, example SQL queries #3

Open
goodpixels opened this issue Sep 25, 2019 · 1 comment
Open

Request: product attributes, example SQL queries #3

goodpixels opened this issue Sep 25, 2019 · 1 comment

Comments

@goodpixels
Copy link

Hi @ramortegui - many thanks for this very useful little project! It's great for noobs and it has certainly helped me out with my personal project.

However, defining data is one thing, querying for it is another. As someone not very familiar with writing complex SQL statements, it would be great if you could include a list of example queries (ranging from the simplest such as select all products from category to more complex such as a hierarchical category list and so on).

Another thing that I think is missing from the DB is product attributes, such as: colour, size, etc. These could be stored in two new tables, pretty much like tags, but with an additional name field. What do you think?

Many thanks for your wonderful work on this project,
John

@ramortegui
Copy link
Owner

@goodpixels Good points!. Glad you found the project useful.

Let me comment on those:

Queries:

Yes!, that is a missing part of the project:

  • Add seed data
  • Define sample queries
  • Restrictions: I'll need to check that the data work in all (or most) of the DB Engines.

Add product attributes:

The model is a generic template for web stores, and I find product attributes specific to the type of web store. E.g., Groceries, Gadgets, Wearables, etc.(Size for Groceries doesn't "apply") Saying that doesn't mean that we couldn't add it. I can explore the suggestion having same structure as the tags and categories. But I'll try to apply to different web store models and see how it looks like 😄.

I'll keep this issue open, and probably split it into two new enhancement (queries, product attributes) issues after digging a bit on it.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants