BR 1.9.2 — Catalog Service
Добавить binding_type в product_version_modifiers.
Задачи
- BT-CS-01: Миграция — добавить колонку
binding_type VARCHAR(10) NOT NULL DEFAULT 'free'вproduct_version_modifiers. CHECK constraint:binding_type IN ('structural', 'free'). - BT-CS-02: Entity — добавить поле
bindingTypeвProductVersionModifierentity. - BT-CS-03: DTO — добавить
binding_typeв request/response DTO для привязки модификаторов (create, update, list). - BT-CS-04: Service — валидация: если
binding_type = structural, тоoverride_min_amount >= 1(или min_amount группы >= 1). ОшибкаSTRUCTURAL_MODIFIER_MIN_REQUIRED. - BT-CS-05: Controller — принимать/возвращать
binding_typeв эндпоинтахPOST/GET/PATCH .../modifiers(проксируется ч��рез существующи�� endpoints).
Ссылки
- API — эндпоинты модификаторов
- Data Model — таблица
product_version_modifiers