分开付费和购买付款是否合适

时间:2015-08-06 06:52:42

标签: mysql

这是我的数据库表

fee_table

|id|type_id|amount  |due_date  |status|balance|
|1 |1      |200.00  |2013-02-22|paid  |0.00   |

fee_payments

id |fee_id|amount_paid
|1 |1     |200.00|

purchase_table

|id|item_id|amount   |due_date  |status|balance|
|1 |1      |3000.00  |2013-01-23|paid  |0.00   |

purchase_payments

id |purchase_id|amount_paid
 1 |1          |200.00     

advance_payments

id |amount_paid
1  | 500

0 个答案:

没有答案