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 sprotest accounts
* id : int(10) unsigned
* account_no : varchar(191)
* name : varchar(191)
* initial_balance : double
* total_balance : double
* note : text
* is_default : tinyint(1)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sprotest adjustments
* id : int(10) unsigned
* reference_no : varchar(191)
* warehouse_id : int(11)
* document : varchar(191)
* total_qty : double
* item : int(11)
* note : text
* created_at : timestamp
* updated_at : timestamp
v sprotest attendances
* id : int(10) unsigned
* date : date
* employee_id : int(11)
* user_id : int(11)
* checkin : varchar(191)
* checkout : varchar(191)
* status : int(11)
* note : text
* created_at : timestamp
* updated_at : timestamp
v sprotest billers
* id : int(10) unsigned
* name : varchar(191)
* image : varchar(191)
* company_name : varchar(191)
* vat_number : varchar(191)
* email : varchar(191)
* phone_number : varchar(191)
* address : varchar(191)
* city : varchar(191)
* state : varchar(191)
* postal_code : varchar(191)
* country : varchar(191)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sprotest brands
* id : int(10) unsigned
* title : varchar(191)
* image : varchar(191)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sprotest cash_registers
* id : int(10) unsigned
* cash_in_hand : double
* user_id : int(11)
* warehouse_id : int(11)
* status : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sprotest categories
* id : int(10) unsigned
* name : varchar(191)
* image : varchar(191)
* parent_id : int(11)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sprotest coupons
* id : int(10) unsigned
* code : varchar(191)
* type : varchar(191)
* amount : double
* minimum_amount : double
* quantity : int(11)
* used : int(11)
* expired_date : date
* user_id : int(11)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sprotest currencies
* id : bigint(20) unsigned
* name : varchar(191)
* code : varchar(191)
* exchange_rate : double
* created_at : timestamp
* updated_at : timestamp
v sprotest customers
* id : int(10) unsigned
* customer_group_id : int(11)
* user_id : int(11)
* name : varchar(191)
* company_name : varchar(191)
* email : varchar(191)
* phone_number : varchar(191)
* tax_no : varchar(191)
* address : varchar(191)
* city : varchar(191)
* state : varchar(191)
* postal_code : varchar(191)
* country : varchar(191)
* points : double
* deposit : double
* expense : double
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sprotest customer_groups
* id : int(10) unsigned
* name : varchar(191)
* percentage : varchar(191)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sprotest deliveries
* id : int(10) unsigned
* reference_no : varchar(191)
* sale_id : int(11)
* user_id : int(11)
* address : text
* delivered_by : varchar(191)
* recieved_by : varchar(191)
* file : varchar(191)
* note : varchar(191)
* status : varchar(191)
* created_at : timestamp
* updated_at : timestamp
v sprotest departments
* id : int(10) unsigned
* name : varchar(191)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sprotest deposits
* id : int(10) unsigned
* amount : double
* customer_id : int(11)
* user_id : int(11)
* note : text
* created_at : timestamp
* updated_at : timestamp
v sprotest discounts
* id : bigint(20) unsigned
* name : varchar(191)
* applicable_for : varchar(191)
* product_list : longtext
* valid_from : date
* valid_till : date
* type : varchar(191)
* value : double
* minimum_qty : double
* maximum_qty : double
* days : varchar(191)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sprotest discount_plans
* id : bigint(20) unsigned
* name : varchar(191)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sprotest discount_plan_customers
* id : bigint(20) unsigned
* discount_plan_id : int(11)
* customer_id : int(11)
* created_at : timestamp
* updated_at : timestamp
v sprotest discount_plan_discounts
* id : bigint(20) unsigned
* discount_id : int(11)
* discount_plan_id : int(11)
* created_at : timestamp
* updated_at : timestamp
v sprotest employees
* id : int(10) unsigned
* name : varchar(191)
* email : varchar(191)
* phone_number : varchar(191)
* department_id : int(11)
* user_id : int(11)
* image : varchar(191)
* address : varchar(191)
* city : varchar(191)
* country : varchar(191)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sprotest expenses
* id : int(10) unsigned
* reference_no : varchar(191)
* expense_category_id : int(11)
* warehouse_id : int(11)
* account_id : int(11)
* user_id : int(11)
* cash_register_id : int(11)
* amount : double
* note : text
* created_at : timestamp
* updated_at : timestamp
v sprotest expense_categories
* id : int(10) unsigned
* code : varchar(191)
* name : varchar(191)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sprotest failed_jobs
* id : bigint(20) unsigned
* connection : text
* queue : text
* payload : longtext
* exception : longtext
* failed_at : timestamp
v sprotest general_settings
* id : int(10) unsigned
* site_title : varchar(191)
* is_rtl : tinyint(1)
* currency : varchar(191)
* staff_access : varchar(191)
* date_format : varchar(191)
* developed_by : varchar(191)
* invoice_format : varchar(191)
* state : int(11)
* theme : varchar(191)
* created_at : timestamp
* updated_at : timestamp
* currency_position : varchar(191)
v sprotest gift_cards
* id : int(10) unsigned
* card_no : varchar(191)
* amount : double
* expense : double
* customer_id : int(11)
* user_id : int(11)
* expired_date : date
* created_by : int(11)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sprotest gift_card_recharges
* id : int(10) unsigned
* gift_card_id : int(11)
* amount : double
* user_id : int(11)
* created_at : timestamp
* updated_at : timestamp
v sprotest holidays
* id : int(10) unsigned
* user_id : int(11)
* from_date : date
* to_date : date
* note : text
* is_approved : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sprotest hrm_settings
* id : int(10) unsigned
* checkin : varchar(191)
* checkout : varchar(191)
* created_at : timestamp
* updated_at : timestamp
v sprotest languages
* id : int(10) unsigned
* code : varchar(191)
* created_at : timestamp
* updated_at : timestamp
v sprotest migrations
* id : int(10) unsigned
* migration : varchar(191)
* batch : int(11)
v sprotest money_transfers
* id : int(10) unsigned
* reference_no : varchar(191)
* from_account_id : int(11)
* to_account_id : int(11)
* amount : double
* created_at : timestamp
* updated_at : timestamp
v sprotest notifications
* id : char(36)
* type : varchar(191)
* notifiable_type : varchar(191)
* notifiable_id : bigint(20) unsigned
* data : text
* read_at : timestamp
* created_at : timestamp
* updated_at : timestamp
v sprotest password_resets
* email : varchar(191)
* token : varchar(191)
* created_at : timestamp
v sprotest payments
* id : int(10) unsigned
* payment_reference : varchar(191)
* user_id : int(11)
* purchase_id : int(11)
* sale_id : int(11)
* cash_register_id : int(11)
* account_id : int(11)
* amount : double
* used_points : double
* change : double
* paying_method : varchar(191)
* payment_note : text
* created_at : timestamp
* updated_at : timestamp
v sprotest payment_with_cheque
* id : int(10) unsigned
* payment_id : int(11)
* cheque_no : varchar(191)
* created_at : timestamp
* updated_at : timestamp
v sprotest payment_with_credit_card
* id : int(10) unsigned
* payment_id : int(11)
* customer_id : int(11)
* customer_stripe_id : varchar(191)
* charge_id : varchar(191)
* created_at : timestamp
* updated_at : timestamp
v sprotest payment_with_gift_card
* id : int(10) unsigned
* payment_id : int(11)
* gift_card_id : int(11)
* created_at : timestamp
* updated_at : timestamp
v sprotest payment_with_paypal
* id : int(10) unsigned
* payment_id : int(11)
* transaction_id : varchar(191)
* created_at : timestamp
* updated_at : timestamp
v sprotest payrolls
* id : int(10) unsigned
* reference_no : varchar(191)
* employee_id : int(11)
* account_id : int(11)
* user_id : int(11)
* amount : double
* paying_method : varchar(191)
* note : text
* created_at : timestamp
* updated_at : timestamp
v sprotest permissions
* id : int(10) unsigned
* name : varchar(191)
* guard_name : varchar(191)
* created_at : timestamp
* updated_at : timestamp
v sprotest pos_setting
* id : int(11)
* customer_id : int(11)
* warehouse_id : int(11)
* biller_id : int(11)
* product_number : int(11)
* keybord_active : tinyint(1)
* stripe_public_key : varchar(191)
* stripe_secret_key : varchar(191)
* created_at : timestamp
* updated_at : timestamp
v sprotest products
* id : int(10) unsigned
* name : varchar(191)
* code : varchar(191)
* type : varchar(191)
* barcode_symbology : varchar(191)
* brand_id : int(11)
* category_id : int(11)
* unit_id : int(11)
* purchase_unit_id : int(11)
* sale_unit_id : int(11)
* cost : varchar(191)
* price : varchar(191)
* qty : double
* alert_quantity : double
* promotion : tinyint(4)
* promotion_price : varchar(191)
* starting_date : varchar(200)
* last_date : date
* tax_id : int(11)
* tax_method : int(11)
* image : longtext
* file : varchar(191)
* is_variant : tinyint(1)
* is_batch : tinyint(1)
* is_diffPrice : tinyint(1)
* is_imei : tinyint(1)
* featured : tinyint(4)
* product_list : varchar(191)
* variant_list : varchar(191)
* qty_list : varchar(191)
* price_list : varchar(191)
* product_details : text
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sprotest product_adjustments
* id : int(10) unsigned
* adjustment_id : int(11)
* product_id : int(11)
* variant_id : int(11)
* qty : double
* action : varchar(191)
* created_at : timestamp
* updated_at : timestamp
v sprotest product_batches
* id : bigint(20) unsigned
* product_id : int(11)
* batch_no : varchar(191)
* expired_date : date
* qty : double
* created_at : timestamp
* updated_at : timestamp
v sprotest product_purchases
* id : int(10) unsigned
* purchase_id : int(11)
* product_id : int(11)
* product_batch_id : int(11)
* variant_id : int(11)
* imei_number : text
* qty : double
* recieved : double
* purchase_unit_id : int(11)
* net_unit_cost : double
* discount : double
* tax_rate : double
* tax : double
* total : double
* created_at : timestamp
* updated_at : timestamp
v sprotest product_quotation
* id : int(10) unsigned
* quotation_id : int(11)
* product_id : int(11)
* product_batch_id : int(11)
* variant_id : int(11)
* qty : double
* sale_unit_id : int(11)
* net_unit_price : double
* discount : double
* tax_rate : double
* tax : double
* total : double
* created_at : timestamp
* updated_at : timestamp
v sprotest product_returns
* id : int(10) unsigned
* return_id : int(11)
* product_id : int(11)
* product_batch_id : int(11)
* variant_id : int(11)
* imei_number : text
* qty : double
* sale_unit_id : int(11)
* net_unit_price : double
* discount : double
* tax_rate : double
* tax : double
* total : double
* created_at : timestamp
* updated_at : timestamp
v sprotest product_sales
* id : int(10) unsigned
* sale_id : int(11)
* product_id : int(11)
* product_batch_id : int(11)
* variant_id : int(11)
* imei_number : text
* qty : double
* sale_unit_id : int(11)
* net_unit_price : double
* discount : double
* tax_rate : double
* tax : double
* total : double
* created_at : timestamp
* updated_at : timestamp
v sprotest product_transfer
* id : int(10) unsigned
* transfer_id : int(11)
* product_id : int(11)
* product_batch_id : int(11)
* variant_id : int(11)
* imei_number : text
* qty : double
* purchase_unit_id : int(11)
* net_unit_cost : double
* tax_rate : double
* tax : double
* total : double
* created_at : timestamp
* updated_at : timestamp
v sprotest product_variants
* id : int(10) unsigned
* product_id : int(11)
* variant_id : int(11)
* position : int(11)
* item_code : varchar(191)
* additional_price : double
* qty : double
* created_at : timestamp
* updated_at : timestamp
v sprotest product_warehouse
* id : int(10) unsigned
* product_id : varchar(191)
* product_batch_id : int(11)
* variant_id : int(11)
* imei_number : text
* warehouse_id : int(11)
* qty : double
* price : double
* created_at : timestamp
* updated_at : timestamp
v sprotest purchases
* id : int(10) unsigned
* reference_no : varchar(191)
* user_id : int(11)
* warehouse_id : int(11)
* supplier_id : int(11)
* item : int(11)
* total_qty : double
* total_discount : double
* total_tax : double
* total_cost : double
* order_tax_rate : double
* order_tax : double
* order_discount : double
* shipping_cost : double
* grand_total : double
* paid_amount : double
* status : int(11)
* payment_status : int(11)
* document : varchar(191)
* note : text
* created_at : timestamp
* updated_at : timestamp
v sprotest purchase_product_return
* id : int(10) unsigned
* return_id : int(11)
* product_id : int(11)
* product_batch_id : int(11)
* variant_id : int(11)
* imei_number : text
* qty : double
* purchase_unit_id : int(11)
* net_unit_cost : double
* discount : double
* tax_rate : double
* tax : double
* total : double
* created_at : timestamp
* updated_at : timestamp
v sprotest quotations
* id : int(10) unsigned
* reference_no : varchar(191)
* user_id : int(11)
* biller_id : int(11)
* supplier_id : int(11)
* customer_id : int(11)
* warehouse_id : int(11)
* item : int(11)
* total_qty : double
* total_discount : double
* total_tax : double
* total_price : double
* order_tax_rate : double
* order_tax : double
* order_discount : double
* shipping_cost : double
* grand_total : double
* quotation_status : int(11)
* document : varchar(191)
* note : text
* created_at : timestamp
* updated_at : timestamp
v sprotest returns
* id : int(10) unsigned
* reference_no : varchar(191)
* user_id : int(11)
* cash_register_id : int(11)
* customer_id : int(11)
* warehouse_id : int(11)
* biller_id : int(11)
* account_id : int(11)
* item : int(11)
* total_qty : double
* total_discount : double
* total_tax : double
* total_price : double
* order_tax_rate : double
* order_tax : double
* grand_total : double
* document : varchar(191)
* return_note : text
* staff_note : text
* created_at : timestamp
* updated_at : timestamp
v sprotest return_purchases
* id : int(10) unsigned
* reference_no : varchar(191)
* supplier_id : int(11)
* warehouse_id : int(11)
* user_id : int(11)
* account_id : int(11)
* item : int(11)
* total_qty : double
* total_discount : double
* total_tax : double
* total_cost : double
* order_tax_rate : double
* order_tax : double
* grand_total : double
* document : varchar(191)
* return_note : text
* staff_note : text
* created_at : timestamp
* updated_at : timestamp
v sprotest reward_point_settings
* id : bigint(20) unsigned
* per_point_amount : double
* minimum_amount : double
* duration : int(11)
* type : varchar(191)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sprotest roles
* id : int(10) unsigned
* name : varchar(191)
* description : text
* guard_name : varchar(191)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sprotest role_has_permissions
* permission_id : int(10) unsigned
* role_id : int(10) unsigned
v sprotest sales
* id : int(10) unsigned
* reference_no : varchar(191)
* user_id : int(11)
* cash_register_id : int(11)
* customer_id : int(11)
* warehouse_id : int(11)
* biller_id : int(11)
* item : int(11)
* total_qty : double
* total_discount : double
* total_tax : double
* total_price : double
* grand_total : double
* order_tax_rate : double
* order_tax : double
* order_discount_type : varchar(191)
* order_discount_value : double
* order_discount : double
* coupon_id : int(11)
* coupon_discount : double
* shipping_cost : double
* sale_status : int(11)
* payment_status : int(11)
* document : varchar(191)
* paid_amount : double
* sale_note : text
* staff_note : text
* created_at : timestamp
* updated_at : timestamp
v sprotest stock_counts
* id : int(10) unsigned
* reference_no : varchar(191)
* warehouse_id : int(11)
* category_id : varchar(191)
* brand_id : varchar(191)
* user_id : int(11)
* type : varchar(191)
* initial_file : varchar(191)
* final_file : varchar(191)
* note : text
* is_adjusted : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sprotest suppliers
* id : int(10) unsigned
* name : varchar(191)
* image : varchar(191)
* company_name : varchar(191)
* vat_number : varchar(191)
* email : varchar(191)
* phone_number : varchar(191)
* address : varchar(191)
* city : varchar(191)
* state : varchar(191)
* postal_code : varchar(191)
* country : varchar(191)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sprotest taxes
* id : int(10) unsigned
* name : varchar(191)
* rate : double
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sprotest transfers
* id : int(10) unsigned
* reference_no : varchar(191)
* user_id : int(11)
* status : int(11)
* from_warehouse_id : int(11)
* to_warehouse_id : int(11)
* item : int(11)
* total_qty : double
* total_tax : double
* total_cost : double
* shipping_cost : double
* grand_total : double
* document : varchar(191)
* note : text
* created_at : timestamp
* updated_at : timestamp
v sprotest units
* id : int(10) unsigned
* unit_code : varchar(191)
* unit_name : varchar(191)
* base_unit : int(11)
* operator : varchar(191)
* operation_value : double
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sprotest users
* id : int(10) unsigned
* name : varchar(191)
* email : varchar(191)
* password : varchar(191)
* remember_token : varchar(100)
* phone : varchar(191)
* company_name : varchar(191)
* role_id : int(11)
* biller_id : int(11)
* warehouse_id : int(11)
* is_active : tinyint(1)
* is_deleted : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v sprotest variants
* id : int(10) unsigned
* name : varchar(191)
* created_at : timestamp
* updated_at : timestamp
v sprotest warehouses
* id : int(10) unsigned
* name : varchar(191)
* phone : varchar(191)
* email : varchar(191)
* address : text
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
Create relationship
FOREIGN KEY
on delete
on update
Delete relationship