I am creating spring boot app that has 3 subscription plans.
- basic
- pro
- unlimited
I have two actions(1.CREATE_POST, 2.GENERATE_POST) that should be limited for each plan.
1.For basic plan user should be able to do first action 2 times per day, and second action 3 times per day.
2.For pro plan user should be able to do first action 5 times per day, and second action 10 times per day.
3.For unlimited plan user should be able to do actions unlimited times.
I want to design the functionality in a flexible way to quickly change thresholds and time intervals in the future,
lets say for basic plan I would want to change ‘first action 3 times per week, and second action 5 times per week’.
How can I design it?