Reshape the Products Table
EasyDescription
The products table is being tidied up:
- rename
stocktostock_qty - store
priceasNUMERIC(12, 2) - remove the
tagscolumn, which is no longer used
Then check the table with this query:
CodeSELECT column_name, data_type, numeric_precision, numeric_scale FROM information_schema.columns WHERE table_name = 'products' ORDER BY ordinal_position;
Finish with exactly this query.
Tables
| products |
|---|
| product_id (PK) |
| product_name |
| category_id (FK) |
| price |
| stock |
| rating |
| is_available |
| tags |
| specs |
| created_at |