-- MySQL dump 10.15  Distrib 10.0.20-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: localhost    Database: mkradius
-- ------------------------------------------------------
-- Server version	10.0.20-MariaDB-1~jessie

/*!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 utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `sis_nfe`
--

DROP TABLE IF EXISTS `sis_nfe`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sis_nfe` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `uuid_nfe` varchar(64) DEFAULT NULL,
  `modelo` varchar(32) NOT NULL,
  `numero` int(9) NOT NULL,
  `serie` varchar(8) NOT NULL,
  `referencia` varchar(8) NOT NULL,
  `emissao` datetime NOT NULL,
  `cfop` varchar(4) NOT NULL,
  `login` varchar(64) NOT NULL,
  `id_titulo` int(11) NOT NULL,
  `base_calculo` decimal(10,2) NOT NULL DEFAULT '0.00',
  `aliquota` decimal(4,2) NOT NULL DEFAULT '0.00',
  `valor_icms` decimal(10,2) NOT NULL DEFAULT '0.00',
  `isentas` decimal(10,2) NOT NULL DEFAULT '0.00',
  `outros` decimal(10,2) NOT NULL DEFAULT '0.00',
  `valor_total` decimal(10,2) NOT NULL DEFAULT '0.00',
  `chave` varchar(32) NOT NULL,
  `arquivo` varchar(36) NOT NULL,
  `obs` varchar(255) DEFAULT NULL,
  `perc_ibpt` decimal(4,2) DEFAULT '0.00',
  `perc_ibpt_m` decimal(4,2) DEFAULT '0.00',
  `perc_ibpt_e` decimal(4,2) DEFAULT '0.00',
  `perc_ibpt_f` decimal(4,2) DEFAULT '0.00',
  `regime` enum('simples','lucro') DEFAULT NULL,
  `situacao` enum('S','R','C','N') DEFAULT 'N',
  `info_del` varchar(32) DEFAULT NULL,
  `pis` decimal(12,2) DEFAULT '0.00',
  `valor_pis` decimal(12,2) DEFAULT '0.00',
  `cofins` decimal(12,2) DEFAULT '0.00',
  `valor_cofins` decimal(12,2) DEFAULT '0.00',
  `tipo` tinyint(1) DEFAULT '4',
  PRIMARY KEY (`id`),
  KEY `id_titulo` (`id_titulo`),
  KEY `chave` (`chave`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!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 2025-10-21  7:39:22
