How are you doing? In this opportunity I would like to ask you about an application of your own that I am expanding. Initially I began to develop the idea of this system, as a kind of practice in my php course, and thus expand my knowledge. Now that I have the system completed, I would like to extend it further, but I have been a bit stuck in the way I should do it, I hope you can help me and guide me with your wise advice.
You will see, it is a system of sales, purchases and multisurvey warehouse (excellent to manage a business that has several branches)
The scheme of the system goes something like this:
branches can be added, each branch will have its employees, these will have their user and password to access the system with certain privileges that the administrator user can give them. Up there all right, the detail is that I want to configure the system so that now it is multi-business and be able to upload it to the network and sell memberships to access it.
I have designed a Registration form so that for example customers (business owners) can register, cancel a subscription and use the system to manage their business. I have created a management panel where I intend to receive the information of the records of each client and monitor how many clients I have already registered and using the system, suspend their subscription, send them messages notifying them that they have not paid, etc.
In short, achieve something like this:
For that I have created in the already existing database, tables to register the information of the clients, the payments, the notifications, among others.
This image shows an example of three current system tables (user, branch and employees) and an example of a new table that you add (clients)
From there I have stalled, because I do not know how to configure the database well (or should I do it) and the sessions to go from a system for a single business, to a system that can be used by multiple businesses . I was even thinking about creating a new database maybe and establishing a connection with the one already created. The current session management is quite simple, adapted to a system for a single business. But I suppose I must make a big change in the handling of the sessions.
My question is how to take the system to this next level. If you had any information, guides or example tutorials on systems of this type, that could facilitate me, to guide me, I would greatly appreciate it. Any recommendation will be well received.
PD: The system is not realized using any framework. Languages: PHP, HTML, JAVASCRIPT. BD: MySQL, Use of AJAX technologies.