Search code examples
laravelumlclass-diagram

Admin can add price of product based on day of the week [ Model relation ]


Hi i have a hard time making successful relation between models. basically i have Product Model and Price Model so i want to add price of Product based on day of the week


Solution

  • You can model this as association class:

    enter image description here

    A Product has a basic ProductPrice (basicPrice) and additionally a number of seasonPrice entries.