User Token Limits and Usage

I was curious, are there any resources where I can find info on implementing token limits per user as well as tracking each user’s usage individually?

Apparently, you don’t need any resources, if you know how to use a DB then you can achieve that simply but programmatically updating the values per user.