it records the amount_paid because as soon as a participant pays for a ticket they retain that ticket until it is not paid for X (determined in teh system usually greater then 10) consecutive draws.

This is why we have the amount_paid and enter 0 in amount paid for all ticket_sales.

Because it needs to be calculated from the previous payments for the ticket and at the same time we calculate how many draws the ticket has gone unpaid for.