CREATE TABLE IF NOT EXISTS `#__transactions` (
`id` int(8) unsigned NOT NULL AUTO_INCREMENT,
`order_id` varchar(64) DEFAULT NULL,
`order_code` varchar(64) DEFAULT NULL,
`order_params` text,
`store_code` varchar(64) DEFAULT NULL,
`gateway_code` varchar(64) DEFAULT NULL,
`language_code` varchar(2) DEFAULT NULL,
`country_code` varchar(2) DEFAULT NULL,
`currency_code` varchar(3) DEFAULT NULL,
`transaction_id` varchar(64) DEFAULT NULL,
`transaction_code` varchar(64) DEFAULT NULL,
`transaction_params` text,
`transaction_date` int(11) unsigned DEFAULT NULL,
`transaction_amount` decimal(10,2) unsigned DEFAULT NULL,
`transaction_description` varchar(100) DEFAULT NULL,
`transaction_status` varchar(16) DEFAULT NULL,
`transaction_url` varchar(255) DEFAULT NULL,
`transaction_payment_url` varchar(255) DEFAULT NULL,
`transaction_success_url` varchar(255) DEFAULT NULL,
`transaction_pending_url` varchar(255) DEFAULT NULL,
`transaction_failure_url` varchar(255) DEFAULT NULL,
`transaction_log` text,
`user_id` int(11) DEFAULT NULL,
`adr_i_degree` varchar(255) DEFAULT NULL,
`adr_i_name` varchar(255) DEFAULT NULL,
`adr_i_surname` varchar(255) DEFAULT NULL,
`adr_i_email` varchar(255) DEFAULT NULL,
`adr_i_street` varchar(255) DEFAULT NULL,
`adr_i_zip` varchar(255) DEFAULT NULL,
`adr_i_city` varchar(255) DEFAULT NULL,
`adr_i_country` int(11) DEFAULT NULL,
`adr_i_phone` varchar(50) DEFAULT NULL,
`adr_i_fax` varchar(50) DEFAULT NULL,
`adr_i_company` varchar(255) DEFAULT NULL,
`adr_i_vat_number` varchar(255) DEFAULT NULL,
`adr_d_degree` varchar(255) DEFAULT NULL,
`adr_d_name` varchar(255) DEFAULT NULL,
`adr_d_surname` varchar(255) DEFAULT NULL,
`adr_d_email` varchar(255) DEFAULT NULL,
`adr_d_street` varchar(255) DEFAULT NULL,
`adr_d_zip` varchar(255) DEFAULT NULL,
`adr_d_city` varchar(255) DEFAULT NULL,
`adr_d_country` int(11) DEFAULT NULL,
`adr_d_phone` varchar(50) DEFAULT NULL,
`adr_d_fax` varchar(50) DEFAULT NULL,
`shipping_method` int(11) DEFAULT NULL,
`shipping_method_name` varchar(255) DEFAULT NULL,
`shipping_method_price` float DEFAULT NULL,
`shipping_method_vat_rate` float DEFAULT NULL,
`payment_method` int(11) DEFAULT NULL,
`payment_method_name` varchar(255) DEFAULT NULL,
`payment_method_price` float DEFAULT NULL,
`payment_method_vat_rate` float DEFAULT NULL,
`note` varchar(255) DEFAULT NULL,
`ctime` int(11) DEFAULT NULL,
`mtime` int(11) DEFAULT NULL,
`order_status` tinyint(1) DEFAULT NULL,
`payment_status` tinyint(1) DEFAULT NULL,
`payed_amount` float DEFAULT NULL,
`voucher_code` varchar(255) DEFAULT NULL,
`user_language` varchar(5) DEFAULT NULL,
`items` varchar(255) DEFAULT NULL,
`country_name` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;