-- phpMyAdmin SQL Dump
-- version 5.1.1deb5ubuntu1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Tempo de geração: 23-Jul-2024 às 21:24
-- Versão do servidor: 8.0.37-0ubuntu0.22.04.3
-- versão do PHP: 8.1.2-1ubuntu2.18

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 */;

--
-- Banco de dados: mc2_kodular
--

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

--
-- Estrutura da tabela iPKcad
--

CREATE TABLE iPKcad (
  id int NOT NULL,
  codCad varchar(14) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '11=cpf 14=cnpj',
  nomeCad varchar(40) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '-',
  endCad varchar(150) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '-',
  telWZCad varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '-',
  latCad varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '-',
  lonCad varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '-',
  temVg int(3) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Estrutura da tabela iPKreservas
--

CREATE TABLE iPKreservas (
  id int NOT NULL,
  codCad varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '11=cpf',
  codVg varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0',
  dtIni datetime DEFAULT NULL,
  placa varchar(7) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '-'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Estrutura da tabela iPKvagas
--

CREATE TABLE iPKvagas (
  id int NOT NULL,
  codCad varchar(14) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0',
  codVg varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0',
  endVg varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '-',
  tipo varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '-',
  preco decimal(10,0) NOT NULL DEFAULT '0',
  base varchar(1) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'H' COMMENT '(M)es (D)ia (H)ora (E)vento',
  sitVg varchar(1) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '0=livre 1=reserv 9=cancel',
  latVg varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '-',
  lonVg varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '-'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Índices para tabelas despejadas
--

--
-- Índices para tabela iPKcad
--
ALTER TABLE iPKcad
  ADD PRIMARY KEY (id);

--
-- Índices para tabela iPKreservas
--
ALTER TABLE iPKreservas
  ADD PRIMARY KEY (id);

--
-- Índices para tabela iPKvagas
--
ALTER TABLE iPKvagas
  ADD PRIMARY KEY (id);

--
-- AUTO_INCREMENT de tabelas despejadas
--

--
-- AUTO_INCREMENT de tabela iPKcad
--
ALTER TABLE iPKcad
  MODIFY id int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de tabela iPKreservas
--
ALTER TABLE iPKreservas
  MODIFY id int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de tabela iPKvagas
--
ALTER TABLE iPKvagas
  MODIFY id int 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 */;
