you can make the model like CourseOption (or CourseVariant, or something similar) with the fields:
- id
- course_id
- gender_id
- type_id
- price
- ... //timestamps and others
i have
courses table
courses_types : every course has many types
courses_times : every course has many times
courses_genders : every course has many genders
the price of the course depends on type , time , gender
course01, gender01, type01 has price
course01, gender02, type01 has price
course01, gender01, type02 has price
and so on
where to put the price field
where to put the price
you can make the model like CourseOption (or CourseVariant, or something similar) with the fields:
Please or to participate in this conversation.