-- phpMyAdmin SQL Dump
-- version 3.2.4
-- http://www.phpmyadmin.net
--
-- Servidor: localhost
-- Tiempo de generación: 25-08-2014 a las 17:34:15
-- Versión del servidor: 5.1.44
-- Versión de PHP: 5.3.1

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";


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

--
-- Base de datos: `pb`
--

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

--
-- Estructura de tabla para la tabla `accounts`
--

CREATE TABLE `payu_param` (
  `payu_id` int(11) NOT NULL AUTO_INCREMENT,
  `payu_name` varchar(255) NOT NULL,
  `payu_merchantid` varchar(255) NOT NULL,
  `payu_accountid` varchar(255) NOT NULL,
  `payu_apikey` varchar(255) NOT NULL,
  `payu_url` varchar(255) NOT NULL,
  `payu_default` varchar(255) NOT NULL,
  `payu_currency` varchar(255) NOT NULL,
  `payu_desc` varchar(255) NOT NULL,
  `payu_test` varchar(255) NOT NULL,
  `payu_responsepage` varchar(255) NOT NULL,
  PRIMARY KEY (`payu_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;


CREATE TABLE `payu_txsregister` (
  `payutxs_id` int(11) NOT NULL AUTO_INCREMENT,
  `payutxs_date` datetime NOT NULL,
  `state_pol` varchar(255) NOT NULL,
  `response_code_pol` varchar(255) NOT NULL,
  `reference_sale` varchar(255) NOT NULL,
  `reference_pol` varchar(255) NOT NULL,
  `sign` varchar(255) NOT NULL,
  `payment_method_type` varchar(255) NOT NULL,
  `value` varchar(255) NOT NULL,
  `tax` varchar(255) NOT NULL,
  `transaction_date` varchar(255) NOT NULL,
  `currency` varchar(255) NOT NULL,
  `email_buyer` varchar(255) NOT NULL,
  `cus` varchar(255) NOT NULL,
  `pse_bank` varchar(255) NOT NULL,
  `test` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `response_message_pol` varchar(255) NOT NULL,
  PRIMARY KEY (`payutxs_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

CREATE TABLE `payu_emailconfig` (
  `payuec_id` int(11) NOT NULL AUTO_INCREMENT,
  `payuec_name` varchar(255) NOT NULL,
  `payuec_value` varchar(255) NOT NULL,
  PRIMARY KEY (`payuec_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

INSERT INTO `payu_emailconfig` (`payuec_id`,`payuec_name`,`payuec_value` ) VALUES ('1', 'Email remitente', '');
INSERT INTO `payu_emailconfig` (`payuec_id`,`payuec_name`,`payuec_value` ) VALUES ('2', 'Email seguimiento', '');

ALTER TABLE `payu_param` ADD `payu_confirmpage` VARCHAR(255) NOT NULL AFTER `payu_responsepage`;
