Offer and OfferCondition. Prices, inventory, the store, and catalog records aren’t columns on these models. They attach through module links.
Offer
A store’s listing of one master product variant. Tableoffer, id prefix offer.
OfferDTO also has offer_ids, the list of offer ids in a group_by_seller group. It isn’t a model field.
Offer relations
The offer has one relation inside the module:condition: belongs to oneOfferCondition, nullable
Offer indexes
Every index applies only to rows wheredeleted_at IS NULL:
OfferCondition
A physical condition an offer can be listed under, such asnew or refurbished. Operators manage the list. Id prefix ofcond.
OfferCondition relations
The condition has one relation inside the module:offers: has manyOfferrecords, mapped bycondition
IDX_offer_condition_code_unique keeps code unique while deleted_at IS NULL.