-- MySQL dump 10.13  Distrib 5.6.24, for Win64 (x86_64)
--
-- Host: localhost    Database: circle_k
-- ------------------------------------------------------
-- Server version	5.7.10-log

/*!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' */;
/*!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 `cortesy`
--

DROP TABLE IF EXISTS `cortesy`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cortesy` (
  `CortesYID` varchar(50) NOT NULL,
  `InternalVersion` int(11) DEFAULT '0',
  `Activo` tinyint(4) DEFAULT '0',
  `CortesZID` varchar(50) DEFAULT NULL,
  `Referencia_DBF` varchar(50) DEFAULT NULL,
  `FechaInicio` datetime DEFAULT NULL,
  `FechaFinal` datetime DEFAULT NULL,
  `CajeroInicial` varchar(50) DEFAULT NULL,
  `CajeroFinal` varchar(50) DEFAULT NULL,
  `NombreCajeroInicial` varchar(70) DEFAULT NULL,
  `NombreCajeroFinal` varchar(70) DEFAULT NULL,
  `NumeroEstacion` varchar(50) DEFAULT NULL,
  `TotalPesos` decimal(24,6) DEFAULT '0.000000',
  `TotalDollares` decimal(24,6) DEFAULT '0.000000',
  `TipoCambio` decimal(24,6) DEFAULT '0.000000',
  `TotalVales` decimal(24,6) DEFAULT '0.000000',
  `TotalCheques` decimal(24,6) DEFAULT '0.000000',
  `TotalTarjetaCredito` decimal(24,6) DEFAULT '0.000000',
  `FondoInicial` decimal(24,6) DEFAULT '0.000000',
  `DivisionesID` varchar(50) DEFAULT NULL,
  `EstacionesID` varchar(50) DEFAULT NULL,
  `EstatusCortesYID` varchar(50) DEFAULT NULL,
  `Total` decimal(24,6) DEFAULT '0.000000',
  `TotalRedondeo` decimal(24,6) DEFAULT '0.000000',
  `TurnosHorariosID` varchar(50) DEFAULT NULL,
  `Consecutivo` bigint(20) DEFAULT '0',
  `NoCorteY` varchar(50) NOT NULL,
  `EnUso` tinyint(4) DEFAULT '0',
  `TotalVendido` decimal(24,6) DEFAULT '0.000000',
  `TotalApoyoRedondeo` decimal(24,6) DEFAULT '0.000000',
  `CorteCongelado` tinyint(4) DEFAULT '0',
  `TotalPremios` decimal(24,6) DEFAULT '0.000000',
  `Memo1` varchar(50) DEFAULT NULL,
  `Memo2` varchar(50) DEFAULT NULL,
  `Memo3` varchar(50) DEFAULT NULL,
  `CorteReabierto` tinyint(4) DEFAULT '0',
  `AfectoKardex` tinyint(4) DEFAULT '0',
  `Memo4` varchar(20) DEFAULT NULL,
  `Memo5` varchar(20) DEFAULT NULL,
  `Memo6` varchar(20) DEFAULT NULL,
  `TotalPesosDolares` decimal(24,6) DEFAULT '0.000000',
  PRIMARY KEY (`CortesYID`),
  UNIQUE KEY `NoCorteY` (`NoCorteY`),
  KEY `WDIDX_CortesY_Activo` (`Activo`),
  KEY `WDIDX_CortesY_CortesZID` (`CortesZID`),
  KEY `WDIDX_CortesY_Referencia_DBF` (`Referencia_DBF`),
  KEY `WDIDX_CortesY_DivisionesID` (`DivisionesID`),
  KEY `WDIDX_CortesY_EstacionesID` (`EstacionesID`),
  KEY `WDIDX_CortesY_EstatusCortesYID` (`EstatusCortesYID`),
  KEY `WDIDX_CortesY_TurnosHorariosID` (`TurnosHorariosID`),
  KEY `WDIDX_CortesY_Consecutivo` (`Consecutivo`),
  KEY `WDIDX_CortesY_EnUso` (`EnUso`),
  KEY `WDIDX_CortesY_CorteCongelado` (`CorteCongelado`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `cortesy`
--

LOCK TABLES `cortesy` WRITE;
/*!40000 ALTER TABLE `cortesy` DISABLE KEYS */;
/*!40000 ALTER TABLE `cortesy` 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 2017-09-12  8:16:20
