Reputation: 335
So I need to track user's monthly payments.
I have a table for the users with all their info.
I'm guessing I'll need another table with all the months since 2010.
I don't know, how is this done? it would also need to add new months as time passes...
I don't really need help with code, just the database structure.
Upvotes: 2
Views: 1485
Reputation: 16677
you need another table for PAYMENT
something like
PAYMENT
-------------
payment_id
amount
payment_date
user_id
Upvotes: 6