<?xml version="1.0" encoding="UTF-8"?>
<schemadesigner version="6.5">
<source>
<database charset="utf8" collation="utf8_general_ci">dcadv_transportes</database>
</source>
<canvas zoom="100">
<tables>
<table name="ven_liquidacion" view="colnames">
<left>732</left>
<top>183</top>
<width>121</width>
<height>209</height>
<sql_create_table>CREATE TABLE `ven_liquidacion` (
  `idliquidacion` bigint(20) NOT NULL AUTO_INCREMENT,
  `idlocal` int(11) DEFAULT NULL,
  `idturno` int(11) NOT NULL,
  `fecha` date NOT NULL,
  `saldoinicial` decimal(9,2) NOT NULL DEFAULT '0.00',
  `monto` decimal(9,2) NOT NULL DEFAULT '0.00',
  `idcuentacorriente` int(11) DEFAULT NULL,
  `numerooperacion` varchar(50) DEFAULT NULL,
  `idusuario` bigint(20) NOT NULL,
  `fechasistema` datetime NOT NULL,
  PRIMARY KEY (`idliquidacion`),
  KEY `idlocal` (`idlocal`),
  KEY `idturno` (`idturno`),
  KEY `idcuentacorriente` (`idcuentacorriente`),
  CONSTRAINT `ven_liquidacion_ibfk_1` FOREIGN KEY (`idlocal`) REFERENCES `mae_local` (`idlocal`),
  CONSTRAINT `ven_liquidacion_ibfk_2` FOREIGN KEY (`idturno`) REFERENCES `tran_turno` (`idturno`),
  CONSTRAINT `ven_liquidacion_ibfk_3` FOREIGN KEY (`idcuentacorriente`) REFERENCES `mae_cuentacorriente` (`idcuentacorriente`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8</sql_create_table>
</table>
<table name="ven_liquidaciondetalle" view="colnames">
<left>361</left>
<top>17</top>
<width>154</width>
<height>209</height>
<sql_create_table>CREATE TABLE `ven_liquidaciondetalle` (
  `idliquidaciondetalle` bigint(20) NOT NULL AUTO_INCREMENT,
  `idliquidacion` bigint(20) NOT NULL,
  `idcomprobante` int(11) NOT NULL,
  `cantidad` int(11) NOT NULL,
  `monto` decimal(9,2) NOT NULL,
  `descripcion` varchar(100) NOT NULL,
  `idusuario` bigint(20) NOT NULL,
  `fechasistema` datetime NOT NULL,
  PRIMARY KEY (`idliquidaciondetalle`),
  KEY `idcomprobante` (`idcomprobante`),
  KEY `idliquidacion` (`idliquidacion`),
  CONSTRAINT `ven_liquidaciondetalle_ibfk_1` FOREIGN KEY (`idcomprobante`) REFERENCES `ven_comprobante` (`idcomprobante`),
  CONSTRAINT `ven_liquidaciondetalle_ibfk_2` FOREIGN KEY (`idliquidacion`) REFERENCES `ven_liquidacion` (`idliquidacion`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8</sql_create_table>
</table>
<table name="ven_comprobante" view="colnames">
<left>144</left>
<top>38</top>
<width>131</width>
<height>124</height>
<sql_create_table>CREATE TABLE `ven_comprobante` (
  `idcomprobante` int(11) NOT NULL AUTO_INCREMENT,
  `descripcion` varchar(100) NOT NULL,
  `estado` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`idcomprobante`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8</sql_create_table>
</table>
<table name="mae_local" view="colnames">
<left>917</left>
<top>223</top>
<width>110</width>
<height>141</height>
<sql_create_table>CREATE TABLE `mae_local` (
  `idlocal` int(11) NOT NULL AUTO_INCREMENT,
  `idlugar` int(11) NOT NULL,
  `descripcion` varchar(100) NOT NULL,
  `estado` tinyint(4) NOT NULL,
  PRIMARY KEY (`idlocal`),
  KEY `idlugar` (`idlugar`),
  CONSTRAINT `mae_local_ibfk_1` FOREIGN KEY (`idlugar`) REFERENCES `mae_lugar` (`idlugar`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8</sql_create_table>
</table>
<table name="mae_entidadfinanciera" view="colnames">
<left>779</left>
<top>400</top>
<width>110</width>
<height>124</height>
<sql_create_table>CREATE TABLE `mae_entidadfinanciera` (
  `identidadfinanciera` int(11) NOT NULL AUTO_INCREMENT,
  `descripcion` varchar(100) NOT NULL,
  `estado` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`identidadfinanciera`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8</sql_create_table>
</table>
<table name="mae_cuentacorriente" view="colnames">
<left>457</left>
<top>281</top>
<width>154</width>
<height>158</height>
<sql_create_table>CREATE TABLE `mae_cuentacorriente` (
  `idcuentacorriente` int(11) NOT NULL AUTO_INCREMENT,
  `identidadfinanciera` int(11) NOT NULL,
  `idtipomoneda` int(11) NOT NULL,
  `numerocuenta` varchar(50) NOT NULL,
  `estado` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`idcuentacorriente`),
  KEY `identidadfinanciera` (`identidadfinanciera`),
  KEY `idtipomoneda` (`idtipomoneda`),
  CONSTRAINT `mae_cuentacorriente_ibfk_1` FOREIGN KEY (`identidadfinanciera`) REFERENCES `mae_entidadfinanciera` (`identidadfinanciera`),
  CONSTRAINT `mae_cuentacorriente_ibfk_2` FOREIGN KEY (`idtipomoneda`) REFERENCES `mae_moneda` (`idmoneda`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8</sql_create_table>
</table>
<table name="mae_moneda" view="colnames">
<left>629</left>
<top>445</top>
<width>123</width>
<height>124</height>
<sql_create_table>CREATE TABLE `mae_moneda` (
  `idmoneda` int(11) NOT NULL AUTO_INCREMENT,
  `descripcion` varchar(100) NOT NULL,
  `descripcioncorta` varchar(10) NOT NULL,
  `estado` tinyint(4) NOT NULL,
  PRIMARY KEY (`idmoneda`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8</sql_create_table>
</table>
<table name="tran_turno" view="colnames">
<left>927</left>
<top>384</top>
<width>110</width>
<height>124</height>
<sql_create_table>CREATE TABLE `tran_turno` (
  `idturno` int(11) NOT NULL AUTO_INCREMENT,
  `descripcion` varchar(100) NOT NULL,
  `estado` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`idturno`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8</sql_create_table>
</table>
<table name="mae_clasificacionmoneda" view="colnames">
<left>383</left>
<top>441</top>
<width>170</width>
<height>141</height>
<sql_create_table>CREATE TABLE `mae_clasificacionmoneda` (
  `idclasificacionmoneda` int(11) NOT NULL AUTO_INCREMENT,
  `idmoneda` int(11) NOT NULL,
  `descripcion` int(11) NOT NULL,
  `estado` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`idclasificacionmoneda`),
  KEY `idmoneda` (`idmoneda`),
  CONSTRAINT `mae_clasificacionmoneda_ibfk_1` FOREIGN KEY (`idmoneda`) REFERENCES `mae_moneda` (`idmoneda`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8</sql_create_table>
</table>
<table name="ven_arqueocaja" view="colnames">
<left>152</left>
<top>220</top>
<width>170</width>
<height>192</height>
<sql_create_table>CREATE TABLE `ven_arqueocaja` (
  `idarqueocaja` bigint(20) NOT NULL AUTO_INCREMENT,
  `idliquidacion` bigint(11) NOT NULL,
  `idclasificacionmoneda` int(11) NOT NULL,
  `cantidad` int(11) NOT NULL,
  `monto` decimal(9,2) NOT NULL,
  `idusuario` bigint(20) NOT NULL,
  `fechasistema` datetime NOT NULL,
  PRIMARY KEY (`idarqueocaja`),
  KEY `idliquidacion` (`idliquidacion`),
  KEY `idclasificacionmoneda` (`idclasificacionmoneda`),
  CONSTRAINT `ven_arqueocaja_ibfk_1` FOREIGN KEY (`idliquidacion`) REFERENCES `ven_liquidacion` (`idliquidacion`),
  CONSTRAINT `ven_arqueocaja_ibfk_2` FOREIGN KEY (`idclasificacionmoneda`) REFERENCES `mae_clasificacionmoneda` (`idclasificacionmoneda`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8</sql_create_table>
</table>
</tables>
</canvas>
</schemadesigner>