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

sku is not correct concept #26

Open
nasservb opened this issue Feb 20, 2020 · 0 comments
Open

sku is not correct concept #26

nasservb opened this issue Feb 20, 2020 · 0 comments

Comments

@nasservb
Copy link

sku is specific identifier for each instance of each product .
in your system sku is like product-serial (one for all instance of product that have same type) .
you need to create separate table like product_sku to store all unique sku for each instance of each product.
product_sku structure :
sku--------------#pk
product_id-------#fk to product
created_at--------timestamp
is_generated_qr_code------boolean

for product with 54 quantity we need to insert 54 record to product_sku table .

when we create order we can create new table like
order_item_sku with this structure:
id-------#pk
order_item_id-----#fk to order item
sky------------------#fk to product_sku

by adding this tables we can track any product instance status.

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

No branches or pull requests

1 participant