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 :
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
Number of tables: 0
v ticketing_mirror accessories
* id : int(11)
* name : varchar(100)
* category : varchar(50)
* quantity : int(11)
* reorder_level : int(11)
* created_at : timestamp
v ticketing_mirror accessories_history
* id : int(11)
* accessory_id : int(11)
* issued_to : int(11)
* issued_by : int(11)
* quantity : int(11)
* ticket_id : int(11)
* approval_status : enum('pending','approved','rejected')
* receive_status : enum('pending','received','rejected')
* supervisor_note : text
* created_at : timestamp
* received_at : timestamp
v ticketing_mirror accessory_issues
* id : int(11)
* accessory_id : int(11)
* issued_to : int(11)
* quantity : int(11)
* approval_status : enum('pending','approved','rejected')
* requested_by : int(11)
* requested_at : timestamp
v ticketing_mirror attendance
* id : int(11)
* user_id : int(11)
* role : varchar(50)
* check_in : datetime
* check_out : datetime
* status : enum('present','absent','late','completed')
* source : enum('manual','biometric')
* created_at : timestamp
* updated_at : timestamp
v ticketing_mirror audit_logs
* id : int(11)
* user_id : int(11)
* actor : varchar(100)
* action : varchar(255)
* details : text
* related_type : varchar(50)
* related_id : int(11)
* created_at : timestamp
v ticketing_mirror cheques
* id : int(11)
* cheque_no : varchar(50)
* bank_name : varchar(100)
* customer_name : varchar(100)
* amount : decimal(15,2)
* cheque_date : date
* status : enum('pending','cleared','bounced','cancelled')
* notes : text
* created_by : int(11)
* created_at : timestamp
v ticketing_mirror customers
* id : int(11)
* account_number : varchar(50)
* full_name : varchar(100)
* email : varchar(100)
* phone : varchar(20)
* address : text
* plan_name : varchar(50)
* status : enum('active','inactive','suspended')
* created_at : timestamp
v ticketing_mirror expenses
* id : int(11)
* category : varchar(100)
* method : enum('cash','mpesa','bank','cheque')
* amount : decimal(10,2)
* description : text
* requested_by : int(11)
* approval_status : enum('pending','approved','rejected')
* status : enum('pending','approved','rejected')
* reference : varchar(100)
* created_at : timestamp
v ticketing_mirror invoices
* id : int(11)
* invoice_no : varchar(50)
* customer_name : varchar(100)
* customer_phone : varchar(20)
* customer_email : varchar(100)
* status : enum('draft','sent','partially_paid','paid','overdue','cancelled')
* issue_date : date
* due_date : date
* subtotal : decimal(15,2)
* tax : decimal(15,2)
* discount : decimal(15,2)
* total : decimal(15,2)
* amount_paid : decimal(15,2)
* balance : decimal(15,2)
* notes : text
* terms : text
* created_by : int(11)
* created_at : timestamp
v ticketing_mirror invoice_items
* id : int(11)
* invoice_id : int(11)
* description : text
* qty : decimal(10,2)
* unit_price : decimal(15,2)
* line_total : decimal(15,2)
v ticketing_mirror number_sequences
* seq_key : varchar(50)
* year : int(11)
* last_no : int(11)
v ticketing_mirror payments
* id : int(11)
* account_no : varchar(50)
* customer_name : varchar(100)
* paid_for : varchar(255)
* method : enum('mpesa','cash','bank','cheque')
* amount : decimal(10,2)
* reference : varchar(100)
* status : enum('received','pending','failed')
* created_at : timestamp
v ticketing_mirror quotations
* id : int(11)
* quote_no : varchar(50)
* customer_name : varchar(100)
* customer_phone : varchar(20)
* customer_email : varchar(100)
* status : enum('draft','sent','accepted','rejected','expired','invoiced')
* issue_date : date
* valid_until : date
* subtotal : decimal(15,2)
* tax : decimal(15,2)
* discount : decimal(15,2)
* total : decimal(15,2)
* notes : text
* terms : text
* converted_invoice_id : int(11)
* created_by : int(11)
* created_at : timestamp
v ticketing_mirror quotation_items
* id : int(11)
* quotation_id : int(11)
* description : text
* qty : decimal(10,2)
* unit_price : decimal(15,2)
* line_total : decimal(15,2)
v ticketing_mirror receipts
* id : int(11)
* receipt_no : varchar(50)
* customer_name : varchar(100)
* account_no : varchar(50)
* amount : decimal(15,2)
* method : enum('mpesa','cash','bank','cheque')
* reference : varchar(100)
* description : text
* created_by : int(11)
* created_at : timestamp
v ticketing_mirror system_settings
* key : varchar(50)
* value : text
* updated_at : timestamp
v ticketing_mirror tickets
* id : int(11)
* ticket_no : varchar(20)
* account_number : varchar(50)
* customer_name : varchar(100)
* customer_phone : varchar(20)
* address : text
* service_type : varchar(100)
* issue_description : text
* status : enum('assigned','completed')
* priority : enum('low','medium','high')
* assigned_to : int(11)
* created_at : timestamp
* updated_at : timestamp
v ticketing_mirror ticket_photos
* id : int(11)
* ticket_no : varchar(20)
* photo_path : varchar(255)
* uploaded_at : timestamp
v ticketing_mirror users
* id : int(11)
* full_name : varchar(100)
* username : varchar(50)
* email : varchar(100)
* phone : varchar(20)
* password : varchar(255)
* role : enum('admin','accounts','supervisor','technician','customercare','marketing')
* status : enum('active','inactive')
* emp_code : varchar(20)
* created_at : timestamp
* updated_at : timestamp
Create relationship
FOREIGN KEY
on delete
on update
Delete relationship