forked from fundaev/fake2co
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sql
More file actions
40 lines (38 loc) · 855 Bytes
/
install.sql
File metadata and controls
40 lines (38 loc) · 855 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
CREATE TABLE orders
(
id int NOT NULL AUTO_INCREMENT,
create_date int NOT NULL,
fraud_status char(64),
email char(128),
cardholder_name char(128),
duration char(128),
recurrence char(128),
product char(128),
product_desc char(128),
price char(128),
merchant_order_id char(128),
return_url char(255),
PRIMARY KEY (id)
) ENGINE MyISAM;
CREATE TABLE order_transactions
(
id int NOT NULL AUTO_INCREMENT,
order_id int NOT NULL,
type char(64) NOT NULL,
create_date int NOT NULL,
status char(64),
PRIMARY KEY (id)
) ENGINE MyISAM;
CREATE TABLE callbacks
(
id int NOT NULL AUTO_INCREMENT,
order_id int NOT NULL,
transaction_id int NOT NULL DEFAULT 0,
message_type char(128) NOT NULL,
callback_date int NOT NULL,
url char(255),
request text,
headers text,
response text,
PRIMARY KEY (id)
) ENGINE MyISAM;