-- https://www.phpmyadmin.net/
--


--
-- Database: `citasdb`
--

-- --------------------------------------------------------

--
-- Table structure for table `citas`
--

CREATE TABLE `citas` (
  `id` int(11) NOT NULL,
  `nombre` varchar(50) NOT NULL,
  `apellido_materno` varchar(50) NOT NULL,
  `apellido_paterno` varchar(50) NOT NULL,
  `cliente_id` int(11) NOT NULL,
  `estatus` varchar(20) NOT NULL,
  `fecha` date DEFAULT NULL,
  `hora_inicio` time DEFAULT NULL,
  `hora_fin` time DEFAULT NULL,
  `link_llamada` text,
  `fecha_resultados` date DEFAULT NULL,
  `spoken_production` int(11) DEFAULT NULL,
  `spoken_interaction` int(11) DEFAULT NULL,
  `range_structure` int(11) DEFAULT NULL,
  `accuracy` int(11) DEFAULT NULL,
  `final_score` int(11) DEFAULT NULL,
  `level` varchar(20) DEFAULT NULL,
  `comentario` text NOT NULL,
  `intentos` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `citas`
--

INSERT INTO `citas` (`id`, `nombre`, `apellido_materno`, `apellido_paterno`, `cliente_id`, `estatus`, `fecha`, `hora_inicio`, `hora_fin`, `link_llamada`, `fecha_resultados`, `spoken_production`, `spoken_interaction`, `range_structure`, `accuracy`, `final_score`, `level`, `comentario`, `intentos`) VALUES
(1, 'Juan', 'Rodarte', 'Perez', 1, 'agendada', '2020-10-30', '08:00:00', '08:30:10', 'Find your local number: https://gruposalinas.zoom.us/ukqYrxV6EN', '2020-10-30', 5, 3, 7, 2, 23, '10', '', 1),
(2, 'Jorge', 'Rodarte', 'Hernandez', 1, 'creada', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', 1),
(3, 'Maria', 'Rodarte', 'Hernandez', 1, 'atendida', '2020-10-30', '08:00:00', '08:30:10', 'Find your local number: https://gruposalinas.zoom.us/ukqYrxV6EN', '2020-10-30', 5, 3, 7, 2, 23, '10', '', 1),
(4, 'Hernesto', 'Limas', 'Saldivar', 1, 'agendada', '2020-10-30', '08:00:00', '08:30:10', 'Find your local number: https://gruposalinas.zoom.us/ukqYrxV6EN', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', 1),
(9, 'Luna', 'Romero', 'Peña', 2, 'creada', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', 1);

-- --------------------------------------------------------

--
-- Table structure for table `usuarios`
--

CREATE TABLE `usuarios` (
  `id` int(11) NOT NULL,
  `nombre` varchar(50) NOT NULL,
  `apellido_paterno` varchar(30) NOT NULL,
  `apellido_materno` varchar(30) NOT NULL,
  `usuario` varchar(30) NOT NULL,
  `password` varchar(100) NOT NULL,
  `fecha_registro` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `rol` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `usuarios`
--

INSERT INTO `usuarios` (`id`, `nombre`, `apellido_paterno`, `apellido_materno`, `usuario`, `password`, `fecha_registro`, `rol`) VALUES
(1, 'Lucio', '', '', 'lucio', '123456', '2020-12-28 22:45:34', 1),
(2, 'Irma', '', '', 'irma', '654321', '2020-12-29 22:59:31', 1),
(3, 'PERSON VUE', '', '', 'lucio2', '$argon2id$v=19$m=65536,t=4,p=1$c0hmT045SFJ5ckZBMDl2cg$8CnxeT8Ntd1J7wp3RMvo79g07iaEPZ73SGXfSDS779I', '2020-12-30 15:57:44', 1),
(4, 'PERSON VUE', '', '', 'lucio', '$argon2id$v=19$m=65536,t=4,p=1$OExmL0YvWW16UTBuZnVjNQ$/1dcQvcueeNaZ1gm6Kz8M+uf5eluUlAiojkqE0qU46c', '2020-12-30 17:48:26', 1),
(5, 'PERSON VUE', '', '', 'lucio', '$argon2id$v=19$m=65536,t=4,p=1$VUNZRUNPQnlMMjNrUVUxeg$Eg/zX1CLzoTpJiHvPHPsEHJJ0ePDksWZ32DDsLr/loc', '2021-01-07 17:48:30', 1),
(6, 'Jose', 'Panfilo', 'Hernandez', 'lucio', '$argon2id$v=19$m=65536,t=4,p=1$dHduQWtqMkxSelFPd29PUA$5mNL5sMbn1+0Wn6uptPNr3uQBw6gpMcKWwPhMctNjcg', '2021-01-12 19:26:28', 3),
(7, 'Pedro', 'Panfilo', 'Hernandez', 'lup@gmail.com', '$argon2id$v=19$m=65536,t=4,p=1$VmF5dlM1VlNrMTJlSlcxUg$zs5jWzQFBCvhp0nWSWdtzeff27BrPc0zP6bVm0nuXz4', '2021-01-12 21:10:45', 3),
(8, 'Lupe', 'Panfilo', 'Hernandez', 'lupe@gmail.com', '$argon2id$v=19$m=65536,t=4,p=1$Z1BNQjgzL1pxbUhTaTNLdg$ZC2qHF5tR1/xcgh25KdtAPu4PdrjjOKpQPVkOrZOYZQ', '2021-01-12 21:11:50', 3);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `citas`
--
ALTER TABLE `citas`
  ADD PRIMARY KEY (`id`),
  ADD KEY `fk_foreign_key_clienteid` (`cliente_id`);

--
-- Indexes for table `usuarios`
--
ALTER TABLE `usuarios`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `citas`
--
ALTER TABLE `citas`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `usuarios`
--
ALTER TABLE `usuarios`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `citas`
--
ALTER TABLE `citas`
  ADD CONSTRAINT `fk_foreign_key_clienteid` FOREIGN KEY (`cliente_id`) REFERENCES `usuarios` (`id`);
