-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinventario_db.sql
More file actions
120 lines (99 loc) · 3.76 KB
/
Copy pathinventario_db.sql
File metadata and controls
120 lines (99 loc) · 3.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 21-05-2026 a las 12:25:29
-- 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: `inventario_db`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `productos`
--
CREATE TABLE `productos` (
`id` int(11) NOT NULL,
`nombre` varchar(100) NOT NULL,
`descripcion` text DEFAULT NULL,
`cantidad` int(11) NOT NULL,
`precio` decimal(10,2) NOT NULL,
`fecha_registro` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Volcado de datos para la tabla `productos`
--
INSERT INTO `productos` (`id`, `nombre`, `descripcion`, `cantidad`, `precio`, `fecha_registro`) VALUES
(3, 'Papa', 'Papa', 25, 4500.00, '2026-05-21 10:00:02'),
(4, 'Yuca', 'Yuca', 354, 2000.00, '2026-05-21 10:00:16'),
(5, 'Limon', 'Limon', 212, 3000.00, '2026-05-21 10:00:28'),
(6, 'Batata', 'Batata', 651, 6000.00, '2026-05-21 10:00:44'),
(7, 'Cebolla', 'Cebolla', 123, 2000.00, '2026-05-21 10:00:59'),
(8, 'Naranja', 'Naranja', 21, 9000.00, '2026-05-21 10:01:39'),
(9, 'Pepino', 'Pepino', 45, 3200.00, '2026-05-21 10:03:53'),
(10, 'Brocoli', 'Brocoli', 92, 6300.00, '2026-05-21 10:04:09'),
(11, 'Lechuga', 'Lechuga', 91, 2100.00, '2026-05-21 10:04:25'),
(12, 'Remolacha', 'Remolacha', 67, 9800.00, '2026-05-21 10:05:08'),
(13, 'Tomate', 'Tomate', 5415, 3500.00, '2026-05-21 10:05:27'),
(14, 'Uvas', 'Uvas', 43, 6400.00, '2026-05-21 10:06:49'),
(15, 'Moras', 'Moras', 106, 3690.00, '2026-05-21 10:08:57'),
(16, 'Fresas', 'Fresas', 223, 1480.00, '2026-05-21 10:09:38'),
(17, 'Jugo HIT', 'Rico jugo hit\r\n', 621, 3000.00, '2026-05-21 10:11:29');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `usuarios`
--
CREATE TABLE `usuarios` (
`id` int(11) NOT NULL,
`nombre` varchar(100) NOT NULL,
`correo` varchar(100) NOT NULL,
`password` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Volcado de datos para la tabla `usuarios`
--
INSERT INTO `usuarios` (`id`, `nombre`, `correo`, `password`) VALUES
(1, 'admin', 'admin@test.com', '$2y$10$dWr28fg7r9XjWuYMN7IYX.w5pHE6y3D1uWbplD6s0wW3yCRzGF/hy'),
(2, 'admin2', 'admin2@test.com', '$2y$10$FvtjYcHz4CE3hLcs8jg55uQzD.qtHH43dsxR..wjTlHPRbLtM0ka2'),
(3, 'admin3', 'admin3@test.com', '$2y$10$Qw8CcwuSzcI.kgEjJqcEyOfHhARiTXnuA82PifmZKNsn5EMPX4e0.'),
(4, 'admin4', 'admin4@test.com', '$2y$10$gRUdPM.ZSGntHvOkxSKKX.wzV7llUxd9dDX1RtQO7glNStXHJKHlO'),
(5, 'admin5', 'admin5@test.com', '$2y$10$acYYhl7QQAuTO0dg3Z/QtuuIoLMwoixt5xNPB9mH4.2AgOHX2Nqmm');
--
-- Índices para tablas volcadas
--
--
-- Indices de la tabla `productos`
--
ALTER TABLE `productos`
ADD PRIMARY KEY (`id`);
--
-- Indices de la tabla `usuarios`
--
ALTER TABLE `usuarios`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `correo` (`correo`);
--
-- AUTO_INCREMENT de las tablas volcadas
--
--
-- AUTO_INCREMENT de la tabla `productos`
--
ALTER TABLE `productos`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;
--
-- AUTO_INCREMENT de la tabla `usuarios`
--
ALTER TABLE `usuarios`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
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 */;