The essence of the following, you need to make a database of accounting of customer calls and accounting of orders. Manipulation of the database will occur through PHP. Customers call and ask for the price of construction work.
The manager records all these requests (calls) from the client in the table of the next structure.
--Таблица заявки -- -id -Имя -Фамилия -Телефон -адрес -тип работы (id_type - внешний ключ с таблици типы) -Статус(Принято,отказано,заказано,дорого,клиент думает) -Дата заявки It is necessary to do so when the status is "Ordered", then create a new customer (in the customer table) based on the data from the application table (name, phone number, address, and a couple more data). While the status is different, nothing to do. The problem is this: the client can call again after a while, and this application needs to be fixed, respectively, if the client’s status is “Ordered” again, we will put it in the clients table, and duplicate one client will be obtained.
What is the best with the design. And even if the status of the application is "Ordered", then some data will be entered, up to the calculation of the cost of work. And I think whether it is necessary to enter them into the application table (by default, fill in the fields with zeros), or create a new one.