-- MySQL dump 10.13  Distrib 8.4.5, for Linux (x86_64)
--
-- Host: localhost    Database: db
-- ------------------------------------------------------
-- Server version	8.4.5

/*!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 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `Cliente`
--

DROP TABLE IF EXISTS `Cliente`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Cliente` (
  `id` int NOT NULL AUTO_INCREMENT,
  `cedula` varchar(15) DEFAULT NULL,
  `nombre` varchar(30) DEFAULT NULL,
  `apellido` varchar(30) DEFAULT NULL,
  `direccion` varchar(50) DEFAULT NULL,
  `telefono` varchar(7) DEFAULT NULL,
  `provincia` varchar(2) DEFAULT NULL,
  `compra_anual` decimal(6,0) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_Cliente_Provincia` (`provincia`),
  CONSTRAINT `fk_Cliente_Provincia` FOREIGN KEY (`provincia`) REFERENCES `Provincia` (`codigo`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `Cliente`
--

LOCK TABLES `Cliente` WRITE;
/*!40000 ALTER TABLE `Cliente` DISABLE KEYS */;
INSERT INTO `Cliente` VALUES (1,'1-268-4633','Sol','Bayo','El Ejido, Los Santos','9943529','BT',10),(2,'2-368-4693','Karto','Ukao','Carretera Madden, Chilibre','8943325','CO',2),(3,'3-248-4693','Nardo','Karmen','Centro Comercial Limajo','4943329','CL',40),(4,'4-265-4693','Carmen','Leno','Zona Libre','6943329','CH',2),(5,'5-268-6693','Rinaldo','Oleno','Vista Alegre','8943329','DA',5),(6,'6-268-4793','Fernando','Halo','Vía José A Arango Juan Díaz','4945329','HE',7),(7,'7-268-4693','Karna','Leno','Cl 7, Sant','6345329','LS',9),(8,'8-938-4693','Cevella','Kinto','Ave Las Américas','6745529','PA',10),(9,'1-264-4623','Luna','Bayo','Av Manuel Espinosa B','6465729','BT',11),(10,'10-233-3692','Sermi','Cebin','Vía Interamericana','6953579','PO',2),(11,'11-037-4892','Yerkin','Tea','Av Manuel Espinosa B','6953529','EW',7),(12,'12-237-4892','Fulano','Tal','Av Ramón Arias Bella Vta','6946529','GY',5),(13,'8-237-4893','Herico','Dinal','Vúa Rdo J Alfaro','9943629','NB',6),(14,'4-257-4895','Kinto','Carbo','direccion','9945624','NT',90),(15,'8-237-4890','Jaime','Gordon','direccion','9933329','LS',23),(16,'5-537-4892','Karmen','Galeon','direccion','6933329','CO',44),(17,'8-247-4897','Chimel','Gadol','Ave Las Américas','6935329','CH',55),(18,'8-237-4896','Manche','Galeno','direccion','3935529','HE',2),(19,'7-267-4497','Fernando','Viola','direccion','3935529','BT',2),(20,'8-277-4895','Gimena','Viola','direccion','3943529','PO',2),(21,'8-277-4899','Dano','Pinto','Zona Libre','6144127','LS',2),(22,'1-277-4839','Gergo','Cantor','direccion','6143127','NB',2),(23,'8-277-4837','Santa','Perres','direccion','5143127','CO',2),(24,'5-977-4837','Linera','Melon','direccion','8923127','PA',2),(25,'8-977-4837','Sergio','Pinto','Centro Comercial Limajo','8923467','CH',2),(26,'7-937-4837','Kamel','Seda','direccion','8923467','PO',77),(27,'8-937-4837','Jomek','Kaker','Centro Comercial Limajo','6423469','BT',2),(28,'12-967-4831','Demi','Holcen','Vía Interamericana','4244529','LS',2),(29,'8-964-4832','Miker','Hazar','Ave Las Américas','6443459','PO',2),(30,'11-257-4837','Zalmo','Chazar','direccion','6944529','CH',2);
/*!40000 ALTER TABLE `Cliente` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `Departamento`
--

DROP TABLE IF EXISTS `Departamento`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Departamento` (
  `id` int NOT NULL AUTO_INCREMENT,
  `codigo` varchar(2) DEFAULT NULL,
  `descripcion` varchar(30) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `departamento_unique_codigo` (`codigo`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `Departamento`
--

LOCK TABLES `Departamento` WRITE;
/*!40000 ALTER TABLE `Departamento` DISABLE KEYS */;
INSERT INTO `Departamento` VALUES (1,'VT','Ventas General'),(2,'ET','Eletrodomesticos'),(3,'RP','Ropa'),(4,'MB','Muebles'),(5,'DA','Despensa Alimentaria');
/*!40000 ALTER TABLE `Departamento` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `Provincia`
--

DROP TABLE IF EXISTS `Provincia`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Provincia` (
  `id` int NOT NULL AUTO_INCREMENT,
  `codigo` varchar(2) DEFAULT NULL,
  `descripcion` varchar(30) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `provincia_unique_codigo` (`codigo`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `Provincia`
--

LOCK TABLES `Provincia` WRITE;
/*!40000 ALTER TABLE `Provincia` DISABLE KEYS */;
INSERT INTO `Provincia` VALUES (1,'BT','Bocas del Toro'),(2,'CO','Coclé'),(3,'CL','Colón'),(4,'CH','Chiriquí'),(5,'DA','Darién'),(6,'HE','Herrera'),(7,'LS','Los Santos'),(8,'PA','Panamá'),(9,'VE','Veraguas'),(10,'PO','Panamá Oeste'),(11,'EW','Emberá-Wounaan'),(12,'GY','Guna Yala'),(13,'NB','Ngöbe-Buglé'),(14,'NT','Naso Tjër Di');
/*!40000 ALTER TABLE `Provincia` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `Vendedor`
--

DROP TABLE IF EXISTS `Vendedor`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Vendedor` (
  `id` int NOT NULL AUTO_INCREMENT,
  `codigo` varchar(4) DEFAULT NULL,
  `nombre` varchar(20) DEFAULT NULL,
  `apellido` varchar(20) DEFAULT NULL,
  `departamento` varchar(2) DEFAULT NULL,
  `cargo` varchar(20) DEFAULT NULL,
  `venta_mensual` decimal(6,0) DEFAULT NULL,
  `venta_anual` decimal(9,0) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_Vendedor_Departamento` (`departamento`),
  CONSTRAINT `fk_Vendedor_Departamento` FOREIGN KEY (`departamento`) REFERENCES `Departamento` (`codigo`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `Vendedor`
--

LOCK TABLES `Vendedor` WRITE;
/*!40000 ALTER TABLE `Vendedor` DISABLE KEYS */;
INSERT INTO `Vendedor` VALUES (1,'V1','Kamicho','Checo','VT','Vendedor',45,1503),(2,'V2','Mecha','Carmen','VT','Vendedor',76,903),(3,'V3','Pala','Sancho','ET','Administrador',54,603),(4,'V3','Chomika','Checo','VT','Vendedor',34,103),(5,'V4','Jagero','Sanches','DA','Vendedor',42,425),(6,'V5','Chaigo','Felero','MB','Administrador',40,703),(7,'V6','Gomes','Migo','VT','Vendedor',44,303),(8,'V7','Yakera','Velada','ET','Vendedor',57,603),(9,'V8','Mila','Karmela','VT','Administrador',77,555),(10,'V9','Batera','Gotas','VT','Vendedor',87,903),(11,'V10','Nailo','Glamo','DA','Administrador',40,703),(12,'V11','Florego','Chargo','DA','Vendedor',40,803),(13,'V12','Hiramo','Maner','ET','Vendedor',40,303),(14,'V13','Yamel','Sojas','DA','Vendedor',40,703),(15,'V14','Gamik','Fata','VT','Vendedor',40,573),(16,'V15','Kamicho','Checo','MB','Vendedor',40,403),(17,'V16','Kopero','Lamira','VT','Vendedor',40,703),(18,'V17','Garbedio','Checo','RP','Administrador',40,703),(19,'V18','FLik','Melino','MB','Vendedor',40,703),(20,'V19','Hadina','Chago','RP','Administrador',40,903),(21,'V20','Nigto','Goto','VT','Administrador',40,503);
/*!40000 ALTER TABLE `Vendedor` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!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 */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2025-07-31 10:40:35
