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 full-screen 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 sales_inventory_db alert_log
* id : bigint(20)
* alert_type : enum('low_stock','expiry_soon')
* entity_id : bigint(20)
* message : text
* is_resolved : tinyint(1)
* created_at : datetime
v sales_inventory_db api_customer_statements
* party_id : bigint(20)
* customer_name : varchar(255)
* invoice_number : varchar(50)
* total_amount : decimal(18,2)
* paid_amount : decimal(18,2)
* balance : decimal(19,2)
* due_date : date
* status : enum('issued','paid','partially_paid','overdue','void')
* aging_bucket : varchar(7)
v sales_inventory_db api_low_stock_alerts
* product_name : varchar(255)
* variant_name : varchar(100)
* warehouse_name : varchar(100)
* batch_number : varchar(100)
* quantity : decimal(15,4)
* reorder_point : int(11)
v sales_inventory_db api_stock_status
* warehouse_name : varchar(100)
* sku : varchar(100)
* product_name : varchar(255)
* variant_name : varchar(100)
* batch_number : varchar(100)
* quantity : decimal(15,4)
* expiry_date : date
* costing_method : enum('FIFO','LIFO','Average','Specific')
* stock_value : decimal(33,8)
v sales_inventory_db audit_log
* id : bigint(20)
* user_id : bigint(20)
* action : varchar(100)
* entity_type : varchar(50)
* entity_id : bigint(20)
* old_values : longtext
* new_values : longtext
* ip_address : varchar(45)
* user_agent : varchar(255)
* created_at : datetime
v sales_inventory_db batches
* id : bigint(20)
* batch_number : varchar(100)
* product_id : bigint(20)
* variant_id : bigint(20)
* warehouse_id : bigint(20)
* location_id : bigint(20)
* purchase_price : decimal(18,4)
* currency_code : char(3)
* quantity : decimal(15,4)
* manufacturing_date : date
* expiry_date : date
* costing_method : enum('FIFO','LIFO','Average','Specific')
* created_at : datetime
* updated_at : timestamp
v sales_inventory_db currencies
* code : char(3)
* symbol : varchar(10)
* name : varchar(50)
* is_base_currency : tinyint(1)
* created_at : datetime
v sales_inventory_db exchange_rate_history
* id : bigint(20)
* from_currency : char(3)
* to_currency : char(3)
* rate : decimal(18,6)
* effective_date : date
* created_at : datetime
v sales_inventory_db inventory_transactions
* id : bigint(20)
* transaction_type : enum('receipt','sale','adjustment','transfer_out','transfer_in','return','count')
* product_id : bigint(20)
* variant_id : bigint(20)
* batch_id : bigint(20)
* warehouse_id : bigint(20)
* from_warehouse_id : bigint(20)
* to_warehouse_id : bigint(20)
* quantity_change : decimal(15,4)
* reference_type : varchar(50)
* reference_id : bigint(20)
* notes : text
* created_at : datetime
v sales_inventory_db invoices
* id : bigint(20)
* invoice_number : varchar(50)
* sales_order_id : bigint(20)
* party_id : bigint(20)
* currency_code : char(3)
* total_amount : decimal(18,2)
* paid_amount : decimal(18,2)
* status : enum('issued','paid','partially_paid','overdue','void')
* issued_at : datetime
* due_date : date
* created_at : datetime
v sales_inventory_db languages
* id : char(2)
* name : varchar(50)
* is_rtl : tinyint(1)
* created_at : datetime
v sales_inventory_db mv_customer_aging
* party_id : bigint(20)
* party_name : varchar(255)
* outstanding_amount : decimal(18,2)
* bucket_30 : decimal(18,2)
* bucket_60 : decimal(18,2)
* bucket_90_plus : decimal(18,2)
* last_refresh : timestamp
v sales_inventory_db mv_inventory_valuation
* warehouse_id : bigint(20)
* product_id : bigint(20)
* variant_id : bigint(20)
* batch_id : bigint(20)
* quantity : decimal(15,4)
* unit_cost : decimal(18,4)
* total_value : decimal(18,2)
* costing_method : varchar(20)
* last_refresh : timestamp
v sales_inventory_db parties
* id : bigint(20)
* party_type : enum('customer','supplier')
* code : varchar(50)
* name : varchar(255)
* email : varchar(255)
* phone : varchar(50)
* credit_limit : decimal(18,2)
* currency_code : char(3)
* balance : decimal(18,2)
* created_at : datetime
* updated_at : timestamp
v sales_inventory_db party_addresses
* id : bigint(20)
* party_id : bigint(20)
* address_type : enum('billing','shipping','warehouse')
* address_line1 : varchar(255)
* address_line2 : varchar(255)
* city : varchar(100)
* state : varchar(100)
* postal_code : varchar(20)
* country : varchar(100)
* is_default : tinyint(1)
* created_at : datetime
v sales_inventory_db permissions
* id : bigint(20)
* resource : varchar(100)
* action : varchar(50)
* description : varchar(255)
* created_at : datetime
v sales_inventory_db products
* id : bigint(20)
* sku : varchar(100)
* upc : varchar(50)
* name : varchar(255)
* description : text
* base_currency : char(3)
* base_cost : decimal(18,4)
* base_price : decimal(18,4)
* reorder_point : int(11)
* reorder_quantity : int(11)
* created_at : datetime
* updated_at : timestamp
v sales_inventory_db product_variants
* id : bigint(20)
* product_id : bigint(20)
* variant_name : varchar(100)
* sku : varchar(100)
* upc : varchar(50)
* base_cost : decimal(18,4)
* base_price : decimal(18,4)
* created_at : datetime
v sales_inventory_db purchase_orders
* id : bigint(20)
* po_number : varchar(50)
* supplier_id : bigint(20)
* warehouse_id : bigint(20)
* currency_code : char(3)
* status : enum('draft','confirmed','received','invoiced','closed','cancelled')
* total_amount : decimal(18,2)
* created_at : datetime
* received_at : timestamp
v sales_inventory_db purchase_order_lines
* id : bigint(20)
* purchase_order_id : bigint(20)
* product_id : bigint(20)
* variant_id : bigint(20)
* expected_quantity : decimal(15,4)
* received_quantity : decimal(15,4)
* unit_cost : decimal(18,4)
* line_total : decimal(18,2)
* created_at : datetime
v sales_inventory_db roles
* id : bigint(20)
* name : varchar(50)
* description : varchar(255)
* created_at : datetime
v sales_inventory_db role_permissions
* role_id : bigint(20)
* permission_id : bigint(20)
v sales_inventory_db sales_orders
* id : bigint(20)
* order_number : varchar(50)
* party_id : bigint(20)
* warehouse_id : bigint(20)
* currency_code : char(3)
* status : enum('draft','confirmed','shipped','delivered','cancelled')
* total_amount : decimal(18,2)
* created_at : datetime
* confirmed_at : datetime
* shipped_at : datetime
* delivered_at : datetime
v sales_inventory_db sales_order_lines
* id : bigint(20)
* sales_order_id : bigint(20)
* product_id : bigint(20)
* variant_id : bigint(20)
* batch_id : bigint(20)
* quantity : decimal(15,4)
* unit_price : decimal(18,4)
* line_total : decimal(18,2)
* created_at : datetime
v sales_inventory_db supplier_payments
* id : bigint(20)
* supplier_id : bigint(20)
* amount : decimal(18,2)
* currency_code : char(3)
* payment_method : varchar(50)
* reference : varchar(100)
* applied_to_po_ids : longtext
* paid_at : timestamp
v sales_inventory_db translations
* id : bigint(20)
* language_id : char(2)
* entity_type : varchar(50)
* entity_id : bigint(20)
* field_name : varchar(100)
* translated_text : text
* created_at : datetime
* updated_at : timestamp
v sales_inventory_db users
* id : bigint(20)
* username : varchar(50)
* email : varchar(255)
* password_hash : varchar(255)
* first_name : varchar(100)
* last_name : varchar(100)
* is_active : tinyint(1)
* last_login : timestamp
* created_at : datetime
* updated_at : timestamp
v sales_inventory_db user_roles
* user_id : bigint(20)
* role_id : bigint(20)
v sales_inventory_db warehouses
* id : bigint(20)
* name : varchar(100)
* code : varchar(20)
* address_id : bigint(20)
* is_active : tinyint(1)
* created_at : datetime
v sales_inventory_db warehouse_locations
* id : bigint(20)
* warehouse_id : bigint(20)
* location_code : varchar(50)
* description : varchar(255)
* created_at : datetime
Create relationship
FOREIGN KEY
on delete
on update
Delete relationship