قم إفلات الملفات هنا

SQL upload ( 0 ) x -

الإعدادات المتعلقة بالصفحة انقر على الشريط للتمرير إلى أعلى الصفحة
Press Ctrl+Enter to execute query Press Enter to execute query
ascending
descending
Order:
تصحيح SQL
Count
Execution order
Time taken
Order by:
Group queries
Ungroup queries
Collapse Expand Show trace Hide trace Count : Time taken :
Bookmarks
تحديث
إضافة
لا توجد إشارات مرجعية
إضافة للمفضلة
خيارات
Set default





Collapse Expand Requery تعديل Explain جانبي Bookmark Query failed قاعدة البيانات : Queried time :
بدون عنوان *
v Show/Hide tables list View in fullscreen اضافة جداول من قواعد بيانات اخري New page فتح الصفحة احفظ الصفحة حفظ الصفحة في صيغة Delete pages أنشئ الجدول Create relationship اختر الحقل لإظهاره Reload مساعدة Angular links / Direct links Snap to grid v Small/Big All Toggle small/big Toggle relationship lines Export schema > نقل القائمة > Pin text
عدد الجداول: 0
v restaurant_pos activity_logs
* id : bigint(20) unsigned
* user_id : int(11)
* user_name : varchar(255)
* module : varchar(100)
* action : varchar(100)
* subject_type : varchar(100)
* subject_id : int(11)
* description : text
* ip_address : varchar(45)
* created_at : datetime
v restaurant_pos asset_items
* id : int(11)
* warehouse_id : int(11)
* name : varchar(150)
* code : varchar(100)
* category : varchar(30)
* condition_status : varchar(20)
* quantity : decimal(10,2)
* notes : text
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v restaurant_pos cashier_receipt_jobs
* id : int(10) unsigned
* order_id : int(10) unsigned
* printer_id : int(10) unsigned
* status : enum('pending','printed','failed')
* printed_content : text
* attempts_count : int(11)
* printed_at : datetime
* created_at : datetime
* updated_at : datetime
* payload_json : longtext
v restaurant_pos cashier_shifts
* id : bigint(20) unsigned
* user_id : bigint(20) unsigned
* opened_at : datetime
* closed_at : datetime
* opening_cash : decimal(12,2)
* closing_cash : decimal(12,2)
* expected_cash : decimal(12,2)
* cash_difference : decimal(12,2)
* notes : text
* status : varchar(30)
* created_at : timestamp
* updated_at : timestamp
v restaurant_pos categories
* id : bigint(20) unsigned
* name : varchar(120)
* slug : varchar(150)
* image : varchar(255)
* sort_order : int(11)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v restaurant_pos employees
* id : int(11)
* user_id : bigint(20) unsigned
* employee_number : varchar(50)
* full_name : varchar(255)
* phone : varchar(50)
* address : text
* national_id : varchar(100)
* job_title : varchar(100)
* salary_type : enum('monthly','daily','hourly')
* basic_salary : decimal(10,2)
* hire_date : date
* biometric_user_id : varchar(50)
* status : enum('active','inactive')
* notes : text
* created_at : timestamp
* updated_at : timestamp
v restaurant_pos employee_advances
* id : int(11)
* employee_id : int(11)
* amount : decimal(10,2)
* advance_date : date
* notes : text
* created_by : bigint(20) unsigned
* created_at : timestamp
v restaurant_pos employee_deductions
* id : int(11)
* employee_id : int(11)
* amount : decimal(10,2)
* deduction_date : date
* reason : varchar(255)
* notes : text
* created_by : bigint(20) unsigned
* created_at : timestamp
v restaurant_pos employee_salaries
* id : int(11)
* employee_id : int(11)
* salary_month : int(11)
* salary_year : int(11)
* basic_salary : decimal(10,2)
* total_advances : decimal(10,2)
* total_deductions : decimal(10,2)
* bonuses : decimal(10,2)
* net_salary : decimal(10,2)
* paid_amount : decimal(10,2)
* remaining_amount : decimal(10,2)
* payment_status : enum('unpaid','partial','paid')
* paid_at : datetime
* notes : text
* created_by : bigint(20) unsigned
* created_at : timestamp
* sync_status : varchar(20)
* sync_token : varchar(64)
* last_synced_at : datetime
* sync_error : text
v restaurant_pos employee_salary_payments
* id : int(11)
* salary_id : int(11)
* employee_id : int(11)
* amount : decimal(10,2)
* payment_date : datetime
* payment_method : varchar(50)
* notes : text
* created_by : bigint(20) unsigned
* created_at : timestamp
v restaurant_pos expenses
* id : int(10) unsigned
* expense_date : date
* category : varchar(100)
* title : varchar(255)
* amount : decimal(12,2)
* deduct_from_cash : tinyint(1)
* notes : text
* created_by : int(10) unsigned
* created_at : datetime
* updated_at : datetime
* shift_id : bigint(20)
v restaurant_pos items
* id : bigint(20) unsigned
* category_id : bigint(20) unsigned
* section_id : int(10) unsigned
* name : varchar(150)
* sku : varchar(80)
* barcode : varchar(120)
* description : text
* image : varchar(255)
* price : decimal(12,2)
* cost : decimal(12,2)
* tax_rate : decimal(5,2)
* preparation_time_minutes : int(11)
* is_open_price : tinyint(1)
* track_stock : tinyint(1)
* stock_qty : decimal(12,2)
* min_stock_qty : decimal(12,2)
* sort_order : int(11)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v restaurant_pos item_modifiers
* id : bigint(20) unsigned
* item_id : bigint(20) unsigned
* name : varchar(120)
* price : decimal(12,2)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v restaurant_pos item_recipes
* id : int(11)
* item_id : bigint(20) unsigned
* material_id : int(11)
* quantity : decimal(10,2)
* created_at : timestamp
v restaurant_pos item_sizes
* id : bigint(20) unsigned
* item_id : bigint(20) unsigned
* size_name : varchar(100)
* price : decimal(10,2)
* sort_order : int(11)
* created_at : timestamp
* updated_at : timestamp
v restaurant_pos item_variants
* id : bigint(20) unsigned
* item_id : bigint(20) unsigned
* name : varchar(120)
* price : decimal(12,2)
* cost : decimal(12,2)
* is_default : tinyint(1)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v restaurant_pos license_info
* id : int(11)
* license_key : varchar(255)
* activated_at : datetime
* expires_at : datetime
* is_activated : tinyint(1)
* last_check : datetime
* created_at : timestamp
v restaurant_pos orders
* id : bigint(20) unsigned
* order_number : varchar(50)
* shift_id : bigint(20) unsigned
* shift_order_number : int(11)
* table_id : bigint(20) unsigned
* cashier_id : bigint(20) unsigned
* waiter_id : bigint(20) unsigned
* order_type : varchar(30)
* status : varchar(30)
* guests_count : int(11)
* customer_name : varchar(150)
* customer_phone : varchar(30)
* notes : text
* subtotal : decimal(12,2)
* discount_value : decimal(12,2)
* discount_type : varchar(20)
* tax_value : decimal(12,2)
* service_value : decimal(12,2)
* total : decimal(12,2)
* paid_amount : decimal(12,2)
* change_amount : decimal(12,2)
* opened_at : datetime
* submitted_at : datetime
* paid_at : datetime
* closed_at : datetime
* created_at : timestamp
* updated_at : timestamp
* edited_after_close : tinyint(1)
* edited_after_close_at : datetime
* edited_after_close_by : int(11)
* edit_reason : varchar(255)
* original_total_before_edit : decimal(12,2)
* edit_total_difference : decimal(12,2)
* sync_status : varchar(20)
* sync_token : varchar(100)
* last_synced_at : datetime
* sync_error : text
v restaurant_pos order_items
* id : bigint(20) unsigned
* order_id : bigint(20) unsigned
* item_id : bigint(20) unsigned
* waiter_id : int(11)
* variant_id : bigint(20) unsigned
* section_id : int(10) unsigned
* item_name : varchar(150)
* unit_price : decimal(12,2)
* unit_cost : decimal(12,2)
* quantity : decimal(12,2)
* line_discount : decimal(12,2)
* tax_rate : decimal(5,2)
* tax_value : decimal(12,2)
* line_total : decimal(12,2)
* total_cost : decimal(12,2)
* profit : decimal(12,2)
* notes : varchar(255)
* kitchen_status : varchar(30)
* is_printed_to_section : tinyint(1)
* printed_to_section_at : datetime
* created_by : bigint(20) unsigned
* created_at : timestamp
* updated_at : timestamp
* sync_status : varchar(20)
* sync_token : varchar(100)
* last_synced_at : datetime
* sync_error : text
v restaurant_pos order_item_modifiers
* id : bigint(20) unsigned
* order_item_id : bigint(20) unsigned
* modifier_id : bigint(20) unsigned
* modifier_name : varchar(120)
* modifier_price : decimal(12,2)
* quantity : decimal(12,2)
* line_total : decimal(12,2)
* created_at : timestamp
v restaurant_pos order_status_logs
* id : bigint(20) unsigned
* order_id : bigint(20) unsigned
* old_status : varchar(30)
* new_status : varchar(30)
* changed_by : bigint(20) unsigned
* notes : varchar(255)
* created_at : timestamp
v restaurant_pos payments
* id : bigint(20) unsigned
* order_id : bigint(20) unsigned
* shift_id : bigint(20) unsigned
* payment_method : varchar(30)
* amount : decimal(12,2)
* reference_number : varchar(100)
* paid_by : bigint(20) unsigned
* paid_at : datetime
* notes : varchar(255)
* created_at : timestamp
* sync_status : varchar(20)
* sync_token : varchar(64)
* last_synced_at : datetime
* sync_error : text
v restaurant_pos permissions
* id : int(10) unsigned
* name : varchar(100)
* display_name : varchar(150)
* created_at : timestamp
* updated_at : timestamp
v restaurant_pos printers
* id : bigint(20) unsigned
* name : varchar(120)
* code : varchar(80)
* printer_type : varchar(30)
* connection_type : varchar(30)
* ip_address : varchar(100)
* port : int(11)
* share_name : varchar(150)
* driver_name : varchar(150)
* paper_width_mm : decimal(6,2)
* chars_per_line : int(11)
* is_default : tinyint(1)
* cut_paper : tinyint(1)
* open_cash_drawer : tinyint(1)
* copies_count : int(11)
* is_active : tinyint(1)
* notes : text
* created_at : timestamp
* updated_at : timestamp
v restaurant_pos printer_sections
* id : bigint(20) unsigned
* printer_id : bigint(20) unsigned
* section_id : int(10) unsigned
* print_on_save : tinyint(1)
* print_on_cancel : tinyint(1)
* print_on_close : tinyint(1)
* created_at : timestamp
v restaurant_pos purchases
* id : int(11)
* purchase_number : varchar(50)
* supplier_name : varchar(150)
* invoice_number : varchar(100)
* warehouse_id : int(11)
* receipt_status : enum('pending_receipt','partially_received','received')
* receiver_user_id : bigint(20)
* received_at : datetime
* purchase_date : date
* total_amount : decimal(12,2)
* notes : text
* created_by : bigint(20) unsigned
* created_at : timestamp
* updated_at : timestamp
v restaurant_pos purchase_items
* id : int(11)
* purchase_id : int(11)
* warehouse_id : int(11)
* material_id : int(11)
* item_name : varchar(150)
* unit : varchar(50)
* quantity : decimal(12,2)
* received_quantity : decimal(18,3)
* expiry_date : date
* unit_price : decimal(12,2)
* total_price : decimal(12,2)
* notes : varchar(255)
* created_at : timestamp
v restaurant_pos raw_materials
* id : int(11)
* name : varchar(150)
* unit : varchar(50)
* current_quantity : decimal(10,2)
* min_quantity : decimal(10,2)
* last_purchase_price : decimal(10,2)
* created_at : timestamp
* is_active : tinyint(1)
* updated_at : timestamp
v restaurant_pos restaurant_tables
* id : bigint(20) unsigned
* name : varchar(100)
* code : varchar(50)
* seats_count : int(11)
* hall_name : varchar(100)
* sort_order : int(11)
* status : varchar(30)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v restaurant_pos return_waste_records
* id : bigint(20) unsigned
* return_date : date
* return_time : time
* department : varchar(20)
* record_type : varchar(20)
* section_id : int(10) unsigned
* section_name : varchar(100)
* item_id : bigint(20) unsigned
* item_name : varchar(150)
* category_name : varchar(120)
* quantity : decimal(12,2)
* unit_price : decimal(12,2)
* unit_cost : decimal(12,2)
* reason_code : varchar(50)
* reason_other : varchar(150)
* order_reference : varchar(50)
* table_reference : varchar(100)
* notes : text
* created_by : bigint(20) unsigned
* updated_by : bigint(20) unsigned
* created_at : datetime
* updated_at : datetime
v restaurant_pos roles
* id : int(10) unsigned
* name : varchar(50)
* display_name : varchar(100)
* created_at : timestamp
* updated_at : timestamp
v restaurant_pos role_permissions
* id : int(10) unsigned
* role_id : int(10) unsigned
* permission_id : int(10) unsigned
* created_at : timestamp
v restaurant_pos sections
* id : int(10) unsigned
* parent_id : int(11)
* name : varchar(100)
* code : varchar(50)
* description : varchar(255)
* sort_order : int(11)
* color_hex : varchar(20)
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
* warehouse_id : int(11)
v restaurant_pos section_print_jobs
* id : bigint(20) unsigned
* order_id : bigint(20) unsigned
* order_item_id : bigint(20) unsigned
* section_id : int(10) unsigned
* printer_id : bigint(20) unsigned
* print_type : varchar(30)
* status : varchar(30)
* printed_content : longtext
* attempts_count : int(11)
* printed_at : datetime
* created_at : timestamp
* updated_at : timestamp
* image_generated : tinyint(4)
v restaurant_pos settings
* id : bigint(20) unsigned
* setting_key : varchar(100)
* setting_value : longtext
* value_type : varchar(30)
* description : varchar(255)
* updated_by : bigint(20) unsigned
* created_at : timestamp
* updated_at : timestamp
v restaurant_pos stock_adjustments
* id : int(11)
* material_id : int(11)
* warehouse_id : int(11)
* old_quantity : decimal(12,2)
* new_quantity : decimal(12,2)
* difference_quantity : decimal(12,2)
* reason : varchar(255)
* adjusted_by : bigint(20) unsigned
* created_at : timestamp
v restaurant_pos stock_movements
* id : int(11)
* material_id : int(11)
* warehouse_id : bigint(20)
* section_id : int(11)
* type : enum('in','out')
* quantity : decimal(10,2)
* reference_type : varchar(50)
* reference_id : int(11)
* movement_note : varchar(255)
* created_at : timestamp
v restaurant_pos stock_requests
* id : bigint(20) unsigned
* request_number : varchar(50)
* from_warehouse_id : int(11)
* to_warehouse_id : int(11)
* status : enum('pending','approved','rejected','partially_approved','cancelled')
* requested_by : bigint(20) unsigned
* approved_by : bigint(20) unsigned
* notes : text
* rejection_reason : text
* requested_at : timestamp
* approved_at : datetime
* updated_at : timestamp
v restaurant_pos stock_request_items
* id : bigint(20) unsigned
* request_id : bigint(20) unsigned
* material_id : int(11)
* requested_quantity : decimal(12,2)
* approved_quantity : decimal(12,2)
* notes : varchar(255)
* created_at : timestamp
v restaurant_pos sync_pull_logs
* id : int(11)
* entity_type : varchar(50)
* entity_id : int(11)
* action : varchar(50)
* payload : longtext
* created_at : timestamp
* action_type : varchar(50)
* sync_token : varchar(100)
* source : varchar(50)
* payload_json : longtext
v restaurant_pos sync_pull_state
* id : int(11)
* source_name : varchar(50)
* last_pulled_at : datetime
* last_remote_log_id : bigint(20)
* updated_at : timestamp
v restaurant_pos sync_queue
* id : bigint(20) unsigned
* entity_type : enum('order','category','section','item','table','user','role','permission','role_permissions','expense_category','expense','employee','employee_advance','employee_deduction','employee_salary','employee_salary_payment','stock_request','purchase','settings','printer','warehouse','material','warehouse_entry','warehouse_transfer','stock_adjustment','warehouse_stock','shift')
* entity_id : bigint(20) unsigned
* action_type : varchar(50)
* sync_token : varchar(100)
* payload_json : longtext
* status : varchar(20)
* attempts_count : int(11)
* last_error : text
* available_at : datetime
* locked_at : datetime
* processed_at : datetime
* created_at : timestamp
* updated_at : timestamp
v restaurant_pos users
* id : bigint(20) unsigned
* role_id : int(10) unsigned
* full_name : varchar(150)
* username : varchar(100)
* password_hash : varchar(255)
* phone : varchar(30)
* email : varchar(150)
* pin_code : varchar(20)
* avatar : varchar(255)
* is_active : tinyint(1)
* last_login_at : datetime
* created_at : timestamp
* updated_at : timestamp
* is_deleted : tinyint(1)
* deleted_at : datetime
v restaurant_pos warehouses
* id : int(11)
* name : varchar(150)
* code : varchar(50)
* type : enum('main','sub','asset')
* scope : varchar(30)
* asset_category : varchar(30)
* notes : text
* is_active : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v restaurant_pos warehouse_entries
* id : int(11)
* entry_number : varchar(50)
* warehouse_id : int(11)
* entry_date : date
* source_name : varchar(150)
* notes : text
* created_by : bigint(20)
* created_at : timestamp
* updated_at : timestamp
v restaurant_pos warehouse_entry_items
* id : int(11)
* entry_id : int(11)
* material_id : int(11)
* quantity : decimal(18,3)
* unit : varchar(50)
* expiry_date : date
* notes : text
* created_at : timestamp
v restaurant_pos warehouse_stock
* id : bigint(20) unsigned
* warehouse_id : int(11)
* material_id : int(11)
* quantity : decimal(12,2)
* expiry_date : date
* created_at : timestamp
* updated_at : timestamp
v restaurant_pos warehouse_stock_batches
* id : bigint(20)
* warehouse_id : int(11)
* material_id : int(11)
* quantity : decimal(18,3)
* expiry_date : date
* purchase_id : int(11)
* purchase_item_id : int(11)
* notes : text
* created_at : timestamp
* updated_at : timestamp
v restaurant_pos warehouse_transfers
* id : int(11)
* transfer_number : varchar(50)
* from_warehouse_id : int(11)
* to_warehouse_id : int(11)
* transfer_date : date
* notes : text
* created_by : bigint(20)
* created_at : timestamp
* updated_at : timestamp
v restaurant_pos warehouse_transfer_items
* id : int(11)
* transfer_id : int(11)
* material_id : int(11)
* quantity : decimal(18,3)
* unit : varchar(50)
* notes : text
* created_at : timestamp
Create relationship
FOREIGN KEY
on delete
on update
Delete relationship