I am working on a E-commerce website using Angular, Spring Boot, MySQL. I am implementing a features to allow user to add a product for sale. When user add a product how do you auto generate SKU in MySQL Or is there any other way to make SKU?
This how the product are stored in database:
I am ok with new suggestion with how to make SKU:
I have 8 product category in database:
User only choose Product Category.