Tul xxx Tul
User / IP
:
216.73.216.146
Host / Server
:
45.84.207.204 / aircan.me
System
:
Linux lt-bnk-web1726.main-hosting.eu 5.14.0-611.36.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 3 11:23:52 EST 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
u931257429
/
domains
/
aircan.me
/
public_html
/
farmacia
/
Base de datos
/
Viewing: farmacia.sql
-- phpMyAdmin SQL Dump -- version 5.2.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 23-12-2025 a las 01:59:49 -- Versión del servidor: 10.4.32-MariaDB -- Versión de PHP: 8.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Base de datos: `farmacia` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `cliente` -- CREATE TABLE `cliente` ( `idcliente` int(11) NOT NULL, `nombre` varchar(100) NOT NULL, `telefono` varchar(15) NOT NULL, `direccion` varchar(200) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci; -- -- Volcado de datos para la tabla `cliente` -- INSERT INTO `cliente` (`idcliente`, `nombre`, `telefono`, `direccion`) VALUES (1, 'Daniel Contreras', '3505849143', 'Calle 170, Piccadilly. Bogotá'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `configuracion` -- CREATE TABLE `configuracion` ( `id` int(11) NOT NULL, `nombre` varchar(100) NOT NULL, `telefono` varchar(15) NOT NULL, `email` varchar(100) NOT NULL, `direccion` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci; -- -- Volcado de datos para la tabla `configuracion` -- INSERT INTO `configuracion` (`id`, `nombre`, `telefono`, `email`, `direccion`) VALUES (1, 'FarmaVerde', '3505849143', 'danisuperalex@gamil.com', 'Bogotá, Colombia'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `detalle_permisos` -- CREATE TABLE `detalle_permisos` ( `id` int(11) NOT NULL, `id_permiso` int(11) NOT NULL, `id_usuario` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `detalle_temp` -- CREATE TABLE `detalle_temp` ( `id` int(11) NOT NULL, `id_usuario` int(11) NOT NULL, `id_producto` int(11) NOT NULL, `cantidad` int(11) NOT NULL, `descuento` decimal(10,2) NOT NULL DEFAULT 0.00, `precio_venta` decimal(10,2) NOT NULL, `total` decimal(10,2) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `detalle_venta` -- CREATE TABLE `detalle_venta` ( `id` int(11) NOT NULL, `id_producto` int(11) NOT NULL, `id_venta` int(11) NOT NULL, `cantidad` int(11) NOT NULL, `descuento` decimal(10,2) NOT NULL DEFAULT 0.00, `precio` decimal(10,2) NOT NULL, `total` decimal(10,2) NOT NULL DEFAULT 0.00 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Volcado de datos para la tabla `detalle_venta` -- INSERT INTO `detalle_venta` (`id`, `id_producto`, `id_venta`, `cantidad`, `descuento`, `precio`, `total`) VALUES (1, 4, 1, 2, 0.00, 10.00, 20.00); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `laboratorios` -- CREATE TABLE `laboratorios` ( `id` int(11) NOT NULL, `laboratorio` varchar(100) NOT NULL, `direccion` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Volcado de datos para la tabla `laboratorios` -- INSERT INTO `laboratorios` (`id`, `laboratorio`, `direccion`) VALUES (1, 'Laboratorio Donnor', 'Av Universidad'), (2, 'Genfar', 'Zona Industrial'), (3, 'TecnoFarma', 'Av. Central'), (4, 'Laboratorios Andinos', 'Calle 72 # 10-15'), (5, 'BioSalud', 'Parque Empresarial'), (6, 'FarmaCol', 'Av. Caracas'), (7, 'MedLab', 'Calle 26 # 68-12'), (8, 'NovaPharm', 'Autopista Norte'), (9, 'SaludViva Labs', 'Cra 15 # 93-60'), (10, 'QuimicaMed', 'Calle 80 # 20-45'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `permisos` -- CREATE TABLE `permisos` ( `id` int(11) NOT NULL, `nombre` varchar(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Volcado de datos para la tabla `permisos` -- INSERT INTO `permisos` (`id`, `nombre`) VALUES (1, 'configuración'), (2, 'usuarios'), (3, 'clientes'), (4, 'productos'), (5, 'ventas'), (6, 'nueva_venta'), (7, 'tipos'), (8, 'presentacion'), (9, 'laboratorios'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `presentacion` -- CREATE TABLE `presentacion` ( `id` int(11) NOT NULL, `nombre` varchar(100) NOT NULL, `nombre_corto` varchar(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Volcado de datos para la tabla `presentacion` -- INSERT INTO `presentacion` (`id`, `nombre`, `nombre_corto`) VALUES (1, 'Blisten', 'Caja'), (2, 'Jarabe', 'Jarabe'), (3, 'Tabletas', 'Tab'), (4, 'Cápsulas', 'Caps'), (5, 'Ampolla', 'Amp'), (6, 'Crema', 'Crema'), (7, 'Ungüento', 'Ung'), (8, 'Gotas', 'Gotas'), (9, 'Spray', 'Spray'), (10, 'Sobres', 'Sobre'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `producto` -- CREATE TABLE `producto` ( `codproducto` int(11) NOT NULL, `codigo` varchar(20) NOT NULL, `descripcion` varchar(200) NOT NULL, `precio` decimal(10,2) NOT NULL, `existencia` int(11) NOT NULL, `id_lab` int(11) NOT NULL, `id_presentacion` int(11) NOT NULL, `id_tipo` int(11) NOT NULL, `vencimiento` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci; -- -- Volcado de datos para la tabla `producto` -- INSERT INTO `producto` (`codproducto`, `codigo`, `descripcion`, `precio`, `existencia`, `id_lab`, `id_presentacion`, `id_tipo`, `vencimiento`) VALUES (1, '00000', 'Acetaminofen', 2.00, 100, 1, 1, 1, ''), (2, '12345', 'Tachipirin', 5.00, 10, 1, 1, 1, ''), (3, '123456789', 'Complejo B', 4.00, 70, 1, 1, 1, '2028-06-08'), (4, '30963', 'Algodon', 10.00, 48, 1, 1, 1, ''), (5, '770001001', 'Ibuprofeno 400mg', 1.80, 120, 2, 3, 4, '2027-11-30'), (6, '770001002', 'Amoxicilina 500mg', 2.90, 80, 3, 4, 3, '2027-08-15'), (7, '770001003', 'Loratadina 10mg', 1.50, 95, 4, 3, 5, '2028-01-20'), (8, '770001004', 'Omeprazol 20mg', 2.20, 110, 5, 4, 9, '2028-03-10'), (9, '770001005', 'Suero Oral 500ml', 1.10, 60, 6, 2, 1, '2026-10-05'), (10, '770001006', 'Alcohol Antiséptico 70%', 2.40, 45, 7, 10, 7, '2029-12-31'), (11, '770001007', 'Vitamina C 1000mg', 3.10, 75, 8, 3, 6, '2028-05-01'), (12, '770001008', 'Suplemento Zinc 20mg', 3.50, 40, 8, 4, 6, '2028-09-18'), (13, '770001009', 'Crema Antibiótica', 4.60, 35, 4, 6, 3, '2027-07-01'), (14, '770001010', 'Spray Nasal Salino', 3.90, 25, 9, 9, 5, '2027-12-10'), (15, '770001011', 'Gotas Oftálmicas Lubricantes', 5.80, 20, 10, 8, 1, '2026-09-30'), (16, '770001012', 'Paracetamol 500mg', 1.20, 200, 2, 3, 2, '2028-02-28'), (17, '770001013', 'Naproxeno 550mg', 3.20, 65, 6, 3, 4, '2028-04-15'), (18, '770001014', 'Azitromicina 500mg', 6.90, 30, 3, 4, 3, '2027-06-22'), (19, '770001015', 'Cetirizina 10mg', 1.70, 90, 9, 3, 5, '2028-01-10'), (20, '770001016', 'Venda Elástica', 2.50, 55, 7, 10, 8, ''), (21, '770001017', 'Gasas Estériles', 2.20, 130, 7, 10, 8, ''), (22, '770001018', 'Termómetro Digital', 12.90, 18, 5, 10, 1, ''), (23, '770001019', 'Jarabe para la Tos', 4.30, 28, 4, 2, 9, '2027-10-01'), (24, '770001020', 'Sales de Rehidratación (Sobres)', 0.90, 160, 6, 10, 9, '2027-09-01'), (25, '770001021', 'Antiséptico Yodado', 5.20, 22, 10, 10, 7, '2029-05-15'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `tipos` -- CREATE TABLE `tipos` ( `id` int(11) NOT NULL, `tipo` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Volcado de datos para la tabla `tipos` -- INSERT INTO `tipos` (`id`, `tipo`) VALUES (1, 'Insumo Médico'), (2, 'Analgésico'), (3, 'Antibiótico'), (4, 'Antiinflamatorio'), (5, 'Antihistamínico'), (6, 'Vitaminas y Suplementos'), (7, 'Antiséptico'), (8, 'Material de Curación'), (9, 'Gastrointestinal'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `usuario` -- CREATE TABLE `usuario` ( `idusuario` int(11) NOT NULL, `nombre` varchar(100) NOT NULL, `correo` varchar(100) NOT NULL, `usuario` varchar(20) NOT NULL, `clave` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci; -- -- Volcado de datos para la tabla `usuario` -- INSERT INTO `usuario` (`idusuario`, `nombre`, `correo`, `usuario`, `clave`) VALUES (1, 'Aircan', 'aircan@gmail.com', 'admin', '21232f297a57a5a743894a0e4a801fc3'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `ventas` -- CREATE TABLE `ventas` ( `id` int(11) NOT NULL, `id_cliente` int(11) NOT NULL, `total` decimal(10,2) NOT NULL, `id_usuario` int(11) NOT NULL, `fecha` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Volcado de datos para la tabla `ventas` -- INSERT INTO `ventas` (`id`, `id_cliente`, `total`, `id_usuario`, `fecha`) VALUES (1, 1, 20.00, 1, '2025-03-21 02:41:37'); -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `cliente` -- ALTER TABLE `cliente` ADD PRIMARY KEY (`idcliente`); -- -- Indices de la tabla `configuracion` -- ALTER TABLE `configuracion` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `detalle_permisos` -- ALTER TABLE `detalle_permisos` ADD PRIMARY KEY (`id`), ADD KEY `id_permiso` (`id_permiso`), ADD KEY `id_usuario` (`id_usuario`); -- -- Indices de la tabla `detalle_temp` -- ALTER TABLE `detalle_temp` ADD PRIMARY KEY (`id`), ADD KEY `id_usuario` (`id_usuario`), ADD KEY `id_producto` (`id_producto`); -- -- Indices de la tabla `detalle_venta` -- ALTER TABLE `detalle_venta` ADD PRIMARY KEY (`id`), ADD KEY `id_producto` (`id_producto`), ADD KEY `id_venta` (`id_venta`); -- -- Indices de la tabla `laboratorios` -- ALTER TABLE `laboratorios` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `permisos` -- ALTER TABLE `permisos` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `presentacion` -- ALTER TABLE `presentacion` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `producto` -- ALTER TABLE `producto` ADD PRIMARY KEY (`codproducto`); -- -- Indices de la tabla `tipos` -- ALTER TABLE `tipos` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `usuario` -- ALTER TABLE `usuario` ADD PRIMARY KEY (`idusuario`); -- -- Indices de la tabla `ventas` -- ALTER TABLE `ventas` ADD PRIMARY KEY (`id`), ADD KEY `id_usuario` (`id_usuario`), ADD KEY `id_cliente` (`id_cliente`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `cliente` -- ALTER TABLE `cliente` MODIFY `idcliente` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT de la tabla `configuracion` -- ALTER TABLE `configuracion` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT de la tabla `detalle_permisos` -- ALTER TABLE `detalle_permisos` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT de la tabla `detalle_temp` -- ALTER TABLE `detalle_temp` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT de la tabla `detalle_venta` -- ALTER TABLE `detalle_venta` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT de la tabla `laboratorios` -- ALTER TABLE `laboratorios` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT de la tabla `permisos` -- ALTER TABLE `permisos` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT de la tabla `presentacion` -- ALTER TABLE `presentacion` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT de la tabla `producto` -- ALTER TABLE `producto` MODIFY `codproducto` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26; -- -- AUTO_INCREMENT de la tabla `tipos` -- ALTER TABLE `tipos` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT de la tabla `usuario` -- ALTER TABLE `usuario` MODIFY `idusuario` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; -- -- AUTO_INCREMENT de la tabla `ventas` -- ALTER TABLE `ventas` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- Restricciones para tablas volcadas -- -- -- Filtros para la tabla `detalle_permisos` -- ALTER TABLE `detalle_permisos` ADD CONSTRAINT `detalle_permisos_ibfk_1` FOREIGN KEY (`id_permiso`) REFERENCES `permisos` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `detalle_permisos_ibfk_2` FOREIGN KEY (`id_usuario`) REFERENCES `usuario` (`idusuario`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Filtros para la tabla `detalle_temp` -- ALTER TABLE `detalle_temp` ADD CONSTRAINT `detalle_temp_ibfk_1` FOREIGN KEY (`id_producto`) REFERENCES `producto` (`codproducto`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `detalle_temp_ibfk_2` FOREIGN KEY (`id_usuario`) REFERENCES `usuario` (`idusuario`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Filtros para la tabla `detalle_venta` -- ALTER TABLE `detalle_venta` ADD CONSTRAINT `detalle_venta_ibfk_1` FOREIGN KEY (`id_producto`) REFERENCES `producto` (`codproducto`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `detalle_venta_ibfk_2` FOREIGN KEY (`id_venta`) REFERENCES `ventas` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Filtros para la tabla `ventas` -- ALTER TABLE `ventas` ADD CONSTRAINT `ventas_ibfk_1` FOREIGN KEY (`id_cliente`) REFERENCES `cliente` (`idcliente`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `ventas_ibfk_2` FOREIGN KEY (`id_usuario`) REFERENCES `usuario` (`idusuario`) ON DELETE CASCADE ON UPDATE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Coded With 💗 by
0x6ick