Prompt file imported from teejaymt/OpticalBus (
.github/prompts/module-04.prompt.md). Copyright stays with the author.
name: module-04 description: Module 4 — Master Data: Products, Tracking, and Barcodes
Module 4 — Master Data: Products, Tracking, and Barcodes Prompt 4.1 — SKU & tracking management (API + UI) Prompt: Implement Product & Barcode management:
Product categories: Frame, LensBlank, ReadyMade, Accessory, Consumable, Service trackingMode: Serial/Quantity/Batch ready-made serial rule: isHighEnd OR price >= threshold (store threshold as config in DB) barcode table (multiple barcodes per SKU) Include validation and audit logs. Provide:
Backend endpoints: list/search, create, update, activate/deactivate Frontend admin pages: product list + form Definition of Done:
SKU created with AR/EN names tracking mode influences inventory forms barcode scanning resolves SKU audit logs exist