-
Notifications
You must be signed in to change notification settings - Fork 4
/
empty.sql
81 lines (68 loc) · 2.51 KB
/
empty.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
-- phpMyAdmin SQL Dump
-- version 4.0.10.10
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Aug 17, 2015 at 05:17 PM
-- Server version: 5.1.73
-- PHP Version: 5.3.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!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 */;
-- --------------------------------------------------------
--
-- Table structure for table `j_content`
--
CREATE TABLE IF NOT EXISTS `j_content` (
`vol` tinyint(3) unsigned NOT NULL,
`issue` tinyint(3) unsigned NOT NULL,
`page` int(10) unsigned NOT NULL,
`end_page` int(10) unsigned NOT NULL,
`section` tinyint(3) unsigned NOT NULL,
`doi` varchar(255) NOT NULL,
`title` varchar(255) NOT NULL,
`author` varchar(255) NOT NULL,
`inst` text NOT NULL,
`abstract` text NOT NULL,
`keywords` varchar(255) NOT NULL,
`pdf` varchar(255) NOT NULL,
`refs` text NOT NULL,
UNIQUE KEY `uniq_idx` (`vol`,`issue`,`page`),
FULLTEXT KEY `idx1` (`title`,`author`,`inst`,`abstract`,`keywords`),
FULLTEXT KEY `idx2` (`refs`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `j_section`
--
CREATE TABLE IF NOT EXISTS `j_section` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `j_users`
--
CREATE TABLE IF NOT EXISTS `j_users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL,
`last_login` datetime NOT NULL,
`name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`priv` int(10) unsigned NOT NULL,
`pass` char(64) COLLATE utf8_unicode_ci NOT NULL,
`salt` char(64) COLLATE utf8_unicode_ci NOT NULL,
`token` char(64) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`),
UNIQUE KEY `email` (`email`),
UNIQUE KEY `token` (`token`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!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 */;