- Updated the product_category table schema to remove tenant_id and store_id, and added new fields: priority, rule_id, category_type, channel_list, has_children, has_prop_required, extra, cert_status_code, cert_status_pass, and cert_status_msg.
- Modified SQL scripts to drop and recreate product_category and product_category_bindings tables with the new schema.
- Refactored the ProductServer methods to remove store scope requirements and adjust to the new product category structure.
- Updated error handling and validation in Create, Update, and Delete product category methods.
- Added new patch handling for product categories to accommodate the updated schema.
- Introduced a new SQL script to rebuild the standard product category tree, ensuring a clean migration to the new structure.
Support AND category/group filtering and store-scoped batch status, delete, absolute price, and replace-group with a 100-item cap.
Co-authored-by: Cursor <cursoragent@cursor.com>
- Added SQL scripts to recreate product category and catalog tables, including necessary indexes and comments.
- Implemented repository for product category management, including CRUD operations and binding/unbinding products to categories.
- Developed gRPC server methods for creating, retrieving, listing, updating, and deleting product categories.
- Added error handling for various scenarios, including version conflicts and category constraints.
- Implemented helper functions for converting between internal representations and gRPC messages.
- Introduced new tables for suppliers and brands in the product schema with necessary fields and constraints.
- Implemented CRUD operations for suppliers and brands in the catalog master server.
- Added validation for supplier and brand references in product creation and update processes.
- Updated SQL scripts to recreate product tables with new suppliers and brands structure.
- Enhanced permissions for the new tables in the database.