For a client, I'm trying to build a minimal e-commerce system. It's going to have products which may have variations (think S, M, L) and every variation may have a scaled price system depending on the amount the client orders:
But there may also be products without variations and a fixed price:
And products which have no variations but a scaled price system:
I was thinking about the following db schema:
Is it okay to make product_variation_id nullable to achieve the wanted flexibility in combinations between prices and variations without having to add at least one (standard) variation for every product (when the product doesn't have variations)? Any better ideas? :)