Leave management automation

I want to make leave updating automatic up to some extent for that I need to know the number of leaves available for an employee. Does anyone know what is the table name that stores details of leave of all employee?