You are on page 1of 1

create a list of steps and all the changes that needs to be made to the database when a user edits an

existing product for the following cases:

1. The user adds or deletes a new attribute when editing a product


2. The user adds or deletes a new attribute value when editing a product
3. The user changes wholesale price in an existing attribute

Some rules:

1. Inventory needs to be soft deleted instead of hard deleted


2. Wholesale_prices can be hard deleted

Assuming that on a ecommerce application, whenever a product is created, it generates the


following response:

1. Create an entry in the products table


2. Create multiple entries in the inventories table with the amount of entry equal to the
amount of attribute values multiplied by attribute

Generate a list of process on what needs to be changed to the database if the user wishes to edit his
existing product for the following case

1. The user adds or deletes a new attribute when editing a product

Asdjikadsdf asdf

You might also like