text: -- MySQL dump 10.13  Distrib 8.0.16, for Win64 (x86_64)
  --
  -- Host: localhost    Database: tcc
  -- ------------------------------------------------------
  -- Server version	8.0.16
  
  /*!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 */;
   SET NAMES utf8 ;
  /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  /*!40103 SET TIME_ZONE='+00:00' */;
  /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  
  --
  -- Table structure for table `promotor_vendas`
  --
  
  DROP TABLE IF EXISTS `promotor_vendas`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
   SET character_set_client = utf8mb4 ;
  CREATE TABLE `promotor_vendas` (
    `codigo` int(11) NOT NULL AUTO_INCREMENT,
    `status` tinyint(4) NOT NULL DEFAULT '1',
    `nome` varchar(45) NOT NULL,
    `apelido` varchar(45) DEFAULT NULL,
    `telefone1` varchar(45) NOT NULL,
    `telefone2` varchar(45) DEFAULT NULL,
    `tipo` tinyint(4) NOT NULL DEFAULT '1',
    `origem` tinyint(4) NOT NULL DEFAULT '1',
    `cpf` varchar(45) DEFAULT NULL,
    `rg` varchar(45) DEFAULT NULL,
    `cnpj` varchar(45) DEFAULT NULL,
    `ie` varchar(45) DEFAULT NULL,
    `nascimento` date DEFAULT NULL,
    `obs` mediumtext,
    `endereco` varchar(45) DEFAULT NULL,
    `complemento` varchar(45) DEFAULT NULL,
    `bairro` varchar(45) DEFAULT NULL,
    `data_cadastro` date NOT NULL,
    `data_alteracao` date NOT NULL,
    `sexo` tinyint(4) DEFAULT NULL,
    `email` varchar(45) DEFAULT NULL,
    `estado_civil` varchar(45) DEFAULT NULL,
    `foto` mediumblob,
    PRIMARY KEY (`codigo`),
    UNIQUE KEY `id_clientes_UNIQUE` (`codigo`),
    UNIQUE KEY `cpf_UNIQUE` (`cpf`),
    UNIQUE KEY `cnpj_UNIQUE` (`cnpj`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `promotor_vendas`
  --
  
  LOCK TABLES `promotor_vendas` WRITE;
  /*!40000 ALTER TABLE `promotor_vendas` DISABLE KEYS */;
  /*!40000 ALTER TABLE `promotor_vendas` ENABLE KEYS */;
  UNLOCK TABLES;
  /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  
  /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  /*!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 */;
  /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  
  -- Dump completed on 2019-07-16 15:48:33
  