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

Bakery Schema Design #32

Closed
tyt2y3 opened this issue Jun 24, 2021 · 10 comments · Fixed by #34
Closed

Bakery Schema Design #32

tyt2y3 opened this issue Jun 24, 2021 · 10 comments · Fixed by #34
Assignees

Comments

@tyt2y3
Copy link
Member

tyt2y3 commented Jun 24, 2021

To design a schema which will be used in our test suite, tutorial and demo web app (REST API).
Covering all datatypes (numeric, strings, currency, datetime etc) and relations (1-1, 1-N, M-N).
Some 'static data' that don't change so often (like products) and operations (like sales).
In total around 10~20 entities (excluding junction table) ?

@tyt2y3
Copy link
Member Author

tyt2y3 commented Jun 24, 2021

May be we can think about first, what the web app would do in the end?

@billy1624
Copy link
Member

billy1624 commented Jun 24, 2021

Let say a POS system? For a bakery cafe chains

@tyt2y3
Copy link
Member Author

tyt2y3 commented Jun 24, 2021

Would makes more sense if we think of a digital (eCommerce) scenario?

@tyt2y3
Copy link
Member Author

tyt2y3 commented Jun 24, 2021

Like 'Catalog' instead of 'Shelf'?

@samsamai
Copy link
Contributor

What if instead of Bakery we based the web app around objects associated with 'Sea'?

@tyt2y3
Copy link
Member Author

tyt2y3 commented Jun 24, 2021

Yeah I thought of that too. But wouldn't it to be too distant from a typical use case?
Most APIs are in the category of 'OLTP'.
I was only trying to suggest an online store kind of a bakery.

@samsamai
Copy link
Contributor

Yeah that makes sense. So these objects:
Bakery
Customer
Order
Cake
Bakers (or suppliers?)

@billy1624
Copy link
Member

DIY bakery shop? Allow client to customize birthday cake for example loll

@tyt2y3
Copy link
Member Author

tyt2y3 commented Jun 24, 2021

@samsamai yes sure that makes sense. not sure about Baker / Supplier though

@tyt2y3 tyt2y3 mentioned this issue Jun 24, 2021
36 tasks
@samsamai
Copy link
Contributor

samsamai commented Jun 24, 2021

Yeah we can drop bakers/suppliers and have shopping cart, line items, products

@samsamai samsamai linked a pull request Jun 26, 2021 that will close this issue
@tyt2y3 tyt2y3 closed this as completed in #34 Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants