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
Options
Set default





Collapse Expand Requery Edit Explain Profiling Query failed Database : Queried time :

simple_invoice_atlasfc_fds

botellas

Column Type Null Default Comments
id (Primary) int(11) No
id_producto int(11) No
lote int(11) No
cantidad int(11) No 16

Indexes

Keyname Type Unique Packed Column Cardinality Collation Null Comment
PRIMARY BTREE Yes No id 0 A No
lote BTREE Yes No lote 0 A No
id_producto 0 A No

categorias

Column Type Null Default Comments
idCategoria (Primary) int(11) No
nombreCategoria varchar(250) No

Indexes

Keyname Type Unique Packed Column Cardinality Collation Null Comment
PRIMARY BTREE Yes No idCategoria 2 A No

clientes

Column Type Null Default Comments
id_cliente (Primary) int(11) No
nombre_cliente varchar(255) No
direccion_cliente varchar(256) No
tipo.pdv int(11) No
status_cliente tinyint(4) No
date_added datetime No
catCliente varchar(200) No
id_recinto int(11) No

Indexes

Keyname Type Unique Packed Column Cardinality Collation Null Comment
PRIMARY BTREE Yes No id_cliente 50 A No
fk_clientes_categorias BTREE No No tipo.pdv A No

detalle_factura

Column Type Null Default Comments
id_detalle (Primary) int(11) No
numero_factura int(11) No
id_producto int(11) No
cantidad int(11) No
cant.devuelta double(8,2) No 0.00
cant.cort.ocesa double(8,2) No 0.00
cant.cort.int double(8,2) No 0.00
cant.final double(8,2) Yes NULL
precio_venta double No
porcentaje decimal(5,2) Yes NULL
porcentaje_ocesa decimal(5,2) Yes NULL

Indexes

Keyname Type Unique Packed Column Cardinality Collation Null Comment
PRIMARY BTREE Yes No id_detalle 1867 A No

eventos

Column Type Null Default Comments
idEvento (Primary) int(4) No
nombreEvento varchar(300) No
idrecinto int(11) Yes NULL
fechainicio datetime Yes NULL
fechafin datetime Yes NULL
aforoEstimado int(11) No
aforoReal int(11) No
estatus tinyint(1) No 1

Indexes

Keyname Type Unique Packed Column Cardinality Collation Null Comment
PRIMARY BTREE Yes No idEvento 26 A No

facturas

Column Type Null Default Comments
id_factura (Primary) int(11) No
numero_factura int(11) No
fecha_factura datetime No
id_cliente int(11) No
id_vendedor int(11) No
condiciones varchar(30) No
total_venta varchar(20) No
estado_factura tinyint(1) No
evento varchar(300) No

Indexes

Keyname Type Unique Packed Column Cardinality Collation Null Comment
PRIMARY BTREE Yes No id_factura 353 A No

logs

Column Type Null Default Comments
idLog (Primary) int(11) No
idUsuario int(11) No
modulo varchar(50) No
tipoMovimiento varchar(50) Yes NULL
detalle text No
fecha datetime No current_timestamp()

Indexes

Keyname Type Unique Packed Column Cardinality Collation Null Comment
PRIMARY BTREE Yes No idLog 1681 A No
fk_logs_users BTREE No No idUsuario 14 A No

nivel

Column Type Null Default Comments
nivel_id (Primary) int(11) No
nivel varchar(20) No

Indexes

Keyname Type Unique Packed Column Cardinality Collation Null Comment
PRIMARY BTREE Yes No nivel_id 6 A No

notifications

Column Type Null Default Comments
id (Primary) int(11) No
product_id int(11) No
message varchar(255) No
accion varchar(15) No
created_at datetime Yes current_timestamp()
created_by int(11) No
response int(11) Yes 1

Indexes

Keyname Type Unique Packed Column Cardinality Collation Null Comment
PRIMARY BTREE Yes No id 0 A No
response BTREE No No response 0 A Yes
created_by BTREE No No created_by 0 A No

notification_recipients

Column Type Null Default Comments
id (Primary) int(11) No
notification_id int(11) No
user_id int(11) No
is_seen tinyint(1) Yes 0
responded_at datetime Yes NULL

Indexes

Keyname Type Unique Packed Column Cardinality Collation Null Comment
PRIMARY BTREE Yes No id 0 A No
notification_id BTREE No No notification_id 0 A No
user_id BTREE No No user_id 0 A No

