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 :
Table structure
Settings for the table structure (list of columns).
Table structure
Documentation Whether the table structure actions should be hidden. Restore default value
Documentation Whether column comments should be shown in table structure view Restore default value
Default transformations
Documentation Values for options list for default transformations. These will be overwritten if transformation is filled in at table structure page. Restore default value
Documentation Values for options list for default transformations. These will be overwritten if transformation is filled in at table structure page. Restore default value
Documentation Values for options list for default transformations. These will be overwritten if transformation is filled in at table structure page. Restore default value
Documentation Values for options list for default transformations. These will be overwritten if transformation is filled in at table structure page. Restore default value
Documentation Values for options list for default transformations. These will be overwritten if transformation is filled in at table structure page. Restore default value
Documentation Values for options list for default transformations. These will be overwritten if transformation is filled in at table structure page. Restore default value
Documentation Values for options list for default transformations. These will be overwritten if transformation is filled in at table structure page. Restore default value
Documentation Values for options list for default transformations. These will be overwritten if transformation is filled in at table structure page. Restore default value
Documentation Values for options list for default transformations. These will be overwritten if transformation is filled in at table structure page. Restore default value

stock_transactions

# Name Type Collation Attributes Null Default Comments Extra Action
1 bigint(20) UNSIGNED No None AUTO_INCREMENT Change Change Drop Drop
2 varchar(80) utf8mb4_unicode_ci No None Change Change Drop Drop
3 enum('purchase_inward', 'opening_stock_import', 'h... utf8mb4_unicode_ci No None Change Change Drop Drop
4 bigint(20) UNSIGNED No None Change Change Drop Drop
5 bigint(20) UNSIGNED Yes NULL Change Change Drop Drop
6 bigint(20) UNSIGNED Yes NULL Change Change Drop Drop
7 bigint(20) UNSIGNED Yes NULL Change Change Drop Drop
8 bigint(20) UNSIGNED Yes NULL Change Change Drop Drop
9 bigint(20) UNSIGNED Yes NULL Change Change Drop Drop
10 bigint(20) UNSIGNED Yes NULL Change Change Drop Drop
11 bigint(20) UNSIGNED Yes NULL Change Change Drop Drop
12 bigint(20) UNSIGNED Yes NULL Change Change Drop Drop
13 timestamp No current_timestamp() Change Change Drop Drop
14 timestamp Yes NULL Change Change Drop Drop
15 timestamp Yes NULL Change Change Drop Drop
16 enum('not_required', 'pending', 'approved', 'rejec... utf8mb4_unicode_ci No not_required Change Change Drop Drop
17 bigint(20) UNSIGNED Yes NULL Change Change Drop Drop
18 timestamp Yes NULL Change Change Drop Drop
19 enum('draft', 'pending_dispatch', 'dispatched', 'p... utf8mb4_unicode_ci No completed Change Change Drop Drop
20 text utf8mb4_unicode_ci Yes NULL Change Change Drop Drop
21 varchar(255) utf8mb4_unicode_ci Yes NULL Change Change Drop Drop
22 bigint(20) UNSIGNED No None Change Change Drop Drop
23 bigint(20) UNSIGNED Yes NULL Change Change Drop Drop
24 varchar(45) utf8mb4_unicode_ci Yes NULL Change Change Drop Drop
25 varchar(255) utf8mb4_unicode_ci Yes NULL Change Change Drop Drop
26 timestamp Yes current_timestamp() Change Change Drop Drop
27 timestamp Yes current_timestamp() ON UPDATE CURRENT_TIMESTAMP() Change Change Drop Drop
28 timestamp Yes NULL Change Change Drop Drop
29 varchar(150) utf8mb4_unicode_ci Yes NULL Change Change Drop Drop
30 datetime Yes NULL Change Change Drop Drop
31 varchar(30) utf8mb4_unicode_ci Yes NULL Change Change Drop Drop
32 varchar(255) utf8mb4_unicode_ci Yes NULL Change Change Drop Drop
33 varchar(500) utf8mb4_unicode_ci Yes NULL Change Change Drop Drop
34 decimal(10,7) Yes NULL Change Change Drop Drop
35 decimal(10,7) Yes NULL Change Change Drop Drop
36 decimal(10,2) Yes NULL Change Change Drop Drop
37 bigint(20) UNSIGNED Yes NULL Change Change Drop Drop
With selected: With selected:

Add column  Add column(s)  
Indexes Documentation
Action Keyname Type Unique Packed Column Cardinality Collation Null Comment
Edit Edit Rename Rename Drop Drop PRIMARY BTREE Yes No id 27481 A No
Edit Edit Rename Rename Drop Drop transaction_no BTREE Yes No transaction_no 27481 A No
Edit Edit Rename Rename Drop Drop idx_stock_tx_company_type_date BTREE No No company_id 2 A No
transaction_type 6 A No
transaction_at 6870 A No
Edit Edit Rename Rename Drop Drop idx_stock_tx_from_to BTREE No No from_location_id 229 A Yes
to_location_id 312 A Yes
Edit Edit Rename Rename Drop Drop idx_stock_tx_customer BTREE No No customer_id 2 A Yes
Edit Edit Rename Rename Drop Drop idx_stock_tx_pop BTREE No No pop_location_id 2 A Yes
Edit Edit Rename Rename Drop Drop idx_stock_tx_engineer BTREE No No engineer_id 28 A Yes
Edit Edit Rename Rename Drop Drop fk_stock_tx_to_location BTREE No No to_location_id 190 A Yes
Edit Edit Rename Rename Drop Drop fk_stock_tx_supplier BTREE No No supplier_id 2 A Yes
Edit Edit Rename Rename Drop Drop fk_stock_tx_repair_vendor BTREE No No repair_vendor_id 2 A Yes
Edit Edit Rename Rename Drop Drop fk_stock_tx_related BTREE No No related_transaction_id 2 A Yes
Edit Edit Rename Rename Drop Drop fk_stock_tx_approved_by BTREE No No approved_by 2 A Yes
Edit Edit Rename Rename Drop Drop fk_stock_tx_created_by BTREE No No created_by 2 A No
Edit Edit Rename Rename Drop Drop fk_stock_tx_updated_by BTREE No No updated_by 2 A Yes
Create an index on columns
Partitions Documentation
Information
Space usage
Data 4.5 MiB
Index 11.9 MiB
Overhead 4.0 MiB
Effective 12.4 MiB
Total 16.4 MiB
Optimise table Optimise table
Row statistics
Format dynamic
Collation utf8mb4_unicode_ci
Next autoindex 28,019
Creation Aug 06, 2026 at 04:56 PM
Last update Aug 08, 2026 at 04:49 PM
Last check Aug 09, 2026 at 01:27 AM