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 */;
-- Database: `precurio44_`
-- --------------------------------------------------------
-- Table structure for table `activity_effect`
CREATE TABLE `activity_effect` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`activity_id` int(11) DEFAULT NULL COMMENT 'activity_log',
`subject_id` int(11) DEFAULT NULL,
`date_created` char(15) DEFAULT NULL,
`active` int(11) DEFAULT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `activity_log`
CREATE TABLE `activity_log` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`appid` varchar(255) DEFAULT NULL,
`type` varchar(255) DEFAULT NULL,
`item_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL COMMENT 'This is the user that is the "actor" in this activity',
`group_id` int(11) DEFAULT '0',
`session_user_id` int(11) DEFAULT NULL COMMENT 'This is the currently logged in user that triggered the activity .Useful for analytic purpose.',
`only_notify_id` int(11) DEFAULT '0' COMMENT 'Restrict notification to only this user_id',
`activity_date` varchar(255) DEFAULT NULL COMMENT 'readable version of the date created',
`date_created` char(15) DEFAULT NULL,
`active` tinyint(3) unsigned DEFAULT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `activity_registry`
CREATE TABLE `activity_registry` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) DEFAULT NULL,
`appid` varchar(255) NOT NULL,
`type` varchar(255) NOT NULL,
`table_name` varchar(255) NOT NULL,
`class_path` varchar(255) DEFAULT NULL,
`class_name` varchar(255) DEFAULT NULL,
`mail_subject` varchar(255) DEFAULT NULL,
`feed_enabled` tinyint(1) DEFAULT '1',
`mail_enabled` tinyint(1) DEFAULT '1',
`sms_enabled` tinyint(1) DEFAULT '1',
`date_created` char(15) DEFAULT NULL,
`active` tinyint(1) DEFAULT '1',
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=56 ;
-- Dumping data for table `activity_registry`
INSERT INTO `activity_registry` VALUES
(1, 'NEW TASK', 'task', 'new', 'tasks', 'team/models/vo/TeamTask.php', 'Task', '<span class=''nametext''><a href=''{9}''>{1}</a></span> created task <i><a href=''{3}''>{8}</a></i>.<br>', '', '{1} created a new task.', 'You have a new task - {8}. From {1}', 1, 1, 1, '1395320628', 1),
(2, 'COMPLETE TASK', 'task', 'complete', 'tasks', 'team/models/vo/TeamTask.php', 'Task', '<span class=''nameText''><a href=''{9}''>{1}</a></span> completed task <i><a href=''{3}''>{8}</a>.</i>', '', '{1} has completed a task.', '', 1, 1, 1, '1395320628', 1),
(3, 'TRANSFER TASK', 'task', 'transfer', 'tasks', 'team/models/vo/TeamTask.php', 'Task', '<span class=''nameText''><a href=''{9}''>{1}</a></span> re-assigned task <i><a href=''{3}''>{8}</a></i>', '', '{1} transferred a task.', '', 1, 1, 1, '1395320628', 1),
(4, 'USER ADDED TO TASK', 'task', 'add_user', 'tasks', 'team/models/vo/TeamTask.php', 'Task', '<span class=''nameText''><a href=''{9}''>{1}</a></span> has been added to task <i><a href=''{3}''>{8}</a>,</i> and will now be notified of progress and changes.', '', '{1} is now following your task.', '', 1, 1, 1, '1395320628', 1),
(5, 'FILE UPLOAD TO TASK', 'task', 'add_file', 'tasks', 'team/models/vo/TeamTask.php', 'Task', '<span class=''nameText''><a href=''{9}''>{1}</a></span> shared a file on task <i><a href=''{3}''>{8}</a></i>', '', '{1} attached a file to your task.', '', 1, 1, 1, '1395320628', 1),
(6, 'NEW DISCUSSION', 'discussion', 'new', 'discussions', 'team/models/vo/TeamDiscussion.php', 'Discussion', '<span class=''nameText''><a href=''{9}''>{1}</a></span> created discussion <i><a href=''{3}''>{8}</a>.</i>', '<br>', '{1} started a discussion with you', '<br>', 1, 1, 1, '1395320628', 1),
(7, 'USER ADDED TO DISCUSSION', 'discussion', 'add_user', 'discussions', 'team/models/vo/TeamDiscussion.php', 'Discussion', '<span class=''nameText''><a href=''{9}''>{1}</a></span> has joined discussion <i><a href=''{3}''>{8}</a>.</i>', '', '{1} has joined discussion {8}.', '', 1, 1, 1, '1395320628', 1),
(8, 'COMMENT ON DISCUSSION', 'discussion', 'comment', 'discussions', 'team/models/vo/TeamDiscussion.php', 'Discussion', '<span class=''nameText''><a href=''{9}''>{1}</a></span> posted a message to discussion <i><a href=''{3}''>{8}</a></i>', '', 'New comment on discussion {8}.', '', 1, 1, 1, '1395320628', 1),
(9, 'COMMENT ON TASK', 'task', 'comment', 'tasks', 'team/models/vo/TeamTask.php', 'Task', '<span class=''nameText''><a href=''{9}''>{1}</a></span> posted a comment on task <i><a href=''{3}''>{8}</a></i>', '', 'New comment on task.', '', 1, 1, 1, '1395320628', 1),
(10, 'VIEW DISCUSSION', 'discussion', 'view', 'discussions', 'team/models/vo/TeamDiscussion.php', 'Discussion', '', '', '', '', 0, 0, 0, '1395320628', 1),
(11, 'NEW CONTENT', 'cms', 'new', 'content', 'cms/models/vo/Content.php', 'Content', '<span class=''nameText''><a href=''{9}''>{1}</a></span> created content <i><a href=''{3}''>{8}</a></i>', '', 'New content has been published', '', 1, 1, 1, '1395320628', 1),
(12, 'EDIT CONTENT', 'cms', 'edit', 'content', 'cms/models/vo/Content.php', 'Content', '', '', '', '', 0, 0, 0, '1395320628', 1),
(13, 'VIEW CONTENT', 'cms', 'view', 'content', 'cms/models/vo/Content.php', 'Content', '', '', '', '', 0, 0, 0, '1395320628', 1),
(14, 'NEW DOCUMENT', 'document', 'new', 'documents', 'team/models/vo/TeamDocument.php', 'Document', '<span class=''nameText''><a href=''{9}''>{1}</a></span> uploaded <i><a href=''{3}''>{8}</a></i>', '<span class=''nameText''><a href=''{9}''>{1}</a></span> uploaded <i><a href=''{3}''>{8}</a></i>', '{1} has shared a file with you', '', 1, 1, 1, '1395320628', 1),
(15, 'VIEW DOCUMENT', 'document', 'view', 'documents', 'team/models/vo/TeamDocument.php', 'Document', '', '', '', '', 0, 0, 0, '1395320628', 1),
(16, 'SHARE DOCUMENT', 'document', 'share', 'documents', 'team/models/vo/TeamDocument.php', 'Document', '<span class=''nameText''><a href=''{9}''>{1}</a></span> shared <i><a href=''{3}''>{8}</a></i>', '', 'A document has been shared with you', '', 1, 1, 1, '1395320628', 1),
(17, 'DOWNLOAD DOCUMENT', 'document', 'download', 'documents', 'team/models/vo/TeamDocument.php', 'Document', '', '', '', '', 0, 0, 0, '1395320628', 1),
(18, 'SHARE CONTENT', 'cms', 'share', 'content', 'cms/models/vo/Content.php', 'Content', '<span class=''nameText''><a href=''{9}''>{1}</a></span> shared <i><a href=''{3}''>{8}</a></i>', '', 'A content has been shared with you.', '', 1, 1, 1, '1395320628', 1),
(19, 'COMMENT ON CONTENT', 'cms', 'comment', 'content', 'cms/models/vo/Content.php', 'Content', '<span class=''nameText''><a href=''{9}''>{1}</a></span> posted a comment on content <i><a href=''{3}''>{8}</a></i>', '', 'New comment on content {8}.', '', 1, 1, 1, '1395320628', 1),
(20, 'COMMENT ON DOCUMENT', 'document', 'comment', 'documents', 'team/models/vo/TeamDocument.php', 'Document', '<span class=''nameText''><a href=''{9}''>{1}</a></span> posted a comment on document <i><a href=''{3}''>{8}</a></i>', '', 'New comment on document {8}.', '', 1, 1, 1, '1395320628', 1),
(21, 'SHARE DOCUMENT WITH EXTRANET', 'document', 'extranet_share', 'documents', 'team/models/vo/TeamDocument.php', 'Document', '', '{1} has shared the following file with you. <br/>\n\n{8}\n<br/>\n<a href=''{3}''>Click on this link to view the file.</a>', '{1} has shared a file with you', '', 0, 1, 0, '1395320628', 1),
(22, 'CHECKOUT DOCUMENT', 'document', 'checkout', 'documents', 'team/models/vo/TeamDocument.php', 'Document', '<span class=''nameText''><a href=''{9}''>{1}</a></span> checkout out <i><a href=''{3}''>{8}</a></i> for editing.', '', '', '', 1, 0, 0, '1395320628', 1),
(23, 'ADD USER TO TEAM', 'team', 'add_user', 'groups', 'team/models/vo/Team.php', '', '', '<span class=''nameText''><a href=''{9}''>{1}</a></span> has invited you to collaborate with team "{8}". <a href=''{3}''>Click here to visit the team space</a>.', '{1} has invited you to a team.', '', 0, 1, 0, '1395320628', 1),
(24, 'NEW TEAM', 'team', 'new', 'groups', 'team/models/vo/Team.php', '', '', '', '', '', 0, 0, 0, '1395320628', 1),
(25, 'NEW DOCUMENT VERSION/CHECK-IN DOCUMENT', 'document', 'new_version', 'documents', 'team/models/vo/TeamDocument.php', 'Document', '<span class=''nameText''><a href=''{9}''>{1}</a></span> uploaded a new version of <i><a href=''{3}''>{8}</a></i>', '', '', '', 1, 0, 0, '1395320628', 1),
(26, 'NEW NOTE', 'note', 'new', 'notes', 'team/models/vo/TeamNote.php', 'Note', '<span class=''nameText''><a href=''{9}''>{1}</a></span> added a new note <i><a href=''{3}''>{8}</a></i>', '', 'A new note has been created', '', 1, 1, 0, '1395320628', 1),
(27, 'EDIT NOTE', 'note', 'edit', 'notes', 'team/models/vo/TeamNote.php', 'Note', '<span class=''nameText''><a href=''{9}''>{1}</a></span> edited note <i><a href=''{3}''>{8}</a></i>', '', 'Note ''{8}'' has been updated', '', 1, 0, 0, '1395320628', 1),
(28, 'VIEW NOTE', 'note', 'view', 'notes', 'team/models/vo/TeamNote.php', 'Note', '', '', '', '', 0, 0, 0, '1395320628', 1),
(29, 'COMMENT ON NOTE', 'note', 'comment', 'notes', 'team/models/vo/TeamNote.php', 'Note', '<span class=''nameText''><a href=''{9}''>{1}</a></span> posted a comment on note <i><a href=''{3}''>{8}</a></i>', '', 'New comment on note ''{8}', '', 1, 1, 1, '1395320628', 1),
(30, 'INITATE NEW WORKFLOW FORM', 'workflow', 'new', 'user_processes', 'workflow/models/vo/UserProcess.php', 'UserProcess', '<span class=''nameText''><a href=''{9}''>{1}</a></span> initiated <i><a href=''{3}''>new workflow request</a></i>', '', '', '', 0, 0, 0, '1395320628', 1),
(31, 'COMMENT ON FORM', 'workflow', 'comment', 'user_processes', 'workflow/models/vo/UserProcess.php', 'UserProcess', '<span class=''nameText''><a href=''{9}''>{1}</a></span> posted a comment on form <i><a href=''{3}''>{8}</a></i>', '', '', '', 1, 0, 0, '1395320628', 1),
(32, 'WORKFLOW PENDING APPROVAL', 'workflow', 'pending', 'user_processes', 'workflow/models/vo/UserProcess.php', 'UserProcess', 'Your <a href=''{3}''>workflow request</a> has been received and will be handled by <span class=''nameText''><a href=''{9}''>{1}</a>.</span>', 'Your <a href="http://localhost:88/precurio4/public/admin/notification/edit/id/{3}">workflow request</a> [{8}] has been received and will be handled by <span class="nameText"><a href="http://localhost:88/precurio4/public/admin/notification/edit/id/{9}">{1}</a>.</span><br>', 'Your form is pending approval', '', 1, 1, 0, '1395320628', 1),
(33, 'WORKFLOW APPROVED', 'workflow', 'approved', 'user_processes', 'workflow/models/vo/UserProcess.php', 'UserProcess', '<span class=''nameText''><a href=''{9}''>{1}</a></span> approved <i><a href=''{3}''>request</a></i> ', '', 'Form has been approved', '', 1, 1, 0, '1395320628', 1),
(34, 'WORKFLOW NOT APPROVED', 'workflow', 'rejected', 'user_processes', 'workflow/models/vo/UserProcess.php', 'UserProcess', '<span class=''nameText''><a href=''{9}''>{1}</a></span> did NOT approve <i><a href=''{3}''>request</a></i> ', '', 'Form has been declined', '', 1, 1, 0, '1395320628', 1),
(35, 'WORKFLOW TRANSFERED', 'workflow', 'transfered', 'user_processes', 'workflow/models/vo/UserProcess.php', 'UserProcess', '<span class=''nameText''><a href=''{9}''>{1}</a></span> transfered <i><a href=''{3}''>request</a></i> ', '', '', '', 1, 0, 0, '1395320628', 1),
(36, 'WORKFLOW COMPLETE', 'workflow', 'completed', 'user_processes', 'workflow/models/vo/UserProcess.php', 'UserProcess', '<i><a href=''{3}''>Workflow process</a></i> is now complete.', '', 'Form approval is now complete.', '', 1, 1, 0, '1395320628', 1),
(37, 'NEW USER STATUS', 'user', 'status', 'status_messages', 'user/models/vo/UserStatus.php', 'UserStatus', '<span class=''nameText''><a href=''{7}/user/profile/view/{5}''>{1} </a></span>: {8}', '', '', '', 1, 0, 0, '1395320628', 1),
(38, 'USER CHANGE PROFILE PICTURE', 'user', 'picture', 'user_details', 'user/models/vo/User.php', 'User', '<span class=''nameText''><a href=''{7}/user/profile/view/{5}''>{1} </a></span> has a new profile picture.', '', '', '', 1, 0, 0, '1395320628', 1),
(39, 'USER CHANGE PHONE NUMBER', 'user', 'phone', 'user_details', 'user/models/vo/User.php', 'User', '<span class=''nameText''><a href=''{7}/user/profile/view/{5}''>{1} </a></span> has updated {2} phone number.', '', '', '', 1, 0, 0, '1395320628', 1),
(40, 'USER CHANGE LOCATION', 'user', 'location', 'user_details', 'user/models/vo/User.php', 'User', '<span class=''nameText''><a href=''{7}/user/profile/view/{5}''>{1} </a></span> has moved to a new location.', '', '', '', 1, 0, 0, '1395320628', 1),
(41, 'USER CHANGE JOB TITLE', 'user', 'job', 'user_details', 'user/models/vo/User.php', 'User', '<span class=''nameText''><a href=''{7}/user/profile/view/{5}''>{1} </a></span> has a new job title.', '', '', '', 1, 0, 0, '1395320628', 1),
(42, 'USER CHANGE DEPARTMENT', 'user', 'department', 'user_details', 'user/models/vo/User.php', 'User', '<span class=''nameText''><a href=''{7}/user/profile/view/{5}''>{1} </a></span> is now in a new department.', '', '', '', 1, 0, 0, '1395320628', 1),
(43, 'USER CHANGE PASSWORD', 'user', 'password', 'user_details', 'user/models/vo/User.php', 'User', '', '', '', '', 0, 0, 0, '1395320628', 1),
(44, 'INVITE USER TO EVENT', 'event', 'add_user', 'events', 'event/models/vo/Event.php', 'Event', '<span class=''nameText''><a href=''{7}/user/profile/view/{5}''>{1} </a></span> invited you to event <i><a href=''{3}''>{8}</a></i>.', '', 'New Event \\\\"{8}\\\\".', '', 1, 1, 1, '1395320628', 1),
(45, 'NEW EVENT', 'event', 'new', 'events', 'event/models/vo/Event.php', 'Event', '<span class=''nameText''><a href=''{7}/user/profile/view/{5}''>{1} </a></span> has created a new event <i><a href=''{3}''>{8}</a></i>.', '', '', '', 1, 0, 0, '1395320628', 1),
(46, 'PHOTO ADDED TO EVENT', 'event', 'add_photo', 'events', 'event/models/vo/Event.php', 'Event', '<span class=''nameText''><a href=''{7}/user/profile/view/{5}''>{1} </a></span> has added a new photo to event <i><a href=''{3}''>{8}</a></i>.', '', 'New Event Photo.', '', 1, 1, 1, '1395320628', 1),
(47, 'EDIT EVENT', 'event', 'edit', 'events', 'event/models/vo/Event.php', 'Event', '<span class=''nameText''><a href=''{7}/user/profile/view/{5}''>{1} </a></span> made some changes to event <i><a href=''{3}''>{8}</a></i>.', '', '', '', 1, 0, 0, '1395320628', 1),
(48, 'FILE ADDED TO EVENT', 'event', 'add_file', 'events', 'event/models/vo/Event.php', 'Event', '<span class=''nameText''><a href=''{7}/user/profile/view/{5}''>{1} </a></span> has added a new document to event <i><a href=''{3}''>{8}</a></i>.', '', 'New Event Document.', '', 1, 1, 1, '1395320628', 1),
(49, 'TASK SHARED WITH TEAM', 'task', 'add_group', 'tasks', 'team/models/vo/TeamTask.php', 'Task', '<span class=''nameText''><a href=''{9}''>{1}</a></span> has been added to task <i><a href=''{3}''>{8}</a></i>.', '', '{1} is now following your task', '', 1, 1, 1, '1395320628', 1),
(50, 'TEAM ADDED TO DISCUSSION', 'discussion', 'add_group', 'discussions', 'team/models/vo/TeamDiscussion.php', 'Discussion', '<span class=''nameText''><a href=''{9}''>{1}</a></span> has joined discussion <i><a href=''{3}''>{8}</a>.</i>', '', '', '', 1, 0, 1, '1395320628', 1),
(51, '', 'note', 'add_group', 'notes', 'team/models/vo/TeamNote.php', 'Note', '', '', '', '', 0, 0, 0, '1395320628', 1),
(52, 'USER FORGOT PASSWORD', 'user', 'forgot', 'user_details', 'user/models/vo/User.php', 'User', '', '<div><span style=''font-size: 1em; line-height: 1.4;''>This email is sent to your because you have requested to reset your password. If you didn''t initiate this request, please report this to the administrator.</span><br></div><div><br></div><div>To continue with your password reset, <a href="{3}">please click here</a>.</div>', 'Reset your password', '', 0, 1, 0, '1395320628', 1),
(53, 'NEW USER REGISTERED BY ADMIN', 'user', 'new', 'user_details', 'user/models/vo/User.php', 'User', '', 'You have been registered on the Precurio intranet platform. <br/> <br/>\n\nBelow is your login information:<br/>\n\n{8}\n<br/> <br/>\n<a href="{3}">Click here to complete your profile on your corporate intranet.</a>', 'You have been registered on the intranet', '', 0, 1, 1, '1395320628', 1),
(54, 'FILE ADDED TO DISCUSSION', 'discussion', 'add_file', 'discussions', 'team/models/vo/TeamDiscussion.php', 'Discussion', '<span class=''nameText''><a href=''{7}/user/profile/view/{5}''>{1} </a></span> has attached a new file to discussion <i><a href=''{3}''>{8}</a></i>.', '', 'New File on Discussion', '', 1, 1, 1, '1395320628', 1),
(55, 'EMAIL FORM TO APPROVER', 'workflow', 'form_email', 'user_processes', 'workflow/models/vo/UserProcess.php', 'UserProcess', '', 'See <a href="{3}" title="" target="">Workflow request</a> below</br> {1}', 'A form has been submited', '', 0, 1, 0, '1395320628', 1);
-- --------------------------------------------------------
-- Table structure for table `analytics`
CREATE TABLE `analytics` (
`id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL,
`session_id` char(30) DEFAULT NULL,
`module` varchar(255) DEFAULT NULL,
`controller` varchar(255) DEFAULT NULL,
`action` varchar(255) DEFAULT NULL,
`date_created` char(15) NOT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `app_documents`
CREATE TABLE `app_documents` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`appid` char(10) DEFAULT NULL,
`item_id` int(10) NOT NULL,
`content_id` int(10) unsigned NOT NULL,
`user_id` int(10) unsigned NOT NULL,
`date_created` char(15) DEFAULT NULL,
`active` tinyint(1) unsigned NOT NULL DEFAULT '1',
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `app_tags`
CREATE TABLE `app_tags` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`appid` char(10) DEFAULT NULL,
`item_id` int(10) NOT NULL,
`tag_id` int(10) unsigned NOT NULL,
`user_id` int(10) unsigned NOT NULL,
`date_created` char(15) DEFAULT NULL,
`active` tinyint(1) unsigned NOT NULL DEFAULT '1',
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `bugs`
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL,
`type` char(20) NOT NULL,
`component` char(40) NOT NULL,
`title` varchar(255) NOT NULL,
`description` text NOT NULL,
`date_created` char(15) DEFAULT NULL,
`active` tinyint(3) unsigned DEFAULT NULL,
`sent` tinyint(3) unsigned NOT NULL DEFAULT '0',
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `categorys`
CREATE TABLE `categorys` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL COMMENT 'user that created the category',
`parent_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'category id to which it is a sub category of. parent categories have their parent_id as 0',
`title` varchar(255) DEFAULT NULL,
`access_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '-1 for private, 0 for public, 1 for shared',
`appid` varchar(30) NOT NULL DEFAULT 'cms' COMMENT 'App that is making use of category feature',
`date_created` char(20) DEFAULT NULL,
`active` tinyint(3) unsigned NOT NULL DEFAULT '1',
`deleted` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'this indicates if a category has been permanently deleted from the recycle bin. A value of 1 means the category has been deleted permanently, while 0 means the category is still in recycle bin',
`is_folder` tinyint(1) unsigned NOT NULL DEFAULT '1',
`is_photo` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'indicates if it is an album folder',
`is_site` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'indicates if it is a site category',
`is_locked` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'indicates if a folder has been locked',
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `components`
CREATE TABLE `components` (
`componentid` int(11) NOT NULL AUTO_INCREMENT,
`componentform` int(11) DEFAULT NULL,
`section` int(11) DEFAULT '0',
`rowid` int(11) DEFAULT NULL,
`componenttype` varchar(10) DEFAULT NULL,
`componentlabel` varchar(250) DEFAULT NULL,
`componentrequired` int(1) DEFAULT '0',
`componentdefaultvalue` varchar(250) DEFAULT NULL,
`frm_database` varchar(255) DEFAULT 'self',
`frm_table` varchar(255) DEFAULT NULL,
`frm_label_field` varchar(255) DEFAULT 'title',
`frm_value_field` varchar(255) DEFAULT 'id',
`lastmodified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`componentid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=84 ;
-- Dumping data for table `components`
INSERT INTO `components` VALUES
(1, 1, 0, 1, 'dropdown', 'Type of Leave', 0, 'Annual', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(2, 1, 0, 2, 'number', 'Number of Days', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(3, 1, 0, 3, 'date', 'Start Date', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(4, 1, 0, 4, 'date', 'End Date', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(5, 1, 0, 5, 'text', 'Contact Telephone during leave', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(6, 1, 0, 6, 'textarea', 'Contact Address during leave', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(7, 1, 0, 7, 'textarea', 'Notes (if any)', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(8, 1, 3, 1, 'signature', 'signature', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(9, 1, 4, 1, 'signature', 'signature', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(10, 2, 0, 1, 'user', 'Name of Person Travelling', 1, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(11, 2, 0, 2, 'department', 'Department', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(12, 2, 0, 3, 'dropdown', 'Type of Travel', 1, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(13, 2, 0, 4, 'textarea', 'Purpose of Travel', 1, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(14, 2, 0, 5, 'text', 'Destination', 1, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(15, 2, 0, 6, 'date', 'Departure Date', 1, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(16, 2, 0, 7, 'text', 'Departure Time', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(17, 2, 0, 8, 'date', 'Arrival Date', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(18, 2, 0, 9, 'text', 'Arrival Time', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(19, 2, 0, 10, 'dropdown', 'Means of transport', 1, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(20, 2, 0, 11, 'check', 'Preferences', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(21, 2, 0, 12, 'textarea', 'Notes (if any)', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(22, 2, 5, 1, 'signature', 'signature', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(23, 2, 6, 1, 'signature', 'signature', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(24, 2, 6, 2, 'price', 'Accommodation Cost', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(25, 2, 6, 3, 'price', 'Flight Tickets', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(26, 2, 6, 4, 'price', 'Road Transportation', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(27, 2, 6, 5, 'price', 'Other Costs', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(28, 3, 0, 2, 'text', 'Item', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(29, 3, 0, 3, 'textarea', 'Specifications (if any)', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(30, 3, 0, 4, 'textarea', 'Purpose', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(31, 3, 0, 5, 'number', 'Quantity', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(32, 3, 0, 6, 'price', 'Price (if known)', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(33, 3, 0, 7, 'date', 'Required Delivery date', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(34, 3, 0, 8, 'textarea', 'Suggested Supppliers', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(35, 3, 0, 9, 'textarea', 'Notes (if any)', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(36, 3, 7, 1, 'signature', 'signature', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(37, 3, 8, 1, 'signature', 'signature', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(38, 5, 0, 2, 'text', 'Item Requested', 1, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(39, 5, 0, 3, 'textarea', 'Description', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(40, 5, 0, 4, 'number', 'Quantity', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(41, 5, 9, 1, 'signature', 'signature', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(42, 5, 10, 1, 'signature', 'signature', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(43, 5, 10, 2, 'number', 'Quantity Issued', 1, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(44, 5, 10, 3, 'date', 'Date Issued', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(45, 4, 0, 3, 'price', 'Amount Requested', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(46, 4, 0, 2, 'textarea', 'Purpose / Justification', 1, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(47, 4, 0, 1, 'date', 'Date needed', 1, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(48, 4, 0, 4, 'date', 'Date to be returned', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(49, 4, 11, 1, 'signature', 'signature', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(50, 4, 12, 1, 'signature', 'signature', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(51, 4, 12, 2, 'price', 'Amount Issued', 1, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(52, 4, 12, 3, 'date', 'Date Issued', 1, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(53, 6, 0, 1, 'dropdown', 'Room', 1, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(54, 6, 0, 2, 'textarea', 'Purpose', 1, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(55, 6, 0, 3, 'date', 'Date', 1, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(56, 6, 0, 4, 'text', 'Time', 1, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(57, 6, 0, 5, 'text', 'Duration (hours)', 0, '1hr', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(58, 6, 0, 6, 'dropdown', 'Recurring', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(59, 6, 0, 7, 'textarea', 'Additional Equipment Needed', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(60, 6, 13, 1, 'signature', 'signature', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(61, 7, 0, 1, 'price', 'Amount of Reimbursement', 1, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(62, 7, 0, 2, 'textarea', 'Description of Expense', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(63, 7, 0, 3, 'text', 'Account Number', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(64, 7, 14, 1, 'signature', 'signature', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(65, 7, 15, 1, 'signature', 'signature', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(66, 7, 15, 2, 'price', 'Amount Approved', 1, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(67, 7, 15, 3, 'date', 'Date Approved', 1, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(68, 8, 0, 1, 'user', 'Requested By', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(69, 8, 0, 2, 'department', 'Department', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(70, 8, 0, 3, 'location', 'Location', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(71, 8, 16, 1, 'signature', 'signature', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(72, 8, 16, 2, 'check', 'Signature', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(73, 8, 0, 4, 'file', 'CV', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(74, 9, 0, 1, 'text', 'Name of Current', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(75, 9, 0, 2, 'date', 'Date of Open', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(76, 9, 17, 1, 'text', 'Alternative Name', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(77, 9, 18, 1, 'signature', 'signature', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(78, 9, 19, 1, 'text', 'Finance Personnel', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(79, 1, 20, 1, 'signature', 'signature', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(80, 10, 0, 1, 'text', 'Visitor Name', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(81, 10, 0, 2, 'dropdown', 'Visitor Type', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(82, 10, 21, 1, 'signature', 'signature', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]'),
(83, 10, 0, 3, 'radio', 'Official', 0, '', 'self', NULL, 'title', 'id', NULL, '[[regtime]]');
-- --------------------------------------------------------
-- Table structure for table `contacts`
CREATE TABLE `contacts` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`account_id` int(10) unsigned NOT NULL DEFAULT '0',
`user_id` int(10) unsigned DEFAULT NULL,
`full_name` varchar(255) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`company` varchar(255) DEFAULT NULL,
`work_phone` varchar(255) DEFAULT NULL,
`mobile_phone` varchar(255) DEFAULT NULL,
`fax` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`website` varchar(255) DEFAULT NULL,
`job_title` varchar(255) DEFAULT NULL,
`twitter` varchar(255) DEFAULT NULL,
`shared` tinyint(3) unsigned NOT NULL DEFAULT '1',
`date_created` char(15) DEFAULT NULL,
`last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`active` tinyint(4) unsigned NOT NULL DEFAULT '1',
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `content`
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) DEFAULT NULL,
`image_path` varchar(255) DEFAULT NULL,
`user_id` int(10) unsigned DEFAULT '0',
`poll_id` int(10) unsigned DEFAULT '0',
`url` varchar(255) NOT NULL DEFAULT '#',
`keyword` varchar(255) DEFAULT '',
`is_featured` tinyint(3) unsigned DEFAULT '0',
`is_photo` tinyint(3) unsigned DEFAULT '0',
`is_document` tinyint(3) unsigned DEFAULT '0',
`date_created` char(15) DEFAULT NULL,
`last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`active` tinyint(1) unsigned NOT NULL DEFAULT '1',
`deleted` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT 'A value of 1 means the content has been deleted permanently, while 0 means the content is still in recycle bin',
`num_of_hits` int(10) unsigned NOT NULL DEFAULT '0',
`rating` int(11) NOT NULL DEFAULT '0',
`is_public` tinyint(1) unsigned NOT NULL DEFAULT '1',
`template` varchar(255) DEFAULT NULL COMMENT 'a default template is handled at code level',
`is_page` tinyint(1) unsigned DEFAULT '0',
`disable_comments` tinyint(1) unsigned DEFAULT '0',
`is_site` tinyint(1) unsigned DEFAULT '0',
`confirm_read` tinyint(1) unsigned DEFAULT '0',
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `content_approval`
CREATE TABLE `content_approval` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`featured` tinyint(3) unsigned NOT NULL DEFAULT '0',
`advert` tinyint(3) unsigned NOT NULL DEFAULT '0',
`news` tinyint(3) unsigned NOT NULL DEFAULT '0',
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
`group_content` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'this is ignored if group_id = 0',
`group_id` int(10) unsigned NOT NULL DEFAULT '0',
`active` tinyint(3) unsigned NOT NULL DEFAULT '1',
`date_created` char(15) NOT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `content_categorys`
CREATE TABLE `content_categorys` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`category_id` int(11) NOT NULL,
`content_id` int(10) unsigned NOT NULL,
`user_id` int(10) unsigned NOT NULL COMMENT 'user that assigned the content to the category',
`date_created` char(20) DEFAULT NULL,
`active` tinyint(4) DEFAULT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `content_lock_history`
CREATE TABLE `content_lock_history` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`content_id` int(10) unsigned NOT NULL,
`user_id` int(10) unsigned NOT NULL,
`lock` tinyint(1) unsigned NOT NULL,
`active` tinyint(1) unsigned NOT NULL DEFAULT '1',
`date_created` char(15) DEFAULT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `content_ratings`
CREATE TABLE `content_ratings` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`content_id` int(10) unsigned DEFAULT NULL,
`user_id` int(10) unsigned DEFAULT NULL,
`value` tinyint(4) DEFAULT NULL,
`date_created` char(15) DEFAULT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `department`
CREATE TABLE `department` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) DEFAULT NULL,
`group_id` int(10) unsigned NOT NULL,
`colour_code` varchar(255) DEFAULT NULL,
`date_created` char(255) DEFAULT NULL,
`active` tinyint(3) unsigned NOT NULL DEFAULT '1',
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `discussions`
CREATE TABLE `discussions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`category_id` int(11) NOT NULL,
`title` varchar(255) DEFAULT NULL,
`creator_user_id` int(11) DEFAULT NULL,
`date_created` char(15) DEFAULT NULL,