pdv

Column Type Null Default Comments
id_pdv (Primary) int(11) No
clave varchar(16) No
descripcion varchar(64) No
tipo int(11) No
comision int(11) No
idrecinto int(11) No
clasificacion int(11) No
status int(11) No
tmp2 int(11) No
rmp3 int(11) No

Indexes

Keyname Type Unique Packed Column Cardinality Collation Null Comment
PRIMARY BTREE Yes No id_pdv 0 A No

products

Column Type Null Default Comments
id_producto (Primary) int(11) No
codigo_producto char(20) No
nombre_producto char(255) No
status_producto tinyint(4) No
date_added datetime No
precio_producto double No 0
id_categoria int(250) No
stock double(9,2) No 0.00
factor_conv varchar(6) No
id_subCategoria int(250) No
id_recinto int(11) No
id_cliente varchar(250) No
porcentaje decimal(5,2) Yes NULL
porcentaje_ocesa decimal(5,2) Yes NULL

Indexes

Keyname Type Unique Packed Column Cardinality Collation Null Comment
PRIMARY BTREE Yes No id_producto 132 A No
fk_products_subcategoria BTREE No No id_subCategoria 6 A No
fk_products_categoria BTREE No No id_categoria 4 A No

products_backup

Column Type Null Default Comments
id_producto (Primary) int(11) No
id_producto_backup int(11) Yes NULL
codigo_producto char(20) No
nombre_producto char(255) No
status_producto tinyint(4) No
date_added datetime No
precio_producto double No 0
id_categoria int(250) No
stock double(9,2) No 0.00
factor_conv varchar(6) No
id_subCategoria int(250) No
id_recinto int(11) No
id_cliente varchar(50) No
porcentaje decimal(5,2) Yes NULL
porcentaje_ocesa decimal(5,2) Yes NULL

Indexes

Keyname Type Unique Packed Column Cardinality Collation Null Comment
PRIMARY BTREE Yes No id_producto 0 A No
fk_products_subcategoria BTREE No No id_subCategoria A No
fk_products_categoria BTREE No No id_categoria A No

recintos

Column Type Null Default Comments
idrecinto (Primary) int(11) No
Descripcion varchar(64) No
Direccion varchar(265) No
idtiporesinto int(11) No
estatus int(1) No

Indexes

Keyname Type Unique Packed Column Cardinality Collation Null Comment
PRIMARY BTREE Yes No idrecinto 12 A No

response_notification

Column Type Null Default Comments
id (Primary) int(11) No
response varchar(50) No

Indexes

Keyname Type Unique Packed Column Cardinality Collation Null Comment
PRIMARY BTREE Yes No id 3 A No

subcategoria

Column Type Null Default Comments
id_subCategoria (Primary) int(11) No
subcategoria varchar(50) No
id_categoria int(11) No

Indexes

Keyname Type Unique Packed Column Cardinality Collation Null Comment
PRIMARY BTREE Yes No id_subCategoria 8 A No
id_categoria BTREE No No id_categoria 4 A No

tmp

Column Type Null Default Comments
id_tmp (Primary) int(11) No
id_producto int(11) No
cantidad_tmp int(11) No
precio_tmp double(8,2) Yes NULL
lote varchar(100) Yes NULL
session_id varchar(100) No

Indexes

Keyname Type Unique Packed Column Cardinality Collation Null Comment
PRIMARY BTREE Yes No id_tmp 95 A No

users

Table comments: user data

Column Type Null Default Comments
user_id (Primary) int(11) No auto incrementing user_id of each user, unique index
firstname varchar(20) No
lastname varchar(20) No
user_name varchar(64) No user's name, unique
user_password_hash varchar(255) No user's password in salted and hashed format
user_email varchar(64) No user's email, unique
date_added datetime No
nivel int(11) Yes NULL

Indexes

Keyname Type Unique Packed Column Cardinality Collation Null Comment
PRIMARY BTREE Yes No user_id 17 A No
fk_users_nivel BTREE No No nivel 17 A Yes

usuariosclientes

Column Type Null Default Comments
id (Primary) int(11) No
idUsuario int(11) No
idCliente int(11) No

Indexes

Keyname Type Unique Packed Column Cardinality Collation Null Comment
PRIMARY BTREE Yes No id 5 A No