Add token usage details
A user can create tokens, which can be used to authenticate to the row create, read, update, delete endpoints. This token can be used to publicly expose data via the REST API endpoint. It is also possible to configure permissions per token.
Two new fields must be added to the Token
model. One that contains the timestamp when the token was last used and another that indicates how many times the token is used to serve an endpoint in total. Every time an endpoint is hit using the token, both values must be updated.
Edited by Bram Wiepjes