Database modeling, stock and product variant
问题 These are requirements. Multiple sellers are selling product variants. Multiple sellers can sell single product variant at the same time. (This requirement can be relaxed if it makes db modeling much simpler.) The following modeling satisfies the above two requirements. ProductVariant * id Stock * id * product_variant * seller * quantity * prices There's another requirement Multiple variants might need to share quantity among them. For instance, a teacher(seller) list his/her product as the