prici-io / prici

manage plans and pricing for any SaaS application
https://prici.io
MIT License
37 stars 5 forks source link

feature: account plan usage logs entity #38

Open davidmeirlevy opened 6 months ago

davidmeirlevy commented 6 months ago

A user would like to know anything that happened between/until/after certain dates. A usage log entity can achieve this goal.

The usage log entity should persist:

The usage log should be set asynchronously on every increment action. The usage property should be equal to the incementAmount given to the method (even if the field kind is boolean or string).

We should have an optional property to the increment method to support the additional info property, that will be stored in the usage log. The user would like to add additional information about the increment action to add some context to the usage).