create table user_events ( id INTEGER primary key autoincrement, chat_id INTEGER, username TEXT, action TEXT, timestamp TEXT );