-
Notifications
You must be signed in to change notification settings - Fork 3
/
ext_tables.sql
80 lines (70 loc) · 2.43 KB
/
ext_tables.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#
# Table structure for table 'tx_interest_api_token'
#
CREATE TABLE tx_interest_api_token (
uid int(11) DEFAULT '0' NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
crdate int(11) DEFAULT '0' NOT NULL,
token varchar(255) DEFAULT '' NOT NULL,
be_user int(11) DEFAULT '0' NOT NULL,
expiry int(11) DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY token_expiry (token, expiry),
KEY be_user (be_user)
);
CREATE TABLE tx_interest_remote_id_mapping (
uid int(11) DEFAULT '0' NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
crdate int(11) DEFAULT '0' NOT NULL,
touched int(11) DEFAULT '0' NOT NULL,
cruser_id int(11) DEFAULT '0' NOT NULL,
remote_id varchar(255) DEFAULT '' NOT NULL,
table varchar(255) DEFAULT '0' NOT NULL,
uid_local int(11) DEFAULT '0' NOT NULL,
record_hash varchar(32) DEFAULT '0' NOT NULL,
manual smallint (3) DEFAULT '0' NOT NULL,
metadata mediumtext DEFAULT '' NOT NULL,
PRIMARY KEY (uid),
KEY remote_id (remote_id),
KEY local_side (table, uid_local),
KEY record_hash (record_hash)
);
CREATE TABLE tx_interest_pending_relations (
remote_id varchar(255) DEFAULT '' NOT NULL,
table varchar(255) DEFAULT '0' NOT NULL,
field varchar(255) DEFAULT '0' NOT NULL,
record_uid int(11) DEFAULT '0' NOT NULL,
KEY local_record (table, field, record_uid),
KEY remote_id (remote_id)
);
CREATE TABLE tx_interest_log (
uid int(11) DEFAULT '0' NOT NULL auto_increment,
timestamp int(11) DEFAULT '0' NOT NULL,
execution_time int(11) DEFAULT '0' NOT NULL,
status_code int(11) DEFAULT '0' NOT NULL,
method varchar(16) DEFAULT '' NOT NULL,
uri text DEFAULT '' NOT NULL,
request_headers text DEFAULT '' NOT NULL,
request_body mediumtext DEFAULT '' NOT NULL,
response_headers text DEFAULT '' NOT NULL,
response_body mediumtext DEFAULT '' NOT NULL,
PRIMARY KEY (uid)
);
CREATE TABLE tx_interest_deferred_operation (
uid int(11) DEFAULT '0' NOT NULL auto_increment,
crdate int(11) DEFAULT '0' NOT NULL,
dependent_remote_id varchar(255) DEFAULT '' NOT NULL,
class varchar(255) DEFAULT '' NOT NULL,
arguments mediumtext DEFAULT '' NOT NULL,
PRIMARY KEY (uid),
KEY dependent_remote_id (dependent_remote_id),
KEY crdate (crdate),
);
#
# Gives an extra boost to queries against the reference index.
#
CREATE TABLE `sys_refindex` (
KEY `table_rec_ws` (`tablename`,`recuid`,`workspace`)
);