Drop files here

SQL upload ( 0 ) x -

Page-related settings Click 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 :
Options
Set default





Collapse Expand Requery Edit Explain Profiling 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
Number of tables: 0
v citizen_reports activity_log
* id : int(11)
* user_id : int(11)
* action : varchar(255)
* details : text
* ip_address : varchar(45)
* level : varchar(20)
* created_at : timestamp
v citizen_reports ai_conversations
* id : int(11)
* user_id : int(11)
* message : text
* response : text
* created_at : timestamp
v citizen_reports approval_statuses
* id : int(11)
* name : varchar(100)
* color : varchar(20)
* is_active : tinyint(1)
* sort_order : int(11)
* created_at : timestamp
v citizen_reports authentication_login_attempts
* username_hash : char(64)
* ip_hash : char(64)
* failed_attempts : smallint(5) unsigned
* window_started_at : datetime
* locked_until : datetime
* updated_at : timestamp
v citizen_reports deleted_reports
* id : int(11)
* original_id : int(11)
* data : longtext
* deleted_by : int(11)
* delete_reason : varchar(255)
* table_label : varchar(100)
* deleted_at : timestamp
v citizen_reports districts
* id : int(11)
* name : varchar(100)
* is_active : tinyint(1)
* sort_order : int(11)
* created_at : timestamp
v citizen_reports recipient_types
* id : int(11)
* name : varchar(100)
* color : varchar(20)
* is_active : tinyint(1)
* sort_order : int(11)
* created_at : timestamp
v citizen_reports repair_statuses
* id : int(11)
* name : varchar(100)
* statistics_key : varchar(50)
* color : varchar(20)
* is_active : tinyint(1)
* sort_order : int(11)
* created_at : timestamp
v citizen_reports reports
* id : int(11)
* report_number : varchar(50)
* report_type_id : int(11)
* recipient_type_id : int(11)
* district_id : int(11)
* reporter_name : varchar(100)
* phone1 : varchar(20)
* phone2 : varchar(20)
* address : text
* latitude : decimal(10,8)
* longitude : decimal(11,8)
* recipient_name : varchar(100)
* signal_number : varchar(50)
* notebook_number : varchar(50)
* report_source : varchar(100)
* report_source_id : int(11)
* report_source_engineering_id : int(11)
* report_source_subsource_id : int(11)
* info_source : varchar(100)
* diameter : varchar(50)
* repair_status_id : int(11)
* approval_status_id : int(11)
* approval_notified_person : varchar(255)
* approval_date : date
* is_urgent : tinyint(1)
* importance_level : tinyint(1)
* is_duplicate : tinyint(1)
* linked_report_id : int(11)
* whatsapp_number : varchar(20)
* notes : text
* repair_source : varchar(100)
* repair_notes : text
* repair_date : date
* repair_time : time
* report_date : date
* report_time : time
* created_at : timestamp
* updated_at : timestamp
* created_by : int(11)
* approval_time : time
v citizen_reports report_attachments
* id : int(11)
* report_id : int(11)
* file_path : varchar(255)
* file_name : varchar(255)
* uploaded_by : int(11)
* created_at : timestamp
v citizen_reports report_bell_reads
* id : bigint(20) unsigned
* user_id : int(11)
* report_id : int(11)
* read_at : timestamp
v citizen_reports report_sources
* id : int(11)
* name : varchar(100)
* is_active : tinyint(1)
* requires_engineering_selection : tinyint(1)
* sort_order : int(11)
* created_at : timestamp
v citizen_reports report_source_subsources
* id : int(11)
* report_source_id : int(11)
* name : varchar(100)
* is_active : tinyint(1)
* sort_order : int(11)
* created_at : timestamp
v citizen_reports report_types
* id : int(11)
* name : varchar(100)
* color : varchar(20)
* is_active : tinyint(1)
* sort_order : int(11)
* created_at : timestamp
v citizen_reports report_type_repair_statuses
* report_type_id : int(11)
* repair_status_id : int(11)
v citizen_reports report_urgency_logs
* id : int(11)
* report_id : int(11)
* urgency_number : int(11)
* urgency_date : date
* urgency_time : time
* reporter_name : varchar(255)
* recipient_name : varchar(255)
* recipient_type_name : varchar(255)
* notes : text
* user_id : int(11)
* created_at : timestamp
v citizen_reports sector_groups
* id : int(11)
* name : varchar(255)
* is_active : tinyint(1)
* sort_order : int(11)
* created_at : timestamp
v citizen_reports sector_recipient_types
* id : int(11)
* sector_id : int(11)
* recipient_type_id : int(11)
* created_at : timestamp
v citizen_reports settings
* id : int(11)
* setting_key : varchar(100)
* setting_value : text
* description : varchar(255)
* updated_at : timestamp
v citizen_reports statistics_pdf_templates
* id : int(10) unsigned
* name : varchar(120)
* configuration_json : longtext
* created_by : int(11)
* updated_by : int(11)
* created_at : timestamp
* updated_at : timestamp
v citizen_reports statistics_pivot_layout_preferences
* id : tinyint(4)
* configuration_json : longtext
* updated_by : int(11)
* updated_at : timestamp
v citizen_reports statistics_repair_pivot_preferences
* recipient_type_id : int(11)
* configuration_json : longtext
* updated_by : int(11)
* updated_at : timestamp
v citizen_reports users
* id : int(11)
* username : varchar(50)
* password : varchar(255)
* full_name : varchar(100)
* role : enum('admin','user')
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v citizen_reports user_permissions
* id : int(11)
* user_id : int(11)
* page_name : varchar(50)
* can_view : tinyint(1)
* can_edit : tinyint(1)
* can_delete : tinyint(1)
v citizen_reports view_monthly_reports
* month : varchar(7)
* total_reports : bigint(21)
v citizen_reports view_reports_by_engineering
* recipient_type_name : varchar(100)
* engineering_color : varchar(20)
* total_reports : bigint(21)
* urgent_count : decimal(22,0)
v citizen_reports view_reports_by_status
* status_name : varchar(100)
* status_color : varchar(20)
* total_reports : bigint(21)
Create relationship
FOREIGN KEY
on delete
on update
Delete relationship