forked from ziimoo/mondo-license-grinder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlicenses.sql
executable file
·104 lines (87 loc) · 2.84 KB
/
licenses.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
-- phpMyAdmin SQL Dump
-- version 3.2.5
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Oct 26, 2012 at 04:21 PM
-- Server version: 5.5.17
-- PHP Version: 5.3.8
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- Database: `licenses`
--
-- --------------------------------------------------------
--
-- Table structure for table `consortium`
--
CREATE TABLE IF NOT EXISTS `consortium` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=18 ;
-- --------------------------------------------------------
--
-- Table structure for table `doc`
--
CREATE TABLE IF NOT EXISTS `doc` (
`filename` varchar(255) NOT NULL,
`alias` varchar(6) NOT NULL,
`mime` varchar(255) NOT NULL,
UNIQUE KEY `alias` (`alias`),
UNIQUE KEY `alias_2` (`alias`),
UNIQUE KEY `filename` (`filename`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `html`
--
CREATE TABLE IF NOT EXISTS `html` (
`tag` varchar(255) NOT NULL,
`content` text NOT NULL,
UNIQUE KEY `tag` (`tag`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `record`
--
CREATE TABLE IF NOT EXISTS `record` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`tag` varchar(255) NOT NULL,
`title` text NOT NULL,
`vendor` int(10) unsigned NOT NULL,
`consortium` int(10) unsigned NOT NULL,
`e_reserves` tinyint(1) NOT NULL,
`course_pack` tinyint(1) NOT NULL,
`durable_url` tinyint(1) NOT NULL,
`alumni_access` tinyint(1) NOT NULL,
`ill_print` tinyint(1) NOT NULL,
`ill_electronic` tinyint(1) NOT NULL,
`ill_ariel` tinyint(1) NOT NULL,
`walk_in` tinyint(1) NOT NULL,
`handouts` tinyint(1) NOT NULL DEFAULT '2',
`images` tinyint(1) NOT NULL DEFAULT '2',
`research_private_study` tinyint(1) NOT NULL DEFAULT '1',
`blackboard` tinyint(1) NOT NULL DEFAULT '1',
`fulltext` tinyint(1) NOT NULL DEFAULT '1' COMMENT 'fulltext available',
`password` varchar(255) NOT NULL,
`perpetual_access` tinyint(1) NOT NULL DEFAULT '0',
`perpetual_access_note` text NOT NULL,
`notes` text NOT NULL,
`notes_public` text NOT NULL,
`date_signed_approved` date NOT NULL,
`sherpa_romeo` varchar(255) DEFAULT '',
`doc_alias` varchar(6) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `tag` (`tag`),
UNIQUE KEY `t` (`title`(255),`vendor`,`consortium`),
KEY `doc_alias` (`doc_alias`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=912 ;
-- --------------------------------------------------------
--
-- Table structure for table `vendor`
--
CREATE TABLE IF NOT EXISTS `vendor` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=657 ;