roataway / telegram-bot

A Telegram bot for reporting ETAs for public transport in Chișinău, Moldova
http://t.me/roataway_bot
GNU Affero General Public License v3.0
13 stars 3 forks source link

Database with logs for transparency reports #20

Open roata opened 5 years ago

roata commented 5 years ago

To keep track of the number of users and requests we get each day, there has to be a database where this information is logged. This will be used for regular transparency reports, to monitor our growth and estimate the potential of RoataWăy.

The database will use SQLAlchemy with an SQLite backend (for now), and contain the following information:

Events table

Metadata table

We refrain from storing metadata about users (names and nicknames), because the chat_id is sufficient to uniquely identify a user.