-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 01-09-2023 a las 06:35:58
-- Versión del servidor: 10.4.28-MariaDB
-- Versión de PHP: 8.2.4

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: `dbcreditcircle`
--

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

--
-- Estructura de tabla para la tabla `circlerawrequests`
--

CREATE TABLE `circlerawrequests` (
  `id` int(11) NOT NULL,
  `timestamp` datetime NOT NULL DEFAULT current_timestamp(),
  `circlerequest_id` int(5) NOT NULL,
  `url` varchar(100) NOT NULL,
  `method` varchar(25) NOT NULL,
  `action` varchar(15) NOT NULL,
  `userCircle` varchar(25) NOT NULL,
  `rawrequest` text NOT NULL,
  `remote_ip` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Estructura de tabla para la tabla `circlerawresponses`
--

CREATE TABLE `circlerawresponses` (
  `id` int(11) NOT NULL,
  `timestamp` datetime NOT NULL DEFAULT current_timestamp(),
  `circlerawrequest_id` int(6) DEFAULT NULL,
  `response` varchar(50) NOT NULL,
  `rawresponse` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Estructura de tabla para la tabla `circlerequests`
--

CREATE TABLE `circlerequests` (
  `id` int(6) NOT NULL,
  `timestamp` datetime NOT NULL DEFAULT current_timestamp(),
  `scorerequest_id` int(6) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Estructura de tabla para la tabla `scorerequests`
--

CREATE TABLE `scorerequests` (
  `id` int(6) NOT NULL,
  `timestamp` datetime NOT NULL DEFAULT current_timestamp(),
  `lastname` varchar(100) NOT NULL,
  `secondname` varchar(100) NOT NULL,
  `firstname` varchar(100) NOT NULL,
  `birthdate` date NOT NULL,
  `rfc` varchar(15) NOT NULL,
  `street` text NOT NULL,
  `country` varchar(50) NOT NULL,
  `deleg` varchar(50) NOT NULL,
  `city` varchar(50) NOT NULL,
  `state` varchar(50) NOT NULL,
  `zipcode` int(6) NOT NULL,
  `signature` text NOT NULL,
  `user` int(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Estructura de tabla para la tabla `scoreresults`
--

CREATE TABLE `scoreresults` (
  `id` int(6) NOT NULL,
  `timestamp` datetime NOT NULL DEFAULT current_timestamp(),
  `circlerequest_id` int(6) NOT NULL,
  `type` varchar(10) NOT NULL,
  `pdffile` varchar(15) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Índices para tablas volcadas
--

--
-- Indices de la tabla `circlerawrequests`
--
ALTER TABLE `circlerawrequests`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `circlerawresponses`
--
ALTER TABLE `circlerawresponses`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `circlerequests`
--
ALTER TABLE `circlerequests`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `scorerequests`
--
ALTER TABLE `scorerequests`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `scoreresults`
--
ALTER TABLE `scoreresults`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT de las tablas volcadas
--

--
-- AUTO_INCREMENT de la tabla `circlerawrequests`
--
ALTER TABLE `circlerawrequests`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `circlerawresponses`
--
ALTER TABLE `circlerawresponses`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `circlerequests`
--
ALTER TABLE `circlerequests`
  MODIFY `id` int(6) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `scorerequests`
--
ALTER TABLE `scorerequests`
  MODIFY `id` int(6) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `scoreresults`
--
ALTER TABLE `scoreresults`
  MODIFY `id` int(6) NOT NULL AUTO_INCREMENT;
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 */;
