-
Notifications
You must be signed in to change notification settings - Fork 6
/
_DB_SETUP.sql
166 lines (121 loc) · 4.53 KB
/
_DB_SETUP.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# ************************************************************
# Sequel Pro SQL dump
# Version 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: localhost (MySQL 5.6.38)
# Database: publications
# Generation Time: 2018-10-12 11:30:32 +0000
# ************************************************************
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
# Dump of table affiliations
# ------------------------------------------------------------
DROP TABLE IF EXISTS `affiliations`;
CREATE TABLE `affiliations` (
`id` varchar(20) NOT NULL DEFAULT '',
`name` varchar(100) DEFAULT NULL,
`search` varchar(500) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table groups
# ------------------------------------------------------------
DROP TABLE IF EXISTS `groups`;
CREATE TABLE `groups` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`email` varchar(100) DEFAULT NULL,
`clarity_lab_uri` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table labs
# ------------------------------------------------------------
DROP TABLE IF EXISTS `labs`;
CREATE TABLE `labs` (
`lab_clarity_uri` varchar(100) NOT NULL DEFAULT '',
`lab_status` varchar(10) DEFAULT NULL,
`lab_name` varchar(100) NOT NULL DEFAULT '',
`lab_affiliation` varchar(50) DEFAULT NULL,
`lab_pi` varchar(100) DEFAULT NULL,
`log` text,
PRIMARY KEY (`lab_clarity_uri`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table login_attempts
# ------------------------------------------------------------
DROP TABLE IF EXISTS `login_attempts`;
CREATE TABLE `login_attempts` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`email` varchar(100) NOT NULL DEFAULT '',
`time` int(11) NOT NULL,
`ip` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table publications
# ------------------------------------------------------------
DROP TABLE IF EXISTS `publications`;
CREATE TABLE `publications` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`pmid` int(11) DEFAULT NULL,
`doi` varchar(100) DEFAULT NULL,
`score` int(11) DEFAULT NULL,
`keywords` text,
`submitted` date DEFAULT NULL,
`pubdate` date DEFAULT NULL,
`journal` varchar(100) DEFAULT NULL,
`volume` varchar(10) DEFAULT NULL,
`issue` varchar(10) DEFAULT NULL,
`pages` varchar(20) DEFAULT NULL,
`title` text,
`abstract` text,
`authors` text,
`status` varchar(20) DEFAULT NULL,
`comments` text,
`log` text,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table publications_xref
# ------------------------------------------------------------
DROP TABLE IF EXISTS `publications_xref`;
CREATE TABLE `publications_xref` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`publication_id` int(11) DEFAULT NULL,
`email` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table researchers
# ------------------------------------------------------------
DROP TABLE IF EXISTS `researchers`;
CREATE TABLE `researchers` (
`email` varchar(100) NOT NULL DEFAULT '',
`first_name` varchar(100) DEFAULT NULL,
`last_name` varchar(100) DEFAULT NULL,
`query_name` varchar(100) DEFAULT NULL,
`log` text,
PRIMARY KEY (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table users
# ------------------------------------------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`uid` int(11) NOT NULL AUTO_INCREMENT,
`user_email` varchar(100) NOT NULL DEFAULT '',
`user_fname` varchar(100) DEFAULT '',
`user_lname` varchar(100) DEFAULT NULL,
`user_hash` varchar(128) NOT NULL,
`user_auth` int(1) NOT NULL DEFAULT '0',
`user_status` int(1) NOT NULL DEFAULT '0',
`log` text,
PRIMARY KEY (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;