The bottom line:
You need to make a website where there will be a list of users with passwords, as well as the date of completion of payment for services. And you also need to make a payment history.
Question:
Can I improve my table structure for this task?
I see it like this:
- Creates a
clientstable
------------------------------------------------------------- | id | name | pass date | price | ------------------------------------------------------------- | | | (дата окончания услуги) | (цена, которая | | | | | будет подставляться | | | | | в историю оплаты) | ------------------------------------------------------------- - Creates a
historytable, in the cells of which are written ID users
------------------------------------------------------------------------------ | id | jan | feb | mar | apr | may | jun | jul | aug | sep | oct | nov | dec | ------------------------------------------------------------------------------ As a result, the withdrawal of the payment history should look like this:
Юзерник | 15 январь 2015 | 50 рублей Юзерник | 13 февраль 2015 | 50 рублей Юзерник | 19 март 2015 | 50 рублей etc.