-- https://www.phpmyadmin.net/
--
-- Servidor: localhost:3306
-- Tiempo de generación: 12-02-2023 a las 12:24:28
-- Versión del servidor: 8.0.30
-- Versión de PHP: 8.1.13

START TRANSACTION;



--
-- Base de datos: `sysmacheve`
--

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

--
-- Estructura de tabla para la tabla `eventos`
--

CREATE TABLE `eventos` (
  `id` bigint UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `ativo` tinyint(1) NOT NULL DEFAULT '1',
  `description` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `max` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `location` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `entidade` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `obs` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `valor` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `instpag` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `duration` time DEFAULT NULL,
  `endinsc` date DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `eventos`
--

INSERT INTO `eventos` (`id`, `name`, `ativo`, `description`, `max`, `location`, `entidade`, `obs`, `valor`, `instpag`, `date`, `duration`, `endinsc`, `created_at`, `updated_at`) VALUES
(1, 'Curso de arbitragem 2023', 1, 'Curso e clínica de arbitragem 2023 Curso e clínica de arbitragem 2023 Curso e clínica de arbitragem 2023 Curso e clínica de arbitragem 2023 Curso e clínica de arbitragem 2023', '50', 'Clube dos Oficiais - Belo Horizonte', NULL, 'Obrigatorio judogui branco', '50', 'conta da lmj xxx.xxxxxx.xxx', '2023-01-21 10:30:00', '01:00:00', '2022-08-14', '2022-01-28 13:28:36', '2023-01-15 06:36:03'),
(2, 'AGE', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2022-01-30 16:41:04', '2023-01-09 09:08:25'),
(3, 'Comissão ética', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-01-01 18:00:00', NULL, NULL, '2022-02-01 19:17:31', '2022-02-01 19:17:31'),
(5, 'Curso de sumulistas 2023', 1, 'Curso de sumulistas 2023', '50', 'Clube dos Oficiais - Belo Horizonte', 'Liga Mineira de Judô', 'obs01', '50', 'CONTA: XX-XXXXXXX', '2023-02-28 12:00:00', '01:00:00', '2023-02-14', '2022-01-28 13:28:36', '2023-02-12 07:26:55');

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

--
-- Estructura de tabla para la tabla `failed_jobs`
--

CREATE TABLE `failed_jobs` (
  `id` bigint UNSIGNED NOT NULL,
  `uuid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `connection` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `queue` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `exception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Estructura de tabla para la tabla `inscriptions`
--

CREATE TABLE `inscriptions` (
  `id` bigint UNSIGNED NOT NULL,
  `evento_id` bigint UNSIGNED NOT NULL,
  `numinsc` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `surname` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `clube` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `faixa` enum('Branca','Branca-cinza','Cinza','Cinza-azul','Azulclaro','Azul-azul','Azulescuro','Azul-amarela','Amarela','Amarela-laranja','Laranja','Laranja-verde','Verde','Verde-roxa','Roxa','Roxa-marrom','Marrom','Shodan','Nidan','Sandan','Yondan','Godan','Rokudan','Shichidan','Hachidan','Kyudan','Judan') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Branca',
  `cert` tinyint(1) NOT NULL DEFAULT '0',
  `pago` tinyint(1) NOT NULL DEFAULT '0',
  `comments` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `comprovante` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `inscriptions`
--

INSERT INTO `inscriptions` (`id`, `evento_id`, `numinsc`, `name`, `surname`, `email`, `phone`, `clube`, `faixa`, `cert`, `pago`, `comments`, `comprovante`, `created_at`, `updated_at`) VALUES
(14, 5, '2023690014', 'Conrado Fonts Cullell', NULL, 'conradofonts@mejorconweb.com', '722414056', 'Amigos do Judô', 'Sandan', 0, 1, NULL, 'comprovante.jpg', '2023-01-15 13:03:34', '2023-02-12 05:11:29'),
(15, 5, '20234790015', 'JORDI', NULL, 'jorddd@mejorconweb.com', '3333', 'tatami', 'Shodan', 0, 0, 'comentarios de prueba', NULL, '2023-02-12 07:29:43', '2023-02-12 07:29:43'),
(16, 5, '20236610016', 'dfdsfds', NULL, 'fdsdsafcv@mejorconweb.com', 'dfsf', 'dsf', 'Marrom', 0, 0, 'fsdfds', NULL, '2023-02-12 07:42:50', '2023-02-12 07:42:50'),
(22, 5, '20237080022', 'sdfgdasg', NULL, 'sdffddgdsf@mejorconweb.com', 'fadsf', 'adsfas', 'Roxa-marrom', 0, 0, 'adsf', NULL, '2023-02-12 08:20:07', '2023-02-12 08:20:07'),
(23, 5, '20233930023', 'dfdaf', NULL, 'dafaefa@mejorconweb.com', 'fdsafdsf', 'dsfdas', 'Marrom', 0, 0, 'fdsf', NULL, '2023-02-12 08:20:41', '2023-02-12 08:20:41'),
(24, 5, '20236240024', 'sgsgfh', NULL, 'saddasfas@mejorconweb.com', 'dghdh', 'dgh', 'Roxa-marrom', 0, 0, NULL, NULL, '2023-02-12 08:23:10', '2023-02-12 08:23:10');

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

--
-- Estructura de tabla para la tabla `migrations`
--

CREATE TABLE `migrations` (
  `id` int UNSIGNED NOT NULL,
  `migration` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `migrations`
--

INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2019_08_19_000000_create_failed_jobs_table', 1),
(4, '2019_12_14_000001_create_personal_access_tokens_table', 1),
(5, '2022_01_28_130550_create_eventos_table', 1),
(6, '2022_03_14_184408_create_inscriptions_table', 1);

--
-- Índices para tablas volcadas
--

--
-- Indices de la tabla `eventos`
--
ALTER TABLE `eventos`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `eventos_name_unique` (`name`);

--
-- Indices de la tabla `failed_jobs`
--
ALTER TABLE `failed_jobs`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);

--
-- Indices de la tabla `inscriptions`
--
ALTER TABLE `inscriptions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `inscriptions_numinsc_unique` (`numinsc`),
  ADD KEY `inscriptions_evento_id_foreign` (`evento_id`);

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

--
-- AUTO_INCREMENT de las tablas volcadas
--

--
-- AUTO_INCREMENT de la tabla `eventos`
--
ALTER TABLE `eventos`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT de la tabla `failed_jobs`
--
ALTER TABLE `failed_jobs`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `inscriptions`
--
ALTER TABLE `inscriptions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;

--
-- AUTO_INCREMENT de la tabla `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- Restricciones para tablas volcadas
--

--
-- Filtros para la tabla `inscriptions`
--
ALTER TABLE `inscriptions`
  ADD CONSTRAINT `inscriptions_evento_id_foreign` FOREIGN KEY (`evento_id`) REFERENCES `eventos` (`id`);
COMMIT;

