-
Notifications
You must be signed in to change notification settings - Fork 0
/
sqllayout.txt
104 lines (84 loc) · 1.84 KB
/
sqllayout.txt
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
bibwiki_info
version
bibwiki_bibfile
f_id
filename
timestamp
owner
group
permissions
bibwiki_data
f_id
bib_id
bibkey
active
timestamp
text
type
author
editor
title
publisher
journal
year
citations
rating
bibdate
creator
owner
SQL
CREATE TABLE bibwiki_bw_data (
bib_id int unsigned NOT NULL,
bib_revid int unsigned NOT NULL,
bib_key varchar(255) NOT NULL,
bib_timestamp varbinary(14) NOT NULL,
bib_data BLOB,
bib_html_compact_data TEXT,
bib_html_detailed_data TEXT,
bib_html_bibtex_data TEXT,
bib_search_data TEXT,
bib_type varchar(255),
bib_firstauthor varchar(255),
bib_firsteditor varchar(255),
bib_title TEXT,
bib_journal TEXT,
bib_isbn varchar(255),
bib_year int unsigned,
bib_bibdate varbinay(14),
bib_creator_id int unsigned,
PRIMARY KEY data_key (bib_id, bib_revid),
INDEX (f_id, bib_timestamp),
INDEX (f_id, bib_type),
INDEX (f_id, bib_firstauthor),
INDEX (f_id, bib_firsteditor),
INDEX (f_id, bib_title),
INDEX (f_id, bib_journal),
INDEX (f_id, bib_year),
INDEX (f_id, bib_bibdate),
FULLTEXT (bib_search_data)
)
CREATE TABLE bibwiki_bw_keywords (
bib_id int unsigned NOT NULL,
bib_revid int unsigned NOT NULL,
bib_keyword varchar(255)
PRIMARY KEY data_id (bib_id, bib_rev, bib_keyword),
)
CREATE TABLE bibwiki_bw_olddata (
bib_id int unsigned NOT NULL,
bib_revid int unsigned NOT NULL,
bib_key varchar(255) NOT NULL,
bib_timestamp varbinary(14) NOT NULL default '',
bib_data BLOB,
bib_html_data TEXT,
bib_search_data TEXT,
bib_type varchar(255),
bib_firstauthor varchar(255),
bib_firsteditor varchar(255),
bib_title TEXT,
bib_journal TEXT,
bib_publisher TEXT,
bib_year int unsigned,
bib_bibdate varbinay(14),
bib_creator_id int,
PRIMARY KEY data_id (f_id, bib_key, bib_revid),
)