Project

General

Profile

Development #9848

Updated by Chong Yit Ren 22 days ago

**Description** 

 Currently, the content management database table only supports saving a single image per row. To support multi-image content (e.g., product galleries, multiple banners), we need to update the database schema, backend ingestion, and Kafka event publishing so that multiple images can be associated with a single entity and successfully synchronized down to the POS system. 
 Acceptance Criteria 

 **Acceptance Criteria** 

 * [ ] Refactor the database schema to support a multi-image structure 
 * [ ] Update backend API endpoints/CRUD operations to accept, validate, and store multiple image URLs/metadata per entity. 
 * [ ] Ensure backward compatibility or data migration handling for existing single-image rows. 
 * [ ] Update the outbound Kafka event payload schema to include an array of image URLs/objects rather than a single image field. 
 * [ ] Verify that updating, adding, or removing images correctly triggers the Kafka event with the complete, updated list of images. 
 * [ ] Ensure the POS consumer service correctly parses the multi-image Kafka payload and updates its local state/database accordingly. 
 * [ ] Handle edge cases (e.g., payload size limits in Kafka, ordering of images, missing or broken image URLs).

Back