Drop files here

SQL upload ( 0 ) x-

Server: 127.0.0.1 »Database: wa_ops_automation
Page-related settingsClick on the bar to scroll to top of page
Press Ctrl+Enter to execute query Press Enter to execute query
ascending
descending
Order:
Debug SQL
Count
Execution order
Time taken
Order by:
Group queries
Ungroup queries
Collapse Expand Show trace Hide trace Count Time taken
Bookmarks
Refresh
Add
No bookmarks
Add bookmark
Options
Set default





Collapse Expand Requery Edit Explain Profiling Bookmark Query failed Database Queried time
Untitled *
v Show/Hide tables list View in fullscreen Add tables from other databases New page Open page Save page Save page as Delete pages Create table Create relationship Choose column to display Reload Help Angular links / Direct links Snap to grid v Small/Big All Toggle small/big Toggle relationship lines Export schema > Move Menu > Pin text
wa_ops_automation.batch_logs
wa_ops_automation.unanswered_questions
wa_ops_automation.whatsapp_chats
wa_ops_automation.whatsapp_chats_archive
Number of tables: 4
v wa_ops_automation batch_logs
* id : int(11)
* batch_id : varchar(50)
* batch_number : int(11)
* group_id : varchar(100)
* messages_fetched : int(11)
* messages_new : int(11)
* messages_duplicate : int(11)
* messages_stored : int(11)
* questions_detected : int(11)
* unanswered_count : int(11)
* fetch_status : enum('pending','success','failed')
* process_status : enum('pending','analyzed','sent','failed')
* error_message : longtext
* retry_count : int(11)
* fetch_start_at : datetime
* fetch_end_at : datetime
* analyze_start_at : datetime
* analyze_end_at : datetime
* created_at : timestamp
v wa_ops_automation unanswered_questions
* id : int(11)
* message_id : varchar(100)
* batch_id : varchar(50)
* group_id : varchar(100)
* sender_number : varchar(50)
* sender_name : varchar(100)
* question_text : text
* question_timestamp : datetime
* days_pending : int(11)
* priority : enum('critical','urgent','high','medium','low')
* status : varchar(50)
* resolved_at : datetime
* ai_model : varchar(50)
* ai_confidence : float
* created_at : timestamp
* updated_at : timestamp
v wa_ops_automation whatsapp_chats
* id : int(11)
* message_id : varchar(100)
* batch_id : varchar(50)
* group_id : varchar(100)
* sender_number : varchar(50)
* sender_name : varchar(100)
* message_text : longtext
* message_timestamp : bigint(20)
* message_datetime : datetime
* created_at : timestamp
* processed : tinyint(1)
* processed_at : datetime
* deleted_at : datetime
* has_question : tinyint(1)
* is_answer : tinyint(1)
* ai_confidence : float
v wa_ops_automation whatsapp_chats_archive
* id : int(11)
* message_id : varchar(100)
* batch_id : varchar(50)
* group_id : varchar(100)
* sender_number : varchar(50)
* sender_name : varchar(100)
* message_text : longtext
* message_timestamp : bigint(20)
* message_datetime : datetime
* archived_at : timestamp
* original_created_at : datetime
Create relationship
FOREIGN KEY
on delete
on update
Delete relationship