From 9fe3436eaadc7bf55e9a30310371dcc6239f6aac Mon Sep 17 00:00:00 2001 From: anonymoususer72041 <247563575+anonymoususer72041@users.noreply.github.com> Date: Tue, 5 May 2026 14:30:00 +0200 Subject: [PATCH 1/4] Clean up schema snapshot comments --- db/cats_schema.sql | 225 ++++++++++++++++++++++----------------------- 1 file changed, 109 insertions(+), 116 deletions(-) diff --git a/db/cats_schema.sql b/db/cats_schema.sql index 5807a8888..72ffea042 100755 --- a/db/cats_schema.sql +++ b/db/cats_schema.sql @@ -1,17 +1,10 @@ -/* -SQLyog Enterprise - MySQL GUI v8.02 RC -MySQL - 5.1.31-community : Database - cats_dev -********************************************************************* -*/ - - /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -/*Table structure for table `access_level` */ +/* Table structure for table `access_level` */ CREATE TABLE `access_level` ( `access_level_id` int(11) NOT NULL DEFAULT '0', @@ -21,7 +14,7 @@ CREATE TABLE `access_level` ( KEY `IDX_access_level` (`short_description`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `access_level` */ +/* Data for the table `access_level` */ insert into `access_level`(`access_level_id`,`short_description`,`long_description`) values (0,'Account Disabled','Disabled - The lowest access level. User cannot log in.'); insert into `access_level`(`access_level_id`,`short_description`,`long_description`) values (100,'Read Only','Read Only - A standard user that can view data on the system in a read-only mode.'); @@ -30,7 +23,7 @@ insert into `access_level`(`access_level_id`,`short_description`,`long_descript insert into `access_level`(`access_level_id`,`short_description`,`long_description`) values (400,'Site Administrator','Site Administrator - All lower access, plus the ability to add, edit, and remove site users, as well as the ability to edit site settings.'); insert into `access_level`(`access_level_id`,`short_description`,`long_description`) values (500,'Root','Root Administrator - All lower access, plus the ability to add, edit, and remove sites, as well as the ability to assign Site Administrator status to a user.'); -/*Table structure for table `activity` */ +/* Table structure for table `activity` */ CREATE TABLE `activity` ( `activity_id` int(11) NOT NULL AUTO_INCREMENT, @@ -57,9 +50,9 @@ CREATE TABLE `activity` ( KEY `IDX_activity_site_type_created_job` (`site_id`,`data_item_type`,`date_created`,`entered_by`,`joborder_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `activity` */ +/* Data for the table `activity` */ -/*Table structure for table `activity_type` */ +/* Table structure for table `activity_type` */ CREATE TABLE `activity_type` ( `activity_type_id` int(11) NOT NULL DEFAULT '0', @@ -68,7 +61,7 @@ CREATE TABLE `activity_type` ( KEY `IDX_activity_type1` (`short_description`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `activity_type` */ +/* Data for the table `activity_type` */ insert into `activity_type`(`activity_type_id`,`short_description`) values (100,'Not reached'); insert into `activity_type`(`activity_type_id`,`short_description`) values (200,'Email'); @@ -79,7 +72,7 @@ insert into `activity_type`(`activity_type_id`,`short_description`) values (600 insert into `activity_type`(`activity_type_id`,`short_description`) values (700,'Call (Missed)'); insert into `activity_type`(`activity_type_id`,`short_description`) values (800,'Status Change'); -/*Table structure for table `attachment` */ +/* Table structure for table `attachment` */ CREATE TABLE `attachment` ( `attachment_id` int(11) NOT NULL AUTO_INCREMENT, @@ -107,9 +100,9 @@ CREATE TABLE `attachment` ( KEY `IDX_site_file_size_created` (`site_id`,`file_size_kb`,`date_created`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `attachment` */ +/* Data for the table `attachment` */ -/*Table structure for table `calendar_event` */ +/* Table structure for table `calendar_event` */ CREATE TABLE `calendar_event` ( `calendar_event_id` int(11) NOT NULL AUTO_INCREMENT, @@ -135,9 +128,9 @@ CREATE TABLE `calendar_event` ( KEY `IDX_site_data_item_type_id` (`site_id`,`data_item_type`,`data_item_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `calendar_event` */ +/* Data for the table `calendar_event` */ -/*Table structure for table `calendar_event_type` */ +/* Table structure for table `calendar_event_type` */ CREATE TABLE `calendar_event_type` ( `calendar_event_type_id` int(11) NOT NULL DEFAULT '0', @@ -147,7 +140,7 @@ CREATE TABLE `calendar_event_type` ( KEY `IDX_short_description` (`short_description`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `calendar_event_type` */ +/* Data for the table `calendar_event_type` */ insert into `calendar_event_type`(`calendar_event_type_id`,`short_description`,`icon_image`) values (100,'Call','images/phone.gif'); insert into `calendar_event_type`(`calendar_event_type_id`,`short_description`,`icon_image`) values (200,'Email','images/email.gif'); @@ -156,7 +149,7 @@ insert into `calendar_event_type`(`calendar_event_type_id`,`short_description`, insert into `calendar_event_type`(`calendar_event_type_id`,`short_description`,`icon_image`) values (500,'Personal','images/personal.gif'); insert into `calendar_event_type`(`calendar_event_type_id`,`short_description`,`icon_image`) values (600,'Other',''); -/*Table structure for table `candidate` */ +/* Table structure for table `candidate` */ CREATE TABLE `candidate` ( `candidate_id` int(11) NOT NULL AUTO_INCREMENT, @@ -211,9 +204,9 @@ CREATE TABLE `candidate` ( KEY `IDX_site_id_email_1_2` (`site_id`,`email1`(8),`email2`(8)) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `candidate` */ +/* Data for the table `candidate` */ -/*Table structure for table `candidate_duplicates` */ +/* Table structure for table `candidate_duplicates` */ CREATE TABLE `candidate_duplicates` ( `old_candidate_id` int(11) NOT NULL, @@ -224,9 +217,9 @@ CREATE TABLE `candidate_duplicates` ( KEY `IDX_new_candidate_id` (`new_candidate_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `candidate_duplicates` */ +/* Data for the table `candidate_duplicates` */ -/*Table structure for table `candidate_joborder` */ +/* Table structure for table `candidate_joborder` */ CREATE TABLE `candidate_joborder` ( `candidate_joborder_id` int(11) NOT NULL AUTO_INCREMENT, @@ -250,9 +243,9 @@ CREATE TABLE `candidate_joborder` ( KEY `IDX_joborder_id` (`joborder_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `candidate_joborder` */ +/* Data for the table `candidate_joborder` */ -/*Table structure for table `candidate_joborder_status` */ +/* Table structure for table `candidate_joborder_status` */ CREATE TABLE `candidate_joborder_status` ( `candidate_joborder_status_id` int(11) NOT NULL DEFAULT '0', @@ -264,7 +257,7 @@ CREATE TABLE `candidate_joborder_status` ( KEY `IDX_short_description` (`short_description`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `candidate_joborder_status` */ +/* Data for the table `candidate_joborder_status` */ insert into `candidate_joborder_status`(`candidate_joborder_status_id`,`short_description`,`can_be_scheduled`,`triggers_email`,`is_enabled`) values (0,'No Status',0,0,1); insert into `candidate_joborder_status`(`candidate_joborder_status_id`,`short_description`,`can_be_scheduled`,`triggers_email`,`is_enabled`) values (100,'No Contact',0,0,1); @@ -278,7 +271,7 @@ insert into `candidate_joborder_status`(`candidate_joborder_status_id`,`short_d insert into `candidate_joborder_status`(`candidate_joborder_status_id`,`short_description`,`can_be_scheduled`,`triggers_email`,`is_enabled`) values (700,'Client Declined',0,0,1); insert into `candidate_joborder_status`(`candidate_joborder_status_id`,`short_description`,`can_be_scheduled`,`triggers_email`,`is_enabled`) values (800,'Placed',0,1,1); -/*Table structure for table `candidate_joborder_status_history` */ +/* Table structure for table `candidate_joborder_status_history` */ CREATE TABLE `candidate_joborder_status_history` ( `candidate_joborder_status_history_id` int(11) NOT NULL AUTO_INCREMENT, @@ -297,9 +290,9 @@ CREATE TABLE `candidate_joborder_status_history` ( KEY `IDX_site_joborder_status_to` (`site_id`,`joborder_id`,`status_to`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `candidate_joborder_status_history` */ +/* Data for the table `candidate_joborder_status_history` */ -/*Table structure for table `candidate_jobordrer_status_type` */ +/* Table structure for table `candidate_jobordrer_status_type` */ CREATE TABLE `candidate_jobordrer_status_type` ( `candidate_status_type_id` int(11) NOT NULL DEFAULT '0', @@ -309,9 +302,9 @@ CREATE TABLE `candidate_jobordrer_status_type` ( KEY `IDX_short_description` (`short_description`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `candidate_jobordrer_status_type` */ +/* Data for the table `candidate_jobordrer_status_type` */ -/*Table structure for table `candidate_source` */ +/* Table structure for table `candidate_source` */ CREATE TABLE `candidate_source` ( `source_id` int(11) NOT NULL AUTO_INCREMENT, @@ -322,9 +315,9 @@ CREATE TABLE `candidate_source` ( KEY `siteID` (`site_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `candidate_source` */ +/* Data for the table `candidate_source` */ -/*Table structure for table `candidate_tag` */ +/* Table structure for table `candidate_tag` */ CREATE TABLE `candidate_tag` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, @@ -334,7 +327,7 @@ CREATE TABLE `candidate_tag` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Table structure for table `career_portal_questionnaire` */ +/* Table structure for table `career_portal_questionnaire` */ CREATE TABLE `career_portal_questionnaire` ( `career_portal_questionnaire_id` int(11) NOT NULL AUTO_INCREMENT, @@ -345,9 +338,9 @@ CREATE TABLE `career_portal_questionnaire` ( PRIMARY KEY (`career_portal_questionnaire_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -/*Data for the table `career_portal_questionnaire` */ +/* Data for the table `career_portal_questionnaire` */ -/*Table structure for table `career_portal_questionnaire_answer` */ +/* Table structure for table `career_portal_questionnaire_answer` */ CREATE TABLE `career_portal_questionnaire_answer` ( `career_portal_questionnaire_answer_id` int(11) NOT NULL AUTO_INCREMENT, @@ -365,9 +358,9 @@ CREATE TABLE `career_portal_questionnaire_answer` ( PRIMARY KEY (`career_portal_questionnaire_answer_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -/*Data for the table `career_portal_questionnaire_answer` */ +/* Data for the table `career_portal_questionnaire_answer` */ -/*Table structure for table `career_portal_questionnaire_history` */ +/* Table structure for table `career_portal_questionnaire_history` */ CREATE TABLE `career_portal_questionnaire_history` ( `career_portal_questionnaire_history_id` int(11) NOT NULL AUTO_INCREMENT, @@ -381,9 +374,9 @@ CREATE TABLE `career_portal_questionnaire_history` ( PRIMARY KEY (`career_portal_questionnaire_history_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -/*Data for the table `career_portal_questionnaire_history` */ +/* Data for the table `career_portal_questionnaire_history` */ -/*Table structure for table `career_portal_questionnaire_question` */ +/* Table structure for table `career_portal_questionnaire_question` */ CREATE TABLE `career_portal_questionnaire_question` ( `career_portal_questionnaire_question_id` int(11) NOT NULL AUTO_INCREMENT, @@ -398,9 +391,9 @@ CREATE TABLE `career_portal_questionnaire_question` ( PRIMARY KEY (`career_portal_questionnaire_question_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -/*Data for the table `career_portal_questionnaire_question` */ +/* Data for the table `career_portal_questionnaire_question` */ -/*Table structure for table `career_portal_template` */ +/* Table structure for table `career_portal_template` */ CREATE TABLE `career_portal_template` ( `career_portal_template_id` int(11) NOT NULL AUTO_INCREMENT, @@ -410,7 +403,7 @@ CREATE TABLE `career_portal_template` ( PRIMARY KEY (`career_portal_template_id`) ) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8; -/*Data for the table `career_portal_template` */ +/* Data for the table `career_portal_template` */ insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (1,'Blank Page','Left',''); insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (2,'Blank Page','Footer',''); @@ -435,7 +428,7 @@ insert into `career_portal_template`(`career_portal_template_id`,`career_portal insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (21,'CATS 2.0','Content - Candidate Registration','
\r\n

Applying to </applyContent></h1>\r\n <center>\r\n <table cellpadding=\"0\" cellspacing=\"0\">\r\n <tr>\r\n <td><label id=\"emailLabel\" for=\"email\"><h2>Enter your e-mail address:</h2></label></td>\r\n <td><input-email></td>\r\n </tr>\r\n <tr>\r\n <td align=\"right\" valign=\"top\"><input-new></td>\r\n <td style=\"line-height: 18px;\">\r\n <applyContent>\r\n <strong>I have not registered on this website.</strong><br />\r\n (I haven\'t applied to any jobs online)\r\n </applyContent>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"right\" valign=\"top\"><input-registered></td>\r\n <td style=\"line-height: 20px;\">\r\n <strong>I have registered before</strong><br />\r\n and my last name is:<br />\r\n <input-lastName><br />\r\n and my zip code is:<br />\r\n <input-zip><br /><br />\r\n <input-rememberMe> Remember my information for future visits<br /><br />\r\n <input-submit><br /><br />\r\n </td>\r\n </tr>\r\n </table>\r\n </center>\r\n</div>\r\n'); insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (22,'CATS 2.0','Content - Candidate Profile','<div id=\"careerContent\"> <h1 style=\"padding: 0; margin: 0; border: 0;\">My Profile</h1><h3 style=\"font-weight: normal;\">Any changes you make to your profile will be updated on our website for all past and future jobs you apply for.</h3> <br /> <div class=\"applyBoxLeft\"> <div><h3>1. Tell us about yourself</h3></div> <p class=\"instructions\">All fields marked with asterisk (*) are required.</p> <table> <tr> <td class=\"label\"><label id=\"firstNameLabel\" for=\"firstName\">*First Name:</label></td> <td><input-firstName></td> </tr> <tr> <td class=\"label\"><label id=\"lastNameLabel\" for=\"lastName\">*Last Name:</label></td> <td><input-lastName></td> </tr> <tr> <td class=\"label\"><label id=\"emailLabel\" for=\"email\">*Email Adddress:</label></td> <td><input-email1></td> </tr> <tr> <td colspan=\"2\"> <input-resume> </td> </tr> </table> </div> <div class=\"applyBoxRight\"> <div><h3>2. How may we contact you?</h3></div> <table> <tr> <td class=\"label\"><label id=\"homePhoneLabel\" for=\"homePhone\">Home Phone:</label></td> <td><input-phoneHome></td> </tr> <tr> <td class=\"label\"><label id=\"mobilePhoneLabel\" for=\"mobilePhone\">Mobile Phone:</label></td> <td><input-phoneCell></td> </tr> <tr> <td class=\"label\"><label id=\"workPhoneLabel\" for=\"workPhone\">Work Phone:</label></td> <td><input-phoneWork></td> </tr> <tr> <td class=\"label\"><label id=\"bestTimeLabel\" for=\"bestTime\">*Best time to call:</label></td> <td><input-bestTimeToCall></td> </tr> <tr> <td class=\"label\"><label id=\"mailingAddressLabel\" for=\"mailingAddress\">Mailing Address:</label></td> <td><input-address></td> </tr> <tr> <td class=\"label\"><label id=\"cityProvinceLabel\" for=\"cityProvince\">*City/Province:</label></td> <td><input-city></td> </tr> <tr> <td class=\"label\"><label id=\"stateCountryLabel\" for=\"stateCountry\">*State/Country:</label></td> <td><input-state></td> </tr> <tr> <td class=\"label\"><label id=\"zipPostalLabel\" for=\"zipPostal\">*Zip/Postal Code:</label></td> <td><input-zip></td> </tr> </table> <br /> <div><h3>3. Additional Information</h3></div> <table> <tr> <td class=\"label\"><label id=\"keySkillsLabel\" for=\"keySkills\">*Key Skills:</label></td> <td><input-keySkills></td> </tr> <tr> <td> </td> <td style=\"padding-top: 40px;\"><input-submit></td> </tr> </table> </div></div>'); -/*Table structure for table `career_portal_template_site` */ +/* Table structure for table `career_portal_template_site` */ CREATE TABLE `career_portal_template_site` ( `career_portal_template_id` int(11) NOT NULL AUTO_INCREMENT, @@ -446,9 +439,9 @@ CREATE TABLE `career_portal_template_site` ( PRIMARY KEY (`career_portal_template_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -/*Data for the table `career_portal_template_site` */ +/* Data for the table `career_portal_template_site` */ -/*Table structure for table `company` */ +/* Table structure for table `company` */ CREATE TABLE `company` ( `company_id` int(11) NOT NULL AUTO_INCREMENT, @@ -484,11 +477,11 @@ CREATE TABLE `company` ( KEY `IDX_is_hot` (`is_hot`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `company` */ +/* Data for the table `company` */ insert into `company`(`company_id`,`site_id`,`billing_contact`,`name`,`address`,`city`,`state`,`zip`,`phone1`,`phone2`,`url`,`key_technologies`,`notes`,`entered_by`,`owner`,`date_created`,`date_modified`,`is_hot`,`fax_number`,`import_id`,`default_company`) values (1,1,NULL,'Internal Postings','','','','','','','','','',0,0,'1000-01-01 00:00:00','1000-01-01 00:00:00',0,'',NULL,1); -/*Table structure for table `company_department` */ +/* Table structure for table `company_department` */ CREATE TABLE `company_department` ( `company_department_id` int(11) NOT NULL AUTO_INCREMENT, @@ -500,9 +493,9 @@ CREATE TABLE `company_department` ( PRIMARY KEY (`company_department_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `company_department` */ +/* Data for the table `company_department` */ -/*Table structure for table `contact` */ +/* Table structure for table `contact` */ CREATE TABLE `contact` ( `contact_id` int(11) NOT NULL AUTO_INCREMENT, @@ -542,9 +535,9 @@ CREATE TABLE `contact` ( KEY `IDX_date_modified` (`date_modified`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `contact` */ +/* Data for the table `contact` */ -/*Table structure for table `data_item_type` */ +/* Table structure for table `data_item_type` */ CREATE TABLE `data_item_type` ( `data_item_type_id` int(11) NOT NULL DEFAULT '0', @@ -553,14 +546,14 @@ CREATE TABLE `data_item_type` ( KEY `IDX_short_description` (`short_description`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `data_item_type` */ +/* Data for the table `data_item_type` */ insert into `data_item_type`(`data_item_type_id`,`short_description`) values (100,'Candidate'); insert into `data_item_type`(`data_item_type_id`,`short_description`) values (200,'Company'); insert into `data_item_type`(`data_item_type_id`,`short_description`) values (300,'Contact'); insert into `data_item_type`(`data_item_type_id`,`short_description`) values (400,'Job Order'); -/*Table structure for table `eeo_ethnic_type` */ +/* Table structure for table `eeo_ethnic_type` */ CREATE TABLE `eeo_ethnic_type` ( `eeo_ethnic_type_id` int(11) NOT NULL AUTO_INCREMENT, @@ -568,7 +561,7 @@ CREATE TABLE `eeo_ethnic_type` ( PRIMARY KEY (`eeo_ethnic_type_id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; -/*Data for the table `eeo_ethnic_type` */ +/* Data for the table `eeo_ethnic_type` */ insert into `eeo_ethnic_type`(`eeo_ethnic_type_id`,`type`) values (1,'American Indian'); insert into `eeo_ethnic_type`(`eeo_ethnic_type_id`,`type`) values (2,'Asian or Pacific Islander'); @@ -576,7 +569,7 @@ insert into `eeo_ethnic_type`(`eeo_ethnic_type_id`,`type`) values (3,'Hispanic insert into `eeo_ethnic_type`(`eeo_ethnic_type_id`,`type`) values (4,'Non-Hispanic Black'); insert into `eeo_ethnic_type`(`eeo_ethnic_type_id`,`type`) values (5,'Non-Hispanic White'); -/*Table structure for table `eeo_veteran_type` */ +/* Table structure for table `eeo_veteran_type` */ CREATE TABLE `eeo_veteran_type` ( `eeo_veteran_type_id` int(11) NOT NULL AUTO_INCREMENT, @@ -584,14 +577,14 @@ CREATE TABLE `eeo_veteran_type` ( PRIMARY KEY (`eeo_veteran_type_id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; -/*Data for the table `eeo_veteran_type` */ +/* Data for the table `eeo_veteran_type` */ insert into `eeo_veteran_type`(`eeo_veteran_type_id`,`type`) values (1,'No Veteran Status'); insert into `eeo_veteran_type`(`eeo_veteran_type_id`,`type`) values (2,'Eligible Veteran'); insert into `eeo_veteran_type`(`eeo_veteran_type_id`,`type`) values (3,'Disabled Veteran'); insert into `eeo_veteran_type`(`eeo_veteran_type_id`,`type`) values (4,'Eligible and Disabled'); -/*Table structure for table `email_history` */ +/* Table structure for table `email_history` */ CREATE TABLE `email_history` ( `email_history_id` int(11) NOT NULL AUTO_INCREMENT, @@ -607,9 +600,9 @@ CREATE TABLE `email_history` ( KEY `IDX_user_id` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `email_history` */ +/* Data for the table `email_history` */ -/*Table structure for table `email_template` */ +/* Table structure for table `email_template` */ CREATE TABLE `email_template` ( `email_template_id` int(11) NOT NULL AUTO_INCREMENT, @@ -623,7 +616,7 @@ CREATE TABLE `email_template` ( PRIMARY KEY (`email_template_id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `email_template` */ +/* Data for the table `email_template` */ insert into `email_template`(`email_template_id`,`text`,`allow_substitution`,`site_id`,`tag`,`title`,`possible_variables`,`disabled`) values (1,'* Auto generated message. Please DO NOT reply *\r\n%DATETIME%\r\n\r\nDear %CANDFULLNAME%,\r\n\r\nThis E-Mail is a notification that your status in our database has been changed for the position %JBODTITLE% (%JBODCLIENT%).\r\n\r\nYour previous status was <B>%CANDPREVSTATUS%</B>.\r\nYour new status is <B>%CANDSTATUS%</B>.\r\n\r\nTake care,\r\n%USERFULLNAME%\r\n%SITENAME%',1,1,'EMAIL_TEMPLATE_STATUSCHANGE','Status Changed (Sent to Candidate)','%CANDSTATUS%%CANDOWNER%%CANDFIRSTNAME%%CANDFULLNAME%%CANDPREVSTATUS%%JBODCLIENT%%JBODTITLE%',0); insert into `email_template`(`email_template_id`,`text`,`allow_substitution`,`site_id`,`tag`,`title`,`possible_variables`,`disabled`) values (2,'%DATETIME%\r\n\r\nDear %CANDOWNER%,\r\n\r\nThis E-Mail is a notification that a Candidate has been assigned to you.\r\n\r\nCandidate Name: %CANDFULLNAME%\r\nCandidate URL: %CANDCATSURL%\r\n\r\nTake care,\r\nCATS \r\n%SITENAME%',1,1,'EMAIL_TEMPLATE_OWNERSHIPASSIGNCANDIDATE','Candidate Assigned (Sent to Assigned Recruiter)','%CANDOWNER%%CANDFIRSTNAME%%CANDFULLNAME%%CANDCATSURL%',0); @@ -633,7 +626,7 @@ insert into `email_template`(`email_template_id`,`text`,`allow_substitution`,`s insert into `email_template`(`email_template_id`,`text`,`allow_substitution`,`site_id`,`tag`,`title`,`possible_variables`,`disabled`) values (6,'* This is an auto-generated message. Please do not reply. *\r\n%DATETIME%\r\n\r\nDear %CANDFULLNAME%,\r\n\r\nThank you for applying to the %JBODTITLE% position with our online career portal! Your application has been entered into our system and someone will review it shortly.\r\n\r\n--\r\n%SITENAME%',1,1,'EMAIL_TEMPLATE_CANDIDATEAPPLY','Candidate Application Received (Sent to Candidate using Career Portal)','%CANDFIRSTNAME%%CANDFULLNAME%%JBODCLIENT%%JBODTITLE%%JBODOWNER%',0); insert into `email_template`(`email_template_id`,`text`,`allow_substitution`,`site_id`,`tag`,`title`,`possible_variables`,`disabled`) values (7,'%DATETIME%\r\n\r\nDear %JBODOWNER%,\r\n\r\nThis e-mail is a notification that a candidate has applied to your job order through the online candidate portal.\r\n\r\nJob Order: %JBODTITLE%\r\nCandidate Name: %CANDFULLNAME%\r\nCandidate URL: %CANDCATSURL%\r\nJob Order URL: %JBODCATSURL%\r\n\r\n--\r\nCATS\r\n%SITENAME%',1,1,'EMAIL_TEMPLATE_CANDIDATEPORTALNEW','Candidate Application Received (Sent to Owner of Job Order from Career Portal)','%CANDFIRSTNAME%%CANDFULLNAME%%JBODOWNER%%JBODTITLE%%JBODCLIENT%%JBODCATSURL%%JBODID%%CANDCATSURL%',0); -/*Table structure for table `extension_statistics` */ +/* Table structure for table `extension_statistics` */ CREATE TABLE `extension_statistics` ( `extension_statistics_id` int(11) NOT NULL AUTO_INCREMENT, @@ -644,9 +637,9 @@ CREATE TABLE `extension_statistics` ( PRIMARY KEY (`extension_statistics_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -/*Data for the table `extension_statistics` */ +/* Data for the table `extension_statistics` */ -/*Table structure for table `extra_field` */ +/* Table structure for table `extra_field` */ CREATE TABLE `extra_field` ( `extra_field_id` int(11) NOT NULL AUTO_INCREMENT, @@ -661,9 +654,9 @@ CREATE TABLE `extra_field` ( KEY `IDX_site_id` (`site_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -/*Data for the table `extra_field` */ +/* Data for the table `extra_field` */ -/*Table structure for table `extra_field_settings` */ +/* Table structure for table `extra_field_settings` */ CREATE TABLE `extra_field_settings` ( `extra_field_settings_id` int(11) NOT NULL AUTO_INCREMENT, @@ -678,14 +671,14 @@ CREATE TABLE `extra_field_settings` ( PRIMARY KEY (`extra_field_settings_id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `extra_field_settings` */ +/* Data for the table `extra_field_settings` */ insert into `extra_field_settings`(`extra_field_settings_id`,`field_name`,`import_id`,`site_id`,`date_created`,`data_item_type`,`extra_field_type`,`extra_field_options`,`position`) values (1,'AdminUser',NULL,180,'1000-01-01 00:00:00',200,1,NULL,1); insert into `extra_field_settings`(`extra_field_settings_id`,`field_name`,`import_id`,`site_id`,`date_created`,`data_item_type`,`extra_field_type`,`extra_field_options`,`position`) values (2,'UnixName',NULL,180,'1000-01-01 00:00:00',200,1,NULL,2); insert into `extra_field_settings`(`extra_field_settings_id`,`field_name`,`import_id`,`site_id`,`date_created`,`data_item_type`,`extra_field_type`,`extra_field_options`,`position`) values (3,'BillingNotes',NULL,180,'1000-01-01 00:00:00',200,1,NULL,3); insert into `extra_field_settings`(`extra_field_settings_id`,`field_name`,`import_id`,`site_id`,`date_created`,`data_item_type`,`extra_field_type`,`extra_field_options`,`position`) values (4,'IPAddress',NULL,180,'1000-01-01 00:00:00',300,1,NULL,4); -/*Table structure for table `feedback` */ +/* Table structure for table `feedback` */ CREATE TABLE `feedback` ( `feedback_id` int(11) NOT NULL AUTO_INCREMENT, @@ -700,9 +693,9 @@ CREATE TABLE `feedback` ( PRIMARY KEY (`feedback_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `feedback` */ +/* Data for the table `feedback` */ -/*Table structure for table `history` */ +/* Table structure for table `history` */ CREATE TABLE `history` ( `history_id` int(11) NOT NULL AUTO_INCREMENT, @@ -720,9 +713,9 @@ CREATE TABLE `history` ( KEY `IDX_data_item_id_type_site` (`data_item_id`,`data_item_type`,`site_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `history` */ +/* Data for the table `history` */ -/*Table structure for table `http_log` */ +/* Table structure for table `http_log` */ CREATE TABLE `http_log` ( `log_id` int(11) NOT NULL AUTO_INCREMENT, @@ -739,9 +732,9 @@ CREATE TABLE `http_log` ( PRIMARY KEY (`log_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -/*Data for the table `http_log` */ +/* Data for the table `http_log` */ -/*Table structure for table `http_log_types` */ +/* Table structure for table `http_log_types` */ CREATE TABLE `http_log_types` ( `log_type_id` int(11) NOT NULL, @@ -751,11 +744,11 @@ CREATE TABLE `http_log_types` ( PRIMARY KEY (`log_type_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -/*Data for the table `http_log_types` */ +/* Data for the table `http_log_types` */ insert into `http_log_types`(`log_type_id`,`name`,`description`,`default_log_type`) values (1,'XML','XML Job Feed',0); -/*Table structure for table `import` */ +/* Table structure for table `import` */ CREATE TABLE `import` ( `import_id` int(11) NOT NULL AUTO_INCREMENT, @@ -768,18 +761,18 @@ CREATE TABLE `import` ( PRIMARY KEY (`import_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `import` */ +/* Data for the table `import` */ -/*Table structure for table `installtest` */ +/* Table structure for table `installtest` */ CREATE TABLE `installtest` ( `id` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `installtest` */ +/* Data for the table `installtest` */ -/*Table structure for table `joborder` */ +/* Table structure for table `joborder` */ CREATE TABLE `joborder` ( `joborder_id` int(11) NOT NULL AUTO_INCREMENT, @@ -826,9 +819,9 @@ CREATE TABLE `joborder` ( KEY `IDX_site_id_status` (`site_id`,`status`(8)) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `joborder` */ +/* Data for the table `joborder` */ -/*Table structure for table `module_schema` */ +/* Table structure for table `module_schema` */ CREATE TABLE `module_schema` ( `module_schema_id` int(11) NOT NULL AUTO_INCREMENT, @@ -837,7 +830,7 @@ CREATE TABLE `module_schema` ( PRIMARY KEY (`module_schema_id`) ) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `module_schema` */ +/* Data for the table `module_schema` */ insert into `module_schema`(`module_schema_id`,`name`,`version`) values (1,'activity',0); insert into `module_schema`(`module_schema_id`,`name`,`version`) values (2,'attachments',0); @@ -863,7 +856,7 @@ insert into `module_schema`(`module_schema_id`,`name`,`version`) values (21,'te insert into `module_schema`(`module_schema_id`,`name`,`version`) values (22,'wizard',0); insert into `module_schema`(`module_schema_id`,`name`,`version`) values (23,'xml',0); -/*Table structure for table `mru` */ +/* Table structure for table `mru` */ CREATE TABLE `mru` ( `mru_id` int(11) NOT NULL AUTO_INCREMENT, @@ -877,9 +870,9 @@ CREATE TABLE `mru` ( KEY `IDX_user_site` (`user_id`,`site_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `mru` */ +/* Data for the table `mru` */ -/*Table structure for table `queue` */ +/* Table structure for table `queue` */ CREATE TABLE `queue` ( `queue_id` int(11) NOT NULL AUTO_INCREMENT, @@ -896,9 +889,9 @@ CREATE TABLE `queue` ( PRIMARY KEY (`queue_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -/*Data for the table `queue` */ +/* Data for the table `queue` */ -/*Table structure for table `saved_list` */ +/* Table structure for table `saved_list` */ CREATE TABLE `saved_list` ( `saved_list_id` int(11) NOT NULL AUTO_INCREMENT, @@ -918,9 +911,9 @@ CREATE TABLE `saved_list` ( KEY `IDX_site_id` (`site_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `saved_list` */ +/* Data for the table `saved_list` */ -/*Table structure for table `saved_list_entry` */ +/* Table structure for table `saved_list_entry` */ CREATE TABLE `saved_list_entry` ( `saved_list_entry_id` int(11) NOT NULL AUTO_INCREMENT, @@ -936,9 +929,9 @@ CREATE TABLE `saved_list_entry` ( KEY `IDX_hot_list_id` (`saved_list_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `saved_list_entry` */ +/* Data for the table `saved_list_entry` */ -/*Table structure for table `saved_search` */ +/* Table structure for table `saved_search` */ CREATE TABLE `saved_search` ( `search_id` int(11) NOT NULL AUTO_INCREMENT, @@ -952,9 +945,9 @@ CREATE TABLE `saved_search` ( PRIMARY KEY (`search_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `saved_search` */ +/* Data for the table `saved_search` */ -/*Table structure for table `settings` */ +/* Table structure for table `settings` */ CREATE TABLE `settings` ( `settings_id` int(11) NOT NULL AUTO_INCREMENT, @@ -965,14 +958,14 @@ CREATE TABLE `settings` ( PRIMARY KEY (`settings_id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `settings` */ +/* Data for the table `settings` */ insert into `settings`(`settings_id`,`setting`,`value`,`site_id`,`settings_type`) values (1,'fromAddress','admin@example.com',1,1); insert into `settings`(`settings_id`,`setting`,`value`,`site_id`,`settings_type`) values (2,'fromAddress','admin@example.com',180,1); insert into `settings`(`settings_id`,`setting`,`value`,`site_id`,`settings_type`) values (3,'configured','1',1,1); insert into `settings`(`settings_id`,`setting`,`value`,`site_id`,`settings_type`) values (4,'configured','1',180,1); -/*Table structure for table `site` */ +/* Table structure for table `site` */ CREATE TABLE `site` ( `site_id` int(11) NOT NULL AUTO_INCREMENT, @@ -1004,12 +997,12 @@ CREATE TABLE `site` ( KEY `IDX_account_deleted` (`account_deleted`) ) ENGINE=InnoDB AUTO_INCREMENT=181 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `site` */ +/* Data for the table `site` */ insert into `site`(`site_id`,`name`,`is_demo`,`user_licenses`,`entered_by`,`date_created`,`unix_name`,`company_id`,`is_free`,`account_active`,`account_deleted`,`reason_disabled`,`time_zone`,`time_format_24`,`date_format_ddmmyy`,`is_hr_mode`,`file_size_kb`,`page_views`,`page_view_days`,`last_viewed_day`,`first_time_setup`,`localization_configured`,`agreed_to_license`,`limit_warning`) values (1,'example.com',0,0,0,'1000-01-01 00:00:00',NULL,NULL,0,1,0,NULL,2,0,1,0,0,574,1,'1000-01-01',0,0,1,0); insert into `site`(`site_id`,`name`,`is_demo`,`user_licenses`,`entered_by`,`date_created`,`unix_name`,`company_id`,`is_free`,`account_active`,`account_deleted`,`reason_disabled`,`time_zone`,`time_format_24`,`date_format_ddmmyy`,`is_hr_mode`,`file_size_kb`,`page_views`,`page_view_days`,`last_viewed_day`,`first_time_setup`,`localization_configured`,`agreed_to_license`,`limit_warning`) values (180,'CATS_ADMIN',0,0,0,'1000-01-01 00:00:00','catsadmin',NULL,0,1,0,NULL,2,0,1,0,0,0,0,'1000-01-01',0,0,0,0); -/*Table structure for table `sph_counter` */ +/* Table structure for table `sph_counter` */ CREATE TABLE `sph_counter` ( `counter_id` int(11) NOT NULL, @@ -1017,9 +1010,9 @@ CREATE TABLE `sph_counter` ( PRIMARY KEY (`counter_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -/*Data for the table `sph_counter` */ +/* Data for the table `sph_counter` */ -/*Table structure for table `system` */ +/* Table structure for table `system` */ CREATE TABLE `system` ( `system_id` int(20) NOT NULL DEFAULT '0', @@ -1031,11 +1024,11 @@ CREATE TABLE `system` ( PRIMARY KEY (`system_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `system` */ +/* Data for the table `system` */ insert into `system`(`system_id`,`uid`,`available_version`,`date_version_checked`,`available_version_description`,`disable_version_check`) values (0,0,0,'1000-01-01 00:00:00','',1); -/*Table structure for table `tag` */ +/* Table structure for table `tag` */ CREATE TABLE `tag` ( `tag_id` int(10) unsigned NOT NULL AUTO_INCREMENT, @@ -1047,9 +1040,9 @@ CREATE TABLE `tag` ( PRIMARY KEY (`tag_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `tag` */ +/* Data for the table `tag` */ -/*Table structure for table `user` */ +/* Table structure for table `user` */ CREATE TABLE `user` ( `user_id` int(11) NOT NULL AUTO_INCREMENT, @@ -1087,12 +1080,12 @@ CREATE TABLE `user` ( KEY `IDX_access_level` (`access_level`) ) ENGINE=InnoDB AUTO_INCREMENT=1251 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `user` */ +/* Data for the table `user` */ insert into `user`(`user_id`,`site_id`,`user_name`,`email`,`password`,`access_level`,`can_change_password`,`is_test_user`,`last_name`,`first_name`,`is_demo`,`categories`,`session_cookie`,`pipeline_entries_per_page`,`column_preferences`,`force_logout`,`title`,`phone_work`,`phone_cell`,`phone_other`,`address`,`notes`,`company`,`city`,`state`,`zip_code`,`country`,`can_see_eeo_info`) values (1,1,'admin','admin@example.com',md5('cats'),500,1,0,'Administrator','CATS',0,NULL,NULL,15,NULL,0,'','','','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0); insert into `user`(`user_id`,`site_id`,`user_name`,`email`,`password`,`access_level`,`can_change_password`,`is_test_user`,`last_name`,`first_name`,`is_demo`,`categories`,`session_cookie`,`pipeline_entries_per_page`,`column_preferences`,`force_logout`,`title`,`phone_work`,`phone_cell`,`phone_other`,`address`,`notes`,`company`,`city`,`state`,`zip_code`,`country`,`can_see_eeo_info`) values (1250,180,'cats@rootadmin','0','cantlogin',0,0,0,'Automated','CATS',0,NULL,NULL,15,NULL,0,'','','','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0); -/*Table structure for table `user_login` */ +/* Table structure for table `user_login` */ CREATE TABLE `user_login` ( `user_login_id` int(11) NOT NULL AUTO_INCREMENT, @@ -1113,9 +1106,9 @@ CREATE TABLE `user_login` ( KEY `IDX_successful_site_id` (`successful`,`site_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `user_login` */ +/* Data for the table `user_login` */ -/*Table structure for table `word_verification` */ +/* Table structure for table `word_verification` */ CREATE TABLE `word_verification` ( `word_verification_ID` int(11) NOT NULL AUTO_INCREMENT, @@ -1123,9 +1116,9 @@ CREATE TABLE `word_verification` ( PRIMARY KEY (`word_verification_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `word_verification` */ +/* Data for the table `word_verification` */ -/*Table structure for table `xml_feed_submits` */ +/* Table structure for table `xml_feed_submits` */ CREATE TABLE `xml_feed_submits` ( `feed_id` int(11) NOT NULL AUTO_INCREMENT, @@ -1135,9 +1128,9 @@ CREATE TABLE `xml_feed_submits` ( PRIMARY KEY (`feed_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -/*Data for the table `xml_feed_submits` */ +/* Data for the table `xml_feed_submits` */ -/*Table structure for table `xml_feeds` */ +/* Table structure for table `xml_feeds` */ CREATE TABLE `xml_feeds` ( `xml_feed_id` int(11) NOT NULL AUTO_INCREMENT, @@ -1150,12 +1143,12 @@ CREATE TABLE `xml_feeds` ( PRIMARY KEY (`xml_feed_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; -/*Data for the table `xml_feeds` */ +/* Data for the table `xml_feeds` */ insert into `xml_feeds`(`xml_feed_id`,`name`,`description`,`website`,`post_url`,`success_string`,`xml_template_name`) values (1,'Indeed','Indeed.com job search engine.','http://www.indeed.com','http://www.indeed.com/jsp/includejobs.jsp','Thank you for submitting your XML job feed','indeed'); insert into `xml_feeds`(`xml_feed_id`,`name`,`description`,`website`,`post_url`,`success_string`,`xml_template_name`) values (2,'SimplyHired','SimplyHired.com job search engine','http://www.simplyhired.com','http://www.simplyhired.com/confirmation.php','Thanks for Contacting Us','simplyhired'); -/*Table structure for table `zipcodes` */ +/* Table structure for table `zipcodes` */ CREATE TABLE `zipcodes` ( `zipcode` mediumint(9) NOT NULL DEFAULT '0', @@ -1165,6 +1158,6 @@ CREATE TABLE `zipcodes` ( PRIMARY KEY (`zipcode`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -/*Data for the table `zipcodes` */ +/* Data for the table `zipcodes` */ /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; From ed6fce98c0b491cb2f1b6425514ea2b8644dd216 Mon Sep 17 00:00:00 2001 From: anonymoususer72041 <247563575+anonymoususer72041@users.noreply.github.com> Date: Tue, 5 May 2026 14:30:00 +0200 Subject: [PATCH 2/4] Normalize schema snapshot SQL formatting --- db/cats_schema.sql | 1232 ++++++++++++++++++++++---------------------- 1 file changed, 616 insertions(+), 616 deletions(-) diff --git a/db/cats_schema.sql b/db/cats_schema.sql index 72ffea042..b5d352a64 100755 --- a/db/cats_schema.sql +++ b/db/cats_schema.sql @@ -7,47 +7,47 @@ /* Table structure for table `access_level` */ CREATE TABLE `access_level` ( - `access_level_id` int(11) NOT NULL DEFAULT '0', - `short_description` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `long_description` text COLLATE utf8_unicode_ci NOT NULL, + `access_level_id` INT(11) NOT NULL DEFAULT '0', + `short_description` VARCHAR(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `long_description` TEXT COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`access_level_id`), KEY `IDX_access_level` (`short_description`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /* Data for the table `access_level` */ -insert into `access_level`(`access_level_id`,`short_description`,`long_description`) values (0,'Account Disabled','Disabled - The lowest access level. User cannot log in.'); -insert into `access_level`(`access_level_id`,`short_description`,`long_description`) values (100,'Read Only','Read Only - A standard user that can view data on the system in a read-only mode.'); -insert into `access_level`(`access_level_id`,`short_description`,`long_description`) values (200,'Add / Edit','Edit - All lower access, plus the ability to edit information on the system.'); -insert into `access_level`(`access_level_id`,`short_description`,`long_description`) values (300,'Add / Edit / Delete','Delete - All lower access, plus the ability to delete information on the system.'); -insert into `access_level`(`access_level_id`,`short_description`,`long_description`) values (400,'Site Administrator','Site Administrator - All lower access, plus the ability to add, edit, and remove site users, as well as the ability to edit site settings.'); -insert into `access_level`(`access_level_id`,`short_description`,`long_description`) values (500,'Root','Root Administrator - All lower access, plus the ability to add, edit, and remove sites, as well as the ability to assign Site Administrator status to a user.'); +INSERT INTO `access_level` (`access_level_id`, `short_description`, `long_description`) VALUES (0, 'Account Disabled', 'Disabled - The lowest access level. User cannot log in.'); +INSERT INTO `access_level` (`access_level_id`, `short_description`, `long_description`) VALUES (100, 'Read Only', 'Read Only - A standard user that can view data on the system in a read-only mode.'); +INSERT INTO `access_level` (`access_level_id`, `short_description`, `long_description`) VALUES (200, 'Add / Edit', 'Edit - All lower access, plus the ability to edit information on the system.'); +INSERT INTO `access_level` (`access_level_id`, `short_description`, `long_description`) VALUES (300, 'Add / Edit / Delete', 'Delete - All lower access, plus the ability to delete information on the system.'); +INSERT INTO `access_level` (`access_level_id`, `short_description`, `long_description`) VALUES (400, 'Site Administrator', 'Site Administrator - All lower access, plus the ability to add, edit, and remove site users, as well as the ability to edit site settings.'); +INSERT INTO `access_level` (`access_level_id`, `short_description`, `long_description`) VALUES (500, 'Root', 'Root Administrator - All lower access, plus the ability to add, edit, and remove sites, as well as the ability to assign Site Administrator status to a user.'); /* Table structure for table `activity` */ CREATE TABLE `activity` ( - `activity_id` int(11) NOT NULL AUTO_INCREMENT, - `data_item_id` int(11) NOT NULL DEFAULT '0', - `data_item_type` int(11) NOT NULL DEFAULT '0', - `joborder_id` int(11) DEFAULT NULL, - `site_id` int(11) NOT NULL DEFAULT '0', - `entered_by` int(11) NOT NULL DEFAULT '0', - `date_created` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', - `type` int(11) NOT NULL DEFAULT '0', - `notes` text COLLATE utf8_unicode_ci, - `date_modified` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', + `activity_id` INT(11) NOT NULL AUTO_INCREMENT, + `data_item_id` INT(11) NOT NULL DEFAULT '0', + `data_item_type` INT(11) NOT NULL DEFAULT '0', + `joborder_id` INT(11) DEFAULT NULL, + `site_id` INT(11) NOT NULL DEFAULT '0', + `entered_by` INT(11) NOT NULL DEFAULT '0', + `date_created` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', + `type` INT(11) NOT NULL DEFAULT '0', + `notes` TEXT COLLATE utf8_unicode_ci, + `date_modified` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', PRIMARY KEY (`activity_id`), KEY `IDX_entered_by` (`entered_by`), KEY `IDX_site_id` (`site_id`), KEY `IDX_type` (`type`), KEY `IDX_data_item_type` (`data_item_type`), - KEY `IDX_type_id` (`data_item_type`,`data_item_id`), + KEY `IDX_type_id` (`data_item_type`, `data_item_id`), KEY `IDX_joborder_id` (`joborder_id`), KEY `IDX_date_created` (`date_created`), KEY `IDX_date_modified` (`date_modified`), - KEY `IDX_data_item_id_type_site` (`site_id`,`data_item_id`,`data_item_type`), - KEY `IDX_site_created` (`site_id`,`date_created`), - KEY `IDX_activity_site_type_created_job` (`site_id`,`data_item_type`,`date_created`,`entered_by`,`joborder_id`) + KEY `IDX_data_item_id_type_site` (`site_id`, `data_item_id`, `data_item_type`), + KEY `IDX_site_created` (`site_id`, `date_created`), + KEY `IDX_activity_site_type_created_job` (`site_id`, `data_item_type`, `date_created`, `entered_by`, `joborder_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /* Data for the table `activity` */ @@ -55,49 +55,49 @@ CREATE TABLE `activity` ( /* Table structure for table `activity_type` */ CREATE TABLE `activity_type` ( - `activity_type_id` int(11) NOT NULL DEFAULT '0', - `short_description` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `activity_type_id` INT(11) NOT NULL DEFAULT '0', + `short_description` VARCHAR(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', PRIMARY KEY (`activity_type_id`), KEY `IDX_activity_type1` (`short_description`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /* Data for the table `activity_type` */ -insert into `activity_type`(`activity_type_id`,`short_description`) values (100,'Not reached'); -insert into `activity_type`(`activity_type_id`,`short_description`) values (200,'Email'); -insert into `activity_type`(`activity_type_id`,`short_description`) values (300,'Meeting'); -insert into `activity_type`(`activity_type_id`,`short_description`) values (400,'Other'); -insert into `activity_type`(`activity_type_id`,`short_description`) values (500,'Call (Talked)'); -insert into `activity_type`(`activity_type_id`,`short_description`) values (600,'Call (LVM)'); -insert into `activity_type`(`activity_type_id`,`short_description`) values (700,'Call (Missed)'); -insert into `activity_type`(`activity_type_id`,`short_description`) values (800,'Status Change'); +INSERT INTO `activity_type` (`activity_type_id`, `short_description`) VALUES (100, 'Not reached'); +INSERT INTO `activity_type` (`activity_type_id`, `short_description`) VALUES (200, 'Email'); +INSERT INTO `activity_type` (`activity_type_id`, `short_description`) VALUES (300, 'Meeting'); +INSERT INTO `activity_type` (`activity_type_id`, `short_description`) VALUES (400, 'Other'); +INSERT INTO `activity_type` (`activity_type_id`, `short_description`) VALUES (500, 'Call (Talked)'); +INSERT INTO `activity_type` (`activity_type_id`, `short_description`) VALUES (600, 'Call (LVM)'); +INSERT INTO `activity_type` (`activity_type_id`, `short_description`) VALUES (700, 'Call (Missed)'); +INSERT INTO `activity_type` (`activity_type_id`, `short_description`) VALUES (800, 'Status Change'); /* Table structure for table `attachment` */ CREATE TABLE `attachment` ( - `attachment_id` int(11) NOT NULL AUTO_INCREMENT, - `data_item_id` int(11) NOT NULL DEFAULT '0', - `data_item_type` int(11) NOT NULL DEFAULT '0', - `site_id` int(11) NOT NULL DEFAULT '0', - `title` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, - `original_filename` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `stored_filename` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `content_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `resume` int(1) NOT NULL DEFAULT '0', - `text` text COLLATE utf8_unicode_ci, - `date_created` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', - `date_modified` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', - `profile_image` int(1) DEFAULT '0', - `directory_name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `md5_sum` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `file_size_kb` int(11) DEFAULT '0', - `md5_sum_text` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `attachment_id` INT(11) NOT NULL AUTO_INCREMENT, + `data_item_id` INT(11) NOT NULL DEFAULT '0', + `data_item_type` INT(11) NOT NULL DEFAULT '0', + `site_id` INT(11) NOT NULL DEFAULT '0', + `title` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, + `original_filename` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `stored_filename` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `content_type` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `resume` INT(1) NOT NULL DEFAULT '0', + `text` TEXT COLLATE utf8_unicode_ci, + `date_created` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', + `date_modified` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', + `profile_image` INT(1) DEFAULT '0', + `directory_name` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, + `md5_sum` VARCHAR(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `file_size_kb` INT(11) DEFAULT '0', + `md5_sum_text` VARCHAR(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', PRIMARY KEY (`attachment_id`), - KEY `IDX_type_id` (`data_item_type`,`data_item_id`), + KEY `IDX_type_id` (`data_item_type`, `data_item_id`), KEY `IDX_data_item_id` (`data_item_id`), KEY `IDX_CANDIDATE_MD5_SUM` (`md5_sum`), - KEY `IDX_site_file_size` (`site_id`,`file_size_kb`), - KEY `IDX_site_file_size_created` (`site_id`,`file_size_kb`,`date_created`) + KEY `IDX_site_file_size` (`site_id`, `file_size_kb`), + KEY `IDX_site_file_size_created` (`site_id`, `file_size_kb`, `date_created`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /* Data for the table `attachment` */ @@ -105,27 +105,27 @@ CREATE TABLE `attachment` ( /* Table structure for table `calendar_event` */ CREATE TABLE `calendar_event` ( - `calendar_event_id` int(11) NOT NULL AUTO_INCREMENT, - `type` int(11) NOT NULL DEFAULT '0', - `date` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', - `title` text COLLATE utf8_unicode_ci NOT NULL, - `all_day` int(1) NOT NULL DEFAULT '0', - `data_item_id` int(11) NOT NULL DEFAULT '-1', - `data_item_type` int(11) NOT NULL DEFAULT '-1', - `entered_by` int(11) NOT NULL DEFAULT '0', - `date_created` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', - `date_modified` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', - `site_id` int(11) NOT NULL DEFAULT '0', - `joborder_id` int(11) NOT NULL DEFAULT '-1', - `description` text COLLATE utf8_unicode_ci, - `duration` int(11) NOT NULL DEFAULT '60', - `reminder_enabled` int(1) NOT NULL DEFAULT '0', - `reminder_email` text COLLATE utf8_unicode_ci, - `reminder_time` int(11) DEFAULT '0', - `public` int(1) NOT NULL DEFAULT '1', + `calendar_event_id` INT(11) NOT NULL AUTO_INCREMENT, + `type` INT(11) NOT NULL DEFAULT '0', + `date` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', + `title` TEXT COLLATE utf8_unicode_ci NOT NULL, + `all_day` INT(1) NOT NULL DEFAULT '0', + `data_item_id` INT(11) NOT NULL DEFAULT '-1', + `data_item_type` INT(11) NOT NULL DEFAULT '-1', + `entered_by` INT(11) NOT NULL DEFAULT '0', + `date_created` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', + `date_modified` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', + `site_id` INT(11) NOT NULL DEFAULT '0', + `joborder_id` INT(11) NOT NULL DEFAULT '-1', + `description` TEXT COLLATE utf8_unicode_ci, + `duration` INT(11) NOT NULL DEFAULT '60', + `reminder_enabled` INT(1) NOT NULL DEFAULT '0', + `reminder_email` TEXT COLLATE utf8_unicode_ci, + `reminder_time` INT(11) DEFAULT '0', + `public` INT(1) NOT NULL DEFAULT '1', PRIMARY KEY (`calendar_event_id`), - KEY `IDX_site_id_date` (`site_id`,`date`), - KEY `IDX_site_data_item_type_id` (`site_id`,`data_item_type`,`data_item_id`) + KEY `IDX_site_id_date` (`site_id`, `date`), + KEY `IDX_site_data_item_type_id` (`site_id`, `data_item_type`, `data_item_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /* Data for the table `calendar_event` */ @@ -133,62 +133,62 @@ CREATE TABLE `calendar_event` ( /* Table structure for table `calendar_event_type` */ CREATE TABLE `calendar_event_type` ( - `calendar_event_type_id` int(11) NOT NULL DEFAULT '0', - `short_description` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `icon_image` varchar(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `calendar_event_type_id` INT(11) NOT NULL DEFAULT '0', + `short_description` VARCHAR(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `icon_image` VARCHAR(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', PRIMARY KEY (`calendar_event_type_id`), KEY `IDX_short_description` (`short_description`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /* Data for the table `calendar_event_type` */ -insert into `calendar_event_type`(`calendar_event_type_id`,`short_description`,`icon_image`) values (100,'Call','images/phone.gif'); -insert into `calendar_event_type`(`calendar_event_type_id`,`short_description`,`icon_image`) values (200,'Email','images/email.gif'); -insert into `calendar_event_type`(`calendar_event_type_id`,`short_description`,`icon_image`) values (300,'Meeting','images/meeting.gif'); -insert into `calendar_event_type`(`calendar_event_type_id`,`short_description`,`icon_image`) values (400,'Interview','images/interview.gif'); -insert into `calendar_event_type`(`calendar_event_type_id`,`short_description`,`icon_image`) values (500,'Personal','images/personal.gif'); -insert into `calendar_event_type`(`calendar_event_type_id`,`short_description`,`icon_image`) values (600,'Other',''); +INSERT INTO `calendar_event_type` (`calendar_event_type_id`, `short_description`, `icon_image`) VALUES (100, 'Call', 'images/phone.gif'); +INSERT INTO `calendar_event_type` (`calendar_event_type_id`, `short_description`, `icon_image`) VALUES (200, 'Email', 'images/email.gif'); +INSERT INTO `calendar_event_type` (`calendar_event_type_id`, `short_description`, `icon_image`) VALUES (300, 'Meeting', 'images/meeting.gif'); +INSERT INTO `calendar_event_type` (`calendar_event_type_id`, `short_description`, `icon_image`) VALUES (400, 'Interview', 'images/interview.gif'); +INSERT INTO `calendar_event_type` (`calendar_event_type_id`, `short_description`, `icon_image`) VALUES (500, 'Personal', 'images/personal.gif'); +INSERT INTO `calendar_event_type` (`calendar_event_type_id`, `short_description`, `icon_image`) VALUES (600, 'Other', ''); /* Table structure for table `candidate` */ CREATE TABLE `candidate` ( - `candidate_id` int(11) NOT NULL AUTO_INCREMENT, - `site_id` int(11) NOT NULL DEFAULT '0', - `last_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `first_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `middle_name` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL, - `phone_home` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL, - `phone_cell` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL, - `phone_work` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL, - `address` text COLLATE utf8_unicode_ci, - `address2` text COLLATE utf8_unicode_ci, - `city` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `state` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `zip` varchar(16) COLLATE utf8_unicode_ci DEFAULT NULL, - `source` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, - `date_available` datetime DEFAULT NULL, - `can_relocate` int(1) NOT NULL DEFAULT '0', - `notes` text COLLATE utf8_unicode_ci, - `key_skills` text COLLATE utf8_unicode_ci, - `current_employer` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, - `entered_by` int(11) NOT NULL DEFAULT '0' COMMENT 'Created-by user.', - `owner` int(11) DEFAULT NULL, - `date_created` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', - `date_modified` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', - `email1` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, - `email2` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, - `web_site` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, - `import_id` int(11) NOT NULL DEFAULT '0', - `is_hot` int(1) NOT NULL DEFAULT '0', - `eeo_ethnic_type_id` int(11) DEFAULT '0', - `eeo_veteran_type_id` int(11) DEFAULT '0', - `eeo_disability_status` varchar(5) COLLATE utf8_unicode_ci DEFAULT '', - `eeo_gender` varchar(5) COLLATE utf8_unicode_ci DEFAULT '', - `desired_pay` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `current_pay` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `is_active` int(1) DEFAULT '1', - `is_admin_hidden` int(1) DEFAULT '0', - `best_time_to_call` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `candidate_id` INT(11) NOT NULL AUTO_INCREMENT, + `site_id` INT(11) NOT NULL DEFAULT '0', + `last_name` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `first_name` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `middle_name` VARCHAR(32) COLLATE utf8_unicode_ci DEFAULT NULL, + `phone_home` VARCHAR(40) COLLATE utf8_unicode_ci DEFAULT NULL, + `phone_cell` VARCHAR(40) COLLATE utf8_unicode_ci DEFAULT NULL, + `phone_work` VARCHAR(40) COLLATE utf8_unicode_ci DEFAULT NULL, + `address` TEXT COLLATE utf8_unicode_ci, + `address2` TEXT COLLATE utf8_unicode_ci, + `city` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, + `state` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, + `zip` VARCHAR(16) COLLATE utf8_unicode_ci DEFAULT NULL, + `source` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, + `date_available` DATETIME DEFAULT NULL, + `can_relocate` INT(1) NOT NULL DEFAULT '0', + `notes` TEXT COLLATE utf8_unicode_ci, + `key_skills` TEXT COLLATE utf8_unicode_ci, + `current_employer` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, + `entered_by` INT(11) NOT NULL DEFAULT '0' COMMENT 'Created-by user.', + `owner` INT(11) DEFAULT NULL, + `date_created` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', + `date_modified` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', + `email1` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, + `email2` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, + `web_site` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, + `import_id` INT(11) NOT NULL DEFAULT '0', + `is_hot` INT(1) NOT NULL DEFAULT '0', + `eeo_ethnic_type_id` INT(11) DEFAULT '0', + `eeo_veteran_type_id` INT(11) DEFAULT '0', + `eeo_disability_status` VARCHAR(5) COLLATE utf8_unicode_ci DEFAULT '', + `eeo_gender` VARCHAR(5) COLLATE utf8_unicode_ci DEFAULT '', + `desired_pay` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, + `current_pay` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, + `is_active` INT(1) DEFAULT '1', + `is_admin_hidden` INT(1) DEFAULT '0', + `best_time_to_call` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', PRIMARY KEY (`candidate_id`), KEY `IDX_first_name` (`first_name`), KEY `IDX_last_name` (`last_name`), @@ -200,8 +200,8 @@ CREATE TABLE `candidate` ( KEY `IDX_owner` (`owner`), KEY `IDX_date_created` (`date_created`), KEY `IDX_date_modified` (`date_modified`), - KEY `IDX_site_first_last_modified` (`site_id`,`first_name`,`last_name`,`date_modified`), - KEY `IDX_site_id_email_1_2` (`site_id`,`email1`(8),`email2`(8)) + KEY `IDX_site_first_last_modified` (`site_id`, `first_name`, `last_name`, `date_modified`), + KEY `IDX_site_id_email_1_2` (`site_id`, `email1`(8), `email2`(8)) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /* Data for the table `candidate` */ @@ -209,9 +209,9 @@ CREATE TABLE `candidate` ( /* Table structure for table `candidate_duplicates` */ CREATE TABLE `candidate_duplicates` ( - `old_candidate_id` int(11) NOT NULL, - `new_candidate_id` int(11) NOT NULL, - `site_id` int(11) NOT NULL, + `old_candidate_id` INT(11) NOT NULL, + `new_candidate_id` INT(11) NOT NULL, + `site_id` INT(11) NOT NULL, PRIMARY KEY (`old_candidate_id`, `new_candidate_id`), KEY `IDX_old_candidate_id` (`old_candidate_id`), KEY `IDX_new_candidate_id` (`new_candidate_id`) @@ -222,24 +222,24 @@ CREATE TABLE `candidate_duplicates` ( /* Table structure for table `candidate_joborder` */ CREATE TABLE `candidate_joborder` ( - `candidate_joborder_id` int(11) NOT NULL AUTO_INCREMENT, - `candidate_id` int(11) NOT NULL DEFAULT '0', - `joborder_id` int(11) NOT NULL DEFAULT '0', - `site_id` int(11) NOT NULL DEFAULT '0', - `status` int(11) NOT NULL DEFAULT '0', - `date_submitted` datetime DEFAULT NULL, - `date_created` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', - `date_modified` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', - `rating_value` int(5) DEFAULT NULL, - `added_by` int(11) DEFAULT NULL, + `candidate_joborder_id` INT(11) NOT NULL AUTO_INCREMENT, + `candidate_id` INT(11) NOT NULL DEFAULT '0', + `joborder_id` INT(11) NOT NULL DEFAULT '0', + `site_id` INT(11) NOT NULL DEFAULT '0', + `status` INT(11) NOT NULL DEFAULT '0', + `date_submitted` DATETIME DEFAULT NULL, + `date_created` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', + `date_modified` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', + `rating_value` INT(5) DEFAULT NULL, + `added_by` INT(11) DEFAULT NULL, PRIMARY KEY (`candidate_joborder_id`), KEY `IDX_candidate_id` (`candidate_id`), KEY `IDX_site_id` (`site_id`), KEY `IDX_date_submitted` (`date_submitted`), KEY `IDX_date_created` (`date_created`), KEY `IDX_date_modified` (`date_modified`), - KEY `IDX_status_special` (`site_id`,`status`), - KEY `IDX_site_joborder` (`site_id`,`joborder_id`), + KEY `IDX_status_special` (`site_id`, `status`), + KEY `IDX_site_joborder` (`site_id`, `joborder_id`), KEY `IDX_joborder_id` (`joborder_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; @@ -248,46 +248,46 @@ CREATE TABLE `candidate_joborder` ( /* Table structure for table `candidate_joborder_status` */ CREATE TABLE `candidate_joborder_status` ( - `candidate_joborder_status_id` int(11) NOT NULL DEFAULT '0', - `short_description` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `can_be_scheduled` int(1) NOT NULL DEFAULT '0', - `triggers_email` int(1) NOT NULL DEFAULT '1', - `is_enabled` int(1) NOT NULL DEFAULT '1', + `candidate_joborder_status_id` INT(11) NOT NULL DEFAULT '0', + `short_description` VARCHAR(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `can_be_scheduled` INT(1) NOT NULL DEFAULT '0', + `triggers_email` INT(1) NOT NULL DEFAULT '1', + `is_enabled` INT(1) NOT NULL DEFAULT '1', PRIMARY KEY (`candidate_joborder_status_id`), KEY `IDX_short_description` (`short_description`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /* Data for the table `candidate_joborder_status` */ -insert into `candidate_joborder_status`(`candidate_joborder_status_id`,`short_description`,`can_be_scheduled`,`triggers_email`,`is_enabled`) values (0,'No Status',0,0,1); -insert into `candidate_joborder_status`(`candidate_joborder_status_id`,`short_description`,`can_be_scheduled`,`triggers_email`,`is_enabled`) values (100,'No Contact',0,0,1); -insert into `candidate_joborder_status`(`candidate_joborder_status_id`,`short_description`,`can_be_scheduled`,`triggers_email`,`is_enabled`) values (200,'Contacted',0,0,1); -insert into `candidate_joborder_status`(`candidate_joborder_status_id`,`short_description`,`can_be_scheduled`,`triggers_email`,`is_enabled`) values (250,'Candidate Responded',0,0,1); -insert into `candidate_joborder_status`(`candidate_joborder_status_id`,`short_description`,`can_be_scheduled`,`triggers_email`,`is_enabled`) values (300,'Qualifying',0,1,1); -insert into `candidate_joborder_status`(`candidate_joborder_status_id`,`short_description`,`can_be_scheduled`,`triggers_email`,`is_enabled`) values (400,'Submitted',0,1,1); -insert into `candidate_joborder_status`(`candidate_joborder_status_id`,`short_description`,`can_be_scheduled`,`triggers_email`,`is_enabled`) values (500,'Interviewing',0,1,1); -insert into `candidate_joborder_status`(`candidate_joborder_status_id`,`short_description`,`can_be_scheduled`,`triggers_email`,`is_enabled`) values (600,'Offered',0,1,1); -insert into `candidate_joborder_status`(`candidate_joborder_status_id`,`short_description`,`can_be_scheduled`,`triggers_email`,`is_enabled`) values (650,'Not in Consideration',0,0,1); -insert into `candidate_joborder_status`(`candidate_joborder_status_id`,`short_description`,`can_be_scheduled`,`triggers_email`,`is_enabled`) values (700,'Client Declined',0,0,1); -insert into `candidate_joborder_status`(`candidate_joborder_status_id`,`short_description`,`can_be_scheduled`,`triggers_email`,`is_enabled`) values (800,'Placed',0,1,1); +INSERT INTO `candidate_joborder_status` (`candidate_joborder_status_id`, `short_description`, `can_be_scheduled`, `triggers_email`, `is_enabled`) VALUES (0, 'No Status', 0, 0, 1); +INSERT INTO `candidate_joborder_status` (`candidate_joborder_status_id`, `short_description`, `can_be_scheduled`, `triggers_email`, `is_enabled`) VALUES (100, 'No Contact', 0, 0, 1); +INSERT INTO `candidate_joborder_status` (`candidate_joborder_status_id`, `short_description`, `can_be_scheduled`, `triggers_email`, `is_enabled`) VALUES (200, 'Contacted', 0, 0, 1); +INSERT INTO `candidate_joborder_status` (`candidate_joborder_status_id`, `short_description`, `can_be_scheduled`, `triggers_email`, `is_enabled`) VALUES (250, 'Candidate Responded', 0, 0, 1); +INSERT INTO `candidate_joborder_status` (`candidate_joborder_status_id`, `short_description`, `can_be_scheduled`, `triggers_email`, `is_enabled`) VALUES (300, 'Qualifying', 0, 1, 1); +INSERT INTO `candidate_joborder_status` (`candidate_joborder_status_id`, `short_description`, `can_be_scheduled`, `triggers_email`, `is_enabled`) VALUES (400, 'Submitted', 0, 1, 1); +INSERT INTO `candidate_joborder_status` (`candidate_joborder_status_id`, `short_description`, `can_be_scheduled`, `triggers_email`, `is_enabled`) VALUES (500, 'Interviewing', 0, 1, 1); +INSERT INTO `candidate_joborder_status` (`candidate_joborder_status_id`, `short_description`, `can_be_scheduled`, `triggers_email`, `is_enabled`) VALUES (600, 'Offered', 0, 1, 1); +INSERT INTO `candidate_joborder_status` (`candidate_joborder_status_id`, `short_description`, `can_be_scheduled`, `triggers_email`, `is_enabled`) VALUES (650, 'Not in Consideration', 0, 0, 1); +INSERT INTO `candidate_joborder_status` (`candidate_joborder_status_id`, `short_description`, `can_be_scheduled`, `triggers_email`, `is_enabled`) VALUES (700, 'Client Declined', 0, 0, 1); +INSERT INTO `candidate_joborder_status` (`candidate_joborder_status_id`, `short_description`, `can_be_scheduled`, `triggers_email`, `is_enabled`) VALUES (800, 'Placed', 0, 1, 1); /* Table structure for table `candidate_joborder_status_history` */ CREATE TABLE `candidate_joborder_status_history` ( - `candidate_joborder_status_history_id` int(11) NOT NULL AUTO_INCREMENT, - `candidate_id` int(11) NOT NULL DEFAULT '0', - `joborder_id` int(11) NOT NULL DEFAULT '0', - `date` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', - `status_from` int(11) NOT NULL DEFAULT '0', - `status_to` int(11) NOT NULL DEFAULT '0', - `site_id` int(11) NOT NULL DEFAULT '0', + `candidate_joborder_status_history_id` INT(11) NOT NULL AUTO_INCREMENT, + `candidate_id` INT(11) NOT NULL DEFAULT '0', + `joborder_id` INT(11) NOT NULL DEFAULT '0', + `date` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', + `status_from` INT(11) NOT NULL DEFAULT '0', + `status_to` INT(11) NOT NULL DEFAULT '0', + `site_id` INT(11) NOT NULL DEFAULT '0', PRIMARY KEY (`candidate_joborder_status_history_id`), KEY `IDX_site_id` (`site_id`), KEY `IDX_status_to` (`status_to`), - KEY `IDX_status_to_site_id` (`status_to`,`site_id`), - KEY `IDX_candidate_joborder_status_to_site` (`candidate_id`,`joborder_id`,`status_to`,`site_id`), - KEY `IDX_joborder_site` (`joborder_id`,`site_id`), - KEY `IDX_site_joborder_status_to` (`site_id`,`joborder_id`,`status_to`) + KEY `IDX_status_to_site_id` (`status_to`, `site_id`), + KEY `IDX_candidate_joborder_status_to_site` (`candidate_id`, `joborder_id`, `status_to`, `site_id`), + KEY `IDX_joborder_site` (`joborder_id`, `site_id`), + KEY `IDX_site_joborder_status_to` (`site_id`, `joborder_id`, `status_to`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /* Data for the table `candidate_joborder_status_history` */ @@ -295,9 +295,9 @@ CREATE TABLE `candidate_joborder_status_history` ( /* Table structure for table `candidate_jobordrer_status_type` */ CREATE TABLE `candidate_jobordrer_status_type` ( - `candidate_status_type_id` int(11) NOT NULL DEFAULT '0', - `short_description` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `can_be_scheduled` int(1) NOT NULL DEFAULT '0', + `candidate_status_type_id` INT(11) NOT NULL DEFAULT '0', + `short_description` VARCHAR(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `can_be_scheduled` INT(1) NOT NULL DEFAULT '0', PRIMARY KEY (`candidate_status_type_id`), KEY `IDX_short_description` (`short_description`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; @@ -307,10 +307,10 @@ CREATE TABLE `candidate_jobordrer_status_type` ( /* Table structure for table `candidate_source` */ CREATE TABLE `candidate_source` ( - `source_id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `site_id` int(11) DEFAULT NULL, - `date_created` datetime DEFAULT NULL, + `source_id` INT(11) NOT NULL AUTO_INCREMENT, + `name` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `site_id` INT(11) DEFAULT NULL, + `date_created` DATETIME DEFAULT NULL, PRIMARY KEY (`source_id`), KEY `siteID` (`site_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; @@ -320,21 +320,21 @@ CREATE TABLE `candidate_source` ( /* Table structure for table `candidate_tag` */ CREATE TABLE `candidate_tag` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `site_id` int(10) unsigned DEFAULT NULL, - `candidate_id` int(10) unsigned NOT NULL, - `tag_id` int(10) unsigned NOT NULL, + `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, + `site_id` INT(10) UNSIGNED, + `candidate_id` INT(10) UNSIGNED NOT NULL, + `tag_id` INT(10) UNSIGNED NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /* Table structure for table `career_portal_questionnaire` */ CREATE TABLE `career_portal_questionnaire` ( - `career_portal_questionnaire_id` int(11) NOT NULL AUTO_INCREMENT, - `title` varchar(255) NOT NULL DEFAULT '', - `site_id` int(11) NOT NULL DEFAULT '0', - `description` varchar(255) DEFAULT NULL, - `is_active` tinyint(1) NOT NULL DEFAULT '1', + `career_portal_questionnaire_id` INT(11) NOT NULL AUTO_INCREMENT, + `title` VARCHAR(255) NOT NULL DEFAULT '', + `site_id` INT(11) NOT NULL DEFAULT '0', + `description` VARCHAR(255) DEFAULT NULL, + `is_active` TINYINT(1) NOT NULL DEFAULT '1', PRIMARY KEY (`career_portal_questionnaire_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; @@ -343,18 +343,18 @@ CREATE TABLE `career_portal_questionnaire` ( /* Table structure for table `career_portal_questionnaire_answer` */ CREATE TABLE `career_portal_questionnaire_answer` ( - `career_portal_questionnaire_answer_id` int(11) NOT NULL AUTO_INCREMENT, - `career_portal_questionnaire_question_id` int(11) NOT NULL, - `career_portal_questionnaire_id` int(11) NOT NULL, - `text` varchar(255) NOT NULL DEFAULT '', - `action_source` varchar(128) DEFAULT NULL, - `action_notes` text, - `action_is_hot` tinyint(1) DEFAULT '0', - `action_is_active` tinyint(1) DEFAULT '0', - `action_can_relocate` tinyint(1) DEFAULT '0', - `action_key_skills` varchar(255) DEFAULT NULL, - `position` int(4) NOT NULL DEFAULT '0', - `site_id` int(11) NOT NULL DEFAULT '0', + `career_portal_questionnaire_answer_id` INT(11) NOT NULL AUTO_INCREMENT, + `career_portal_questionnaire_question_id` INT(11) NOT NULL, + `career_portal_questionnaire_id` INT(11) NOT NULL, + `text` VARCHAR(255) NOT NULL DEFAULT '', + `action_source` VARCHAR(128) DEFAULT NULL, + `action_notes` TEXT, + `action_is_hot` TINYINT(1) DEFAULT '0', + `action_is_active` TINYINT(1) DEFAULT '0', + `action_can_relocate` TINYINT(1) DEFAULT '0', + `action_key_skills` VARCHAR(255) DEFAULT NULL, + `position` INT(4) NOT NULL DEFAULT '0', + `site_id` INT(11) NOT NULL DEFAULT '0', PRIMARY KEY (`career_portal_questionnaire_answer_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; @@ -363,14 +363,14 @@ CREATE TABLE `career_portal_questionnaire_answer` ( /* Table structure for table `career_portal_questionnaire_history` */ CREATE TABLE `career_portal_questionnaire_history` ( - `career_portal_questionnaire_history_id` int(11) NOT NULL AUTO_INCREMENT, - `site_id` int(11) NOT NULL DEFAULT '0', - `candidate_id` int(11) NOT NULL DEFAULT '0', - `question` varchar(255) NOT NULL DEFAULT '', - `answer` varchar(255) NOT NULL DEFAULT '', - `questionnaire_title` varchar(255) NOT NULL DEFAULT '', - `questionnaire_description` varchar(255) NOT NULL DEFAULT '', - `date` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', + `career_portal_questionnaire_history_id` INT(11) NOT NULL AUTO_INCREMENT, + `site_id` INT(11) NOT NULL DEFAULT '0', + `candidate_id` INT(11) NOT NULL DEFAULT '0', + `question` VARCHAR(255) NOT NULL DEFAULT '', + `answer` VARCHAR(255) NOT NULL DEFAULT '', + `questionnaire_title` VARCHAR(255) NOT NULL DEFAULT '', + `questionnaire_description` VARCHAR(255) NOT NULL DEFAULT '', + `date` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', PRIMARY KEY (`career_portal_questionnaire_history_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; @@ -379,15 +379,15 @@ CREATE TABLE `career_portal_questionnaire_history` ( /* Table structure for table `career_portal_questionnaire_question` */ CREATE TABLE `career_portal_questionnaire_question` ( - `career_portal_questionnaire_question_id` int(11) NOT NULL AUTO_INCREMENT, - `career_portal_questionnaire_id` int(11) NOT NULL, - `text` varchar(255) NOT NULL DEFAULT '', - `minimum_length` int(11) DEFAULT NULL, - `maximum_length` int(11) DEFAULT NULL, - `required` tinyint(1) NOT NULL DEFAULT '0', - `position` int(4) NOT NULL DEFAULT '0', - `site_id` int(11) NOT NULL DEFAULT '0', - `type` int(11) NOT NULL DEFAULT '0', + `career_portal_questionnaire_question_id` INT(11) NOT NULL AUTO_INCREMENT, + `career_portal_questionnaire_id` INT(11) NOT NULL, + `text` VARCHAR(255) NOT NULL DEFAULT '', + `minimum_length` INT(11) DEFAULT NULL, + `maximum_length` INT(11) DEFAULT NULL, + `required` TINYINT(1) NOT NULL DEFAULT '0', + `position` INT(4) NOT NULL DEFAULT '0', + `site_id` INT(11) NOT NULL DEFAULT '0', + `type` INT(11) NOT NULL DEFAULT '0', PRIMARY KEY (`career_portal_questionnaire_question_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; @@ -396,46 +396,46 @@ CREATE TABLE `career_portal_questionnaire_question` ( /* Table structure for table `career_portal_template` */ CREATE TABLE `career_portal_template` ( - `career_portal_template_id` int(11) NOT NULL AUTO_INCREMENT, - `career_portal_name` varchar(255) DEFAULT NULL, - `setting` varchar(128) NOT NULL DEFAULT '', - `value` text, + `career_portal_template_id` INT(11) NOT NULL AUTO_INCREMENT, + `career_portal_name` VARCHAR(255) DEFAULT NULL, + `setting` VARCHAR(128) NOT NULL DEFAULT '', + `value` TEXT, PRIMARY KEY (`career_portal_template_id`) ) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8; /* Data for the table `career_portal_template` */ -insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (1,'Blank Page','Left',''); -insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (2,'Blank Page','Footer',''); -insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (3,'Blank Page','Header',''); -insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (4,'Blank Page','Content - Main',''); -insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (5,'Blank Page','CSS',''); -insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (6,'Blank Page','Content - Search Results',''); -insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (7,'Blank Page','Content - Questionnaire',''); -insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (8,'Blank Page','Content - Job Details',''); -insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (9,'Blank Page','Content - Thanks for your Submission',''); -insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (10,'Blank Page','Content - Apply for Position',''); -insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (11,'CATS 2.0','Left',''); -insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (12,'CATS 2.0','Footer','</div>'); -insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (13,'CATS 2.0','Header','<div id=\"container\">\r\n <div id=\"logo\"><img src=\"images/careers_cats.gif\" alt=\"IMAGE: CATS Applicant Tracking System Careers Page\" /></div>\r\n <div id=\"actions\">\r\n <h2>Shortcuts:</h2>\r\n <a href=\"index.php\" onmouseover=\"buttonMouseOver(\'returnToMain\',true);\" onmouseout=\"buttonMouseOver(\'returnToMain\',false);\"><img src=\"images/careers_return.gif\" id=\"returnToMain\" alt=\"IMAGE: Return to Main\" /></a>\r\n<a href=\"<rssURL>\" onmouseover=\"buttonMouseOver(\'rssFeed\',true);\" onmouseout=\"buttonMouseOver(\'rssFeed\',false);\"><img src=\"images/careers_rss.gif\" id=\"rssFeed\" alt=\"IMAGE: RSS Feed\" /></a>\r\n <a href=\"index.php?m=careers&p=showAll\" onmouseover=\"buttonMouseOver(\'showAllJobs\',true);\" onmouseout=\"buttonMouseOver(\'showAllJobs\',false);\"><img src=\"images/careers_show.gif\" id=\"showAllJobs\" alt=\"IMAGE: Show All Jobs\" /></a>\r\n </div>'); -insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (14,'CATS 2.0','Content - Main','<div id=\"careerContent\">\r\n <registeredCandidate>\r\n <h1>Available Openings at <siteName></h1>\r\n <div id=\"descriptive\">\r\n <p>Change your life today by becoming an integral part of our winning team.</p>\r\n <p>If you are interested, we invite you to view the <a href=\"index.php?m=careers&p=showAll\">current opening positions</a> at our company.</p><br /><br /><registeredLoginTitle><h1 style=\"padding:0;margin:0;border:0\">Have you applied with us before?</h1></registeredLoginTitle><registeredLogin>\r\n </div>\r\n <div id=\"detailsTools\">\r\n <h2>Perform an action:</h2>\r\n <ul>\r\n <li><a href=\"\">Visit our website</a></li>\r\n </ul>\r\n </div>\r\n</div>'); -insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (15,'CATS 2.0','CSS','table.sortable\r\n{\r\ntext-align:left;\r\nempty-cells: show;\r\nwidth: 940px;\r\n}\r\ntd\r\n{\r\npadding:5px;\r\n}\r\ntr.rowHeading\r\n{\r\n background: #e0e0e0; border: 1px solid #cccccc; border-left: none; border-right: none;\r\n}\r\ntr.oddTableRow\r\n{\r\nbackground: #ebebeb; \r\n}\r\ntr.evenTableRow\r\n{\r\n background: #ffffff; \r\n}\r\na.sortheader:hover,\r\na.sortheader:link,\r\na.sortheader:visited\r\n{\r\ncolor:#000;\r\n}\r\n\r\nbody, html { margin: 0; padding: 0; background: #ffffff; font: normal 12px/14px Arial, Helvetica, sans-serif; color: #000000; }\r\n#container { margin: 0 auto; padding: 0; width: 940px; height: auto; }\r\n#logo { float: left; margin: 0; }\r\n #logo img { width: 424px; height: 103px; }\r\n#actions { float: right; margin: 0; width: 310px; height: 100px; background: #efefef; border: 1px solid #cccccc; }\r\n #actions img { float: left; margin: 2px 6px 2px 15px; width: 130px; height: 25px; }\r\n#footer { clear: both; margin: 20px auto 0 auto; width: 150px; }\r\n #footer img { width: 137px; height: 38px; }\r\n\r\na:link, a:active { color: #1763b9; }\r\na:hover { color: #c75a01; }\r\na:visited { color: #333333; }\r\nimg { border: none; }\r\n\r\nh1 { margin: 0 0 10px 0; font: bold 18px Arial, Helvetica, sans-serif; }\r\nh2 { margin: 8px 0 8px 15px; font: bold 14px Arial, Helvetica, sans-serif; }\r\nh3 { margin: 0; font: bold 14px Arial, Helvetica, sans-serif; }\r\np { font: normal 12px Arial, Helvetica, sans-serif; }\r\np.instructions { margin: 0 0 0 10px; font: italic 12px Arial, Helvetica, sans-serif; color: #666666; }\r\n\r\n\r\n/* CONTENTS ON PAGE SPECS */\r\n#careerContent { clear: both; padding: 15px 0 0 0; }\r\n\r\n \r\n/* DISPLAY JOB DETAILS */\r\n#detailsTable { width: 400px; }\r\n #detailsTable td.detailsHeader { width: 30%; }\r\ndiv#descriptive { float: left; width: 585px; }\r\ndiv#detailsTools { float: right; padding: 0 0 8px 0; width: 280px; background: #ffffff; border: 1px solid #cccccc; }\r\n div#detailsTools img { margin: 2px 6px 5px 15px; }\r\n\r\n/* DISPLAY APPLICATION FORM */\r\ndiv.applyBoxLeft, div.applyBoxRight { width: 450px; height: 470px; background: #f9f9f9; border: 1px solid #cccccc; border-top: none; }\r\ndiv.applyBoxLeft { float: left; margin: 0 10px 0 0; }\r\ndiv.applyBoxRight { float: right; margin: 0 0 0 10px; }\r\n div.applyBoxLeft div, div.applyBoxRight div { margin: 0 0 5px 0; padding: 3px 10px; background: #efefef; border-top: 1px solid #cccccc; border-bottom: 1px solid #cccccc; }\r\n div.applyBoxLeft table, div.applyBoxRight table { margin: 0 auto; width: 420px; }\r\n div.applyBoxLeft table td, div.applyBoxRight table td { padding: 3px; vertical-align: top; }\r\n td.label { text-align: right; width: 110px; }\r\n form#applyToJobForm { }\r\n form#applyToJobForm label { font-weight: bold; }\r\n form#applyToJobForm input.inputBoxName, form#applyToJobForm input.inputBoxNormal { width: 285px; height: 15px; }\r\n form#applyToJobForm input.submitButton { width: 197px; height: 27px; background: url(\'images/careers_submit.gif\') no-repeat; }\r\n\r\n form#applyToJobForm input.submitButtonDown { width: 197px; height: 27px; background: url(\'images/careers_submit-o.gif\') no-repeat; }\r\n form#applyToJobForm textarea { margin: 8px 0 0 0; width: 410px; height: 170px; }\r\n form#applyToJobForm textarea.inputBoxArea{ width: 285px; height: 70px; }\r\n\r\n'); -insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (16,'CATS 2.0','Content - Search Results','<div id=\"careerContent\">\r\n <registeredCandidate>\r\n <h1>Current Available Openings, Recently Posted Jobs: <numberOfSearchResults></h1>\r\n<searchResultsTable>\r\n </div>'); -insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (17,'CATS 2.0','Content - Questionnaire','<div id=\"careerContent\">\r\n<questionnaire>\r\n<br /><br />\r\n<div style=\"text-align: right;\">\r\n<submit value=\"Continue\">\r\n</div>\r\n</div>'); -insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (18,'CATS 2.0','Content - Job Details','<div id=\"careerContent\">\r\n <registeredCandidate>\r\n <h1>Position Details: <title></h1>\r\n <table id=\"detailsTable\">\r\n <tr>\r\n <td class=\"detailsHeader\"><strong>Location:</strong></td>\r\n <td><city>, <state></td>\r\n </tr>\r\n <tr>\r\n <td class=\"detailsHeader\"><strong>Openings:</strong></td>\r\n <td><openings></td>\r\n </tr>\r\n <tr>\r\n <td class=\"detailsHeader\"><strong>Salary Range:</strong></td>\r\n <td><salary></td>\r\n </tr>\r\n </table>\r\n <div id=\"descriptive\">\r\n <p><strong>Description:</strong></p>\r\n <description>\r\n </div>\r\n <div id=\"detailsTools\">\r\n <h2>Perform an action:</h2>\r\n <a-applyToJob onmouseover=\"buttonMouseOver(\'applyToPosition\',true);\" onmouseout=\"buttonMouseOver(\'applyToPosition\',false);\"><img src=\"images/careers_apply.gif\" id=\"applyToPosition\" alt=\"IMAGE: Apply to Position\" /></a>\r\n </div>\r\n </div>'); -insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (19,'CATS 2.0','Content - Thanks for your Submission','<div id=\"careerContent\">\r\n <h1>Application Submitted For: <title></h1>\r\n <div id=\"descriptive\">\r\n <p>Please check your email inbox — You should receive an email confirmation of your application.</p>\r\n <p>Thank you for submitting your application to us. We will review it shortly and make contact with you soon.</p>\r\n </div>\r\n <div id=\"detailsTools\">\r\n <h2>Perform an action:</h2>\r\n <ul>\r\n <li><a href=\"\">Visit our website</a></li>\r\n </ul>\r\n </div>\r\n </div>'); -insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (20,'CATS 2.0','Content - Apply for Position','<div id=\"careerContent\">\r\n <h1>Applying to: <title></h1>\r\n <div class=\"applyBoxLeft\">\r\n <div><h3>1. Import Resume (or CV) and Populate Fields</h3></div>\r\n <table>\r\n <tr>\r\n <td>\r\n \r\n <input-resumeUploadPreview>\r\n </td>\r\n </tr>\r\n </table>\r\n <br />\r\n\r\n <div><h3>2. Tell us about yourself</h3></div>\r\n <p class=\"instructions\">All fields marked with asterisk (*) are required.</p>\r\n <table>\r\n <tr>\r\n <td class=\"label\"><label id=\"firstNameLabel\" for=\"firstName\">*First Name:</label></td>\r\n <td><input-firstName></td>\r\n </tr>\r\n <tr>\r\n <td class=\"label\"><label id=\"lastNameLabel\" for=\"lastName\">*Last Name:</label></td>\r\n <td><input-lastName></td>\r\n </tr>\r\n <tr>\r\n <td class=\"label\"><label id=\"emailLabel\" for=\"email\">*Email Adddress:</label></td>\r\n <td><input-email></td>\r\n </tr>\r\n <tr>\r\n <td class=\"label\"><label id=\"emailConfirmLabel\" for=\"emailconfirm\">*Confirm Email:</label></td>\r\n <td><input-emailconfirm></td>\r\n </tr>\r\n </table>\r\n </div>\r\n \r\n <div class=\"applyBoxRight\">\r\n <div><h3>3. How may we contact you?</h3></div>\r\n <table>\r\n <tr>\r\n <td class=\"label\"><label id=\"homePhoneLabel\" for=\"homePhone\">Home Phone:</label></td>\r\n <td><input-phone-home></td>\r\n </tr>\r\n <tr>\r\n <td class=\"label\"><label id=\"mobilePhoneLabel\" for=\"mobilePhone\">Mobile Phone:</label></td>\r\n <td><input-phone-cell></td>\r\n </tr>\r\n <tr>\r\n <td class=\"label\"><label id=\"workPhoneLabel\" for=\"workPhone\">Work Phone:</label></td>\r\n <td><input-phone></td>\r\n </tr>\r\n <tr>\r\n <td class=\"label\"><label id=\"bestTimeLabel\" for=\"bestTime\">*Best time to call:</label></td>\r\n <td><input-best-time-to-call></td>\r\n </tr>\r\n <tr>\r\n <td class=\"label\"><label id=\"mailingAddressLabel\" for=\"mailingAddress\">Mailing Address:</label></td>\r\n <td><input-address></td>\r\n </tr>\r\n <tr>\r\n <td class=\"label\"><label id=\"cityProvinceLabel\" for=\"cityProvince\">*City/Province:</label></td>\r\n <td><input-city></td>\r\n </tr>\r\n <tr>\r\n <td class=\"label\"><label id=\"stateCountryLabel\" for=\"stateCountry\">*State/Country:</label></td>\r\n <td><input-state></td>\r\n </tr>\r\n <tr>\r\n <td class=\"label\"><label id=\"zipPostalLabel\" for=\"zipPostal\">*Zip/Postal Code:</label></td>\r\n <td><input-zip></td>\r\n </tr>\r\n </table>\r\n <br />\r\n <div><h3>4. Additional Information</h3></div>\r\n <table>\r\n <tr>\r\n <td class=\"label\"><label id=\"keySkillsLabel\" for=\"keySkills\">*Key Skills:</label></td>\r\n <td><input-keySkills></td>\r\n </tr>\r\n <tr>\r\n <td> </td>\r\n <td><img src=\"images/careers_submit.gif\" onmouseover=\"buttonMouseOver(\'submitApplicationNow\',true)\" onmouseout=\"buttonMouseOver(\'submitApplicationNow\',false)\" style=\"cursor: pointer;\" id=\"submitApplicationNow\" alt=\"Submit Application Now\" onclick=\"if (applyValidate()) { document.applyToJobForm.submit(); }\" /></td>\r\n </tr>\r\n </table>\r\n </div>\r\n </div>'); -insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (21,'CATS 2.0','Content - Candidate Registration','<div id=\"careerContent\">\r\n <h1><applyContent>Applying to <title></applyContent></h1>\r\n <center>\r\n <table cellpadding=\"0\" cellspacing=\"0\">\r\n <tr>\r\n <td><label id=\"emailLabel\" for=\"email\"><h2>Enter your e-mail address:</h2></label></td>\r\n <td><input-email></td>\r\n </tr>\r\n <tr>\r\n <td align=\"right\" valign=\"top\"><input-new></td>\r\n <td style=\"line-height: 18px;\">\r\n <applyContent>\r\n <strong>I have not registered on this website.</strong><br />\r\n (I haven\'t applied to any jobs online)\r\n </applyContent>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"right\" valign=\"top\"><input-registered></td>\r\n <td style=\"line-height: 20px;\">\r\n <strong>I have registered before</strong><br />\r\n and my last name is:<br />\r\n <input-lastName><br />\r\n and my zip code is:<br />\r\n <input-zip><br /><br />\r\n <input-rememberMe> Remember my information for future visits<br /><br />\r\n <input-submit><br /><br />\r\n </td>\r\n </tr>\r\n </table>\r\n </center>\r\n</div>\r\n'); -insert into `career_portal_template`(`career_portal_template_id`,`career_portal_name`,`setting`,`value`) values (22,'CATS 2.0','Content - Candidate Profile','<div id=\"careerContent\"> <h1 style=\"padding: 0; margin: 0; border: 0;\">My Profile</h1><h3 style=\"font-weight: normal;\">Any changes you make to your profile will be updated on our website for all past and future jobs you apply for.</h3> <br /> <div class=\"applyBoxLeft\"> <div><h3>1. Tell us about yourself</h3></div> <p class=\"instructions\">All fields marked with asterisk (*) are required.</p> <table> <tr> <td class=\"label\"><label id=\"firstNameLabel\" for=\"firstName\">*First Name:</label></td> <td><input-firstName></td> </tr> <tr> <td class=\"label\"><label id=\"lastNameLabel\" for=\"lastName\">*Last Name:</label></td> <td><input-lastName></td> </tr> <tr> <td class=\"label\"><label id=\"emailLabel\" for=\"email\">*Email Adddress:</label></td> <td><input-email1></td> </tr> <tr> <td colspan=\"2\"> <input-resume> </td> </tr> </table> </div> <div class=\"applyBoxRight\"> <div><h3>2. How may we contact you?</h3></div> <table> <tr> <td class=\"label\"><label id=\"homePhoneLabel\" for=\"homePhone\">Home Phone:</label></td> <td><input-phoneHome></td> </tr> <tr> <td class=\"label\"><label id=\"mobilePhoneLabel\" for=\"mobilePhone\">Mobile Phone:</label></td> <td><input-phoneCell></td> </tr> <tr> <td class=\"label\"><label id=\"workPhoneLabel\" for=\"workPhone\">Work Phone:</label></td> <td><input-phoneWork></td> </tr> <tr> <td class=\"label\"><label id=\"bestTimeLabel\" for=\"bestTime\">*Best time to call:</label></td> <td><input-bestTimeToCall></td> </tr> <tr> <td class=\"label\"><label id=\"mailingAddressLabel\" for=\"mailingAddress\">Mailing Address:</label></td> <td><input-address></td> </tr> <tr> <td class=\"label\"><label id=\"cityProvinceLabel\" for=\"cityProvince\">*City/Province:</label></td> <td><input-city></td> </tr> <tr> <td class=\"label\"><label id=\"stateCountryLabel\" for=\"stateCountry\">*State/Country:</label></td> <td><input-state></td> </tr> <tr> <td class=\"label\"><label id=\"zipPostalLabel\" for=\"zipPostal\">*Zip/Postal Code:</label></td> <td><input-zip></td> </tr> </table> <br /> <div><h3>3. Additional Information</h3></div> <table> <tr> <td class=\"label\"><label id=\"keySkillsLabel\" for=\"keySkills\">*Key Skills:</label></td> <td><input-keySkills></td> </tr> <tr> <td> </td> <td style=\"padding-top: 40px;\"><input-submit></td> </tr> </table> </div></div>'); +INSERT INTO `career_portal_template` (`career_portal_template_id`, `career_portal_name`, `setting`, `value`) VALUES (1, 'Blank Page', 'Left', ''); +INSERT INTO `career_portal_template` (`career_portal_template_id`, `career_portal_name`, `setting`, `value`) VALUES (2, 'Blank Page', 'Footer', ''); +INSERT INTO `career_portal_template` (`career_portal_template_id`, `career_portal_name`, `setting`, `value`) VALUES (3, 'Blank Page', 'Header', ''); +INSERT INTO `career_portal_template` (`career_portal_template_id`, `career_portal_name`, `setting`, `value`) VALUES (4, 'Blank Page', 'Content - Main', ''); +INSERT INTO `career_portal_template` (`career_portal_template_id`, `career_portal_name`, `setting`, `value`) VALUES (5, 'Blank Page', 'CSS', ''); +INSERT INTO `career_portal_template` (`career_portal_template_id`, `career_portal_name`, `setting`, `value`) VALUES (6, 'Blank Page', 'Content - Search Results', ''); +INSERT INTO `career_portal_template` (`career_portal_template_id`, `career_portal_name`, `setting`, `value`) VALUES (7, 'Blank Page', 'Content - Questionnaire', ''); +INSERT INTO `career_portal_template` (`career_portal_template_id`, `career_portal_name`, `setting`, `value`) VALUES (8, 'Blank Page', 'Content - Job Details', ''); +INSERT INTO `career_portal_template` (`career_portal_template_id`, `career_portal_name`, `setting`, `value`) VALUES (9, 'Blank Page', 'Content - Thanks for your Submission', ''); +INSERT INTO `career_portal_template` (`career_portal_template_id`, `career_portal_name`, `setting`, `value`) VALUES (10, 'Blank Page', 'Content - Apply for Position', ''); +INSERT INTO `career_portal_template` (`career_portal_template_id`, `career_portal_name`, `setting`, `value`) VALUES (11, 'CATS 2.0', 'Left', ''); +INSERT INTO `career_portal_template` (`career_portal_template_id`, `career_portal_name`, `setting`, `value`) VALUES (12, 'CATS 2.0', 'Footer', '</div>'); +INSERT INTO `career_portal_template` (`career_portal_template_id`, `career_portal_name`, `setting`, `value`) VALUES (13, 'CATS 2.0', 'Header', '<div id=\"container\">\r\n <div id=\"logo\"><img src=\"images/careers_cats.gif\" alt=\"IMAGE: CATS Applicant Tracking System Careers Page\" /></div>\r\n <div id=\"actions\">\r\n <h2>Shortcuts:</h2>\r\n <a href=\"index.php\" onmouseover=\"buttonMouseOver(\'returnToMain\',true);\" onmouseout=\"buttonMouseOver(\'returnToMain\',false);\"><img src=\"images/careers_return.gif\" id=\"returnToMain\" alt=\"IMAGE: Return to Main\" /></a>\r\n<a href=\"<rssURL>\" onmouseover=\"buttonMouseOver(\'rssFeed\',true);\" onmouseout=\"buttonMouseOver(\'rssFeed\',false);\"><img src=\"images/careers_rss.gif\" id=\"rssFeed\" alt=\"IMAGE: RSS Feed\" /></a>\r\n <a href=\"index.php?m=careers&p=showAll\" onmouseover=\"buttonMouseOver(\'showAllJobs\',true);\" onmouseout=\"buttonMouseOver(\'showAllJobs\',false);\"><img src=\"images/careers_show.gif\" id=\"showAllJobs\" alt=\"IMAGE: Show All Jobs\" /></a>\r\n </div>'); +INSERT INTO `career_portal_template` (`career_portal_template_id`, `career_portal_name`, `setting`, `value`) VALUES (14, 'CATS 2.0', 'Content - Main', '<div id=\"careerContent\">\r\n <registeredCandidate>\r\n <h1>Available Openings at <siteName></h1>\r\n <div id=\"descriptive\">\r\n <p>Change your life today by becoming an integral part of our winning team.</p>\r\n <p>If you are interested, we invite you to view the <a href=\"index.php?m=careers&p=showAll\">current opening positions</a> at our company.</p><br /><br /><registeredLoginTitle><h1 style=\"padding:0;margin:0;border:0\">Have you applied with us before?</h1></registeredLoginTitle><registeredLogin>\r\n </div>\r\n <div id=\"detailsTools\">\r\n <h2>Perform an action:</h2>\r\n <ul>\r\n <li><a href=\"\">Visit our website</a></li>\r\n </ul>\r\n </div>\r\n</div>'); +INSERT INTO `career_portal_template` (`career_portal_template_id`, `career_portal_name`, `setting`, `value`) VALUES (15, 'CATS 2.0', 'CSS', 'table.sortable\r\n{\r\ntext-align:left;\r\nempty-cells: show;\r\nwidth: 940px;\r\n}\r\ntd\r\n{\r\npadding:5px;\r\n}\r\ntr.rowHeading\r\n{\r\n background: #e0e0e0; border: 1px solid #cccccc; border-left: none; border-right: none;\r\n}\r\ntr.oddTableRow\r\n{\r\nbackground: #ebebeb; \r\n}\r\ntr.evenTableRow\r\n{\r\n background: #ffffff; \r\n}\r\na.sortheader:hover,\r\na.sortheader:link,\r\na.sortheader:visited\r\n{\r\ncolor:#000;\r\n}\r\n\r\nbody, html { margin: 0; padding: 0; background: #ffffff; font: normal 12px/14px Arial, Helvetica, sans-serif; color: #000000; }\r\n#container { margin: 0 auto; padding: 0; width: 940px; height: auto; }\r\n#logo { float: left; margin: 0; }\r\n #logo img { width: 424px; height: 103px; }\r\n#actions { float: right; margin: 0; width: 310px; height: 100px; background: #efefef; border: 1px solid #cccccc; }\r\n #actions img { float: left; margin: 2px 6px 2px 15px; width: 130px; height: 25px; }\r\n#footer { clear: both; margin: 20px auto 0 auto; width: 150px; }\r\n #footer img { width: 137px; height: 38px; }\r\n\r\na:link, a:active { color: #1763b9; }\r\na:hover { color: #c75a01; }\r\na:visited { color: #333333; }\r\nimg { border: none; }\r\n\r\nh1 { margin: 0 0 10px 0; font: bold 18px Arial, Helvetica, sans-serif; }\r\nh2 { margin: 8px 0 8px 15px; font: bold 14px Arial, Helvetica, sans-serif; }\r\nh3 { margin: 0; font: bold 14px Arial, Helvetica, sans-serif; }\r\np { font: normal 12px Arial, Helvetica, sans-serif; }\r\np.instructions { margin: 0 0 0 10px; font: italic 12px Arial, Helvetica, sans-serif; color: #666666; }\r\n\r\n\r\n/* CONTENTS ON PAGE SPECS */\r\n#careerContent { clear: both; padding: 15px 0 0 0; }\r\n\r\n \r\n/* DISPLAY JOB DETAILS */\r\n#detailsTable { width: 400px; }\r\n #detailsTable td.detailsHeader { width: 30%; }\r\ndiv#descriptive { float: left; width: 585px; }\r\ndiv#detailsTools { float: right; padding: 0 0 8px 0; width: 280px; background: #ffffff; border: 1px solid #cccccc; }\r\n div#detailsTools img { margin: 2px 6px 5px 15px; }\r\n\r\n/* DISPLAY APPLICATION FORM */\r\ndiv.applyBoxLeft, div.applyBoxRight { width: 450px; height: 470px; background: #f9f9f9; border: 1px solid #cccccc; border-top: none; }\r\ndiv.applyBoxLeft { float: left; margin: 0 10px 0 0; }\r\ndiv.applyBoxRight { float: right; margin: 0 0 0 10px; }\r\n div.applyBoxLeft div, div.applyBoxRight div { margin: 0 0 5px 0; padding: 3px 10px; background: #efefef; border-top: 1px solid #cccccc; border-bottom: 1px solid #cccccc; }\r\n div.applyBoxLeft table, div.applyBoxRight table { margin: 0 auto; width: 420px; }\r\n div.applyBoxLeft table td, div.applyBoxRight table td { padding: 3px; vertical-align: top; }\r\n td.label { text-align: right; width: 110px; }\r\n form#applyToJobForm { }\r\n form#applyToJobForm label { font-weight: bold; }\r\n form#applyToJobForm input.inputBoxName, form#applyToJobForm input.inputBoxNormal { width: 285px; height: 15px; }\r\n form#applyToJobForm input.submitButton { width: 197px; height: 27px; background: url(\'images/careers_submit.gif\') no-repeat; }\r\n\r\n form#applyToJobForm input.submitButtonDown { width: 197px; height: 27px; background: url(\'images/careers_submit-o.gif\') no-repeat; }\r\n form#applyToJobForm textarea { margin: 8px 0 0 0; width: 410px; height: 170px; }\r\n form#applyToJobForm textarea.inputBoxArea{ width: 285px; height: 70px; }\r\n\r\n'); +INSERT INTO `career_portal_template` (`career_portal_template_id`, `career_portal_name`, `setting`, `value`) VALUES (16, 'CATS 2.0', 'Content - Search Results', '<div id=\"careerContent\">\r\n <registeredCandidate>\r\n <h1>Current Available Openings, Recently Posted Jobs: <numberOfSearchResults></h1>\r\n<searchResultsTable>\r\n </div>'); +INSERT INTO `career_portal_template` (`career_portal_template_id`, `career_portal_name`, `setting`, `value`) VALUES (17, 'CATS 2.0', 'Content - Questionnaire', '<div id=\"careerContent\">\r\n<questionnaire>\r\n<br /><br />\r\n<div style=\"text-align: right;\">\r\n<submit value=\"Continue\">\r\n</div>\r\n</div>'); +INSERT INTO `career_portal_template` (`career_portal_template_id`, `career_portal_name`, `setting`, `value`) VALUES (18, 'CATS 2.0', 'Content - Job Details', '<div id=\"careerContent\">\r\n <registeredCandidate>\r\n <h1>Position Details: <title></h1>\r\n <table id=\"detailsTable\">\r\n <tr>\r\n <td class=\"detailsHeader\"><strong>Location:</strong></td>\r\n <td><city>, <state></td>\r\n </tr>\r\n <tr>\r\n <td class=\"detailsHeader\"><strong>Openings:</strong></td>\r\n <td><openings></td>\r\n </tr>\r\n <tr>\r\n <td class=\"detailsHeader\"><strong>Salary Range:</strong></td>\r\n <td><salary></td>\r\n </tr>\r\n </table>\r\n <div id=\"descriptive\">\r\n <p><strong>Description:</strong></p>\r\n <description>\r\n </div>\r\n <div id=\"detailsTools\">\r\n <h2>Perform an action:</h2>\r\n <a-applyToJob onmouseover=\"buttonMouseOver(\'applyToPosition\',true);\" onmouseout=\"buttonMouseOver(\'applyToPosition\',false);\"><img src=\"images/careers_apply.gif\" id=\"applyToPosition\" alt=\"IMAGE: Apply to Position\" /></a>\r\n </div>\r\n </div>'); +INSERT INTO `career_portal_template` (`career_portal_template_id`, `career_portal_name`, `setting`, `value`) VALUES (19, 'CATS 2.0', 'Content - Thanks for your Submission', '<div id=\"careerContent\">\r\n <h1>Application Submitted For: <title></h1>\r\n <div id=\"descriptive\">\r\n <p>Please check your email inbox — You should receive an email confirmation of your application.</p>\r\n <p>Thank you for submitting your application to us. We will review it shortly and make contact with you soon.</p>\r\n </div>\r\n <div id=\"detailsTools\">\r\n <h2>Perform an action:</h2>\r\n <ul>\r\n <li><a href=\"\">Visit our website</a></li>\r\n </ul>\r\n </div>\r\n </div>'); +INSERT INTO `career_portal_template` (`career_portal_template_id`, `career_portal_name`, `setting`, `value`) VALUES (20, 'CATS 2.0', 'Content - Apply for Position', '<div id=\"careerContent\">\r\n <h1>Applying to: <title></h1>\r\n <div class=\"applyBoxLeft\">\r\n <div><h3>1. Import Resume (or CV) and Populate Fields</h3></div>\r\n <table>\r\n <tr>\r\n <td>\r\n \r\n <input-resumeUploadPreview>\r\n </td>\r\n </tr>\r\n </table>\r\n <br />\r\n\r\n <div><h3>2. Tell us about yourself</h3></div>\r\n <p class=\"instructions\">All fields marked with asterisk (*) are required.</p>\r\n <table>\r\n <tr>\r\n <td class=\"label\"><label id=\"firstNameLabel\" for=\"firstName\">*First Name:</label></td>\r\n <td><input-firstName></td>\r\n </tr>\r\n <tr>\r\n <td class=\"label\"><label id=\"lastNameLabel\" for=\"lastName\">*Last Name:</label></td>\r\n <td><input-lastName></td>\r\n </tr>\r\n <tr>\r\n <td class=\"label\"><label id=\"emailLabel\" for=\"email\">*Email Adddress:</label></td>\r\n <td><input-email></td>\r\n </tr>\r\n <tr>\r\n <td class=\"label\"><label id=\"emailConfirmLabel\" for=\"emailconfirm\">*Confirm Email:</label></td>\r\n <td><input-emailconfirm></td>\r\n </tr>\r\n </table>\r\n </div>\r\n \r\n <div class=\"applyBoxRight\">\r\n <div><h3>3. How may we contact you?</h3></div>\r\n <table>\r\n <tr>\r\n <td class=\"label\"><label id=\"homePhoneLabel\" for=\"homePhone\">Home Phone:</label></td>\r\n <td><input-phone-home></td>\r\n </tr>\r\n <tr>\r\n <td class=\"label\"><label id=\"mobilePhoneLabel\" for=\"mobilePhone\">Mobile Phone:</label></td>\r\n <td><input-phone-cell></td>\r\n </tr>\r\n <tr>\r\n <td class=\"label\"><label id=\"workPhoneLabel\" for=\"workPhone\">Work Phone:</label></td>\r\n <td><input-phone></td>\r\n </tr>\r\n <tr>\r\n <td class=\"label\"><label id=\"bestTimeLabel\" for=\"bestTime\">*Best time to call:</label></td>\r\n <td><input-best-time-to-call></td>\r\n </tr>\r\n <tr>\r\n <td class=\"label\"><label id=\"mailingAddressLabel\" for=\"mailingAddress\">Mailing Address:</label></td>\r\n <td><input-address></td>\r\n </tr>\r\n <tr>\r\n <td class=\"label\"><label id=\"cityProvinceLabel\" for=\"cityProvince\">*City/Province:</label></td>\r\n <td><input-city></td>\r\n </tr>\r\n <tr>\r\n <td class=\"label\"><label id=\"stateCountryLabel\" for=\"stateCountry\">*State/Country:</label></td>\r\n <td><input-state></td>\r\n </tr>\r\n <tr>\r\n <td class=\"label\"><label id=\"zipPostalLabel\" for=\"zipPostal\">*Zip/Postal Code:</label></td>\r\n <td><input-zip></td>\r\n </tr>\r\n </table>\r\n <br />\r\n <div><h3>4. Additional Information</h3></div>\r\n <table>\r\n <tr>\r\n <td class=\"label\"><label id=\"keySkillsLabel\" for=\"keySkills\">*Key Skills:</label></td>\r\n <td><input-keySkills></td>\r\n </tr>\r\n <tr>\r\n <td> </td>\r\n <td><img src=\"images/careers_submit.gif\" onmouseover=\"buttonMouseOver(\'submitApplicationNow\',true)\" onmouseout=\"buttonMouseOver(\'submitApplicationNow\',false)\" style=\"cursor: pointer;\" id=\"submitApplicationNow\" alt=\"Submit Application Now\" onclick=\"if (applyValidate()) { document.applyToJobForm.submit(); }\" /></td>\r\n </tr>\r\n </table>\r\n </div>\r\n </div>'); +INSERT INTO `career_portal_template` (`career_portal_template_id`, `career_portal_name`, `setting`, `value`) VALUES (21, 'CATS 2.0', 'Content - Candidate Registration', '<div id=\"careerContent\">\r\n <h1><applyContent>Applying to <title></applyContent></h1>\r\n <center>\r\n <table cellpadding=\"0\" cellspacing=\"0\">\r\n <tr>\r\n <td><label id=\"emailLabel\" for=\"email\"><h2>Enter your e-mail address:</h2></label></td>\r\n <td><input-email></td>\r\n </tr>\r\n <tr>\r\n <td align=\"right\" valign=\"top\"><input-new></td>\r\n <td style=\"line-height: 18px;\">\r\n <applyContent>\r\n <strong>I have not registered on this website.</strong><br />\r\n (I haven\'t applied to any jobs online)\r\n </applyContent>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"right\" valign=\"top\"><input-registered></td>\r\n <td style=\"line-height: 20px;\">\r\n <strong>I have registered before</strong><br />\r\n and my last name is:<br />\r\n <input-lastName><br />\r\n and my zip code is:<br />\r\n <input-zip><br /><br />\r\n <input-rememberMe> Remember my information for future visits<br /><br />\r\n <input-submit><br /><br />\r\n </td>\r\n </tr>\r\n </table>\r\n </center>\r\n</div>\r\n'); +INSERT INTO `career_portal_template` (`career_portal_template_id`, `career_portal_name`, `setting`, `value`) VALUES (22, 'CATS 2.0', 'Content - Candidate Profile', '<div id=\"careerContent\"> <h1 style=\"padding: 0; margin: 0; border: 0;\">My Profile</h1><h3 style=\"font-weight: normal;\">Any changes you make to your profile will be updated on our website for all past and future jobs you apply for.</h3> <br /> <div class=\"applyBoxLeft\"> <div><h3>1. Tell us about yourself</h3></div> <p class=\"instructions\">All fields marked with asterisk (*) are required.</p> <table> <tr> <td class=\"label\"><label id=\"firstNameLabel\" for=\"firstName\">*First Name:</label></td> <td><input-firstName></td> </tr> <tr> <td class=\"label\"><label id=\"lastNameLabel\" for=\"lastName\">*Last Name:</label></td> <td><input-lastName></td> </tr> <tr> <td class=\"label\"><label id=\"emailLabel\" for=\"email\">*Email Adddress:</label></td> <td><input-email1></td> </tr> <tr> <td colspan=\"2\"> <input-resume> </td> </tr> </table> </div> <div class=\"applyBoxRight\"> <div><h3>2. How may we contact you?</h3></div> <table> <tr> <td class=\"label\"><label id=\"homePhoneLabel\" for=\"homePhone\">Home Phone:</label></td> <td><input-phoneHome></td> </tr> <tr> <td class=\"label\"><label id=\"mobilePhoneLabel\" for=\"mobilePhone\">Mobile Phone:</label></td> <td><input-phoneCell></td> </tr> <tr> <td class=\"label\"><label id=\"workPhoneLabel\" for=\"workPhone\">Work Phone:</label></td> <td><input-phoneWork></td> </tr> <tr> <td class=\"label\"><label id=\"bestTimeLabel\" for=\"bestTime\">*Best time to call:</label></td> <td><input-bestTimeToCall></td> </tr> <tr> <td class=\"label\"><label id=\"mailingAddressLabel\" for=\"mailingAddress\">Mailing Address:</label></td> <td><input-address></td> </tr> <tr> <td class=\"label\"><label id=\"cityProvinceLabel\" for=\"cityProvince\">*City/Province:</label></td> <td><input-city></td> </tr> <tr> <td class=\"label\"><label id=\"stateCountryLabel\" for=\"stateCountry\">*State/Country:</label></td> <td><input-state></td> </tr> <tr> <td class=\"label\"><label id=\"zipPostalLabel\" for=\"zipPostal\">*Zip/Postal Code:</label></td> <td><input-zip></td> </tr> </table> <br /> <div><h3>3. Additional Information</h3></div> <table> <tr> <td class=\"label\"><label id=\"keySkillsLabel\" for=\"keySkills\">*Key Skills:</label></td> <td><input-keySkills></td> </tr> <tr> <td> </td> <td style=\"padding-top: 40px;\"><input-submit></td> </tr> </table> </div></div>'); /* Table structure for table `career_portal_template_site` */ CREATE TABLE `career_portal_template_site` ( - `career_portal_template_id` int(11) NOT NULL AUTO_INCREMENT, - `career_portal_name` varchar(255) DEFAULT NULL, - `site_id` int(11) NOT NULL, - `setting` varchar(128) NOT NULL DEFAULT '', - `value` text, + `career_portal_template_id` INT(11) NOT NULL AUTO_INCREMENT, + `career_portal_name` VARCHAR(255) DEFAULT NULL, + `site_id` INT(11) NOT NULL, + `setting` VARCHAR(128) NOT NULL DEFAULT '', + `value` TEXT, PRIMARY KEY (`career_portal_template_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; @@ -444,28 +444,28 @@ CREATE TABLE `career_portal_template_site` ( /* Table structure for table `company` */ CREATE TABLE `company` ( - `company_id` int(11) NOT NULL AUTO_INCREMENT, - `site_id` int(11) NOT NULL DEFAULT '0', - `billing_contact` int(11) DEFAULT NULL, - `name` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `address` text COLLATE utf8_unicode_ci, - `address2` text COLLATE utf8_unicode_ci, - `city` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `state` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `zip` varchar(16) COLLATE utf8_unicode_ci DEFAULT NULL, - `phone1` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL, - `phone2` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL, - `url` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, - `key_technologies` text COLLATE utf8_unicode_ci, - `notes` text COLLATE utf8_unicode_ci, - `entered_by` int(11) DEFAULT NULL, - `owner` int(11) DEFAULT NULL, - `date_created` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', - `date_modified` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', - `is_hot` int(1) DEFAULT NULL, - `fax_number` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL, - `import_id` int(11) DEFAULT NULL, - `default_company` int(1) NOT NULL DEFAULT '0', + `company_id` INT(11) NOT NULL AUTO_INCREMENT, + `site_id` INT(11) NOT NULL DEFAULT '0', + `billing_contact` INT(11) DEFAULT NULL, + `name` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `address` TEXT COLLATE utf8_unicode_ci, + `address2` TEXT COLLATE utf8_unicode_ci, + `city` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, + `state` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, + `zip` VARCHAR(16) COLLATE utf8_unicode_ci DEFAULT NULL, + `phone1` VARCHAR(40) COLLATE utf8_unicode_ci DEFAULT NULL, + `phone2` VARCHAR(40) COLLATE utf8_unicode_ci DEFAULT NULL, + `url` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, + `key_technologies` TEXT COLLATE utf8_unicode_ci, + `notes` TEXT COLLATE utf8_unicode_ci, + `entered_by` INT(11) DEFAULT NULL, + `owner` INT(11) DEFAULT NULL, + `date_created` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', + `date_modified` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', + `is_hot` INT(1) DEFAULT NULL, + `fax_number` VARCHAR(40) COLLATE utf8_unicode_ci DEFAULT NULL, + `import_id` INT(11) DEFAULT NULL, + `default_company` INT(1) NOT NULL DEFAULT '0', PRIMARY KEY (`company_id`), KEY `IDX_site_id` (`site_id`), KEY `IDX_name` (`name`), @@ -479,17 +479,17 @@ CREATE TABLE `company` ( /* Data for the table `company` */ -insert into `company`(`company_id`,`site_id`,`billing_contact`,`name`,`address`,`city`,`state`,`zip`,`phone1`,`phone2`,`url`,`key_technologies`,`notes`,`entered_by`,`owner`,`date_created`,`date_modified`,`is_hot`,`fax_number`,`import_id`,`default_company`) values (1,1,NULL,'Internal Postings','','','','','','','','','',0,0,'1000-01-01 00:00:00','1000-01-01 00:00:00',0,'',NULL,1); +INSERT INTO `company` (`company_id`, `site_id`, `billing_contact`, `name`, `address`, `city`, `state`, `zip`, `phone1`, `phone2`, `url`, `key_technologies`, `notes`, `entered_by`, `owner`, `date_created`, `date_modified`, `is_hot`, `fax_number`, `import_id`, `default_company`) VALUES (1, 1, NULL, 'Internal Postings', '', '', '', '', '', '', '', '', '', 0, 0, '1000-01-01 00:00:00', '1000-01-01 00:00:00', 0, '', NULL, 1); /* Table structure for table `company_department` */ CREATE TABLE `company_department` ( - `company_department_id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, - `company_id` int(11) NOT NULL, - `site_id` int(11) NOT NULL DEFAULT '0', - `date_created` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', - `created_by` int(11) DEFAULT NULL, + `company_department_id` INT(11) NOT NULL AUTO_INCREMENT, + `name` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, + `company_id` INT(11) NOT NULL, + `site_id` INT(11) NOT NULL DEFAULT '0', + `date_created` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', + `created_by` INT(11) DEFAULT NULL, PRIMARY KEY (`company_department_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; @@ -498,32 +498,32 @@ CREATE TABLE `company_department` ( /* Table structure for table `contact` */ CREATE TABLE `contact` ( - `contact_id` int(11) NOT NULL AUTO_INCREMENT, - `company_id` int(11) NOT NULL, - `site_id` int(11) NOT NULL DEFAULT '0', - `last_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `first_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `title` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, - `email1` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, - `email2` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, - `phone_work` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL, - `phone_cell` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL, - `phone_other` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL, - `address` text COLLATE utf8_unicode_ci, - `address2` text COLLATE utf8_unicode_ci, - `city` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `state` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `zip` varchar(16) COLLATE utf8_unicode_ci DEFAULT NULL, - `is_hot` int(1) DEFAULT NULL, - `notes` text COLLATE utf8_unicode_ci, - `entered_by` int(11) NOT NULL DEFAULT '0', - `owner` int(11) DEFAULT NULL, - `date_created` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', - `date_modified` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', - `left_company` int(1) NOT NULL DEFAULT '0', - `import_id` int(11) NOT NULL DEFAULT '0', - `company_department_id` int(11) NOT NULL, - `reports_to` int(11) DEFAULT '-1', + `contact_id` INT(11) NOT NULL AUTO_INCREMENT, + `company_id` INT(11) NOT NULL, + `site_id` INT(11) NOT NULL DEFAULT '0', + `last_name` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `first_name` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `title` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, + `email1` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, + `email2` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, + `phone_work` VARCHAR(40) COLLATE utf8_unicode_ci DEFAULT NULL, + `phone_cell` VARCHAR(40) COLLATE utf8_unicode_ci DEFAULT NULL, + `phone_other` VARCHAR(40) COLLATE utf8_unicode_ci DEFAULT NULL, + `address` TEXT COLLATE utf8_unicode_ci, + `address2` TEXT COLLATE utf8_unicode_ci, + `city` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, + `state` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, + `zip` VARCHAR(16) COLLATE utf8_unicode_ci DEFAULT NULL, + `is_hot` INT(1) DEFAULT NULL, + `notes` TEXT COLLATE utf8_unicode_ci, + `entered_by` INT(11) NOT NULL DEFAULT '0', + `owner` INT(11) DEFAULT NULL, + `date_created` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', + `date_modified` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', + `left_company` INT(1) NOT NULL DEFAULT '0', + `import_id` INT(11) NOT NULL DEFAULT '0', + `company_department_id` INT(11) NOT NULL, + `reports_to` INT(11) DEFAULT '-1', PRIMARY KEY (`contact_id`), KEY `IDX_site_id` (`site_id`), KEY `IDX_first_name` (`first_name`), @@ -540,60 +540,60 @@ CREATE TABLE `contact` ( /* Table structure for table `data_item_type` */ CREATE TABLE `data_item_type` ( - `data_item_type_id` int(11) NOT NULL DEFAULT '0', - `short_description` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `data_item_type_id` INT(11) NOT NULL DEFAULT '0', + `short_description` VARCHAR(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', PRIMARY KEY (`data_item_type_id`), KEY `IDX_short_description` (`short_description`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /* Data for the table `data_item_type` */ -insert into `data_item_type`(`data_item_type_id`,`short_description`) values (100,'Candidate'); -insert into `data_item_type`(`data_item_type_id`,`short_description`) values (200,'Company'); -insert into `data_item_type`(`data_item_type_id`,`short_description`) values (300,'Contact'); -insert into `data_item_type`(`data_item_type_id`,`short_description`) values (400,'Job Order'); +INSERT INTO `data_item_type` (`data_item_type_id`, `short_description`) VALUES (100, 'Candidate'); +INSERT INTO `data_item_type` (`data_item_type_id`, `short_description`) VALUES (200, 'Company'); +INSERT INTO `data_item_type` (`data_item_type_id`, `short_description`) VALUES (300, 'Contact'); +INSERT INTO `data_item_type` (`data_item_type_id`, `short_description`) VALUES (400, 'Job Order'); /* Table structure for table `eeo_ethnic_type` */ CREATE TABLE `eeo_ethnic_type` ( - `eeo_ethnic_type_id` int(11) NOT NULL AUTO_INCREMENT, - `type` varchar(128) NOT NULL DEFAULT '', + `eeo_ethnic_type_id` INT(11) NOT NULL AUTO_INCREMENT, + `type` VARCHAR(128) NOT NULL DEFAULT '', PRIMARY KEY (`eeo_ethnic_type_id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; /* Data for the table `eeo_ethnic_type` */ -insert into `eeo_ethnic_type`(`eeo_ethnic_type_id`,`type`) values (1,'American Indian'); -insert into `eeo_ethnic_type`(`eeo_ethnic_type_id`,`type`) values (2,'Asian or Pacific Islander'); -insert into `eeo_ethnic_type`(`eeo_ethnic_type_id`,`type`) values (3,'Hispanic or Latino'); -insert into `eeo_ethnic_type`(`eeo_ethnic_type_id`,`type`) values (4,'Non-Hispanic Black'); -insert into `eeo_ethnic_type`(`eeo_ethnic_type_id`,`type`) values (5,'Non-Hispanic White'); +INSERT INTO `eeo_ethnic_type` (`eeo_ethnic_type_id`, `type`) VALUES (1, 'American Indian'); +INSERT INTO `eeo_ethnic_type` (`eeo_ethnic_type_id`, `type`) VALUES (2, 'Asian or Pacific Islander'); +INSERT INTO `eeo_ethnic_type` (`eeo_ethnic_type_id`, `type`) VALUES (3, 'Hispanic or Latino'); +INSERT INTO `eeo_ethnic_type` (`eeo_ethnic_type_id`, `type`) VALUES (4, 'Non-Hispanic Black'); +INSERT INTO `eeo_ethnic_type` (`eeo_ethnic_type_id`, `type`) VALUES (5, 'Non-Hispanic White'); /* Table structure for table `eeo_veteran_type` */ CREATE TABLE `eeo_veteran_type` ( - `eeo_veteran_type_id` int(11) NOT NULL AUTO_INCREMENT, - `type` varchar(128) NOT NULL DEFAULT '', + `eeo_veteran_type_id` INT(11) NOT NULL AUTO_INCREMENT, + `type` VARCHAR(128) NOT NULL DEFAULT '', PRIMARY KEY (`eeo_veteran_type_id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; /* Data for the table `eeo_veteran_type` */ -insert into `eeo_veteran_type`(`eeo_veteran_type_id`,`type`) values (1,'No Veteran Status'); -insert into `eeo_veteran_type`(`eeo_veteran_type_id`,`type`) values (2,'Eligible Veteran'); -insert into `eeo_veteran_type`(`eeo_veteran_type_id`,`type`) values (3,'Disabled Veteran'); -insert into `eeo_veteran_type`(`eeo_veteran_type_id`,`type`) values (4,'Eligible and Disabled'); +INSERT INTO `eeo_veteran_type` (`eeo_veteran_type_id`, `type`) VALUES (1, 'No Veteran Status'); +INSERT INTO `eeo_veteran_type` (`eeo_veteran_type_id`, `type`) VALUES (2, 'Eligible Veteran'); +INSERT INTO `eeo_veteran_type` (`eeo_veteran_type_id`, `type`) VALUES (3, 'Disabled Veteran'); +INSERT INTO `eeo_veteran_type` (`eeo_veteran_type_id`, `type`) VALUES (4, 'Eligible and Disabled'); /* Table structure for table `email_history` */ CREATE TABLE `email_history` ( - `email_history_id` int(11) NOT NULL AUTO_INCREMENT, - `from_address` varchar(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `recipients` text COLLATE utf8_unicode_ci NOT NULL, - `text` text COLLATE utf8_unicode_ci, - `user_id` int(11) DEFAULT NULL, - `site_id` int(11) NOT NULL DEFAULT '0', - `date` datetime DEFAULT NULL, + `email_history_id` INT(11) NOT NULL AUTO_INCREMENT, + `from_address` VARCHAR(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `recipients` TEXT COLLATE utf8_unicode_ci NOT NULL, + `text` TEXT COLLATE utf8_unicode_ci, + `user_id` INT(11) DEFAULT NULL, + `site_id` INT(11) NOT NULL DEFAULT '0', + `date` DATETIME DEFAULT NULL, PRIMARY KEY (`email_history_id`), KEY `IDX_site_id` (`site_id`), KEY `IDX_date` (`date`), @@ -605,35 +605,35 @@ CREATE TABLE `email_history` ( /* Table structure for table `email_template` */ CREATE TABLE `email_template` ( - `email_template_id` int(11) NOT NULL AUTO_INCREMENT, - `text` text COLLATE utf8_unicode_ci, - `allow_substitution` int(1) NOT NULL DEFAULT '0', - `site_id` int(11) NOT NULL DEFAULT '0', - `tag` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `possible_variables` text COLLATE utf8_unicode_ci, - `disabled` int(1) DEFAULT '0', + `email_template_id` INT(11) NOT NULL AUTO_INCREMENT, + `text` TEXT COLLATE utf8_unicode_ci, + `allow_substitution` INT(1) NOT NULL DEFAULT '0', + `site_id` INT(11) NOT NULL DEFAULT '0', + `tag` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `title` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `possible_variables` TEXT COLLATE utf8_unicode_ci, + `disabled` INT(1) DEFAULT '0', PRIMARY KEY (`email_template_id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /* Data for the table `email_template` */ -insert into `email_template`(`email_template_id`,`text`,`allow_substitution`,`site_id`,`tag`,`title`,`possible_variables`,`disabled`) values (1,'* Auto generated message. Please DO NOT reply *\r\n%DATETIME%\r\n\r\nDear %CANDFULLNAME%,\r\n\r\nThis E-Mail is a notification that your status in our database has been changed for the position %JBODTITLE% (%JBODCLIENT%).\r\n\r\nYour previous status was <B>%CANDPREVSTATUS%</B>.\r\nYour new status is <B>%CANDSTATUS%</B>.\r\n\r\nTake care,\r\n%USERFULLNAME%\r\n%SITENAME%',1,1,'EMAIL_TEMPLATE_STATUSCHANGE','Status Changed (Sent to Candidate)','%CANDSTATUS%%CANDOWNER%%CANDFIRSTNAME%%CANDFULLNAME%%CANDPREVSTATUS%%JBODCLIENT%%JBODTITLE%',0); -insert into `email_template`(`email_template_id`,`text`,`allow_substitution`,`site_id`,`tag`,`title`,`possible_variables`,`disabled`) values (2,'%DATETIME%\r\n\r\nDear %CANDOWNER%,\r\n\r\nThis E-Mail is a notification that a Candidate has been assigned to you.\r\n\r\nCandidate Name: %CANDFULLNAME%\r\nCandidate URL: %CANDCATSURL%\r\n\r\nTake care,\r\nCATS \r\n%SITENAME%',1,1,'EMAIL_TEMPLATE_OWNERSHIPASSIGNCANDIDATE','Candidate Assigned (Sent to Assigned Recruiter)','%CANDOWNER%%CANDFIRSTNAME%%CANDFULLNAME%%CANDCATSURL%',0); -insert into `email_template`(`email_template_id`,`text`,`allow_substitution`,`site_id`,`tag`,`title`,`possible_variables`,`disabled`) values (3,'%DATETIME%\r\n\r\nDear %JBODOWNER%,\r\n\r\nThis E-Mail is a notification that a Job Order has been assigned to you.\r\n\r\nJob Order Title: %JBODTITLE%\r\nJob Order Client: %JBODCLIENT%\r\nJob Order ID: %JBODID%\r\nJob Order URL: %JBODCATSURL%\r\n\r\nTake care,\r\nCATS \r\n%SITENAME%',1,1,'EMAIL_TEMPLATE_OWNERSHIPASSIGNJOBORDER','Job Order Assigned (Sent to Assigned Recruiter)','%JBODOWNER%%JBODTITLE%%JBODCLIENT%%JBODCATSURL%%JBODID%',0); -insert into `email_template`(`email_template_id`,`text`,`allow_substitution`,`site_id`,`tag`,`title`,`possible_variables`,`disabled`) values (4,'%DATETIME%\r\n\r\nDear %CONTOWNER%,\r\n\r\nThis E-Mail is a notification that a Contact has been assigned to you.\r\n\r\nContact Name: %CONTFULLNAME%\r\nContact Client: %CONTCLIENTNAME%\r\nContact URL: %CONTCATSURL%\r\n\r\nTake care,\r\nCATS \r\n%SITENAME%',1,1,'EMAIL_TEMPLATE_OWNERSHIPASSIGNCONTACT','Contact Assigned (Sent to Assigned Recruiter)','%CONTOWNER%%CONTFIRSTNAME%%CONTFULLNAME%%CONTCLIENTNAME%%CONTCATSURL%',0); -insert into `email_template`(`email_template_id`,`text`,`allow_substitution`,`site_id`,`tag`,`title`,`possible_variables`,`disabled`) values (5,'%DATETIME%\r\n\r\nDear %CLNTOWNER%,\r\n\r\nThis E-Mail is a notification that a Client has been assigned to you.\r\n\r\nClient Name: %CLNTNAME%\r\nClient URL %CLNTCATSURL%\r\n\r\nTake care,\r\nCATS \r\n%SITENAME%',1,1,'EMAIL_TEMPLATE_OWNERSHIPASSIGNCLIENT','Client Assigned (Sent to Assigned Recruiter)','%CLNTOWNER%%CLNTNAME%%CLNTCATSURL%',0); -insert into `email_template`(`email_template_id`,`text`,`allow_substitution`,`site_id`,`tag`,`title`,`possible_variables`,`disabled`) values (6,'* This is an auto-generated message. Please do not reply. *\r\n%DATETIME%\r\n\r\nDear %CANDFULLNAME%,\r\n\r\nThank you for applying to the %JBODTITLE% position with our online career portal! Your application has been entered into our system and someone will review it shortly.\r\n\r\n--\r\n%SITENAME%',1,1,'EMAIL_TEMPLATE_CANDIDATEAPPLY','Candidate Application Received (Sent to Candidate using Career Portal)','%CANDFIRSTNAME%%CANDFULLNAME%%JBODCLIENT%%JBODTITLE%%JBODOWNER%',0); -insert into `email_template`(`email_template_id`,`text`,`allow_substitution`,`site_id`,`tag`,`title`,`possible_variables`,`disabled`) values (7,'%DATETIME%\r\n\r\nDear %JBODOWNER%,\r\n\r\nThis e-mail is a notification that a candidate has applied to your job order through the online candidate portal.\r\n\r\nJob Order: %JBODTITLE%\r\nCandidate Name: %CANDFULLNAME%\r\nCandidate URL: %CANDCATSURL%\r\nJob Order URL: %JBODCATSURL%\r\n\r\n--\r\nCATS\r\n%SITENAME%',1,1,'EMAIL_TEMPLATE_CANDIDATEPORTALNEW','Candidate Application Received (Sent to Owner of Job Order from Career Portal)','%CANDFIRSTNAME%%CANDFULLNAME%%JBODOWNER%%JBODTITLE%%JBODCLIENT%%JBODCATSURL%%JBODID%%CANDCATSURL%',0); +INSERT INTO `email_template` (`email_template_id`, `text`, `allow_substitution`, `site_id`, `tag`, `title`, `possible_variables`, `disabled`) VALUES (1, '* Auto generated message. Please DO NOT reply *\r\n%DATETIME%\r\n\r\nDear %CANDFULLNAME%,\r\n\r\nThis E-Mail is a notification that your status in our database has been changed for the position %JBODTITLE% (%JBODCLIENT%).\r\n\r\nYour previous status was <B>%CANDPREVSTATUS%</B>.\r\nYour new status is <B>%CANDSTATUS%</B>.\r\n\r\nTake care,\r\n%USERFULLNAME%\r\n%SITENAME%', 1, 1, 'EMAIL_TEMPLATE_STATUSCHANGE', 'Status Changed (Sent to Candidate)', '%CANDSTATUS%%CANDOWNER%%CANDFIRSTNAME%%CANDFULLNAME%%CANDPREVSTATUS%%JBODCLIENT%%JBODTITLE%', 0); +INSERT INTO `email_template` (`email_template_id`, `text`, `allow_substitution`, `site_id`, `tag`, `title`, `possible_variables`, `disabled`) VALUES (2, '%DATETIME%\r\n\r\nDear %CANDOWNER%,\r\n\r\nThis E-Mail is a notification that a Candidate has been assigned to you.\r\n\r\nCandidate Name: %CANDFULLNAME%\r\nCandidate URL: %CANDCATSURL%\r\n\r\nTake care,\r\nCATS \r\n%SITENAME%', 1, 1, 'EMAIL_TEMPLATE_OWNERSHIPASSIGNCANDIDATE', 'Candidate Assigned (Sent to Assigned Recruiter)', '%CANDOWNER%%CANDFIRSTNAME%%CANDFULLNAME%%CANDCATSURL%', 0); +INSERT INTO `email_template` (`email_template_id`, `text`, `allow_substitution`, `site_id`, `tag`, `title`, `possible_variables`, `disabled`) VALUES (3, '%DATETIME%\r\n\r\nDear %JBODOWNER%,\r\n\r\nThis E-Mail is a notification that a Job Order has been assigned to you.\r\n\r\nJob Order Title: %JBODTITLE%\r\nJob Order Client: %JBODCLIENT%\r\nJob Order ID: %JBODID%\r\nJob Order URL: %JBODCATSURL%\r\n\r\nTake care,\r\nCATS \r\n%SITENAME%', 1, 1, 'EMAIL_TEMPLATE_OWNERSHIPASSIGNJOBORDER', 'Job Order Assigned (Sent to Assigned Recruiter)', '%JBODOWNER%%JBODTITLE%%JBODCLIENT%%JBODCATSURL%%JBODID%', 0); +INSERT INTO `email_template` (`email_template_id`, `text`, `allow_substitution`, `site_id`, `tag`, `title`, `possible_variables`, `disabled`) VALUES (4, '%DATETIME%\r\n\r\nDear %CONTOWNER%,\r\n\r\nThis E-Mail is a notification that a Contact has been assigned to you.\r\n\r\nContact Name: %CONTFULLNAME%\r\nContact Client: %CONTCLIENTNAME%\r\nContact URL: %CONTCATSURL%\r\n\r\nTake care,\r\nCATS \r\n%SITENAME%', 1, 1, 'EMAIL_TEMPLATE_OWNERSHIPASSIGNCONTACT', 'Contact Assigned (Sent to Assigned Recruiter)', '%CONTOWNER%%CONTFIRSTNAME%%CONTFULLNAME%%CONTCLIENTNAME%%CONTCATSURL%', 0); +INSERT INTO `email_template` (`email_template_id`, `text`, `allow_substitution`, `site_id`, `tag`, `title`, `possible_variables`, `disabled`) VALUES (5, '%DATETIME%\r\n\r\nDear %CLNTOWNER%,\r\n\r\nThis E-Mail is a notification that a Client has been assigned to you.\r\n\r\nClient Name: %CLNTNAME%\r\nClient URL %CLNTCATSURL%\r\n\r\nTake care,\r\nCATS \r\n%SITENAME%', 1, 1, 'EMAIL_TEMPLATE_OWNERSHIPASSIGNCLIENT', 'Client Assigned (Sent to Assigned Recruiter)', '%CLNTOWNER%%CLNTNAME%%CLNTCATSURL%', 0); +INSERT INTO `email_template` (`email_template_id`, `text`, `allow_substitution`, `site_id`, `tag`, `title`, `possible_variables`, `disabled`) VALUES (6, '* This is an auto-generated message. Please do not reply. *\r\n%DATETIME%\r\n\r\nDear %CANDFULLNAME%,\r\n\r\nThank you for applying to the %JBODTITLE% position with our online career portal! Your application has been entered into our system and someone will review it shortly.\r\n\r\n--\r\n%SITENAME%', 1, 1, 'EMAIL_TEMPLATE_CANDIDATEAPPLY', 'Candidate Application Received (Sent to Candidate using Career Portal)', '%CANDFIRSTNAME%%CANDFULLNAME%%JBODCLIENT%%JBODTITLE%%JBODOWNER%', 0); +INSERT INTO `email_template` (`email_template_id`, `text`, `allow_substitution`, `site_id`, `tag`, `title`, `possible_variables`, `disabled`) VALUES (7, '%DATETIME%\r\n\r\nDear %JBODOWNER%,\r\n\r\nThis e-mail is a notification that a candidate has applied to your job order through the online candidate portal.\r\n\r\nJob Order: %JBODTITLE%\r\nCandidate Name: %CANDFULLNAME%\r\nCandidate URL: %CANDCATSURL%\r\nJob Order URL: %JBODCATSURL%\r\n\r\n--\r\nCATS\r\n%SITENAME%', 1, 1, 'EMAIL_TEMPLATE_CANDIDATEPORTALNEW', 'Candidate Application Received (Sent to Owner of Job Order from Career Portal)', '%CANDFIRSTNAME%%CANDFULLNAME%%JBODOWNER%%JBODTITLE%%JBODCLIENT%%JBODCATSURL%%JBODID%%CANDCATSURL%', 0); /* Table structure for table `extension_statistics` */ CREATE TABLE `extension_statistics` ( - `extension_statistics_id` int(11) NOT NULL AUTO_INCREMENT, - `extension` varchar(128) NOT NULL DEFAULT '', - `action` varchar(128) NOT NULL DEFAULT '', - `user` varchar(128) NOT NULL DEFAULT '', - `date` date DEFAULT NULL, + `extension_statistics_id` INT(11) NOT NULL AUTO_INCREMENT, + `extension` VARCHAR(128) NOT NULL DEFAULT '', + `action` VARCHAR(128) NOT NULL DEFAULT '', + `user` VARCHAR(128) NOT NULL DEFAULT '', + `date` DATE DEFAULT NULL, PRIMARY KEY (`extension_statistics_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; @@ -642,13 +642,13 @@ CREATE TABLE `extension_statistics` ( /* Table structure for table `extra_field` */ CREATE TABLE `extra_field` ( - `extra_field_id` int(11) NOT NULL AUTO_INCREMENT, - `data_item_id` int(11) DEFAULT '0', - `field_name` varchar(255) DEFAULT NULL, - `value` text, - `import_id` int(11) DEFAULT NULL, - `site_id` int(11) DEFAULT '0', - `data_item_type` int(11) DEFAULT '0', + `extra_field_id` INT(11) NOT NULL AUTO_INCREMENT, + `data_item_id` INT(11) DEFAULT '0', + `field_name` VARCHAR(255) DEFAULT NULL, + `value` TEXT, + `import_id` INT(11) DEFAULT NULL, + `site_id` INT(11) DEFAULT '0', + `data_item_type` INT(11) DEFAULT '0', PRIMARY KEY (`extra_field_id`), KEY `assoc_id` (`data_item_id`), KEY `IDX_site_id` (`site_id`) @@ -659,37 +659,37 @@ CREATE TABLE `extra_field` ( /* Table structure for table `extra_field_settings` */ CREATE TABLE `extra_field_settings` ( - `extra_field_settings_id` int(11) NOT NULL AUTO_INCREMENT, - `field_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `import_id` int(11) DEFAULT NULL, - `site_id` int(11) NOT NULL DEFAULT '0', - `date_created` datetime DEFAULT NULL, - `data_item_type` int(11) DEFAULT '0', - `extra_field_type` int(11) NOT NULL DEFAULT '1', - `extra_field_options` text COLLATE utf8_unicode_ci, - `position` int(4) NOT NULL DEFAULT '0', + `extra_field_settings_id` INT(11) NOT NULL AUTO_INCREMENT, + `field_name` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `import_id` INT(11) DEFAULT NULL, + `site_id` INT(11) NOT NULL DEFAULT '0', + `date_created` DATETIME DEFAULT NULL, + `data_item_type` INT(11) DEFAULT '0', + `extra_field_type` INT(11) NOT NULL DEFAULT '1', + `extra_field_options` TEXT COLLATE utf8_unicode_ci, + `position` INT(4) NOT NULL DEFAULT '0', PRIMARY KEY (`extra_field_settings_id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /* Data for the table `extra_field_settings` */ -insert into `extra_field_settings`(`extra_field_settings_id`,`field_name`,`import_id`,`site_id`,`date_created`,`data_item_type`,`extra_field_type`,`extra_field_options`,`position`) values (1,'AdminUser',NULL,180,'1000-01-01 00:00:00',200,1,NULL,1); -insert into `extra_field_settings`(`extra_field_settings_id`,`field_name`,`import_id`,`site_id`,`date_created`,`data_item_type`,`extra_field_type`,`extra_field_options`,`position`) values (2,'UnixName',NULL,180,'1000-01-01 00:00:00',200,1,NULL,2); -insert into `extra_field_settings`(`extra_field_settings_id`,`field_name`,`import_id`,`site_id`,`date_created`,`data_item_type`,`extra_field_type`,`extra_field_options`,`position`) values (3,'BillingNotes',NULL,180,'1000-01-01 00:00:00',200,1,NULL,3); -insert into `extra_field_settings`(`extra_field_settings_id`,`field_name`,`import_id`,`site_id`,`date_created`,`data_item_type`,`extra_field_type`,`extra_field_options`,`position`) values (4,'IPAddress',NULL,180,'1000-01-01 00:00:00',300,1,NULL,4); +INSERT INTO `extra_field_settings` (`extra_field_settings_id`, `field_name`, `import_id`, `site_id`, `date_created`, `data_item_type`, `extra_field_type`, `extra_field_options`, `position`) VALUES (1, 'AdminUser', NULL, 180, '1000-01-01 00:00:00', 200, 1, NULL, 1); +INSERT INTO `extra_field_settings` (`extra_field_settings_id`, `field_name`, `import_id`, `site_id`, `date_created`, `data_item_type`, `extra_field_type`, `extra_field_options`, `position`) VALUES (2, 'UnixName', NULL, 180, '1000-01-01 00:00:00', 200, 1, NULL, 2); +INSERT INTO `extra_field_settings` (`extra_field_settings_id`, `field_name`, `import_id`, `site_id`, `date_created`, `data_item_type`, `extra_field_type`, `extra_field_options`, `position`) VALUES (3, 'BillingNotes', NULL, 180, '1000-01-01 00:00:00', 200, 1, NULL, 3); +INSERT INTO `extra_field_settings` (`extra_field_settings_id`, `field_name`, `import_id`, `site_id`, `date_created`, `data_item_type`, `extra_field_type`, `extra_field_options`, `position`) VALUES (4, 'IPAddress', NULL, 180, '1000-01-01 00:00:00', 300, 1, NULL, 4); /* Table structure for table `feedback` */ CREATE TABLE `feedback` ( - `feedback_id` int(11) NOT NULL AUTO_INCREMENT, - `user_id` int(11) DEFAULT NULL, - `site_id` int(11) NOT NULL DEFAULT '0', - `date_created` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', - `subject` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `reply_to_address` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `reply_to_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `feedback` text COLLATE utf8_unicode_ci NOT NULL, - `archived` int(1) NOT NULL DEFAULT '0', + `feedback_id` INT(11) NOT NULL AUTO_INCREMENT, + `user_id` INT(11) DEFAULT NULL, + `site_id` INT(11) NOT NULL DEFAULT '0', + `date_created` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', + `subject` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `reply_to_address` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `reply_to_name` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `feedback` TEXT COLLATE utf8_unicode_ci NOT NULL, + `archived` INT(1) NOT NULL DEFAULT '0', PRIMARY KEY (`feedback_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; @@ -698,19 +698,19 @@ CREATE TABLE `feedback` ( /* Table structure for table `history` */ CREATE TABLE `history` ( - `history_id` int(11) NOT NULL AUTO_INCREMENT, - `data_item_type` int(11) DEFAULT NULL, - `data_item_id` int(11) DEFAULT NULL, - `the_field` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `previous_value` text COLLATE utf8_unicode_ci, - `new_value` text COLLATE utf8_unicode_ci, - `description` varchar(192) COLLATE utf8_unicode_ci DEFAULT NULL, - `set_date` datetime DEFAULT NULL, - `entered_by` int(11) DEFAULT NULL, - `site_id` int(11) NOT NULL DEFAULT '0', + `history_id` INT(11) NOT NULL AUTO_INCREMENT, + `data_item_type` INT(11) DEFAULT NULL, + `data_item_id` INT(11) DEFAULT NULL, + `the_field` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, + `previous_value` TEXT COLLATE utf8_unicode_ci, + `new_value` TEXT COLLATE utf8_unicode_ci, + `description` VARCHAR(192) COLLATE utf8_unicode_ci DEFAULT NULL, + `set_date` DATETIME DEFAULT NULL, + `entered_by` INT(11) DEFAULT NULL, + `site_id` INT(11) NOT NULL DEFAULT '0', PRIMARY KEY (`history_id`), KEY `IDX_DATA_ENTERED_BY` (`entered_by`), - KEY `IDX_data_item_id_type_site` (`data_item_id`,`data_item_type`,`site_id`) + KEY `IDX_data_item_id_type_site` (`data_item_id`, `data_item_type`, `site_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /* Data for the table `history` */ @@ -718,17 +718,17 @@ CREATE TABLE `history` ( /* Table structure for table `http_log` */ CREATE TABLE `http_log` ( - `log_id` int(11) NOT NULL AUTO_INCREMENT, - `site_id` int(11) NOT NULL, - `remote_addr` char(16) NOT NULL, - `http_user_agent` varchar(255) DEFAULT NULL, - `script_filename` varchar(255) DEFAULT NULL, - `request_method` varchar(16) DEFAULT NULL, - `query_string` varchar(255) DEFAULT NULL, - `request_uri` varchar(255) DEFAULT NULL, - `script_name` varchar(255) DEFAULT NULL, - `log_type` int(11) NOT NULL, - `date` datetime DEFAULT '1000-01-01 00:00:00', + `log_id` INT(11) NOT NULL AUTO_INCREMENT, + `site_id` INT(11) NOT NULL, + `remote_addr` CHAR(16) NOT NULL, + `http_user_agent` VARCHAR(255) DEFAULT NULL, + `script_filename` VARCHAR(255) DEFAULT NULL, + `request_method` VARCHAR(16) DEFAULT NULL, + `query_string` VARCHAR(255) DEFAULT NULL, + `request_uri` VARCHAR(255) DEFAULT NULL, + `script_name` VARCHAR(255) DEFAULT NULL, + `log_type` INT(11) NOT NULL, + `date` DATETIME DEFAULT '1000-01-01 00:00:00', PRIMARY KEY (`log_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; @@ -737,27 +737,27 @@ CREATE TABLE `http_log` ( /* Table structure for table `http_log_types` */ CREATE TABLE `http_log_types` ( - `log_type_id` int(11) NOT NULL, - `name` varchar(16) NOT NULL, - `description` varchar(255) DEFAULT NULL, - `default_log_type` tinyint(1) unsigned zerofill NOT NULL DEFAULT '0', + `log_type_id` INT(11) NOT NULL, + `name` VARCHAR(16) NOT NULL, + `description` VARCHAR(255), + `default_log_type` TINYINT(1) UNSIGNED ZEROFILL NOT NULL DEFAULT '0', PRIMARY KEY (`log_type_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; /* Data for the table `http_log_types` */ -insert into `http_log_types`(`log_type_id`,`name`,`description`,`default_log_type`) values (1,'XML','XML Job Feed',0); +INSERT INTO `http_log_types` (`log_type_id`, `name`, `description`, `default_log_type`) VALUES (1, 'XML', 'XML Job Feed', 0); /* Table structure for table `import` */ CREATE TABLE `import` ( - `import_id` int(11) NOT NULL AUTO_INCREMENT, - `module_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `reverted` int(1) NOT NULL DEFAULT '0', - `site_id` int(11) NOT NULL DEFAULT '0', - `import_errors` text COLLATE utf8_unicode_ci, - `added_lines` int(11) DEFAULT NULL, - `date_created` datetime DEFAULT NULL, + `import_id` INT(11) NOT NULL AUTO_INCREMENT, + `module_name` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `reverted` INT(1) NOT NULL DEFAULT '0', + `site_id` INT(11) NOT NULL DEFAULT '0', + `import_errors` TEXT COLLATE utf8_unicode_ci, + `added_lines` INT(11) DEFAULT NULL, + `date_created` DATETIME DEFAULT NULL, PRIMARY KEY (`import_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; @@ -766,7 +766,7 @@ CREATE TABLE `import` ( /* Table structure for table `installtest` */ CREATE TABLE `installtest` ( - `id` int(11) NOT NULL DEFAULT '0', + `id` INT(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; @@ -775,35 +775,35 @@ CREATE TABLE `installtest` ( /* Table structure for table `joborder` */ CREATE TABLE `joborder` ( - `joborder_id` int(11) NOT NULL AUTO_INCREMENT, - `recruiter` int(11) DEFAULT NULL, - `contact_id` int(11) DEFAULT NULL, - `company_id` int(11) DEFAULT NULL, - `entered_by` int(11) NOT NULL DEFAULT '0', - `owner` int(11) DEFAULT NULL, - `site_id` int(11) NOT NULL DEFAULT '0', - `client_job_id` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL, - `title` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `description` text COLLATE utf8_unicode_ci, - `notes` text COLLATE utf8_unicode_ci, - `type` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'C', - `duration` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `rate_max` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `salary` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `status` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Active', - `is_hot` int(1) NOT NULL DEFAULT '0', - `openings` int(11) DEFAULT NULL, - `city` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `state` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `start_date` datetime DEFAULT NULL, - `date_created` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', - `date_modified` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', - `public` int(1) NOT NULL DEFAULT '0', - `company_department_id` int(11) DEFAULT NULL, - `is_admin_hidden` int(1) DEFAULT '0', - `openings_available` int(11) DEFAULT '0', - `questionnaire_id` int(11) DEFAULT NULL, - `import_id` int(11) NOT NULL DEFAULT '0', + `joborder_id` INT(11) NOT NULL AUTO_INCREMENT, + `recruiter` INT(11) DEFAULT NULL, + `contact_id` INT(11) DEFAULT NULL, + `company_id` INT(11) DEFAULT NULL, + `entered_by` INT(11) NOT NULL DEFAULT '0', + `owner` INT(11) DEFAULT NULL, + `site_id` INT(11) NOT NULL DEFAULT '0', + `client_job_id` VARCHAR(32) COLLATE utf8_unicode_ci DEFAULT NULL, + `title` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `description` TEXT COLLATE utf8_unicode_ci, + `notes` TEXT COLLATE utf8_unicode_ci, + `type` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'C', + `duration` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, + `rate_max` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `salary` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, + `status` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Active', + `is_hot` INT(1) NOT NULL DEFAULT '0', + `openings` INT(11) DEFAULT NULL, + `city` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `state` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `start_date` DATETIME DEFAULT NULL, + `date_created` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', + `date_modified` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', + `public` INT(1) NOT NULL DEFAULT '0', + `company_department_id` INT(11) DEFAULT NULL, + `is_admin_hidden` INT(1) DEFAULT '0', + `openings_available` INT(11) DEFAULT '0', + `questionnaire_id` INT(11) DEFAULT NULL, + `import_id` INT(11) NOT NULL DEFAULT '0', PRIMARY KEY (`joborder_id`), KEY `IDX_recruiter` (`recruiter`), KEY `IDX_title` (`title`), @@ -816,7 +816,7 @@ CREATE TABLE `joborder` ( KEY `IDX_entered_by` (`entered_by`), KEY `IDX_date_created` (`date_created`), KEY `IDX_date_modified` (`date_modified`), - KEY `IDX_site_id_status` (`site_id`,`status`(8)) + KEY `IDX_site_id_status` (`site_id`, `status`(8)) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /* Data for the table `joborder` */ @@ -824,50 +824,50 @@ CREATE TABLE `joborder` ( /* Table structure for table `module_schema` */ CREATE TABLE `module_schema` ( - `module_schema_id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `version` int(11) DEFAULT NULL, + `module_schema_id` INT(11) NOT NULL AUTO_INCREMENT, + `name` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, + `version` INT(11) DEFAULT NULL, PRIMARY KEY (`module_schema_id`) ) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /* Data for the table `module_schema` */ -insert into `module_schema`(`module_schema_id`,`name`,`version`) values (1,'activity',0); -insert into `module_schema`(`module_schema_id`,`name`,`version`) values (2,'attachments',0); -insert into `module_schema`(`module_schema_id`,`name`,`version`) values (3,'calendar',0); -insert into `module_schema`(`module_schema_id`,`name`,`version`) values (4,'candidates',0); -insert into `module_schema`(`module_schema_id`,`name`,`version`) values (5,'careers',0); -insert into `module_schema`(`module_schema_id`,`name`,`version`) values (6,'companies',0); -insert into `module_schema`(`module_schema_id`,`name`,`version`) values (7,'contacts',0); -insert into `module_schema`(`module_schema_id`,`name`,`version`) values (8,'export',0); -insert into `module_schema`(`module_schema_id`,`name`,`version`) values (9,'extension-statistics',1); -insert into `module_schema`(`module_schema_id`,`name`,`version`) values (10,'graphs',0); -insert into `module_schema`(`module_schema_id`,`name`,`version`) values (11,'home',0); -insert into `module_schema`(`module_schema_id`,`name`,`version`) values (12,'import',0); -insert into `module_schema`(`module_schema_id`,`name`) values (13,'install'); -insert into `module_schema`(`module_schema_id`,`name`,`version`) values (14,'joborders',0); -insert into `module_schema`(`module_schema_id`,`name`,`version`) values (15,'lists',0); -insert into `module_schema`(`module_schema_id`,`name`,`version`) values (16,'login',0); -insert into `module_schema`(`module_schema_id`,`name`,`version`) values (17,'queue',0); -insert into `module_schema`(`module_schema_id`,`name`,`version`) values (18,'reports',0); -insert into `module_schema`(`module_schema_id`,`name`,`version`) values (19,'rss',0); -insert into `module_schema`(`module_schema_id`,`name`,`version`) values (20,'settings',0); -insert into `module_schema`(`module_schema_id`,`name`,`version`) values (21,'tests',0); -insert into `module_schema`(`module_schema_id`,`name`,`version`) values (22,'wizard',0); -insert into `module_schema`(`module_schema_id`,`name`,`version`) values (23,'xml',0); +INSERT INTO `module_schema` (`module_schema_id`, `name`, `version`) VALUES (1, 'activity', 0); +INSERT INTO `module_schema` (`module_schema_id`, `name`, `version`) VALUES (2, 'attachments', 0); +INSERT INTO `module_schema` (`module_schema_id`, `name`, `version`) VALUES (3, 'calendar', 0); +INSERT INTO `module_schema` (`module_schema_id`, `name`, `version`) VALUES (4, 'candidates', 0); +INSERT INTO `module_schema` (`module_schema_id`, `name`, `version`) VALUES (5, 'careers', 0); +INSERT INTO `module_schema` (`module_schema_id`, `name`, `version`) VALUES (6, 'companies', 0); +INSERT INTO `module_schema` (`module_schema_id`, `name`, `version`) VALUES (7, 'contacts', 0); +INSERT INTO `module_schema` (`module_schema_id`, `name`, `version`) VALUES (8, 'export', 0); +INSERT INTO `module_schema` (`module_schema_id`, `name`, `version`) VALUES (9, 'extension-statistics', 1); +INSERT INTO `module_schema` (`module_schema_id`, `name`, `version`) VALUES (10, 'graphs', 0); +INSERT INTO `module_schema` (`module_schema_id`, `name`, `version`) VALUES (11, 'home', 0); +INSERT INTO `module_schema` (`module_schema_id`, `name`, `version`) VALUES (12, 'import', 0); +INSERT INTO `module_schema` (`module_schema_id`, `name`) VALUES (13, 'install'); +INSERT INTO `module_schema` (`module_schema_id`, `name`, `version`) VALUES (14, 'joborders', 0); +INSERT INTO `module_schema` (`module_schema_id`, `name`, `version`) VALUES (15, 'lists', 0); +INSERT INTO `module_schema` (`module_schema_id`, `name`, `version`) VALUES (16, 'login', 0); +INSERT INTO `module_schema` (`module_schema_id`, `name`, `version`) VALUES (17, 'queue', 0); +INSERT INTO `module_schema` (`module_schema_id`, `name`, `version`) VALUES (18, 'reports', 0); +INSERT INTO `module_schema` (`module_schema_id`, `name`, `version`) VALUES (19, 'rss', 0); +INSERT INTO `module_schema` (`module_schema_id`, `name`, `version`) VALUES (20, 'settings', 0); +INSERT INTO `module_schema` (`module_schema_id`, `name`, `version`) VALUES (21, 'tests', 0); +INSERT INTO `module_schema` (`module_schema_id`, `name`, `version`) VALUES (22, 'wizard', 0); +INSERT INTO `module_schema` (`module_schema_id`, `name`, `version`) VALUES (23, 'xml', 0); /* Table structure for table `mru` */ CREATE TABLE `mru` ( - `mru_id` int(11) NOT NULL AUTO_INCREMENT, - `user_id` int(11) DEFAULT NULL, - `site_id` int(11) NOT NULL DEFAULT '0', - `data_item_type` int(11) NOT NULL DEFAULT '0', - `data_item_text` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `url` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `date_created` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', + `mru_id` INT(11) NOT NULL AUTO_INCREMENT, + `user_id` INT(11) DEFAULT NULL, + `site_id` INT(11) NOT NULL DEFAULT '0', + `data_item_type` INT(11) NOT NULL DEFAULT '0', + `data_item_text` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `url` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `date_created` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', PRIMARY KEY (`mru_id`), - KEY `IDX_user_site` (`user_id`,`site_id`) + KEY `IDX_user_site` (`user_id`, `site_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /* Data for the table `mru` */ @@ -875,17 +875,17 @@ CREATE TABLE `mru` ( /* Table structure for table `queue` */ CREATE TABLE `queue` ( - `queue_id` int(11) NOT NULL AUTO_INCREMENT, - `site_id` int(11) NOT NULL, - `task` varchar(125) NOT NULL, - `args` text, - `priority` tinyint(2) NOT NULL DEFAULT '5' COMMENT '1-5, 1 is highest priority', - `date_created` datetime NOT NULL, - `date_timeout` datetime NOT NULL, - `date_completed` datetime DEFAULT NULL, - `locked` tinyint(1) unsigned NOT NULL DEFAULT '0', - `error` tinyint(1) unsigned DEFAULT '0', - `response` varchar(255) DEFAULT NULL, + `queue_id` INT(11) NOT NULL AUTO_INCREMENT, + `site_id` INT(11) NOT NULL, + `task` VARCHAR(125) NOT NULL, + `args` TEXT, + `priority` TINYINT(2) NOT NULL DEFAULT '5' COMMENT '1-5, 1 is highest priority', + `date_created` DATETIME NOT NULL, + `date_timeout` DATETIME NOT NULL, + `date_completed` DATETIME, + `locked` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', + `error` TINYINT(1) UNSIGNED DEFAULT '0', + `response` VARCHAR(255), PRIMARY KEY (`queue_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; @@ -894,17 +894,17 @@ CREATE TABLE `queue` ( /* Table structure for table `saved_list` */ CREATE TABLE `saved_list` ( - `saved_list_id` int(11) NOT NULL AUTO_INCREMENT, - `description` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `data_item_type` int(11) NOT NULL DEFAULT '0', - `site_id` int(11) NOT NULL DEFAULT '0', - `is_dynamic` int(1) DEFAULT '0', - `datagrid_instance` varchar(64) COLLATE utf8_unicode_ci DEFAULT '', - `parameters` text COLLATE utf8_unicode_ci, - `created_by` int(11) DEFAULT '0', - `number_entries` int(11) DEFAULT '0', - `date_created` datetime DEFAULT NULL, - `date_modified` datetime DEFAULT NULL, + `saved_list_id` INT(11) NOT NULL AUTO_INCREMENT, + `description` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `data_item_type` INT(11) NOT NULL DEFAULT '0', + `site_id` INT(11) NOT NULL DEFAULT '0', + `is_dynamic` INT(1) DEFAULT '0', + `datagrid_instance` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT '', + `parameters` TEXT COLLATE utf8_unicode_ci, + `created_by` INT(11) DEFAULT '0', + `number_entries` INT(11) DEFAULT '0', + `date_created` DATETIME DEFAULT NULL, + `date_modified` DATETIME DEFAULT NULL, PRIMARY KEY (`saved_list_id`), KEY `IDX_data_item_type` (`data_item_type`), KEY `IDX_description` (`description`), @@ -916,14 +916,14 @@ CREATE TABLE `saved_list` ( /* Table structure for table `saved_list_entry` */ CREATE TABLE `saved_list_entry` ( - `saved_list_entry_id` int(11) NOT NULL AUTO_INCREMENT, - `saved_list_id` int(11) NOT NULL, - `data_item_type` int(11) NOT NULL DEFAULT '0', - `data_item_id` int(11) NOT NULL DEFAULT '0', - `site_id` int(11) NOT NULL DEFAULT '0', - `date_created` datetime DEFAULT NULL, + `saved_list_entry_id` INT(11) NOT NULL AUTO_INCREMENT, + `saved_list_id` INT(11) NOT NULL, + `data_item_type` INT(11) NOT NULL DEFAULT '0', + `data_item_id` INT(11) NOT NULL DEFAULT '0', + `site_id` INT(11) NOT NULL DEFAULT '0', + `date_created` DATETIME DEFAULT NULL, PRIMARY KEY (`saved_list_entry_id`), - KEY `IDX_type_id` (`data_item_type`,`data_item_id`), + KEY `IDX_type_id` (`data_item_type`, `data_item_id`), KEY `IDX_data_item_type` (`data_item_type`), KEY `IDX_data_item_id` (`data_item_id`), KEY `IDX_hot_list_id` (`saved_list_id`) @@ -934,14 +934,14 @@ CREATE TABLE `saved_list_entry` ( /* Table structure for table `saved_search` */ CREATE TABLE `saved_search` ( - `search_id` int(11) NOT NULL AUTO_INCREMENT, - `data_item_text` text COLLATE utf8_unicode_ci, - `url` text COLLATE utf8_unicode_ci, - `is_custom` int(1) DEFAULT NULL, - `data_item_type` int(11) DEFAULT NULL, - `user_id` int(11) DEFAULT NULL, - `site_id` int(11) DEFAULT NULL, - `date_created` datetime DEFAULT NULL, + `search_id` INT(11) NOT NULL AUTO_INCREMENT, + `data_item_text` TEXT COLLATE utf8_unicode_ci, + `url` TEXT COLLATE utf8_unicode_ci, + `is_custom` INT(1) DEFAULT NULL, + `data_item_type` INT(11) DEFAULT NULL, + `user_id` INT(11) DEFAULT NULL, + `site_id` INT(11) DEFAULT NULL, + `date_created` DATETIME DEFAULT NULL, PRIMARY KEY (`search_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; @@ -950,63 +950,63 @@ CREATE TABLE `saved_search` ( /* Table structure for table `settings` */ CREATE TABLE `settings` ( - `settings_id` int(11) NOT NULL AUTO_INCREMENT, - `setting` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `value` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `site_id` int(11) NOT NULL DEFAULT '0', - `settings_type` int(11) DEFAULT '0', + `settings_id` INT(11) NOT NULL AUTO_INCREMENT, + `setting` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `value` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `site_id` INT(11) NOT NULL DEFAULT '0', + `settings_type` INT(11) DEFAULT '0', PRIMARY KEY (`settings_id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /* Data for the table `settings` */ -insert into `settings`(`settings_id`,`setting`,`value`,`site_id`,`settings_type`) values (1,'fromAddress','admin@example.com',1,1); -insert into `settings`(`settings_id`,`setting`,`value`,`site_id`,`settings_type`) values (2,'fromAddress','admin@example.com',180,1); -insert into `settings`(`settings_id`,`setting`,`value`,`site_id`,`settings_type`) values (3,'configured','1',1,1); -insert into `settings`(`settings_id`,`setting`,`value`,`site_id`,`settings_type`) values (4,'configured','1',180,1); +INSERT INTO `settings` (`settings_id`, `setting`, `value`, `site_id`, `settings_type`) VALUES (1, 'fromAddress', 'admin@example.com', 1, 1); +INSERT INTO `settings` (`settings_id`, `setting`, `value`, `site_id`, `settings_type`) VALUES (2, 'fromAddress', 'admin@example.com', 180, 1); +INSERT INTO `settings` (`settings_id`, `setting`, `value`, `site_id`, `settings_type`) VALUES (3, 'configured', '1', 1, 1); +INSERT INTO `settings` (`settings_id`, `setting`, `value`, `site_id`, `settings_type`) VALUES (4, 'configured', '1', 180, 1); /* Table structure for table `site` */ CREATE TABLE `site` ( - `site_id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `is_demo` int(1) NOT NULL DEFAULT '0', - `user_licenses` int(11) NOT NULL DEFAULT '0', - `entered_by` int(11) NOT NULL DEFAULT '0', - `date_created` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', - `unix_name` varchar(128) CHARACTER SET utf8 DEFAULT NULL, - `company_id` int(11) DEFAULT NULL, - `is_free` int(1) DEFAULT NULL, - `account_active` int(1) NOT NULL DEFAULT '1', - `account_deleted` int(1) NOT NULL DEFAULT '0', - `reason_disabled` text CHARACTER SET utf8, - `time_zone` int(5) DEFAULT '0', - `time_format_24` int(1) DEFAULT '0', - `date_format_ddmmyy` int(1) DEFAULT '0', - `default_phone_country_code` varchar(8) COLLATE utf8_unicode_ci NOT NULL DEFAULT '+1', - `is_hr_mode` int(1) DEFAULT '0', - `file_size_kb` int(11) DEFAULT '0', - `page_views` bigint(20) DEFAULT '0', - `page_view_days` int(11) DEFAULT '0', - `last_viewed_day` date NOT NULL DEFAULT '1000-01-01', - `first_time_setup` tinyint(4) DEFAULT '0', - `localization_configured` int(1) DEFAULT '0', - `agreed_to_license` int(1) DEFAULT '0', - `limit_warning` tinyint(1) NOT NULL DEFAULT '0', + `site_id` INT(11) NOT NULL AUTO_INCREMENT, + `name` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `is_demo` INT(1) NOT NULL DEFAULT '0', + `user_licenses` INT(11) NOT NULL DEFAULT '0', + `entered_by` INT(11) NOT NULL DEFAULT '0', + `date_created` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', + `unix_name` VARCHAR(128) CHARACTER SET utf8 DEFAULT NULL, + `company_id` INT(11) DEFAULT NULL, + `is_free` INT(1) DEFAULT NULL, + `account_active` INT(1) NOT NULL DEFAULT '1', + `account_deleted` INT(1) NOT NULL DEFAULT '0', + `reason_disabled` TEXT CHARACTER SET utf8, + `time_zone` INT(5) DEFAULT '0', + `time_format_24` INT(1) DEFAULT '0', + `date_format_ddmmyy` INT(1) DEFAULT '0', + `default_phone_country_code` VARCHAR(8) COLLATE utf8_unicode_ci NOT NULL DEFAULT '+1', + `is_hr_mode` INT(1) DEFAULT '0', + `file_size_kb` INT(11) DEFAULT '0', + `page_views` BIGINT(20) DEFAULT '0', + `page_view_days` INT(11) DEFAULT '0', + `last_viewed_day` DATE NOT NULL DEFAULT '1000-01-01', + `first_time_setup` TINYINT(4) DEFAULT '0', + `localization_configured` INT(1) DEFAULT '0', + `agreed_to_license` INT(1) DEFAULT '0', + `limit_warning` TINYINT(1) NOT NULL DEFAULT '0', PRIMARY KEY (`site_id`), KEY `IDX_account_deleted` (`account_deleted`) ) ENGINE=InnoDB AUTO_INCREMENT=181 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /* Data for the table `site` */ -insert into `site`(`site_id`,`name`,`is_demo`,`user_licenses`,`entered_by`,`date_created`,`unix_name`,`company_id`,`is_free`,`account_active`,`account_deleted`,`reason_disabled`,`time_zone`,`time_format_24`,`date_format_ddmmyy`,`is_hr_mode`,`file_size_kb`,`page_views`,`page_view_days`,`last_viewed_day`,`first_time_setup`,`localization_configured`,`agreed_to_license`,`limit_warning`) values (1,'example.com',0,0,0,'1000-01-01 00:00:00',NULL,NULL,0,1,0,NULL,2,0,1,0,0,574,1,'1000-01-01',0,0,1,0); -insert into `site`(`site_id`,`name`,`is_demo`,`user_licenses`,`entered_by`,`date_created`,`unix_name`,`company_id`,`is_free`,`account_active`,`account_deleted`,`reason_disabled`,`time_zone`,`time_format_24`,`date_format_ddmmyy`,`is_hr_mode`,`file_size_kb`,`page_views`,`page_view_days`,`last_viewed_day`,`first_time_setup`,`localization_configured`,`agreed_to_license`,`limit_warning`) values (180,'CATS_ADMIN',0,0,0,'1000-01-01 00:00:00','catsadmin',NULL,0,1,0,NULL,2,0,1,0,0,0,0,'1000-01-01',0,0,0,0); +INSERT INTO `site` (`site_id`, `name`, `is_demo`, `user_licenses`, `entered_by`, `date_created`, `unix_name`, `company_id`, `is_free`, `account_active`, `account_deleted`, `reason_disabled`, `time_zone`, `time_format_24`, `date_format_ddmmyy`, `is_hr_mode`, `file_size_kb`, `page_views`, `page_view_days`, `last_viewed_day`, `first_time_setup`, `localization_configured`, `agreed_to_license`, `limit_warning`) VALUES (1, 'example.com', 0, 0, 0, '1000-01-01 00:00:00', NULL, NULL, 0, 1, 0, NULL, 2, 0, 1, 0, 0, 574, 1, '1000-01-01', 0, 0, 1, 0); +INSERT INTO `site` (`site_id`, `name`, `is_demo`, `user_licenses`, `entered_by`, `date_created`, `unix_name`, `company_id`, `is_free`, `account_active`, `account_deleted`, `reason_disabled`, `time_zone`, `time_format_24`, `date_format_ddmmyy`, `is_hr_mode`, `file_size_kb`, `page_views`, `page_view_days`, `last_viewed_day`, `first_time_setup`, `localization_configured`, `agreed_to_license`, `limit_warning`) VALUES (180, 'CATS_ADMIN', 0, 0, 0, '1000-01-01 00:00:00', 'catsadmin', NULL, 0, 1, 0, NULL, 2, 0, 1, 0, 0, 0, 0, '1000-01-01', 0, 0, 0, 0); /* Table structure for table `sph_counter` */ CREATE TABLE `sph_counter` ( - `counter_id` int(11) NOT NULL, - `max_doc_id` int(11) NOT NULL, + `counter_id` INT(11) NOT NULL, + `max_doc_id` INT(11) NOT NULL, PRIMARY KEY (`counter_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; @@ -1015,28 +1015,28 @@ CREATE TABLE `sph_counter` ( /* Table structure for table `system` */ CREATE TABLE `system` ( - `system_id` int(20) NOT NULL DEFAULT '0', - `uid` int(20) DEFAULT NULL, - `available_version` int(11) DEFAULT '0', - `date_version_checked` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', - `available_version_description` text COLLATE utf8_unicode_ci, - `disable_version_check` int(1) DEFAULT '0', + `system_id` INT(20) NOT NULL DEFAULT '0', + `uid` INT(20) DEFAULT NULL, + `available_version` INT(11) DEFAULT '0', + `date_version_checked` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', + `available_version_description` TEXT COLLATE utf8_unicode_ci, + `disable_version_check` INT(1) DEFAULT '0', PRIMARY KEY (`system_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /* Data for the table `system` */ -insert into `system`(`system_id`,`uid`,`available_version`,`date_version_checked`,`available_version_description`,`disable_version_check`) values (0,0,0,'1000-01-01 00:00:00','',1); +INSERT INTO `system` (`system_id`, `uid`, `available_version`, `date_version_checked`, `available_version_description`, `disable_version_check`) VALUES (0, 0, 0, '1000-01-01 00:00:00', '', 1); /* Table structure for table `tag` */ CREATE TABLE `tag` ( - `tag_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `tag_parent_id` int(10) unsigned DEFAULT NULL, - `title` varchar(255) DEFAULT NULL, - `description` varchar(500) DEFAULT NULL, - `site_id` int(11) unsigned DEFAULT NULL, - `date_created` timestamp NULL DEFAULT CURRENT_TIMESTAMP, + `tag_id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, + `tag_parent_id` INT(10) UNSIGNED, + `title` VARCHAR(255), + `description` VARCHAR(500), + `site_id` INT(11) UNSIGNED, + `date_created` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`tag_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; @@ -1045,34 +1045,34 @@ CREATE TABLE `tag` ( /* Table structure for table `user` */ CREATE TABLE `user` ( - `user_id` int(11) NOT NULL AUTO_INCREMENT, - `site_id` int(11) NOT NULL DEFAULT '0', - `user_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `email` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, - `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `access_level` int(11) NOT NULL DEFAULT '100', - `can_change_password` int(1) NOT NULL DEFAULT '1', - `is_test_user` int(1) NOT NULL DEFAULT '0', - `last_name` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `first_name` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `is_demo` int(1) DEFAULT '0', - `categories` varchar(192) COLLATE utf8_unicode_ci DEFAULT NULL, - `session_cookie` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, - `pipeline_entries_per_page` int(8) DEFAULT '15', - `column_preferences` longtext COLLATE utf8_unicode_ci, - `force_logout` int(1) DEFAULT '0', - `title` varchar(64) COLLATE utf8_unicode_ci DEFAULT '', - `phone_work` varchar(64) COLLATE utf8_unicode_ci DEFAULT '', - `phone_cell` varchar(64) COLLATE utf8_unicode_ci DEFAULT '', - `phone_other` varchar(64) COLLATE utf8_unicode_ci DEFAULT '', - `address` text COLLATE utf8_unicode_ci, - `notes` text COLLATE utf8_unicode_ci, - `company` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `city` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `state` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `zip_code` varchar(16) COLLATE utf8_unicode_ci DEFAULT NULL, - `country` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, - `can_see_eeo_info` int(1) DEFAULT '0', + `user_id` INT(11) NOT NULL AUTO_INCREMENT, + `site_id` INT(11) NOT NULL DEFAULT '0', + `user_name` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `email` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, + `password` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `access_level` INT(11) NOT NULL DEFAULT '100', + `can_change_password` INT(1) NOT NULL DEFAULT '1', + `is_test_user` INT(1) NOT NULL DEFAULT '0', + `last_name` VARCHAR(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `first_name` VARCHAR(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `is_demo` INT(1) DEFAULT '0', + `categories` VARCHAR(192) COLLATE utf8_unicode_ci DEFAULT NULL, + `session_cookie` VARCHAR(256) COLLATE utf8_unicode_ci DEFAULT NULL, + `pipeline_entries_per_page` INT(8) DEFAULT '15', + `column_preferences` LONGTEXT COLLATE utf8_unicode_ci, + `force_logout` INT(1) DEFAULT '0', + `title` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT '', + `phone_work` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT '', + `phone_cell` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT '', + `phone_other` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT '', + `address` TEXT COLLATE utf8_unicode_ci, + `notes` TEXT COLLATE utf8_unicode_ci, + `company` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `city` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, + `state` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, + `zip_code` VARCHAR(16) COLLATE utf8_unicode_ci DEFAULT NULL, + `country` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, + `can_see_eeo_info` INT(1) DEFAULT '0', PRIMARY KEY (`user_id`), KEY `IDX_site_id` (`site_id`), KEY `IDX_first_name` (`first_name`), @@ -1082,28 +1082,28 @@ CREATE TABLE `user` ( /* Data for the table `user` */ -insert into `user`(`user_id`,`site_id`,`user_name`,`email`,`password`,`access_level`,`can_change_password`,`is_test_user`,`last_name`,`first_name`,`is_demo`,`categories`,`session_cookie`,`pipeline_entries_per_page`,`column_preferences`,`force_logout`,`title`,`phone_work`,`phone_cell`,`phone_other`,`address`,`notes`,`company`,`city`,`state`,`zip_code`,`country`,`can_see_eeo_info`) values (1,1,'admin','admin@example.com',md5('cats'),500,1,0,'Administrator','CATS',0,NULL,NULL,15,NULL,0,'','','','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0); -insert into `user`(`user_id`,`site_id`,`user_name`,`email`,`password`,`access_level`,`can_change_password`,`is_test_user`,`last_name`,`first_name`,`is_demo`,`categories`,`session_cookie`,`pipeline_entries_per_page`,`column_preferences`,`force_logout`,`title`,`phone_work`,`phone_cell`,`phone_other`,`address`,`notes`,`company`,`city`,`state`,`zip_code`,`country`,`can_see_eeo_info`) values (1250,180,'cats@rootadmin','0','cantlogin',0,0,0,'Automated','CATS',0,NULL,NULL,15,NULL,0,'','','','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0); +INSERT INTO `user` (`user_id`, `site_id`, `user_name`, `email`, `password`, `access_level`, `can_change_password`, `is_test_user`, `last_name`, `first_name`, `is_demo`, `categories`, `session_cookie`, `pipeline_entries_per_page`, `column_preferences`, `force_logout`, `title`, `phone_work`, `phone_cell`, `phone_other`, `address`, `notes`, `company`, `city`, `state`, `zip_code`, `country`, `can_see_eeo_info`) VALUES (1, 1, 'admin', 'admin@example.com', md5('cats'), 500, 1, 0, 'Administrator', 'CATS', 0, NULL, NULL, 15, NULL, 0, '', '', '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0); +INSERT INTO `user` (`user_id`, `site_id`, `user_name`, `email`, `password`, `access_level`, `can_change_password`, `is_test_user`, `last_name`, `first_name`, `is_demo`, `categories`, `session_cookie`, `pipeline_entries_per_page`, `column_preferences`, `force_logout`, `title`, `phone_work`, `phone_cell`, `phone_other`, `address`, `notes`, `company`, `city`, `state`, `zip_code`, `country`, `can_see_eeo_info`) VALUES (1250, 180, 'cats@rootadmin', '0', 'cantlogin', 0, 0, 0, 'Automated', 'CATS', 0, NULL, NULL, 15, NULL, 0, '', '', '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0); /* Table structure for table `user_login` */ CREATE TABLE `user_login` ( - `user_login_id` int(11) NOT NULL AUTO_INCREMENT, - `user_id` int(11) DEFAULT NULL, - `site_id` int(11) NOT NULL DEFAULT '0', - `ip` varchar(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `user_agent` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `date` datetime NOT NULL DEFAULT '1000-01-01 00:00:00', - `successful` int(1) NOT NULL DEFAULT '0', - `host` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `date_refreshed` datetime DEFAULT NULL, + `user_login_id` INT(11) NOT NULL AUTO_INCREMENT, + `user_id` INT(11) DEFAULT NULL, + `site_id` INT(11) NOT NULL DEFAULT '0', + `ip` VARCHAR(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `user_agent` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `date` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', + `successful` INT(1) NOT NULL DEFAULT '0', + `host` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `date_refreshed` DATETIME DEFAULT NULL, PRIMARY KEY (`user_login_id`), KEY `IDX_user_id` (`user_id`), KEY `IDX_ip` (`ip`), KEY `IDX_date` (`date`), KEY `IDX_date_refreshed` (`date_refreshed`), - KEY `IDX_site_id_date` (`site_id`,`date`), - KEY `IDX_successful_site_id` (`successful`,`site_id`) + KEY `IDX_site_id_date` (`site_id`, `date`), + KEY `IDX_successful_site_id` (`successful`, `site_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /* Data for the table `user_login` */ @@ -1111,8 +1111,8 @@ CREATE TABLE `user_login` ( /* Table structure for table `word_verification` */ CREATE TABLE `word_verification` ( - `word_verification_ID` int(11) NOT NULL AUTO_INCREMENT, - `word` varchar(28) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `word_verification_ID` INT(11) NOT NULL AUTO_INCREMENT, + `word` VARCHAR(28) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', PRIMARY KEY (`word_verification_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; @@ -1121,10 +1121,10 @@ CREATE TABLE `word_verification` ( /* Table structure for table `xml_feed_submits` */ CREATE TABLE `xml_feed_submits` ( - `feed_id` int(11) NOT NULL AUTO_INCREMENT, - `feed_site` varchar(75) NOT NULL, - `feed_url` varchar(255) NOT NULL, - `date_last_post` date NOT NULL, + `feed_id` INT(11) NOT NULL AUTO_INCREMENT, + `feed_site` VARCHAR(75) NOT NULL, + `feed_url` VARCHAR(255) NOT NULL, + `date_last_post` DATE NOT NULL, PRIMARY KEY (`feed_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; @@ -1133,28 +1133,28 @@ CREATE TABLE `xml_feed_submits` ( /* Table structure for table `xml_feeds` */ CREATE TABLE `xml_feeds` ( - `xml_feed_id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) NOT NULL, - `description` varchar(255) DEFAULT NULL, - `website` varchar(255) DEFAULT NULL, - `post_url` varchar(255) NOT NULL, - `success_string` varchar(255) NOT NULL, - `xml_template_name` varchar(255) NOT NULL, + `xml_feed_id` INT(11) NOT NULL AUTO_INCREMENT, + `name` VARCHAR(50) NOT NULL, + `description` VARCHAR(255) DEFAULT NULL, + `website` VARCHAR(255) DEFAULT NULL, + `post_url` VARCHAR(255) NOT NULL, + `success_string` VARCHAR(255) NOT NULL, + `xml_template_name` VARCHAR(255) NOT NULL, PRIMARY KEY (`xml_feed_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; /* Data for the table `xml_feeds` */ -insert into `xml_feeds`(`xml_feed_id`,`name`,`description`,`website`,`post_url`,`success_string`,`xml_template_name`) values (1,'Indeed','Indeed.com job search engine.','http://www.indeed.com','http://www.indeed.com/jsp/includejobs.jsp','Thank you for submitting your XML job feed','indeed'); -insert into `xml_feeds`(`xml_feed_id`,`name`,`description`,`website`,`post_url`,`success_string`,`xml_template_name`) values (2,'SimplyHired','SimplyHired.com job search engine','http://www.simplyhired.com','http://www.simplyhired.com/confirmation.php','Thanks for Contacting Us','simplyhired'); +INSERT INTO `xml_feeds` (`xml_feed_id`, `name`, `description`, `website`, `post_url`, `success_string`, `xml_template_name`) VALUES (1, 'Indeed', 'Indeed.com job search engine.', 'http://www.indeed.com', 'http://www.indeed.com/jsp/includejobs.jsp', 'Thank you for submitting your XML job feed', 'indeed'); +INSERT INTO `xml_feeds` (`xml_feed_id`, `name`, `description`, `website`, `post_url`, `success_string`, `xml_template_name`) VALUES (2, 'SimplyHired', 'SimplyHired.com job search engine', 'http://www.simplyhired.com', 'http://www.simplyhired.com/confirmation.php', 'Thanks for Contacting Us', 'simplyhired'); /* Table structure for table `zipcodes` */ CREATE TABLE `zipcodes` ( - `zipcode` mediumint(9) NOT NULL DEFAULT '0', - `city` tinytext COLLATE utf8_unicode_ci NOT NULL, - `state` varchar(2) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `areacode` smallint(6) NOT NULL DEFAULT '0', + `zipcode` MEDIUMINT(9) NOT NULL DEFAULT '0', + `city` TINYTEXT COLLATE utf8_unicode_ci NOT NULL, + `state` VARCHAR(2) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `areacode` SMALLINT(6) NOT NULL DEFAULT '0', PRIMARY KEY (`zipcode`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; From 361c5fdd7c58d9ed219f0993aaaebf0c5f7dd956 Mon Sep 17 00:00:00 2001 From: anonymoususer72041 <247563575+anonymoususer72041@users.noreply.github.com> Date: Tue, 5 May 2026 14:30:00 +0200 Subject: [PATCH 3/4] Remove redundant schema NULL defaults --- db/cats_schema.sql | 250 ++++++++++++++++++++++----------------------- 1 file changed, 125 insertions(+), 125 deletions(-) diff --git a/db/cats_schema.sql b/db/cats_schema.sql index b5d352a64..b93428fa8 100755 --- a/db/cats_schema.sql +++ b/db/cats_schema.sql @@ -29,7 +29,7 @@ CREATE TABLE `activity` ( `activity_id` INT(11) NOT NULL AUTO_INCREMENT, `data_item_id` INT(11) NOT NULL DEFAULT '0', `data_item_type` INT(11) NOT NULL DEFAULT '0', - `joborder_id` INT(11) DEFAULT NULL, + `joborder_id` INT(11), `site_id` INT(11) NOT NULL DEFAULT '0', `entered_by` INT(11) NOT NULL DEFAULT '0', `date_created` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', @@ -79,16 +79,16 @@ CREATE TABLE `attachment` ( `data_item_id` INT(11) NOT NULL DEFAULT '0', `data_item_type` INT(11) NOT NULL DEFAULT '0', `site_id` INT(11) NOT NULL DEFAULT '0', - `title` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, + `title` VARCHAR(128) COLLATE utf8_unicode_ci, `original_filename` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `stored_filename` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `content_type` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `content_type` VARCHAR(255) COLLATE utf8_unicode_ci, `resume` INT(1) NOT NULL DEFAULT '0', `text` TEXT COLLATE utf8_unicode_ci, `date_created` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', `date_modified` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', `profile_image` INT(1) DEFAULT '0', - `directory_name` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, + `directory_name` VARCHAR(64) COLLATE utf8_unicode_ci, `md5_sum` VARCHAR(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `file_size_kb` INT(11) DEFAULT '0', `md5_sum_text` VARCHAR(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', @@ -156,36 +156,36 @@ CREATE TABLE `candidate` ( `site_id` INT(11) NOT NULL DEFAULT '0', `last_name` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `first_name` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `middle_name` VARCHAR(32) COLLATE utf8_unicode_ci DEFAULT NULL, - `phone_home` VARCHAR(40) COLLATE utf8_unicode_ci DEFAULT NULL, - `phone_cell` VARCHAR(40) COLLATE utf8_unicode_ci DEFAULT NULL, - `phone_work` VARCHAR(40) COLLATE utf8_unicode_ci DEFAULT NULL, + `middle_name` VARCHAR(32) COLLATE utf8_unicode_ci, + `phone_home` VARCHAR(40) COLLATE utf8_unicode_ci, + `phone_cell` VARCHAR(40) COLLATE utf8_unicode_ci, + `phone_work` VARCHAR(40) COLLATE utf8_unicode_ci, `address` TEXT COLLATE utf8_unicode_ci, `address2` TEXT COLLATE utf8_unicode_ci, - `city` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `state` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `zip` VARCHAR(16) COLLATE utf8_unicode_ci DEFAULT NULL, - `source` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, - `date_available` DATETIME DEFAULT NULL, + `city` VARCHAR(64) COLLATE utf8_unicode_ci, + `state` VARCHAR(64) COLLATE utf8_unicode_ci, + `zip` VARCHAR(16) COLLATE utf8_unicode_ci, + `source` VARCHAR(128) COLLATE utf8_unicode_ci, + `date_available` DATETIME, `can_relocate` INT(1) NOT NULL DEFAULT '0', `notes` TEXT COLLATE utf8_unicode_ci, `key_skills` TEXT COLLATE utf8_unicode_ci, - `current_employer` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, + `current_employer` VARCHAR(128) COLLATE utf8_unicode_ci, `entered_by` INT(11) NOT NULL DEFAULT '0' COMMENT 'Created-by user.', - `owner` INT(11) DEFAULT NULL, + `owner` INT(11), `date_created` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', `date_modified` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', - `email1` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, - `email2` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, - `web_site` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, + `email1` VARCHAR(128) COLLATE utf8_unicode_ci, + `email2` VARCHAR(128) COLLATE utf8_unicode_ci, + `web_site` VARCHAR(128) COLLATE utf8_unicode_ci, `import_id` INT(11) NOT NULL DEFAULT '0', `is_hot` INT(1) NOT NULL DEFAULT '0', `eeo_ethnic_type_id` INT(11) DEFAULT '0', `eeo_veteran_type_id` INT(11) DEFAULT '0', `eeo_disability_status` VARCHAR(5) COLLATE utf8_unicode_ci DEFAULT '', `eeo_gender` VARCHAR(5) COLLATE utf8_unicode_ci DEFAULT '', - `desired_pay` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `current_pay` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, + `desired_pay` VARCHAR(64) COLLATE utf8_unicode_ci, + `current_pay` VARCHAR(64) COLLATE utf8_unicode_ci, `is_active` INT(1) DEFAULT '1', `is_admin_hidden` INT(1) DEFAULT '0', `best_time_to_call` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', @@ -227,11 +227,11 @@ CREATE TABLE `candidate_joborder` ( `joborder_id` INT(11) NOT NULL DEFAULT '0', `site_id` INT(11) NOT NULL DEFAULT '0', `status` INT(11) NOT NULL DEFAULT '0', - `date_submitted` DATETIME DEFAULT NULL, + `date_submitted` DATETIME, `date_created` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', `date_modified` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', - `rating_value` INT(5) DEFAULT NULL, - `added_by` INT(11) DEFAULT NULL, + `rating_value` INT(5), + `added_by` INT(11), PRIMARY KEY (`candidate_joborder_id`), KEY `IDX_candidate_id` (`candidate_id`), KEY `IDX_site_id` (`site_id`), @@ -308,9 +308,9 @@ CREATE TABLE `candidate_jobordrer_status_type` ( CREATE TABLE `candidate_source` ( `source_id` INT(11) NOT NULL AUTO_INCREMENT, - `name` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `site_id` INT(11) DEFAULT NULL, - `date_created` DATETIME DEFAULT NULL, + `name` VARCHAR(255) COLLATE utf8_unicode_ci, + `site_id` INT(11), + `date_created` DATETIME, PRIMARY KEY (`source_id`), KEY `siteID` (`site_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; @@ -333,7 +333,7 @@ CREATE TABLE `career_portal_questionnaire` ( `career_portal_questionnaire_id` INT(11) NOT NULL AUTO_INCREMENT, `title` VARCHAR(255) NOT NULL DEFAULT '', `site_id` INT(11) NOT NULL DEFAULT '0', - `description` VARCHAR(255) DEFAULT NULL, + `description` VARCHAR(255), `is_active` TINYINT(1) NOT NULL DEFAULT '1', PRIMARY KEY (`career_portal_questionnaire_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; @@ -347,12 +347,12 @@ CREATE TABLE `career_portal_questionnaire_answer` ( `career_portal_questionnaire_question_id` INT(11) NOT NULL, `career_portal_questionnaire_id` INT(11) NOT NULL, `text` VARCHAR(255) NOT NULL DEFAULT '', - `action_source` VARCHAR(128) DEFAULT NULL, + `action_source` VARCHAR(128), `action_notes` TEXT, `action_is_hot` TINYINT(1) DEFAULT '0', `action_is_active` TINYINT(1) DEFAULT '0', `action_can_relocate` TINYINT(1) DEFAULT '0', - `action_key_skills` VARCHAR(255) DEFAULT NULL, + `action_key_skills` VARCHAR(255), `position` INT(4) NOT NULL DEFAULT '0', `site_id` INT(11) NOT NULL DEFAULT '0', PRIMARY KEY (`career_portal_questionnaire_answer_id`) @@ -382,8 +382,8 @@ CREATE TABLE `career_portal_questionnaire_question` ( `career_portal_questionnaire_question_id` INT(11) NOT NULL AUTO_INCREMENT, `career_portal_questionnaire_id` INT(11) NOT NULL, `text` VARCHAR(255) NOT NULL DEFAULT '', - `minimum_length` INT(11) DEFAULT NULL, - `maximum_length` INT(11) DEFAULT NULL, + `minimum_length` INT(11), + `maximum_length` INT(11), `required` TINYINT(1) NOT NULL DEFAULT '0', `position` INT(4) NOT NULL DEFAULT '0', `site_id` INT(11) NOT NULL DEFAULT '0', @@ -397,7 +397,7 @@ CREATE TABLE `career_portal_questionnaire_question` ( CREATE TABLE `career_portal_template` ( `career_portal_template_id` INT(11) NOT NULL AUTO_INCREMENT, - `career_portal_name` VARCHAR(255) DEFAULT NULL, + `career_portal_name` VARCHAR(255), `setting` VARCHAR(128) NOT NULL DEFAULT '', `value` TEXT, PRIMARY KEY (`career_portal_template_id`) @@ -432,7 +432,7 @@ INSERT INTO `career_portal_template` (`career_portal_template_id`, `career_porta CREATE TABLE `career_portal_template_site` ( `career_portal_template_id` INT(11) NOT NULL AUTO_INCREMENT, - `career_portal_name` VARCHAR(255) DEFAULT NULL, + `career_portal_name` VARCHAR(255), `site_id` INT(11) NOT NULL, `setting` VARCHAR(128) NOT NULL DEFAULT '', `value` TEXT, @@ -446,25 +446,25 @@ CREATE TABLE `career_portal_template_site` ( CREATE TABLE `company` ( `company_id` INT(11) NOT NULL AUTO_INCREMENT, `site_id` INT(11) NOT NULL DEFAULT '0', - `billing_contact` INT(11) DEFAULT NULL, + `billing_contact` INT(11), `name` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `address` TEXT COLLATE utf8_unicode_ci, `address2` TEXT COLLATE utf8_unicode_ci, - `city` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `state` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `zip` VARCHAR(16) COLLATE utf8_unicode_ci DEFAULT NULL, - `phone1` VARCHAR(40) COLLATE utf8_unicode_ci DEFAULT NULL, - `phone2` VARCHAR(40) COLLATE utf8_unicode_ci DEFAULT NULL, - `url` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, + `city` VARCHAR(64) COLLATE utf8_unicode_ci, + `state` VARCHAR(64) COLLATE utf8_unicode_ci, + `zip` VARCHAR(16) COLLATE utf8_unicode_ci, + `phone1` VARCHAR(40) COLLATE utf8_unicode_ci, + `phone2` VARCHAR(40) COLLATE utf8_unicode_ci, + `url` VARCHAR(128) COLLATE utf8_unicode_ci, `key_technologies` TEXT COLLATE utf8_unicode_ci, `notes` TEXT COLLATE utf8_unicode_ci, - `entered_by` INT(11) DEFAULT NULL, - `owner` INT(11) DEFAULT NULL, + `entered_by` INT(11), + `owner` INT(11), `date_created` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', `date_modified` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', - `is_hot` INT(1) DEFAULT NULL, - `fax_number` VARCHAR(40) COLLATE utf8_unicode_ci DEFAULT NULL, - `import_id` INT(11) DEFAULT NULL, + `is_hot` INT(1), + `fax_number` VARCHAR(40) COLLATE utf8_unicode_ci, + `import_id` INT(11), `default_company` INT(1) NOT NULL DEFAULT '0', PRIMARY KEY (`company_id`), KEY `IDX_site_id` (`site_id`), @@ -485,11 +485,11 @@ INSERT INTO `company` (`company_id`, `site_id`, `billing_contact`, `name`, `addr CREATE TABLE `company_department` ( `company_department_id` INT(11) NOT NULL AUTO_INCREMENT, - `name` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, + `name` VARCHAR(128) COLLATE utf8_unicode_ci, `company_id` INT(11) NOT NULL, `site_id` INT(11) NOT NULL DEFAULT '0', `date_created` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', - `created_by` INT(11) DEFAULT NULL, + `created_by` INT(11), PRIMARY KEY (`company_department_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; @@ -503,21 +503,21 @@ CREATE TABLE `contact` ( `site_id` INT(11) NOT NULL DEFAULT '0', `last_name` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `first_name` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `title` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, - `email1` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, - `email2` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, - `phone_work` VARCHAR(40) COLLATE utf8_unicode_ci DEFAULT NULL, - `phone_cell` VARCHAR(40) COLLATE utf8_unicode_ci DEFAULT NULL, - `phone_other` VARCHAR(40) COLLATE utf8_unicode_ci DEFAULT NULL, + `title` VARCHAR(128) COLLATE utf8_unicode_ci, + `email1` VARCHAR(128) COLLATE utf8_unicode_ci, + `email2` VARCHAR(128) COLLATE utf8_unicode_ci, + `phone_work` VARCHAR(40) COLLATE utf8_unicode_ci, + `phone_cell` VARCHAR(40) COLLATE utf8_unicode_ci, + `phone_other` VARCHAR(40) COLLATE utf8_unicode_ci, `address` TEXT COLLATE utf8_unicode_ci, `address2` TEXT COLLATE utf8_unicode_ci, - `city` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `state` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `zip` VARCHAR(16) COLLATE utf8_unicode_ci DEFAULT NULL, - `is_hot` INT(1) DEFAULT NULL, + `city` VARCHAR(64) COLLATE utf8_unicode_ci, + `state` VARCHAR(64) COLLATE utf8_unicode_ci, + `zip` VARCHAR(16) COLLATE utf8_unicode_ci, + `is_hot` INT(1), `notes` TEXT COLLATE utf8_unicode_ci, `entered_by` INT(11) NOT NULL DEFAULT '0', - `owner` INT(11) DEFAULT NULL, + `owner` INT(11), `date_created` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', `date_modified` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', `left_company` INT(1) NOT NULL DEFAULT '0', @@ -591,9 +591,9 @@ CREATE TABLE `email_history` ( `from_address` VARCHAR(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `recipients` TEXT COLLATE utf8_unicode_ci NOT NULL, `text` TEXT COLLATE utf8_unicode_ci, - `user_id` INT(11) DEFAULT NULL, + `user_id` INT(11), `site_id` INT(11) NOT NULL DEFAULT '0', - `date` DATETIME DEFAULT NULL, + `date` DATETIME, PRIMARY KEY (`email_history_id`), KEY `IDX_site_id` (`site_id`), KEY `IDX_date` (`date`), @@ -609,8 +609,8 @@ CREATE TABLE `email_template` ( `text` TEXT COLLATE utf8_unicode_ci, `allow_substitution` INT(1) NOT NULL DEFAULT '0', `site_id` INT(11) NOT NULL DEFAULT '0', - `tag` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `title` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `tag` VARCHAR(255) COLLATE utf8_unicode_ci, + `title` VARCHAR(255) COLLATE utf8_unicode_ci, `possible_variables` TEXT COLLATE utf8_unicode_ci, `disabled` INT(1) DEFAULT '0', PRIMARY KEY (`email_template_id`) @@ -633,7 +633,7 @@ CREATE TABLE `extension_statistics` ( `extension` VARCHAR(128) NOT NULL DEFAULT '', `action` VARCHAR(128) NOT NULL DEFAULT '', `user` VARCHAR(128) NOT NULL DEFAULT '', - `date` DATE DEFAULT NULL, + `date` DATE, PRIMARY KEY (`extension_statistics_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; @@ -644,9 +644,9 @@ CREATE TABLE `extension_statistics` ( CREATE TABLE `extra_field` ( `extra_field_id` INT(11) NOT NULL AUTO_INCREMENT, `data_item_id` INT(11) DEFAULT '0', - `field_name` VARCHAR(255) DEFAULT NULL, + `field_name` VARCHAR(255), `value` TEXT, - `import_id` INT(11) DEFAULT NULL, + `import_id` INT(11), `site_id` INT(11) DEFAULT '0', `data_item_type` INT(11) DEFAULT '0', PRIMARY KEY (`extra_field_id`), @@ -660,10 +660,10 @@ CREATE TABLE `extra_field` ( CREATE TABLE `extra_field_settings` ( `extra_field_settings_id` INT(11) NOT NULL AUTO_INCREMENT, - `field_name` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `import_id` INT(11) DEFAULT NULL, + `field_name` VARCHAR(255) COLLATE utf8_unicode_ci, + `import_id` INT(11), `site_id` INT(11) NOT NULL DEFAULT '0', - `date_created` DATETIME DEFAULT NULL, + `date_created` DATETIME, `data_item_type` INT(11) DEFAULT '0', `extra_field_type` INT(11) NOT NULL DEFAULT '1', `extra_field_options` TEXT COLLATE utf8_unicode_ci, @@ -682,7 +682,7 @@ INSERT INTO `extra_field_settings` (`extra_field_settings_id`, `field_name`, `im CREATE TABLE `feedback` ( `feedback_id` INT(11) NOT NULL AUTO_INCREMENT, - `user_id` INT(11) DEFAULT NULL, + `user_id` INT(11), `site_id` INT(11) NOT NULL DEFAULT '0', `date_created` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', `subject` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', @@ -699,14 +699,14 @@ CREATE TABLE `feedback` ( CREATE TABLE `history` ( `history_id` INT(11) NOT NULL AUTO_INCREMENT, - `data_item_type` INT(11) DEFAULT NULL, - `data_item_id` INT(11) DEFAULT NULL, - `the_field` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, + `data_item_type` INT(11), + `data_item_id` INT(11), + `the_field` VARCHAR(64) COLLATE utf8_unicode_ci, `previous_value` TEXT COLLATE utf8_unicode_ci, `new_value` TEXT COLLATE utf8_unicode_ci, - `description` VARCHAR(192) COLLATE utf8_unicode_ci DEFAULT NULL, - `set_date` DATETIME DEFAULT NULL, - `entered_by` INT(11) DEFAULT NULL, + `description` VARCHAR(192) COLLATE utf8_unicode_ci, + `set_date` DATETIME, + `entered_by` INT(11), `site_id` INT(11) NOT NULL DEFAULT '0', PRIMARY KEY (`history_id`), KEY `IDX_DATA_ENTERED_BY` (`entered_by`), @@ -721,12 +721,12 @@ CREATE TABLE `http_log` ( `log_id` INT(11) NOT NULL AUTO_INCREMENT, `site_id` INT(11) NOT NULL, `remote_addr` CHAR(16) NOT NULL, - `http_user_agent` VARCHAR(255) DEFAULT NULL, - `script_filename` VARCHAR(255) DEFAULT NULL, - `request_method` VARCHAR(16) DEFAULT NULL, - `query_string` VARCHAR(255) DEFAULT NULL, - `request_uri` VARCHAR(255) DEFAULT NULL, - `script_name` VARCHAR(255) DEFAULT NULL, + `http_user_agent` VARCHAR(255), + `script_filename` VARCHAR(255), + `request_method` VARCHAR(16), + `query_string` VARCHAR(255), + `request_uri` VARCHAR(255), + `script_name` VARCHAR(255), `log_type` INT(11) NOT NULL, `date` DATETIME DEFAULT '1000-01-01 00:00:00', PRIMARY KEY (`log_id`) @@ -756,8 +756,8 @@ CREATE TABLE `import` ( `reverted` INT(1) NOT NULL DEFAULT '0', `site_id` INT(11) NOT NULL DEFAULT '0', `import_errors` TEXT COLLATE utf8_unicode_ci, - `added_lines` INT(11) DEFAULT NULL, - `date_created` DATETIME DEFAULT NULL, + `added_lines` INT(11), + `date_created` DATETIME, PRIMARY KEY (`import_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; @@ -776,33 +776,33 @@ CREATE TABLE `installtest` ( CREATE TABLE `joborder` ( `joborder_id` INT(11) NOT NULL AUTO_INCREMENT, - `recruiter` INT(11) DEFAULT NULL, - `contact_id` INT(11) DEFAULT NULL, - `company_id` INT(11) DEFAULT NULL, + `recruiter` INT(11), + `contact_id` INT(11), + `company_id` INT(11), `entered_by` INT(11) NOT NULL DEFAULT '0', - `owner` INT(11) DEFAULT NULL, + `owner` INT(11), `site_id` INT(11) NOT NULL DEFAULT '0', - `client_job_id` VARCHAR(32) COLLATE utf8_unicode_ci DEFAULT NULL, + `client_job_id` VARCHAR(32) COLLATE utf8_unicode_ci, `title` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `description` TEXT COLLATE utf8_unicode_ci, `notes` TEXT COLLATE utf8_unicode_ci, `type` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'C', - `duration` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `rate_max` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `salary` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, + `duration` VARCHAR(64) COLLATE utf8_unicode_ci, + `rate_max` VARCHAR(255) COLLATE utf8_unicode_ci, + `salary` VARCHAR(64) COLLATE utf8_unicode_ci, `status` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Active', `is_hot` INT(1) NOT NULL DEFAULT '0', - `openings` INT(11) DEFAULT NULL, + `openings` INT(11), `city` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `state` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `start_date` DATETIME DEFAULT NULL, + `start_date` DATETIME, `date_created` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', `date_modified` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', `public` INT(1) NOT NULL DEFAULT '0', - `company_department_id` INT(11) DEFAULT NULL, + `company_department_id` INT(11), `is_admin_hidden` INT(1) DEFAULT '0', `openings_available` INT(11) DEFAULT '0', - `questionnaire_id` INT(11) DEFAULT NULL, + `questionnaire_id` INT(11), `import_id` INT(11) NOT NULL DEFAULT '0', PRIMARY KEY (`joborder_id`), KEY `IDX_recruiter` (`recruiter`), @@ -825,8 +825,8 @@ CREATE TABLE `joborder` ( CREATE TABLE `module_schema` ( `module_schema_id` INT(11) NOT NULL AUTO_INCREMENT, - `name` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `version` INT(11) DEFAULT NULL, + `name` VARCHAR(64) COLLATE utf8_unicode_ci, + `version` INT(11), PRIMARY KEY (`module_schema_id`) ) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; @@ -860,7 +860,7 @@ INSERT INTO `module_schema` (`module_schema_id`, `name`, `version`) VALUES (23, CREATE TABLE `mru` ( `mru_id` INT(11) NOT NULL AUTO_INCREMENT, - `user_id` INT(11) DEFAULT NULL, + `user_id` INT(11), `site_id` INT(11) NOT NULL DEFAULT '0', `data_item_type` INT(11) NOT NULL DEFAULT '0', `data_item_text` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', @@ -903,8 +903,8 @@ CREATE TABLE `saved_list` ( `parameters` TEXT COLLATE utf8_unicode_ci, `created_by` INT(11) DEFAULT '0', `number_entries` INT(11) DEFAULT '0', - `date_created` DATETIME DEFAULT NULL, - `date_modified` DATETIME DEFAULT NULL, + `date_created` DATETIME, + `date_modified` DATETIME, PRIMARY KEY (`saved_list_id`), KEY `IDX_data_item_type` (`data_item_type`), KEY `IDX_description` (`description`), @@ -921,7 +921,7 @@ CREATE TABLE `saved_list_entry` ( `data_item_type` INT(11) NOT NULL DEFAULT '0', `data_item_id` INT(11) NOT NULL DEFAULT '0', `site_id` INT(11) NOT NULL DEFAULT '0', - `date_created` DATETIME DEFAULT NULL, + `date_created` DATETIME, PRIMARY KEY (`saved_list_entry_id`), KEY `IDX_type_id` (`data_item_type`, `data_item_id`), KEY `IDX_data_item_type` (`data_item_type`), @@ -937,11 +937,11 @@ CREATE TABLE `saved_search` ( `search_id` INT(11) NOT NULL AUTO_INCREMENT, `data_item_text` TEXT COLLATE utf8_unicode_ci, `url` TEXT COLLATE utf8_unicode_ci, - `is_custom` INT(1) DEFAULT NULL, - `data_item_type` INT(11) DEFAULT NULL, - `user_id` INT(11) DEFAULT NULL, - `site_id` INT(11) DEFAULT NULL, - `date_created` DATETIME DEFAULT NULL, + `is_custom` INT(1), + `data_item_type` INT(11), + `user_id` INT(11), + `site_id` INT(11), + `date_created` DATETIME, PRIMARY KEY (`search_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; @@ -952,7 +952,7 @@ CREATE TABLE `saved_search` ( CREATE TABLE `settings` ( `settings_id` INT(11) NOT NULL AUTO_INCREMENT, `setting` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `value` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `value` VARCHAR(255) COLLATE utf8_unicode_ci, `site_id` INT(11) NOT NULL DEFAULT '0', `settings_type` INT(11) DEFAULT '0', PRIMARY KEY (`settings_id`) @@ -974,9 +974,9 @@ CREATE TABLE `site` ( `user_licenses` INT(11) NOT NULL DEFAULT '0', `entered_by` INT(11) NOT NULL DEFAULT '0', `date_created` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', - `unix_name` VARCHAR(128) CHARACTER SET utf8 DEFAULT NULL, - `company_id` INT(11) DEFAULT NULL, - `is_free` INT(1) DEFAULT NULL, + `unix_name` VARCHAR(128) CHARACTER SET utf8, + `company_id` INT(11), + `is_free` INT(1), `account_active` INT(1) NOT NULL DEFAULT '1', `account_deleted` INT(1) NOT NULL DEFAULT '0', `reason_disabled` TEXT CHARACTER SET utf8, @@ -1016,7 +1016,7 @@ CREATE TABLE `sph_counter` ( CREATE TABLE `system` ( `system_id` INT(20) NOT NULL DEFAULT '0', - `uid` INT(20) DEFAULT NULL, + `uid` INT(20), `available_version` INT(11) DEFAULT '0', `date_version_checked` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', `available_version_description` TEXT COLLATE utf8_unicode_ci, @@ -1048,7 +1048,7 @@ CREATE TABLE `user` ( `user_id` INT(11) NOT NULL AUTO_INCREMENT, `site_id` INT(11) NOT NULL DEFAULT '0', `user_name` VARCHAR(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `email` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, + `email` VARCHAR(128) COLLATE utf8_unicode_ci, `password` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `access_level` INT(11) NOT NULL DEFAULT '100', `can_change_password` INT(1) NOT NULL DEFAULT '1', @@ -1056,8 +1056,8 @@ CREATE TABLE `user` ( `last_name` VARCHAR(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `first_name` VARCHAR(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `is_demo` INT(1) DEFAULT '0', - `categories` VARCHAR(192) COLLATE utf8_unicode_ci DEFAULT NULL, - `session_cookie` VARCHAR(256) COLLATE utf8_unicode_ci DEFAULT NULL, + `categories` VARCHAR(192) COLLATE utf8_unicode_ci, + `session_cookie` VARCHAR(256) COLLATE utf8_unicode_ci, `pipeline_entries_per_page` INT(8) DEFAULT '15', `column_preferences` LONGTEXT COLLATE utf8_unicode_ci, `force_logout` INT(1) DEFAULT '0', @@ -1067,11 +1067,11 @@ CREATE TABLE `user` ( `phone_other` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT '', `address` TEXT COLLATE utf8_unicode_ci, `notes` TEXT COLLATE utf8_unicode_ci, - `company` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `city` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `state` VARCHAR(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `zip_code` VARCHAR(16) COLLATE utf8_unicode_ci DEFAULT NULL, - `country` VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL, + `company` VARCHAR(255) COLLATE utf8_unicode_ci, + `city` VARCHAR(64) COLLATE utf8_unicode_ci, + `state` VARCHAR(64) COLLATE utf8_unicode_ci, + `zip_code` VARCHAR(16) COLLATE utf8_unicode_ci, + `country` VARCHAR(128) COLLATE utf8_unicode_ci, `can_see_eeo_info` INT(1) DEFAULT '0', PRIMARY KEY (`user_id`), KEY `IDX_site_id` (`site_id`), @@ -1089,14 +1089,14 @@ INSERT INTO `user` (`user_id`, `site_id`, `user_name`, `email`, `password`, `acc CREATE TABLE `user_login` ( `user_login_id` INT(11) NOT NULL AUTO_INCREMENT, - `user_id` INT(11) DEFAULT NULL, + `user_id` INT(11), `site_id` INT(11) NOT NULL DEFAULT '0', `ip` VARCHAR(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', - `user_agent` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `user_agent` VARCHAR(255) COLLATE utf8_unicode_ci, `date` DATETIME NOT NULL DEFAULT '1000-01-01 00:00:00', `successful` INT(1) NOT NULL DEFAULT '0', - `host` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `date_refreshed` DATETIME DEFAULT NULL, + `host` VARCHAR(255) COLLATE utf8_unicode_ci, + `date_refreshed` DATETIME, PRIMARY KEY (`user_login_id`), KEY `IDX_user_id` (`user_id`), KEY `IDX_ip` (`ip`), @@ -1135,8 +1135,8 @@ CREATE TABLE `xml_feed_submits` ( CREATE TABLE `xml_feeds` ( `xml_feed_id` INT(11) NOT NULL AUTO_INCREMENT, `name` VARCHAR(50) NOT NULL, - `description` VARCHAR(255) DEFAULT NULL, - `website` VARCHAR(255) DEFAULT NULL, + `description` VARCHAR(255), + `website` VARCHAR(255), `post_url` VARCHAR(255) NOT NULL, `success_string` VARCHAR(255) NOT NULL, `xml_template_name` VARCHAR(255) NOT NULL, From 78b01734af81727ed2d187abdd8392e8c5f7fee4 Mon Sep 17 00:00:00 2001 From: anonymoususer72041 <247563575+anonymoususer72041@users.noreply.github.com> Date: Tue, 5 May 2026 14:30:00 +0200 Subject: [PATCH 4/4] Align schema NULL defaults during install updates --- modules/install/Schema.php | 135 +++++++++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) diff --git a/modules/install/Schema.php b/modules/install/Schema.php index 5562d4ccf..56d726e27 100755 --- a/modules/install/Schema.php +++ b/modules/install/Schema.php @@ -1448,6 +1448,141 @@ public static function get() WHERE activity_type_id = 100; ', + '377' => ' + ALTER TABLE `activity` MODIFY `joborder_id` INT(11); + ALTER TABLE `attachment` MODIFY `content_type` VARCHAR(255) COLLATE utf8_unicode_ci; + ALTER TABLE `attachment` MODIFY `directory_name` VARCHAR(64) COLLATE utf8_unicode_ci; + ALTER TABLE `attachment` MODIFY `title` VARCHAR(128) COLLATE utf8_unicode_ci; + ALTER TABLE `candidate` MODIFY `city` VARCHAR(64) COLLATE utf8_unicode_ci; + ALTER TABLE `candidate` MODIFY `current_employer` VARCHAR(128) COLLATE utf8_unicode_ci; + ALTER TABLE `candidate` MODIFY `current_pay` VARCHAR(64) COLLATE utf8_unicode_ci; + ALTER TABLE `candidate` MODIFY `date_available` DATETIME; + ALTER TABLE `candidate` MODIFY `desired_pay` VARCHAR(64) COLLATE utf8_unicode_ci; + ALTER TABLE `candidate` MODIFY `email1` VARCHAR(128) COLLATE utf8_unicode_ci; + ALTER TABLE `candidate` MODIFY `email2` VARCHAR(128) COLLATE utf8_unicode_ci; + ALTER TABLE `candidate` MODIFY `middle_name` VARCHAR(32) COLLATE utf8_unicode_ci; + ALTER TABLE `candidate` MODIFY `owner` INT(11); + ALTER TABLE `candidate` MODIFY `phone_cell` VARCHAR(40) COLLATE utf8_unicode_ci; + ALTER TABLE `candidate` MODIFY `phone_home` VARCHAR(40) COLLATE utf8_unicode_ci; + ALTER TABLE `candidate` MODIFY `phone_work` VARCHAR(40) COLLATE utf8_unicode_ci; + ALTER TABLE `candidate` MODIFY `source` VARCHAR(128) COLLATE utf8_unicode_ci; + ALTER TABLE `candidate` MODIFY `state` VARCHAR(64) COLLATE utf8_unicode_ci; + ALTER TABLE `candidate` MODIFY `web_site` VARCHAR(128) COLLATE utf8_unicode_ci; + ALTER TABLE `candidate` MODIFY `zip` VARCHAR(16) COLLATE utf8_unicode_ci; + ALTER TABLE `candidate_joborder` MODIFY `added_by` INT(11); + ALTER TABLE `candidate_joborder` MODIFY `date_submitted` DATETIME; + ALTER TABLE `candidate_joborder` MODIFY `rating_value` INT(5); + ALTER TABLE `candidate_source` MODIFY `date_created` DATETIME; + ALTER TABLE `candidate_source` MODIFY `name` VARCHAR(255) COLLATE utf8_unicode_ci; + ALTER TABLE `candidate_source` MODIFY `site_id` INT(11); + ALTER TABLE `candidate_tag` MODIFY `site_id` INT(10) UNSIGNED; + ALTER TABLE `career_portal_questionnaire` MODIFY `description` VARCHAR(255); + ALTER TABLE `career_portal_questionnaire_answer` MODIFY `action_key_skills` VARCHAR(255); + ALTER TABLE `career_portal_questionnaire_answer` MODIFY `action_source` VARCHAR(128); + ALTER TABLE `career_portal_questionnaire_question` MODIFY `maximum_length` INT(11); + ALTER TABLE `career_portal_questionnaire_question` MODIFY `minimum_length` INT(11); + ALTER TABLE `career_portal_template` MODIFY `career_portal_name` VARCHAR(255); + ALTER TABLE `career_portal_template_site` MODIFY `career_portal_name` VARCHAR(255); + ALTER TABLE `company` MODIFY `billing_contact` INT(11); + ALTER TABLE `company` MODIFY `city` VARCHAR(64) COLLATE utf8_unicode_ci; + ALTER TABLE `company` MODIFY `entered_by` INT(11); + ALTER TABLE `company` MODIFY `fax_number` VARCHAR(40) COLLATE utf8_unicode_ci; + ALTER TABLE `company` MODIFY `import_id` INT(11); + ALTER TABLE `company` MODIFY `is_hot` INT(1); + ALTER TABLE `company` MODIFY `owner` INT(11); + ALTER TABLE `company` MODIFY `phone1` VARCHAR(40) COLLATE utf8_unicode_ci; + ALTER TABLE `company` MODIFY `phone2` VARCHAR(40) COLLATE utf8_unicode_ci; + ALTER TABLE `company` MODIFY `state` VARCHAR(64) COLLATE utf8_unicode_ci; + ALTER TABLE `company` MODIFY `url` VARCHAR(128) COLLATE utf8_unicode_ci; + ALTER TABLE `company` MODIFY `zip` VARCHAR(16) COLLATE utf8_unicode_ci; + ALTER TABLE `company_department` MODIFY `created_by` INT(11); + ALTER TABLE `company_department` MODIFY `name` VARCHAR(128) COLLATE utf8_unicode_ci; + ALTER TABLE `contact` MODIFY `city` VARCHAR(64) COLLATE utf8_unicode_ci; + ALTER TABLE `contact` MODIFY `email1` VARCHAR(128) COLLATE utf8_unicode_ci; + ALTER TABLE `contact` MODIFY `email2` VARCHAR(128) COLLATE utf8_unicode_ci; + ALTER TABLE `contact` MODIFY `is_hot` INT(1); + ALTER TABLE `contact` MODIFY `owner` INT(11); + ALTER TABLE `contact` MODIFY `phone_cell` VARCHAR(40) COLLATE utf8_unicode_ci; + ALTER TABLE `contact` MODIFY `phone_other` VARCHAR(40) COLLATE utf8_unicode_ci; + ALTER TABLE `contact` MODIFY `phone_work` VARCHAR(40) COLLATE utf8_unicode_ci; + ALTER TABLE `contact` MODIFY `state` VARCHAR(64) COLLATE utf8_unicode_ci; + ALTER TABLE `contact` MODIFY `title` VARCHAR(128) COLLATE utf8_unicode_ci; + ALTER TABLE `contact` MODIFY `zip` VARCHAR(16) COLLATE utf8_unicode_ci; + ALTER TABLE `email_history` MODIFY `date` DATETIME; + ALTER TABLE `email_history` MODIFY `user_id` INT(11); + ALTER TABLE `email_template` MODIFY `tag` VARCHAR(255) COLLATE utf8_unicode_ci; + ALTER TABLE `email_template` MODIFY `title` VARCHAR(255) COLLATE utf8_unicode_ci; + ALTER TABLE `extension_statistics` MODIFY `date` DATE; + ALTER TABLE `extra_field` MODIFY `field_name` VARCHAR(255); + ALTER TABLE `extra_field` MODIFY `import_id` INT(11); + ALTER TABLE `extra_field_settings` MODIFY `date_created` DATETIME; + ALTER TABLE `extra_field_settings` MODIFY `field_name` VARCHAR(255) COLLATE utf8_unicode_ci; + ALTER TABLE `extra_field_settings` MODIFY `import_id` INT(11); + ALTER TABLE `feedback` MODIFY `user_id` INT(11); + ALTER TABLE `history` MODIFY `data_item_id` INT(11); + ALTER TABLE `history` MODIFY `data_item_type` INT(11); + ALTER TABLE `history` MODIFY `description` VARCHAR(192) COLLATE utf8_unicode_ci; + ALTER TABLE `history` MODIFY `entered_by` INT(11); + ALTER TABLE `history` MODIFY `set_date` DATETIME; + ALTER TABLE `history` MODIFY `the_field` VARCHAR(64) COLLATE utf8_unicode_ci; + ALTER TABLE `http_log` MODIFY `http_user_agent` VARCHAR(255); + ALTER TABLE `http_log` MODIFY `query_string` VARCHAR(255); + ALTER TABLE `http_log` MODIFY `request_method` VARCHAR(16); + ALTER TABLE `http_log` MODIFY `request_uri` VARCHAR(255); + ALTER TABLE `http_log` MODIFY `script_filename` VARCHAR(255); + ALTER TABLE `http_log` MODIFY `script_name` VARCHAR(255); + ALTER TABLE `http_log_types` MODIFY `description` VARCHAR(255); + ALTER TABLE `import` MODIFY `added_lines` INT(11); + ALTER TABLE `import` MODIFY `date_created` DATETIME; + ALTER TABLE `joborder` MODIFY `client_job_id` VARCHAR(32) COLLATE utf8_unicode_ci; + ALTER TABLE `joborder` MODIFY `company_department_id` INT(11); + ALTER TABLE `joborder` MODIFY `company_id` INT(11); + ALTER TABLE `joborder` MODIFY `contact_id` INT(11); + ALTER TABLE `joborder` MODIFY `duration` VARCHAR(64) COLLATE utf8_unicode_ci; + ALTER TABLE `joborder` MODIFY `openings` INT(11); + ALTER TABLE `joborder` MODIFY `owner` INT(11); + ALTER TABLE `joborder` MODIFY `questionnaire_id` INT(11); + ALTER TABLE `joborder` MODIFY `rate_max` VARCHAR(255) COLLATE utf8_unicode_ci; + ALTER TABLE `joborder` MODIFY `recruiter` INT(11); + ALTER TABLE `joborder` MODIFY `salary` VARCHAR(64) COLLATE utf8_unicode_ci; + ALTER TABLE `joborder` MODIFY `start_date` DATETIME; + ALTER TABLE `module_schema` MODIFY `name` VARCHAR(64) COLLATE utf8_unicode_ci; + ALTER TABLE `module_schema` MODIFY `version` INT(11); + ALTER TABLE `mru` MODIFY `user_id` INT(11); + ALTER TABLE `queue` MODIFY `date_completed` DATETIME; + ALTER TABLE `queue` MODIFY `response` VARCHAR(255); + ALTER TABLE `saved_list` MODIFY `date_created` DATETIME; + ALTER TABLE `saved_list` MODIFY `date_modified` DATETIME; + ALTER TABLE `saved_list_entry` MODIFY `date_created` DATETIME; + ALTER TABLE `saved_search` MODIFY `data_item_type` INT(11); + ALTER TABLE `saved_search` MODIFY `date_created` DATETIME; + ALTER TABLE `saved_search` MODIFY `is_custom` INT(1); + ALTER TABLE `saved_search` MODIFY `site_id` INT(11); + ALTER TABLE `saved_search` MODIFY `user_id` INT(11); + ALTER TABLE `settings` MODIFY `value` VARCHAR(255) COLLATE utf8_unicode_ci; + ALTER TABLE `site` MODIFY `company_id` INT(11); + ALTER TABLE `site` MODIFY `is_free` INT(1); + ALTER TABLE `site` MODIFY `unix_name` VARCHAR(128) CHARACTER SET utf8; + ALTER TABLE `system` MODIFY `uid` INT(20); + ALTER TABLE `tag` MODIFY `description` VARCHAR(500); + ALTER TABLE `tag` MODIFY `site_id` INT(11) UNSIGNED; + ALTER TABLE `tag` MODIFY `tag_parent_id` INT(10) UNSIGNED; + ALTER TABLE `tag` MODIFY `title` VARCHAR(255); + ALTER TABLE `user` MODIFY `categories` VARCHAR(192) COLLATE utf8_unicode_ci; + ALTER TABLE `user` MODIFY `city` VARCHAR(64) COLLATE utf8_unicode_ci; + ALTER TABLE `user` MODIFY `company` VARCHAR(255) COLLATE utf8_unicode_ci; + ALTER TABLE `user` MODIFY `country` VARCHAR(128) COLLATE utf8_unicode_ci; + ALTER TABLE `user` MODIFY `email` VARCHAR(128) COLLATE utf8_unicode_ci; + ALTER TABLE `user` MODIFY `session_cookie` VARCHAR(256) COLLATE utf8_unicode_ci; + ALTER TABLE `user` MODIFY `state` VARCHAR(64) COLLATE utf8_unicode_ci; + ALTER TABLE `user` MODIFY `zip_code` VARCHAR(16) COLLATE utf8_unicode_ci; + ALTER TABLE `user_login` MODIFY `date_refreshed` DATETIME; + ALTER TABLE `user_login` MODIFY `host` VARCHAR(255) COLLATE utf8_unicode_ci; + ALTER TABLE `user_login` MODIFY `user_agent` VARCHAR(255) COLLATE utf8_unicode_ci; + ALTER TABLE `user_login` MODIFY `user_id` INT(11); + ALTER TABLE `xml_feeds` MODIFY `description` VARCHAR(255); + ALTER TABLE `xml_feeds` MODIFY `website` VARCHAR(255); + ', ); } }