-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhitech.sql
More file actions
130 lines (107 loc) · 4.04 KB
/
hitech.sql
File metadata and controls
130 lines (107 loc) · 4.04 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
121
122
123
124
125
126
127
128
129
130
-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Feb 19, 2026 at 07:42 AM
-- Server version: 8.0.31
-- PHP Version: 7.4.33
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 */;
--
-- Database: `hitech`
--
-- --------------------------------------------------------
--
-- Table structure for table `clientes`
--
CREATE TABLE `clientes` (
`Id_Cliente` int NOT NULL,
`Nombre_Cliente` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL,
`ApellidoP_Cliente` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL,
`ApellidoM_Cliente` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL,
`Email` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL,
`Telefono` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL,
`Direccion` varchar(40) COLLATE utf8mb4_general_ci DEFAULT NULL,
`Edad` varchar(3) COLLATE utf8mb4_general_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `clientes`
--
INSERT INTO `clientes` (`Id_Cliente`, `Nombre_Cliente`, `ApellidoP_Cliente`, `ApellidoM_Cliente`, `Email`, `Telefono`, `Direccion`, `Edad`) VALUES
(1, 'Elian', 'Sanchez', 'jimenez', 'SJ@.com', '860-111-1111', 'brazosdemami', '1'),
(2, 'Luis', 'Falcon', 'perez', 'A@a.com', '787-123-1234', 'PuertoRico12', '25'),
(3, 'Jonathan', 'Marrero', 'Marrero', 'JS@.com', '787-888-7777', 'Bayamon98', '26'),
(4, 'Pedro', 'PEPE', NULL, 'Pedro@hotmail.com', '787-123-1234', NULL, '30'),
(5, 'Enrique', 'Sanchez', NULL, 'Enrique.@icloud.com', '787-268-9645', NULL, '33'),
(6, 'Pepe', 'Martes', NULL, '', '787-987-9643', NULL, '40'),
(8, 'Elianny', 'Alcantara', NULL, NULL, NULL, NULL, '23'),
(9, 'Kaled', 'TheOne', NULL, 'JJh@a.com', '787-123-4452', NULL, '28'),
(10, 'Josue', 'p', NULL, 'Josue@gmail.com', '8745556547', NULL, '45'),
(11, 'Ana', 'Rivera', NULL, 'AnaR@icloud.com', '7878887412', NULL, '80'),
(13, 'Marian', 'Marrero', NULL, 'MS@gmail.com', '8602541478', NULL, '29'),
(14, 'Alexa', 'Maro', NULL, 'Alex@gmail.com', '787-888-8745', NULL, '26'),
(15, 'Jun', 'Coco', NULL, 'cocojun@icloud.com', '787-888-5454', NULL, '50');
-- --------------------------------------------------------
--
-- Table structure for table `ordenes`
--
CREATE TABLE `ordenes` (
`Id_Orden` int NOT NULL,
`Id_Cliente` int DEFAULT NULL,
`Nombre_Producto` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL,
`Cantidad_Producto` int DEFAULT NULL,
`Precio_Producto` decimal(6,2) DEFAULT NULL,
`Fecha` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `ordenes`
--
INSERT INTO `ordenes` (`Id_Orden`, `Id_Cliente`, `Nombre_Producto`, `Cantidad_Producto`, `Precio_Producto`, `Fecha`) VALUES
(1, 2, 'HDD', 2, 50.00, '2024-02-15'),
(2, 1, 'RAM', 1, 150.00, '2023-02-15'),
(3, 3, 'Combo logi', 1, 50.00, '2022-02-15');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `clientes`
--
ALTER TABLE `clientes`
ADD PRIMARY KEY (`Id_Cliente`);
--
-- Indexes for table `ordenes`
--
ALTER TABLE `ordenes`
ADD PRIMARY KEY (`Id_Orden`),
ADD KEY `Id_Cliente` (`Id_Cliente`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `clientes`
--
ALTER TABLE `clientes`
MODIFY `Id_Cliente` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `ordenes`
--
ALTER TABLE `ordenes`
MODIFY `Id_Orden` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `ordenes`
--
ALTER TABLE `ordenes`
ADD CONSTRAINT `ordenes_ibfk_1` FOREIGN KEY (`Id_Cliente`) REFERENCES `clientes` (`Id_Cliente`);
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 */;