-- 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);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `citas`
--
ALTER TABLE `citas`
  ADD PRIMARY KEY (`id`),
  ADD KEY `fk_foreign_key_clienteid` (`cliente_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;

--
-- Constraints for dumped tables
--

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