Database with logs for transparency reports #20
Labels
database
DB-related matters, involving awareness of SQL
enhancement
New feature or request
help wanted
Extra attention is needed
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
event_id
timestamp
action
, one of {add
,feedback
,prognosis
} as a numeric codechat_id
(not sure about this one yet)Metadata table
event_id
(foreign key)metadata
(depending on the action, feedback -> feedback text, prognosis -> route number)We refrain from storing metadata about users (names and nicknames), because the
chat_id
is sufficient to uniquely identify a user.The text was updated successfully, but these errors were encountered: