attendances model