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 oficina_carlossilva activity_logs
* id : int(11)
* user_id : int(11)
* username : varchar(50)
* action : varchar(20)
* entity_type : varchar(30)
* entity_id : int(11)
* description : text
* created_at : datetime
v oficina_carlossilva appointments
* id : int(11)
* quote_id : int(11)
* client_id : int(11)
* car_id : int(11)
* appointment_datetime : datetime
* notes : text
* status : varchar(20)
* created_at : datetime
* updated_at : datetime
v oficina_carlossilva belt_diagrams
* id : int(11)
* brand : varchar(50)
* model : varchar(100)
* name : varchar(255)
* filename : varchar(255)
* description : text
* created_at : datetime
v oficina_carlossilva cars
* id : int(11)
* client_id : int(11)
* make_model : varchar(100)
* plate : varchar(20)
* year : int(11)
* observations : text
* vin : varchar(20)
* color : varchar(50)
* engine_cc : int(11)
* fuel : varchar(20)
* hp : int(11)
* extra : text
* created_at : datetime
* updated_at : datetime
v oficina_carlossilva car_checklist_photos
* id : int(11)
* checklist_id : int(11)
* photo_type : enum('front','rear','left','right','odometer','extra')
* filename : varchar(255)
* description : varchar(255)
* sort_order : int(11)
* created_at : datetime
v oficina_carlossilva car_entry_checklists
* id : int(11)
* service_id : int(11)
* appointment_id : int(11)
* quote_id : int(11)
* car_id : int(11)
* plate : varchar(20)
* client_name : varchar(100)
* odometer : int(11)
* notes : text
* created_by : int(11)
* created_at : datetime
* updated_at : datetime
v oficina_carlossilva clients
* id : int(11)
* name : varchar(100)
* address : varchar(255)
* nif : varchar(20)
* email : varchar(100)
* phone : varchar(50)
* observations : text
* created_at : datetime
* updated_at : datetime
v oficina_carlossilva expenses
* id : int(11)
* description : varchar(255)
* category : enum('fixa','variavel','pessoal')
* amount : decimal(10,2)
* expense_date : date
* employee_name : varchar(100)
* employee_type : enum('diario','mensal')
* notes : text
* created_at : datetime
* updated_at : datetime
v oficina_carlossilva notes
* id : int(11)
* user_id : int(11)
* content : text
* created_at : datetime
* reminder_datetime : datetime
* updated_at : datetime
v oficina_carlossilva note_shares
* note_id : int(11)
* user_id : int(11)
* shared_at : datetime
v oficina_carlossilva obd_locations
* id : int(11)
* brand : varchar(50)
* model : varchar(100)
* name : varchar(255)
* filename : varchar(255)
* description : text
* created_at : datetime
v oficina_carlossilva products
* id : int(11)
* name : varchar(255)
* reference : varchar(100)
* new_stock : int(11)
* used_stock : int(11)
* notes : text
* created_at : datetime
* category : varchar(100)
* price_new : decimal(10,2)
* price_used : decimal(10,2)
* min_stock : decimal(10,2)
* active : tinyint(1)
* updated_at : datetime
v oficina_carlossilva quotes
* id : int(11)
* car_id : int(11)
* client_id : int(11)
* mechanic_id : int(11)
* quote_date : date
* valid_until : date
* total_purchase : decimal(10,2)
* total_sale : decimal(10,2)
* status : enum('Por Enviar','Por Aprovar','Aprovado','Cancelado')
* notes : text
* show_iva_message : tinyint(1)
* show_validity : tinyint(1)
* created_at : datetime
* updated_at : datetime
* print_observations : tinyint(1)
v oficina_carlossilva quote_items
* id : int(11)
* quote_id : int(11)
* description : varchar(255)
* quantity : decimal(10,2)
* purchase_price : decimal(10,2)
* markup_percent : decimal(10,2)
* sale_price : decimal(10,2)
* created_at : datetime
* updated_at : datetime
v oficina_carlossilva radio_codes
* id : int(11)
* brand : text
* precode : text
* code : text
* created_at : datetime
v oficina_carlossilva services
* id : int(11)
* car_id : int(11)
* client_id : int(11)
* mechanic_id : int(11)
* km : int(11)
* total_purchase : decimal(10,2)
* total_sale : decimal(10,2)
* pago : tinyint(1)
* notes : text
* print_observations : tinyint(1)
* entry_date : date
* exit_date : date
* created_at : datetime
* updated_at : datetime
v oficina_carlossilva service_items
* id : int(11)
* service_id : int(11)
* description : varchar(255)
* quantity : decimal(10,2)
* purchase_price : decimal(10,2)
* markup_percent : decimal(10,2)
* sale_price : decimal(10,2)
* product_id : int(11)
* stock_type : enum('new','used')
* created_at : datetime
* updated_at : datetime
v oficina_carlossilva settings
* id : int(11)
* name : varchar(100)
* value : text
v oficina_carlossilva suppliers
* id : int(11)
* name : varchar(255)
* phone : varchar(50)
* email : varchar(150)
* created_at : datetime
* updated_at : datetime
v oficina_carlossilva supplier_invoices
* id : int(11)
* supplier_id : int(11)
* descricao : varchar(255)
* valor : decimal(10,2)
* data : date
* pago : tinyint(1)
* qr_data : text
* invoice_number : varchar(50)
* created_at : datetime
* updated_at : datetime
v oficina_carlossilva supplier_invoice_items
* id : int(11)
* invoice_id : int(11)
* product_id : int(11)
* description : varchar(255)
* quantity : decimal(10,2)
* price : decimal(10,2)
* created_at : datetime
* updated_at : datetime
v oficina_carlossilva support_tickets
* id : int(11)
* user_id : int(11)
* subject : varchar(255)
* description : text
* category : enum('Técnico','Funcionalidade','Bug','Outro')
* priority : enum('Baixa','Média','Alta','Urgente')
* status : enum('Aberto','Em Progresso','Resolvido','Fechado')
* admin_response : text
* response_by : int(11)
* response_at : datetime
* created_at : datetime
* updated_at : datetime
* closed_at : datetime
* notify_user : tinyint(1)
v oficina_carlossilva technical_videos
* id : int(11)
* name : varchar(100)
* filename : varchar(255)
* sort_order : int(11)
* created_at : datetime
* updated_at : datetime
v oficina_carlossilva ticket_messages
* id : int(11)
* ticket_id : int(11)
* user_id : int(11)
* message : text
* is_admin : tinyint(1)
* created_at : datetime
* sender_name : varchar(100)
v oficina_carlossilva timming_belts_diagrams
* id : int(11)
* brand : varchar(50)
* model : varchar(100)
* name : varchar(255)
* filename : varchar(255)
* description : text
v oficina_carlossilva torque_diagrams
* id : int(11)
* brand : varchar(50)
* model : varchar(100)
* name : varchar(255)
* filename : varchar(255)
* description : text
* created_at : datetime
v oficina_carlossilva users
* id : int(11)
* username : varchar(50)
* password : varchar(255)
* is_admin : tinyint(1)
* allowed_pages : text
* dark_mode : tinyint(1)
* avatar_path : varchar(255)
* cor_primaria : varchar(7)
* deleted_at : datetime
* created_at : datetime
* updated_at : datetime
Create relationship
FOREIGN KEY
on delete
on update
Delete relationship