- added new table tblVersion which holds the current version of letodms

This commit is contained in:
steinm 2011-02-01 08:05:49 +00:00
parent e09085870f
commit 4000e712dd

View File

@ -1,407 +1,418 @@
-- --
-- Table structure for table `tblACLs` -- Table structure for table `tblACLs`
-- --
CREATE TABLE `tblACLs` ( CREATE TABLE `tblACLs` (
`id` int(11) NOT NULL auto_increment, `id` int(11) NOT NULL auto_increment,
`target` int(11) NOT NULL default '0', `target` int(11) NOT NULL default '0',
`targetType` tinyint(4) NOT NULL default '0', `targetType` tinyint(4) NOT NULL default '0',
`userID` int(11) NOT NULL default '-1', `userID` int(11) NOT NULL default '-1',
`groupID` int(11) NOT NULL default '-1', `groupID` int(11) NOT NULL default '-1',
`mode` tinyint(4) NOT NULL default '0', `mode` tinyint(4) NOT NULL default '0',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ; ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentApproveLog`
--
CREATE TABLE `tblDocumentApproveLog` (
`approveLogID` int(11) NOT NULL auto_increment,
`approveID` int(11) NOT NULL default '0',
`status` tinyint(4) NOT NULL default '0',
`comment` text NOT NULL,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
`userID` int(11) NOT NULL default '0',
PRIMARY KEY (`approveLogID`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentApprovers`
--
CREATE TABLE `tblDocumentApprovers` (
`approveID` int(11) NOT NULL auto_increment,
`documentID` int(11) NOT NULL default '0',
`version` smallint(5) unsigned NOT NULL default '0',
`type` tinyint(4) NOT NULL default '0',
`required` int(11) NOT NULL default '0',
PRIMARY KEY (`approveID`),
UNIQUE KEY `documentID` (`documentID`,`version`,`type`,`required`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentContent`
--
CREATE TABLE `tblDocumentContent` (
`document` int(11) NOT NULL default '0',
`version` smallint(5) unsigned NOT NULL,
`comment` text,
`date` int(12) default NULL,
`createdBy` int(11) default NULL,
`dir` varchar(255) NOT NULL default '',
`orgFileName` varchar(150) NOT NULL default '',
`fileType` varchar(10) NOT NULL default '',
`mimeType` varchar(70) NOT NULL default '',
UNIQUE (`document`,`version`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentLinks`
--
CREATE TABLE `tblDocumentLinks` (
`id` int(11) NOT NULL auto_increment,
`document` int(11) NOT NULL default '0',
`target` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '0',
`public` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`)
) ;
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Table structure for table `tblDocumentFiles` -- Table structure for table `tblDocumentApproveLog`
-- --
CREATE TABLE `tblDocumentFiles` ( CREATE TABLE `tblDocumentApproveLog` (
`id` int(11) NOT NULL auto_increment, `approveLogID` int(11) NOT NULL auto_increment,
`document` int(11) NOT NULL default '0', `approveID` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '0', `status` tinyint(4) NOT NULL default '0',
`comment` text, `comment` text NOT NULL,
`name` varchar(150) default NULL, `date` datetime NOT NULL default '0000-00-00 00:00:00',
`date` int(12) default NULL,
`dir` varchar(255) NOT NULL default '',
`orgFileName` varchar(150) NOT NULL default '',
`fileType` varchar(10) NOT NULL default '',
`mimeType` varchar(70) NOT NULL default '',
PRIMARY KEY (`id`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentLocks`
--
CREATE TABLE `tblDocumentLocks` (
`document` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '0',
PRIMARY KEY (`document`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentReviewLog`
--
CREATE TABLE `tblDocumentReviewLog` (
`reviewLogID` int(11) NOT NULL auto_increment,
`reviewID` int(11) NOT NULL default '0',
`status` tinyint(4) NOT NULL default '0',
`comment` text NOT NULL,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
`userID` int(11) NOT NULL default '0',
PRIMARY KEY (`reviewLogID`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentReviewers`
--
CREATE TABLE `tblDocumentReviewers` (
`reviewID` int(11) NOT NULL auto_increment,
`documentID` int(11) NOT NULL default '0',
`version` smallint(5) unsigned NOT NULL default '0',
`type` tinyint(4) NOT NULL default '0',
`required` int(11) NOT NULL default '0',
PRIMARY KEY (`reviewID`),
UNIQUE KEY `documentID` (`documentID`,`version`,`type`,`required`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentStatus`
--
CREATE TABLE `tblDocumentStatus` (
`statusID` int(11) NOT NULL auto_increment,
`documentID` int(11) NOT NULL default '0',
`version` smallint(5) unsigned NOT NULL default '0',
PRIMARY KEY (`statusID`),
UNIQUE KEY `documentID` (`documentID`,`version`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentStatusLog`
--
CREATE TABLE `tblDocumentStatusLog` (
`statusLogID` int(11) NOT NULL auto_increment,
`statusID` int(11) NOT NULL default '0',
`status` tinyint(4) NOT NULL default '0',
`comment` text NOT NULL,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
`userID` int(11) NOT NULL default '0',
PRIMARY KEY (`statusLogID`),
KEY `statusID` (`statusID`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocuments`
--
CREATE TABLE `tblDocuments` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(150) default NULL,
`comment` text,
`date` int(12) default NULL,
`expires` int(12) default NULL,
`owner` int(11) default NULL,
`folder` int(11) default NULL,
`folderList` text NOT NULL,
`inheritAccess` tinyint(1) NOT NULL default '1',
`defaultAccess` tinyint(4) NOT NULL default '0',
`locked` int(11) NOT NULL default '-1',
`keywords` text NOT NULL,
`sequence` double NOT NULL default '0',
PRIMARY KEY (`id`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblFolders`
--
CREATE TABLE `tblFolders` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(70) default NULL,
`parent` int(11) default NULL,
`comment` text,
`date` int(12) default NULL,
`owner` int(11) default NULL,
`inheritAccess` tinyint(1) NOT NULL default '1',
`defaultAccess` tinyint(4) NOT NULL default '0',
`sequence` double NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `parent` (`parent`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblGroupMembers`
--
CREATE TABLE `tblGroupMembers` (
`groupID` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '0', `userID` int(11) NOT NULL default '0',
`manager` smallint(1) NOT NULL default '0', PRIMARY KEY (`approveLogID`)
PRIMARY KEY (`groupID`,`userID`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
) ;
-- --------------------------------------------------------
-- --------------------------------------------------------
--
-- -- Table structure for table `tblDocumentApprovers`
-- Table structure for table `tblGroups` --
--
CREATE TABLE `tblDocumentApprovers` (
CREATE TABLE `tblGroups` ( `approveID` int(11) NOT NULL auto_increment,
`id` int(11) NOT NULL auto_increment, `documentID` int(11) NOT NULL default '0',
`name` varchar(50) default NULL, `version` smallint(5) unsigned NOT NULL default '0',
`comment` text NOT NULL, `type` tinyint(4) NOT NULL default '0',
PRIMARY KEY (`id`) `required` int(11) NOT NULL default '0',
) ; PRIMARY KEY (`approveID`),
UNIQUE KEY `documentID` (`documentID`,`version`,`type`,`required`)
-- -------------------------------------------------------- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- -- --------------------------------------------------------
-- Table structure for table `tblKeywordCategories`
-- --
-- Table structure for table `tblDocumentContent`
CREATE TABLE `tblKeywordCategories` ( --
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '', CREATE TABLE `tblDocumentContent` (
`owner` int(11) NOT NULL default '0', `document` int(11) NOT NULL default '0',
PRIMARY KEY (`id`) `version` smallint(5) unsigned NOT NULL,
) ; `comment` text,
`date` int(12) default NULL,
-- -------------------------------------------------------- `createdBy` int(11) default NULL,
`dir` varchar(255) NOT NULL default '',
-- `orgFileName` varchar(150) NOT NULL default '',
-- Table structure for table `tblKeywords` `fileType` varchar(10) NOT NULL default '',
-- `mimeType` varchar(70) NOT NULL default '',
UNIQUE (`document`,`version`)
CREATE TABLE `tblKeywords` ( ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
`id` int(11) NOT NULL auto_increment,
`category` int(11) NOT NULL default '0', -- --------------------------------------------------------
`keywords` text NOT NULL,
PRIMARY KEY (`id`) --
) ; -- Table structure for table `tblDocumentLinks`
--
-- --------------------------------------------------------
CREATE TABLE `tblDocumentLinks` (
-- `id` int(11) NOT NULL auto_increment,
-- Table structure for table `tblNotify` `document` int(11) NOT NULL default '0',
-- `target` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '0',
CREATE TABLE `tblNotify` ( `public` tinyint(1) NOT NULL default '0',
`target` int(11) NOT NULL default '0', PRIMARY KEY (`id`)
`targetType` int(11) NOT NULL default '0', ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
`userID` int(11) NOT NULL default '-1',
`groupID` int(11) NOT NULL default '-1', -- --------------------------------------------------------
PRIMARY KEY (`target`,`targetType`,`userID`,`groupID`)
) ; --
-- Table structure for table `tblDocumentFiles`
-- -------------------------------------------------------- --
-- CREATE TABLE `tblDocumentFiles` (
-- Table structure for table `tblSessions` `id` int(11) NOT NULL auto_increment,
-- `document` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '0',
CREATE TABLE `tblSessions` ( `comment` text,
`id` varchar(50) NOT NULL default '', `name` varchar(150) default NULL,
`userID` int(11) NOT NULL default '0', `date` int(12) default NULL,
`lastAccess` int(11) NOT NULL default '0', `dir` varchar(255) NOT NULL default '',
`theme` varchar(30) NOT NULL default '', `orgFileName` varchar(150) NOT NULL default '',
`language` varchar(30) NOT NULL default '', `fileType` varchar(10) NOT NULL default '',
PRIMARY KEY (`id`) `mimeType` varchar(70) NOT NULL default '',
) ; PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblUserImages` -- --------------------------------------------------------
--
--
CREATE TABLE `tblUserImages` ( -- Table structure for table `tblDocumentLocks`
`id` int(11) NOT NULL auto_increment, --
`userID` int(11) NOT NULL default '0',
`image` blob NOT NULL, CREATE TABLE `tblDocumentLocks` (
`mimeType` varchar(10) NOT NULL default '', `document` int(11) NOT NULL default '0',
PRIMARY KEY (`id`) `userID` int(11) NOT NULL default '0',
) ; PRIMARY KEY (`document`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- --------------------------------------------------------
--
-- Table structure for table `tblUsers` --
-- -- Table structure for table `tblDocumentReviewLog`
--
CREATE TABLE `tblUsers` (
`id` int(11) NOT NULL auto_increment, CREATE TABLE `tblDocumentReviewLog` (
`login` varchar(50) default NULL, `reviewLogID` int(11) NOT NULL auto_increment,
`pwd` varchar(50) default NULL, `reviewID` int(11) NOT NULL default '0',
`fullName` varchar(100) default NULL, `status` tinyint(4) NOT NULL default '0',
`email` varchar(70) default NULL, `comment` text NOT NULL,
`language` varchar(32) NOT NULL, `date` datetime NOT NULL default '0000-00-00 00:00:00',
`theme` varchar(32) NOT NULL, `userID` int(11) NOT NULL default '0',
`comment` text NOT NULL, PRIMARY KEY (`reviewLogID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentReviewers`
--
CREATE TABLE `tblDocumentReviewers` (
`reviewID` int(11) NOT NULL auto_increment,
`documentID` int(11) NOT NULL default '0',
`version` smallint(5) unsigned NOT NULL default '0',
`type` tinyint(4) NOT NULL default '0',
`required` int(11) NOT NULL default '0',
PRIMARY KEY (`reviewID`),
UNIQUE KEY `documentID` (`documentID`,`version`,`type`,`required`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentStatus`
--
CREATE TABLE `tblDocumentStatus` (
`statusID` int(11) NOT NULL auto_increment,
`documentID` int(11) NOT NULL default '0',
`version` smallint(5) unsigned NOT NULL default '0',
PRIMARY KEY (`statusID`),
UNIQUE KEY `documentID` (`documentID`,`version`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentStatusLog`
--
CREATE TABLE `tblDocumentStatusLog` (
`statusLogID` int(11) NOT NULL auto_increment,
`statusID` int(11) NOT NULL default '0',
`status` tinyint(4) NOT NULL default '0',
`comment` text NOT NULL,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
`userID` int(11) NOT NULL default '0',
PRIMARY KEY (`statusLogID`),
KEY `statusID` (`statusID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocuments`
--
CREATE TABLE `tblDocuments` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(150) default NULL,
`comment` text,
`date` int(12) default NULL,
`expires` int(12) default NULL,
`owner` int(11) default NULL,
`folder` int(11) default NULL,
`folderList` text NOT NULL,
`inheritAccess` tinyint(1) NOT NULL default '1',
`defaultAccess` tinyint(4) NOT NULL default '0',
`locked` int(11) NOT NULL default '-1',
`keywords` text NOT NULL,
`sequence` double NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblFolders`
--
CREATE TABLE `tblFolders` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(70) default NULL,
`parent` int(11) default NULL,
`comment` text,
`date` int(12) default NULL,
`owner` int(11) default NULL,
`inheritAccess` tinyint(1) NOT NULL default '1',
`defaultAccess` tinyint(4) NOT NULL default '0',
`sequence` double NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `parent` (`parent`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblGroupMembers`
--
CREATE TABLE `tblGroupMembers` (
`groupID` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '0',
`manager` smallint(1) NOT NULL default '0',
PRIMARY KEY (`groupID`,`userID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblGroups`
--
CREATE TABLE `tblGroups` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(50) default NULL,
`comment` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblKeywordCategories`
--
CREATE TABLE `tblKeywordCategories` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`owner` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblKeywords`
--
CREATE TABLE `tblKeywords` (
`id` int(11) NOT NULL auto_increment,
`category` int(11) NOT NULL default '0',
`keywords` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblNotify`
--
CREATE TABLE `tblNotify` (
`target` int(11) NOT NULL default '0',
`targetType` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '-1',
`groupID` int(11) NOT NULL default '-1',
PRIMARY KEY (`target`,`targetType`,`userID`,`groupID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblSessions`
--
CREATE TABLE `tblSessions` (
`id` varchar(50) NOT NULL default '',
`userID` int(11) NOT NULL default '0',
`lastAccess` int(11) NOT NULL default '0',
`theme` varchar(30) NOT NULL default '',
`language` varchar(30) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblUserImages`
--
CREATE TABLE `tblUserImages` (
`id` int(11) NOT NULL auto_increment,
`userID` int(11) NOT NULL default '0',
`image` blob NOT NULL,
`mimeType` varchar(10) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblUsers`
--
CREATE TABLE `tblUsers` (
`id` int(11) NOT NULL auto_increment,
`login` varchar(50) default NULL,
`pwd` varchar(50) default NULL,
`fullName` varchar(100) default NULL,
`email` varchar(70) default NULL,
`language` varchar(32) NOT NULL,
`theme` varchar(32) NOT NULL,
`comment` text NOT NULL,
`role` smallint(1) NOT NULL default '0', `role` smallint(1) NOT NULL default '0',
`hidden` smallint(1) NOT NULL default '0', `hidden` smallint(1) NOT NULL default '0',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ; ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- dirID is the current target content subdirectory. The last file loaded
-- into MyDMS will be physically stored here. Is updated every time a new
-- file is uploaded.
--
-- dirPath is a essentially a foreign key from tblPathList, referencing the
-- parent directory path for dirID, relative to MyDMS's _contentDir.
--
CREATE TABLE `tblDirPath` (
`dirID` int(11) NOT NULL auto_increment,
`dirPath` varchar(255) NOT NULL,
PRIMARY KEY (`dirPath`,`dirID`)
) ;
-- --------------------------------------------------------
CREATE TABLE `tblPathList` (
`id` int(11) NOT NULL auto_increment,
`parentPath` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ;
-- --------------------------------------------------------
-- -- --------------------------------------------------------
-- Table structure for mandatory reviewers
--
CREATE TABLE `tblMandatoryReviewers` (
`userID` int(11) NOT NULL default '0',
`reviewerUserID` int(11) NOT NULL default '0',
`reviewerGroupID` int(11) NOT NULL default '0',
PRIMARY KEY (`userID`,`reviewerUserID`,`reviewerGroupID`)
) ;
--
-- Table structure for mandatory approvers
--
CREATE TABLE `tblMandatoryApprovers` (
`userID` int(11) NOT NULL default '0',
`approverUserID` int(11) NOT NULL default '0',
`approverGroupID` int(11) NOT NULL default '0',
PRIMARY KEY (`userID`,`approverUserID`,`approverGroupID`)
) ;
--
-- Table structure for events (calendar)
--
CREATE TABLE `tblEvents` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(150) default NULL,
`comment` text,
`start` int(12) default NULL,
`stop` int(12) default NULL,
`date` int(12) default NULL,
`userID` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
) ;
--
-- Initial content for database
-- --
-- dirID is the current target content subdirectory. The last file loaded
INSERT INTO tblFolders VALUES (1, 'DMS', 0, 'DMS root', UNIX_TIMESTAMP(), 1, 0, 2, 0); -- into MyDMS will be physically stored here. Is updated every time a new
INSERT INTO tblUsers VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 'Administrator', 'address@server.com', '', '', '', 1, 0); -- file is uploaded.
INSERT INTO tblUsers VALUES (2, 'guest', NULL, 'Guest User', NULL, '', '', '', 2, 0); --
-- dirPath is a essentially a foreign key from tblPathList, referencing the
-- parent directory path for dirID, relative to MyDMS's _contentDir.
--
CREATE TABLE `tblDirPath` (
`dirID` int(11) NOT NULL auto_increment,
`dirPath` varchar(255) NOT NULL,
PRIMARY KEY (`dirPath`,`dirID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
CREATE TABLE `tblPathList` (
`id` int(11) NOT NULL auto_increment,
`parentPath` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for mandatory reviewers
--
CREATE TABLE `tblMandatoryReviewers` (
`userID` int(11) NOT NULL default '0',
`reviewerUserID` int(11) NOT NULL default '0',
`reviewerGroupID` int(11) NOT NULL default '0',
PRIMARY KEY (`userID`,`reviewerUserID`,`reviewerGroupID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Table structure for mandatory approvers
--
CREATE TABLE `tblMandatoryApprovers` (
`userID` int(11) NOT NULL default '0',
`approverUserID` int(11) NOT NULL default '0',
`approverGroupID` int(11) NOT NULL default '0',
PRIMARY KEY (`userID`,`approverUserID`,`approverGroupID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Table structure for events (calendar)
--
CREATE TABLE `tblEvents` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(150) default NULL,
`comment` text,
`start` int(12) default NULL,
`stop` int(12) default NULL,
`date` int(12) default NULL,
`userID` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Table structure for version
--
CREATE TABLE `tblVersion` (
`date` datetime,
`major` smallint,
`minor` smallint,
`subminor` smallint
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Initial content for database
--
INSERT INTO tblFolders VALUES (1, 'DMS', 0, 'DMS root', UNIX_TIMESTAMP(), 1, 0, 2, 0);
INSERT INTO tblUsers VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 'Administrator', 'address@server.com', '', '', '', 1, 0);
INSERT INTO tblUsers VALUES (2, 'guest', NULL, 'Guest User', NULL, '', '', '', 2, 0);
INSERT INTO tblVersion VALUES (NOW(), 3, 0, 0);