1
|
SET standard_conforming_strings = off;
|
2
|
SET escape_string_warning = off;
|
3
|
-- MySQL dump 10.13 Distrib 5.5.28, for debian-linux-gnu (x86_64)
|
4
|
--
|
5
|
-- Host: localhost Database: salvias_users
|
6
|
-- ------------------------------------------------------
|
7
|
-- Server version 5.5.28-0ubuntu0.12.04.3
|
8
|
|
9
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
10
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
11
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
12
|
SET NAMES 'latin1';
|
13
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
14
|
/*!40103 SET TIME_ZONE='+00:00' */;
|
15
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
16
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
17
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,POSTGRESQL' */;
|
18
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
19
|
|
20
|
--
|
21
|
-- Table structure for table "affiliation_lookup"
|
22
|
--
|
23
|
|
24
|
DROP TABLE IF EXISTS "affiliation_lookup";
|
25
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
26
|
/*!40101 SET character_set_client = utf8 */;
|
27
|
CREATE TABLE "affiliation_lookup" (
|
28
|
"affiliation_id" integer NOT NULL,
|
29
|
"description" varchar(200) NOT NULL DEFAULT '',
|
30
|
PRIMARY KEY ("affiliation_id"),
|
31
|
/*CONSTRAINT "description" */UNIQUE ("description")
|
32
|
);
|
33
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
34
|
|
35
|
--
|
36
|
-- Table structure for table "applications"
|
37
|
--
|
38
|
|
39
|
DROP TABLE IF EXISTS "applications";
|
40
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
41
|
/*!40101 SET character_set_client = utf8 */;
|
42
|
CREATE TABLE "applications" (
|
43
|
"app_id" integer NOT NULL,
|
44
|
"description" varchar(150) DEFAULT NULL,
|
45
|
"name" varchar(50) NOT NULL DEFAULT '',
|
46
|
"admin_email" varchar(100) DEFAULT NULL,
|
47
|
"http_location" varchar(255) DEFAULT NULL,
|
48
|
PRIMARY KEY ("app_id"),
|
49
|
/*CONSTRAINT "name" */UNIQUE ("name")
|
50
|
);
|
51
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
52
|
|
53
|
--
|
54
|
-- Table structure for table "country"
|
55
|
--
|
56
|
|
57
|
DROP TABLE IF EXISTS "country";
|
58
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
59
|
/*!40101 SET character_set_client = utf8 */;
|
60
|
CREATE TABLE "country" (
|
61
|
"country" varchar(50) DEFAULT NULL,
|
62
|
"country_id" integer NOT NULL,
|
63
|
PRIMARY KEY ("country_id")
|
64
|
);
|
65
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
66
|
|
67
|
--
|
68
|
-- Table structure for table "institution_lookup"
|
69
|
--
|
70
|
|
71
|
DROP TABLE IF EXISTS "institution_lookup";
|
72
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
73
|
/*!40101 SET character_set_client = utf8 */;
|
74
|
CREATE TABLE "institution_lookup" (
|
75
|
"institution_id" integer NOT NULL,
|
76
|
"Address" varchar(100) DEFAULT NULL,
|
77
|
"City" varchar(80) DEFAULT NULL,
|
78
|
"State" char(2) DEFAULT NULL,
|
79
|
"Zipcode" varchar(10) DEFAULT NULL,
|
80
|
"Country" varchar(50) DEFAULT NULL,
|
81
|
"IsHerbarium" integer NOT NULL DEFAULT '0',
|
82
|
"Phone" varchar(20) DEFAULT NULL,
|
83
|
"Fax" varchar(20) DEFAULT NULL,
|
84
|
"Email" varchar(120) DEFAULT NULL,
|
85
|
"URL" varchar(250) DEFAULT NULL,
|
86
|
"Spec_URL" varchar(250) DEFAULT NULL,
|
87
|
"Tx_URL" varchar(250) DEFAULT NULL,
|
88
|
"Name" varchar(150) NOT NULL DEFAULT '',
|
89
|
PRIMARY KEY ("institution_id")
|
90
|
);
|
91
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
92
|
|
93
|
--
|
94
|
-- Table structure for table "ipr"
|
95
|
--
|
96
|
|
97
|
DROP TABLE IF EXISTS "ipr";
|
98
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
99
|
/*!40101 SET character_set_client = utf8 */;
|
100
|
CREATE TABLE "ipr" (
|
101
|
"IPR_ID" integer NOT NULL DEFAULT '0',
|
102
|
"ipr_general" text NOT NULL,
|
103
|
"ipr_general_updated" date NOT NULL DEFAULT '-infinity',
|
104
|
"ipr_updated_by" varchar(50) NOT NULL DEFAULT '',
|
105
|
"ipr_general_version" varchar(10) NOT NULL DEFAULT '',
|
106
|
PRIMARY KEY ("IPR_ID")
|
107
|
);
|
108
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
109
|
|
110
|
--
|
111
|
-- Table structure for table "licence_lookup"
|
112
|
--
|
113
|
|
114
|
DROP TABLE IF EXISTS "licence_lookup";
|
115
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
116
|
/*!40101 SET character_set_client = utf8 */;
|
117
|
CREATE TABLE "licence_lookup" (
|
118
|
"id" integer NOT NULL,
|
119
|
"version" varchar(5) NOT NULL DEFAULT '',
|
120
|
"filename" varchar(30) NOT NULL DEFAULT '',
|
121
|
"created" date NOT NULL DEFAULT '-infinity',
|
122
|
"status" char(1) NOT NULL DEFAULT 'A',
|
123
|
"ipr_brief_text" text,
|
124
|
PRIMARY KEY ("id")
|
125
|
);
|
126
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
127
|
|
128
|
--
|
129
|
-- Table structure for table "licence_user_lookup"
|
130
|
--
|
131
|
|
132
|
DROP TABLE IF EXISTS "licence_user_lookup";
|
133
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
134
|
/*!40101 SET character_set_client = utf8 */;
|
135
|
CREATE TABLE "licence_user_lookup" (
|
136
|
"username" varchar(30) NOT NULL DEFAULT '',
|
137
|
"licence_id" integer NOT NULL DEFAULT '0',
|
138
|
"accepted" char(1) NOT NULL DEFAULT '',
|
139
|
"date" date NOT NULL DEFAULT '-infinity'
|
140
|
);
|
141
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
142
|
|
143
|
--
|
144
|
-- Table structure for table "page_access"
|
145
|
--
|
146
|
|
147
|
DROP TABLE IF EXISTS "page_access";
|
148
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
149
|
/*!40101 SET character_set_client = utf8 */;
|
150
|
CREATE TABLE "page_access" (
|
151
|
"page" varchar(80) NOT NULL DEFAULT '',
|
152
|
"group_id" integer NOT NULL DEFAULT '0',
|
153
|
"app_id" integer NOT NULL DEFAULT '0',
|
154
|
PRIMARY KEY ("page","group_id"),
|
155
|
/*KEY "app_id" ("app_id")*/CHECK (true),
|
156
|
/*FULLTEXT KEY "page" ("page")*/CHECK (true)
|
157
|
);
|
158
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
159
|
|
160
|
--
|
161
|
-- Table structure for table "page_define"
|
162
|
--
|
163
|
|
164
|
DROP TABLE IF EXISTS "page_define";
|
165
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
166
|
/*!40101 SET character_set_client = utf8 */;
|
167
|
CREATE TABLE "page_define" (
|
168
|
"page" varchar(80) NOT NULL DEFAULT '',
|
169
|
"app_id" integer NOT NULL DEFAULT '0',
|
170
|
"fail_msg" varchar(250) DEFAULT NULL,
|
171
|
"description" varchar(250) DEFAULT NULL,
|
172
|
"allow_request" integer NOT NULL DEFAULT '0',
|
173
|
"show_description" integer NOT NULL DEFAULT '0',
|
174
|
PRIMARY KEY ("page","app_id"),
|
175
|
/*KEY "allow_request" ("allow_request")*/CHECK (true),
|
176
|
/*KEY "show_description" ("show_description")*/CHECK (true)
|
177
|
);
|
178
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
179
|
|
180
|
--
|
181
|
-- Table structure for table "page_requests"
|
182
|
--
|
183
|
|
184
|
DROP TABLE IF EXISTS "page_requests";
|
185
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
186
|
/*!40101 SET character_set_client = utf8 */;
|
187
|
CREATE TABLE "page_requests" (
|
188
|
"id" integer NOT NULL,
|
189
|
"page" varchar(80) NOT NULL DEFAULT '',
|
190
|
"username" varchar(30) NOT NULL DEFAULT '',
|
191
|
"denied" integer NOT NULL DEFAULT '0',
|
192
|
"comments" varchar(255) DEFAULT NULL,
|
193
|
PRIMARY KEY ("id")
|
194
|
);
|
195
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
196
|
|
197
|
--
|
198
|
-- Table structure for table "tbl_banned"
|
199
|
--
|
200
|
|
201
|
DROP TABLE IF EXISTS "tbl_banned";
|
202
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
203
|
/*!40101 SET character_set_client = utf8 */;
|
204
|
CREATE TABLE "tbl_banned" (
|
205
|
"ip" varchar(16) NOT NULL DEFAULT '',
|
206
|
"app_id" integer DEFAULT NULL,
|
207
|
PRIMARY KEY ("ip"),
|
208
|
/*KEY "app_id" ("app_id")*/CHECK (true)
|
209
|
);
|
210
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
211
|
|
212
|
--
|
213
|
-- Table structure for table "tbl_dl"
|
214
|
--
|
215
|
|
216
|
DROP TABLE IF EXISTS "tbl_dl";
|
217
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
218
|
/*!40101 SET character_set_client = utf8 */;
|
219
|
CREATE TABLE "tbl_dl" (
|
220
|
"dl_id" bigint NOT NULL,
|
221
|
"dl_login_id" bigint NOT NULL DEFAULT '0',
|
222
|
"dl_target" varchar(50) NOT NULL DEFAULT '',
|
223
|
"dl_target_url" varchar(250) NOT NULL DEFAULT '',
|
224
|
"dl_timestamp" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
225
|
PRIMARY KEY ("dl_id")
|
226
|
);
|
227
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
228
|
|
229
|
--
|
230
|
-- Table structure for table "tbl_dl_login"
|
231
|
--
|
232
|
|
233
|
DROP TABLE IF EXISTS "tbl_dl_login";
|
234
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
235
|
/*!40101 SET character_set_client = utf8 */;
|
236
|
CREATE TABLE "tbl_dl_login" (
|
237
|
"dl_login_id" bigint NOT NULL,
|
238
|
"dl_page_src" varchar(250) NOT NULL DEFAULT '',
|
239
|
"dl_page_target" varchar(250) NOT NULL DEFAULT '',
|
240
|
"lname" varchar(50) NOT NULL DEFAULT '',
|
241
|
"fname" varchar(50) NOT NULL DEFAULT '',
|
242
|
"institution" varchar(200) DEFAULT NULL,
|
243
|
"email" varchar(200) NOT NULL DEFAULT '',
|
244
|
"comments" bytea,
|
245
|
"timestamp" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
246
|
PRIMARY KEY ("dl_login_id")
|
247
|
);
|
248
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
249
|
|
250
|
--
|
251
|
-- Table structure for table "tbl_group"
|
252
|
--
|
253
|
|
254
|
DROP TABLE IF EXISTS "tbl_group";
|
255
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
256
|
/*!40101 SET character_set_client = utf8 */;
|
257
|
CREATE TABLE "tbl_group" (
|
258
|
"username" varchar(40) NOT NULL DEFAULT '',
|
259
|
"gid" integer NOT NULL DEFAULT '-1',
|
260
|
PRIMARY KEY ("username","gid")
|
261
|
);
|
262
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
263
|
|
264
|
--
|
265
|
-- Table structure for table "tbl_group_define"
|
266
|
--
|
267
|
|
268
|
DROP TABLE IF EXISTS "tbl_group_define";
|
269
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
270
|
/*!40101 SET character_set_client = utf8 */;
|
271
|
CREATE TABLE "tbl_group_define" (
|
272
|
"gid" integer NOT NULL,
|
273
|
"app_id" integer NOT NULL DEFAULT '0',
|
274
|
"group_name" varchar(80) NOT NULL DEFAULT '',
|
275
|
"description" varchar(200) DEFAULT NULL,
|
276
|
"parent_gid" integer DEFAULT NULL,
|
277
|
"group_admin_email" varchar(80) NOT NULL DEFAULT '',
|
278
|
"allow_request" integer NOT NULL DEFAULT '0',
|
279
|
PRIMARY KEY ("gid"),
|
280
|
/*KEY "group_admin_email" ("group_admin_email")*/CHECK (true),
|
281
|
/*KEY "allow_request" ("allow_request")*/CHECK (true)
|
282
|
);
|
283
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
284
|
|
285
|
--
|
286
|
-- Table structure for table "tbl_log"
|
287
|
--
|
288
|
|
289
|
DROP TABLE IF EXISTS "tbl_log";
|
290
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
291
|
/*!40101 SET character_set_client = utf8 */;
|
292
|
CREATE TABLE "tbl_log" (
|
293
|
"log_id" integer NOT NULL,
|
294
|
"lastusage" integer DEFAULT NULL,
|
295
|
"timestamp" integer NOT NULL DEFAULT '0',
|
296
|
"ip" varchar(16) NOT NULL DEFAULT 'no ip logged',
|
297
|
"username" varchar(40) DEFAULT NULL,
|
298
|
"action" varchar(40) DEFAULT NULL,
|
299
|
"app_id" integer DEFAULT NULL,
|
300
|
PRIMARY KEY ("log_id"),
|
301
|
/*CONSTRAINT "timestamp" */UNIQUE ("timestamp","ip"),
|
302
|
/*KEY "app_id" ("app_id")*/CHECK (true)
|
303
|
);
|
304
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
305
|
|
306
|
--
|
307
|
-- Table structure for table "tbl_users"
|
308
|
--
|
309
|
|
310
|
DROP TABLE IF EXISTS "tbl_users";
|
311
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
312
|
/*!40101 SET character_set_client = utf8 */;
|
313
|
CREATE TABLE "tbl_users" (
|
314
|
"id" integer NOT NULL,
|
315
|
"username" varchar(30) NOT NULL DEFAULT '',
|
316
|
"password" varchar(250) DEFAULT NULL,
|
317
|
"lname" varchar(25) DEFAULT NULL,
|
318
|
"fname" varchar(25) DEFAULT NULL,
|
319
|
"email" varchar(100) DEFAULT NULL,
|
320
|
"alt_email" varchar(60) DEFAULT NULL,
|
321
|
"html_link_id" integer DEFAULT NULL,
|
322
|
"address" varchar(200) DEFAULT NULL,
|
323
|
"city" varchar(100) DEFAULT NULL,
|
324
|
"state" varchar(11) DEFAULT NULL,
|
325
|
"zip" varchar(15) DEFAULT NULL,
|
326
|
"phone" varchar(25) DEFAULT NULL,
|
327
|
"country_id" integer DEFAULT NULL,
|
328
|
"room_number" varchar(10) DEFAULT NULL,
|
329
|
"institution_id" integer DEFAULT NULL,
|
330
|
"Department" varchar(50) DEFAULT NULL,
|
331
|
"spec_dq_priority" integer NOT NULL DEFAULT '0',
|
332
|
PRIMARY KEY ("id"),
|
333
|
/*CONSTRAINT "login" */UNIQUE ("username")
|
334
|
);
|
335
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
336
|
|
337
|
--
|
338
|
-- Table structure for table "user_status"
|
339
|
--
|
340
|
|
341
|
DROP TABLE IF EXISTS "user_status";
|
342
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
343
|
/*!40101 SET character_set_client = utf8 */;
|
344
|
CREATE TABLE "user_status" (
|
345
|
"username" varchar(30) NOT NULL DEFAULT '',
|
346
|
"ip" varchar(16) DEFAULT NULL,
|
347
|
"lastusage" integer NOT NULL DEFAULT '0',
|
348
|
"app_id" integer NOT NULL DEFAULT '0',
|
349
|
"tries" integer DEFAULT NULL,
|
350
|
"nextlogin" integer DEFAULT NULL,
|
351
|
PRIMARY KEY ("username","app_id"),
|
352
|
/*KEY "ip" ("ip")*/CHECK (true)
|
353
|
);
|
354
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
355
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
356
|
|
357
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
358
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
359
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
360
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
361
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
362
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
363
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
364
|
|
365
|
-- Dump completed on 2012-12-11 9:53:05
|