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 restobar_db cash_sessions
* id : int(11)
* user_id : int(11)
* opening_balance : decimal(10,2)
* opening_time : timestamp
* closing_time : timestamp
* status : enum('open','closed')
* expected_closing_balance : decimal(10,2)
* actual_closing_balance : decimal(10,2)
* difference : decimal(10,2)
* note : text
v restobar_db categories
* id : int(11)
* name : varchar(50)
* icon : varchar(50)
* sort_order : int(11)
* exclude_from_commission : tinyint(1)
v restobar_db clients
* id : int(11)
* name : varchar(100)
* phone : varchar(20)
* address : text
* created_at : timestamp
v restobar_db courtesies
* id : int(11)
* beneficiary : varchar(100)
* reason : text
* user_id : int(11)
* created_at : timestamp
v restobar_db courtesy_items
* id : int(11)
* courtesy_id : int(11)
* product_id : int(11)
* quantity : int(11)
v restobar_db daily_supplies
* id : int(11)
* name : varchar(100)
* note : text
* last_updated_by : int(11)
* updated_at : timestamp
* created_at : timestamp
v restobar_db deleted_items_history
* id : int(11)
* order_id : int(11)
* product_name : varchar(255)
* quantity : int(11)
* motive : text
* user_id : int(11)
* deleted_at : timestamp
v restobar_db delivery_zones
* id : int(11)
* comuna : varchar(50)
* name : varchar(100)
* price : decimal(10,2)
* active : tinyint(1)
v restobar_db electronic_invoices
* id : int(11)
* document_type : varchar(50)
* order_id : int(11)
* customer_name : varchar(150)
* customer_identification : varchar(50)
* customer_email : varchar(150)
* alegra_id : varchar(50)
* status : varchar(50)
* pdf_url : text
* xml_url : text
* cufe : varchar(255)
* qr_code : text
* created_at : timestamp
* dian_message : text
* consecutive_number : bigint(20)
* payload : text
v restobar_db employees
* id : int(11)
* name : varchar(100)
* document_id : varchar(20)
* phone : varchar(20)
* position : varchar(50)
* salary_base : decimal(12,2)
* active : tinyint(1)
* created_at : timestamp
v restobar_db expenses
* id : int(11)
* user_id : int(11)
* cash_session_id : int(11)
* amount : decimal(10,2)
* description : text
* category : varchar(50)
* created_at : timestamp
* employee_id : int(11)
* order_id : int(11)
* expense_type : varchar(20)
* supplier_id : int(11)
v restobar_db ingredients
* id : int(11)
* name : varchar(100)
* unit : varchar(20)
* stock : decimal(10,2)
* cost_price : decimal(10,2)
v restobar_db inventory_logs
* id : int(11)
* item_type : enum('product','ingredient')
* item_id : int(11)
* quantity : decimal(10,2)
* action : enum('add','remove','sale','waste','adjustment','courtesy')
* notes : text
* created_at : timestamp
* user_id : int(11)
* previous_stock : decimal(10,2)
* new_stock : decimal(10,2)
v restobar_db manual_inventory
* id : int(11)
* item_name : varchar(100)
* stock : int(11)
* created_at : timestamp
* updated_at : timestamp
v restobar_db manual_inventory_log
* id : int(11)
* item_id : int(11)
* type : enum('in','out')
* quantity : int(11)
* user_id : int(11)
* created_at : timestamp
v restobar_db orders
* id : int(11)
* table_id : int(11)
* user_id : int(11)
* client_id : int(11)
* total : decimal(10,2)
* status : enum('pending','preparing','ready','paid','cancelled')
* payment_method : varchar(30)
* payment_detail : text
* amount_paid : decimal(10,2)
* change_amount : decimal(10,2)
* order_type : enum('local','takeout','delivery')
* delivery_fee : decimal(10,2)
* client_name : varchar(100)
* client_phone : varchar(20)
* client_address : text
* created_at : timestamp
* updated_at : timestamp
* cash_session_id : int(11)
* external_id : varchar(50)
* is_hotel : tinyint(1)
* deduct_delivery : tinyint(1)
* tip_amount : decimal(10,2)
* tip_percentage : int(11)
v restobar_db order_items
* id : int(11)
* order_id : int(11)
* product_id : int(11)
* quantity : int(11)
* price : decimal(10,2)
* subtotal : decimal(10,2)
* notes : text
* selections : longtext
* printed : tinyint(1)
* cost_price : decimal(10,2)
v restobar_db printers
* id : int(11)
* name : varchar(60)
* ip : varchar(45)
* port : int(11)
* type : enum('kitchen','cashier','bar')
* active : tinyint(1)
* created_at : timestamp
* order_types : text
* categories : text
* connection_type : varchar(20)
* paper_size : varchar(10)
v restobar_db print_jobs
* id : int(11)
* printer_id : int(11)
* ticket_content : longblob
* status : enum('pending','printed')
* created_at : timestamp
v restobar_db products
* id : int(11)
* category_id : int(11)
* name : varchar(100)
* description : text
* price : decimal(10,2)
* image : varchar(255)
* is_composite : tinyint(1)
* stock : int(11)
* max_selections : int(11)
* qty_per_selection : decimal(10,2)
* is_deleted : tinyint(1)
* cost_price : decimal(10,2)
* show_in_public : tinyint(1)
v restobar_db product_variants
* id : int(11)
* product_id : int(11)
* name : varchar(100)
v restobar_db recipes
* product_id : int(11)
* ingredient_id : int(11)
* quantity : decimal(10,2)
v restobar_db suppliers
* id : int(11)
* name : varchar(150)
* identification_type : varchar(10)
* identification : varchar(20)
* dv : varchar(2)
* address : varchar(200)
* city_code : varchar(20)
* email : varchar(100)
* regime : varchar(50)
* created_at : timestamp
v restobar_db system_settings
* setting_key : varchar(50)
* setting_value : text
v restobar_db tables
* id : int(11)
* table_number : varchar(10)
* status : enum('available','occupied','reserved')
* waiter_id : int(11)
v restobar_db users
* id : int(11)
* username : varchar(50)
* password : varchar(255)
* full_name : varchar(100)
* role : enum('admin','waiter','kitchen','cashier','owner')
* ip_address : varchar(45)
* created_at : timestamp
* permissions : text
* active : tinyint(1)
v restobar_db variant_recipes
* variant_id : int(11)
* ingredient_id : int(11)
* quantity : decimal(10,2)
v restobar_db wrong_products
* id : int(11)
* user_id : int(11)
* product_id : int(11)
* quantity : decimal(10,2)
* price : decimal(10,2)
* session_id : int(11)
* original_order_id : int(11)
* status : enum('pending','reassigned')
* created_at : timestamp
Create relationship
FOREIGN KEY
on delete
on update
Delete relationship