I'm doing an application in Cakephp and would like your help on what would be the best way to create my database and my relationship between the models .
It would be a "workflow".
I would like it to work as follows:
1- This application will have multiple groups and groups, multiple users.
2- Each request would have its flow, and multiple requests could have the same flow.
3- The "administrator" can create several workflows, with up to 5 steps, between groups and people. Example:
Primeiro Aprovador | Segundo Aprovador | Terceiro Aprovador | Quarto Aprovador | Quinto
Grupo Delta Joao Pedro Grupo Alfa NULL
4- When the administrator chooses a group, not a specific user, someone from that group would be drawn.
5- Approvals would follow the order, ie the next one can only approve if the previous one has already approved.
I think that's basically it.
This is really giving me a lot of work. I can not think of anything.