Guys iam working with a project school management system.
I have to work with feePayment module.
The fee payment structure is left to the client to make their won structure of fee.
In all schools the fee structure would be like category wise. 1 main category and for that main category there will sub categories
how the process is done is
the school posses Main category and sub category of fee, like below structure
Term1 payment duration (1-08-2019 to 15-08-2019)
school Fee = 6000
Bus Fee = 3000
Tution Fee= 2500
Term 2 payment duration (1-12-2019 to 15-12-2019)
school Fee = 6000
Lab Fee = 3000
Term3 payment duration (1-03-2020 to 15-08-2020)
School Fee= 6000
extra fee = 2000
like this it goes on,
here Term1, Term2 Term3 are main cateogries and school fee, extra fee tution fee are sub categories
this is my table strucutre : https://imgur.com/KxLpQWI
Whats my problem is
the below given are three tables. how can i link them with many to many or how kindly give some suggestion please. how to link these three tables
Feemaincategory Feesub category class
how this works is,
``` 5th std -Term1 -> (tutionfee, bus fee) ```
``` 6th std - Term1-> (tution fee, bus fee) ```
here class, fee main category, fee sub category are included. how i can insert these?? how i need to make the db kindly someone suggest please