-
Notifications
You must be signed in to change notification settings - Fork 0
/
nochex_apc.sql
28 lines (27 loc) · 1.02 KB
/
nochex_apc.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
CREATE TABLE `nochex_apc_transactions` (
`nochex_apc_id` int(11) unsigned NOT NULL auto_increment,
`order_id` int(11) unsigned NOT NULL default '0',
`nc_transaction_id` varchar(30) NOT NULL,
`nc_transaction_date` varchar(100) NOT NULL,
`nc_to_email` varchar(255) NOT NULL,
`nc_from_email` varchar(255) NOT NULL,
`nc_order_id` varchar(255) NOT NULL,
`nc_custom` varchar(255) NOT NULL,
`nc_amount` decimal(9,2) NOT NULL,
`nc_security_key` varchar(255) NOT NULL,
`nc_status` varchar(15) NOT NULL,
`nochex_response` varchar(255) NOT NULL,
`last_modified` datetime NOT NULL default '0001-01-01 00:00:00',
`date_added` datetime NOT NULL default '0001-01-01 00:00:00',
`memo` text,
PRIMARY KEY (`nochex_apc_id`),
KEY `idx_zen_order_id_zen` (`order_id`)
);
CREATE TABLE `nochex_sessions` (
`unique_id` int(11) NOT NULL auto_increment,
`session_id` text NOT NULL,
`saved_session` blob NOT NULL,
`expiry` int(17) NOT NULL default '0',
PRIMARY KEY (`unique_id`),
KEY `idx_session_id_zen` (`session_id`(36))
);