-- MySQL dump 10.13 Distrib 5.7.44, for Linux (x86_64) -- -- Host: localhost Database: aerion -- ------------------------------------------------------ -- Server version 5.7.44-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `all_users` -- DROP TABLE IF EXISTS `all_users`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `all_users` ( `uid_id` int(9) NOT NULL AUTO_INCREMENT, `emp_id` int(11) DEFAULT NULL, `user_name` varchar(40) DEFAULT NULL, `del_password` varchar(256) DEFAULT NULL, `del_hashed_password` varchar(60) DEFAULT NULL, `encrypt_pswd` varchar(256) DEFAULT NULL, `pswd_hint` varchar(25) DEFAULT NULL, `status` varchar(10) DEFAULT 'Active' COMMENT 'Active, Deactive, Locked', `expire_hrs` varchar(2) DEFAULT NULL, `expire_min` varchar(2) DEFAULT NULL, `expire_tm` varchar(5) DEFAULT NULL, `idlook_menu_pvt1` int(5) DEFAULT NULL, `idlook_menu_pvt2` int(5) DEFAULT NULL, `last_clicked` datetime DEFAULT NULL, `last_updated` datetime DEFAULT NULL, `updater` int(11) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(5) DEFAULT NULL, PRIMARY KEY (`uid_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 MAX_ROWS=999999999 COMMENT='Used to store Apex User details'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `all_usr_login` -- DROP TABLE IF EXISTS `all_usr_login`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `all_usr_login` ( `idall_usr_login` int(10) NOT NULL AUTO_INCREMENT, `emp_id` int(11) DEFAULT NULL, `idlook_ip_addr` int(11) DEFAULT NULL, `idlook_menu_pvt_lvl1` int(11) DEFAULT NULL, `idlook_menu_pvt_lvl2` int(11) DEFAULT NULL, `device_nm` varchar(15) DEFAULT NULL, `os_nm` varchar(15) DEFAULT NULL, `browser` varchar(45) DEFAULT NULL, `lastlogin` datetime DEFAULT NULL, `lastlogout` datetime DEFAULT NULL, `logouttype` char(1) DEFAULT NULL, `logged_in` int(11) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, `select_edit_ids` text, `last_click` datetime DEFAULT NULL, PRIMARY KEY (`idall_usr_login`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `all_usr_login_wrk` -- DROP TABLE IF EXISTS `all_usr_login_wrk`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `all_usr_login_wrk` ( `idall_usr_login_wrk` int(11) NOT NULL AUTO_INCREMENT, `idall_usr_login` int(11) DEFAULT NULL, `page_nm` varchar(45) DEFAULT NULL, `table_nm` varchar(25) DEFAULT NULL, `page_id` int(11) DEFAULT NULL, `wrk_ids` text, `last_clicked` datetime DEFAULT NULL, PRIMARY KEY (`idall_usr_login_wrk`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `asset_audit` -- DROP TABLE IF EXISTS `asset_audit`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `asset_audit` ( `idasset_audit` int(19) NOT NULL AUTO_INCREMENT, `updated` datetime DEFAULT NULL, `updater` varchar(90) DEFAULT NULL, `table_update` varchar(90) DEFAULT NULL, `action` varchar(5) DEFAULT NULL, `table_id` text, `col1` text, `idlook_menu_pvt_lvl2` int(5) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idasset_audit`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `asset_lk` -- DROP TABLE IF EXISTS `asset_lk`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `asset_lk` ( `idasset_lk` int(11) NOT NULL AUTO_INCREMENT, `lk_nm` varchar(45) DEFAULT NULL, `lk_nm_desc` varchar(100) DEFAULT NULL, `disp_order` varchar(45) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `child_lvl` int(3) DEFAULT NULL, PRIMARY KEY (`idasset_lk`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `asset_lk_flw` -- DROP TABLE IF EXISTS `asset_lk_flw`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `asset_lk_flw` ( `idasset_lk_flw` int(5) NOT NULL AUTO_INCREMENT, `wrk_flow_nm` varchar(25) DEFAULT NULL, `idasset_lk_val` int(5) DEFAULT NULL, `flw_desc` varchar(100) DEFAULT NULL, `idflow_par` int(5) DEFAULT NULL, `look_initial` char(1) DEFAULT NULL COMMENT 'Y or N', `disp_order` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idasset_lk_flw`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `asset_lk_tag` -- DROP TABLE IF EXISTS `asset_lk_tag`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `asset_lk_tag` ( `idiasset_lk_tag` int(11) NOT NULL AUTO_INCREMENT, `owner_id` int(11) DEFAULT NULL, `lk_tag` int(11) DEFAULT NULL, `lk_tag_desc` varchar(200) DEFAULT NULL, `lk_disp_id` int(5) DEFAULT NULL, `lk_parent_tag_id` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idiasset_lk_tag`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `asset_lk_val` -- DROP TABLE IF EXISTS `asset_lk_val`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `asset_lk_val` ( `idinvn_lk_val` int(11) NOT NULL AUTO_INCREMENT, `idasset_lk` int(5) DEFAULT NULL, `lk_val` varchar(200) DEFAULT NULL, `lk_val_desc` varchar(250) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `lk_val_par` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idinvn_lk_val`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `asset_prdt` -- DROP TABLE IF EXISTS `asset_prdt`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `asset_prdt` ( `idasset_prdt` int(11) NOT NULL AUTO_INCREMENT, `comp_id` int(11) DEFAULT NULL, `prdt_nm` varchar(45) DEFAULT NULL COMMENT 'Ipad, mac, maruti', `prod_num` varchar(45) DEFAULT NULL, `prod_ver` varchar(45) DEFAULT NULL, `prdt_family` varchar(45) DEFAULT NULL, `idasset_lk_flw` int(11) DEFAULT NULL, `stocking` char(1) DEFAULT NULL COMMENT 'Y or N, to show in inventory', `dscont_dt` date DEFAULT NULL COMMENT 'Date stopped manufacturing', `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idasset_prdt`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `asset_prdt_val` -- DROP TABLE IF EXISTS `asset_prdt_val`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `asset_prdt_val` ( `idasset_prdt_val` int(11) NOT NULL AUTO_INCREMENT, `idasset_prdt` int(11) DEFAULT NULL COMMENT 'Selection, eg, ibm, apple, Microsoft ', `asset_serial_no` varchar(45) DEFAULT NULL, `tangible` char(1) DEFAULT NULL COMMENT 'Y or N', `prchse_dt` date DEFAULT NULL, `prchse_pr` varchar(45) DEFAULT NULL, `prchse_type` int(5) DEFAULT NULL COMMENT 'Lease, Purchase', `prchse_expy` date DEFAULT NULL COMMENT 'If purchase type lease, then mandatory', `depriciate_pcnt` int(2) DEFAULT NULL, `depriciate_calc` char(1) DEFAULT NULL COMMENT 'Y or N', `warranty` date DEFAULT NULL COMMENT 'User inputs year or date', `asset_desc` varchar(100) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idasset_prdt_val`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `asset_prdt_val_decpt` -- DROP TABLE IF EXISTS `asset_prdt_val_decpt`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `asset_prdt_val_decpt` ( `idasset_prdt_val_decpt` int(11) NOT NULL AUTO_INCREMENT, `idasset_prdt_val` int(11) DEFAULT NULL, `as_of_dt` date DEFAULT NULL, `decpt_val` varchar(5) DEFAULT NULL, `as_of_val` varchar(9) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idasset_prdt_val_decpt`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `asset_prdt_val_emp` -- DROP TABLE IF EXISTS `asset_prdt_val_emp`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `asset_prdt_val_emp` ( `idasset_prdt_val_emp` int(11) NOT NULL AUTO_INCREMENT, `idasset_prdt_val` int(11) DEFAULT NULL, `emp_id` int(11) DEFAULT NULL, `asset_frm_dt` date DEFAULT NULL, `asset_to_dt` date DEFAULT NULL, `asset_no_days` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idasset_prdt_val_emp`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `bank_acc` -- DROP TABLE IF EXISTS `bank_acc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bank_acc` ( `idbank_acc` int(11) NOT NULL AUTO_INCREMENT, `acc_owner` int(11) DEFAULT NULL, `acc_owner_tab` varchar(45) DEFAULT NULL COMMENT 'company id or emp_id', `comp_id` int(11) DEFAULT NULL COMMENT 'emp directly with company, company with comp_engage', `comp_acc` int(5) DEFAULT NULL, `acc_no` varchar(95) DEFAULT NULL, `open_curncy` varchar(10) DEFAULT NULL, `acc_open_dt` date DEFAULT NULL, `acc_type` int(5) DEFAULT NULL COMMENT 'Credit, Credit & Debit, Checking, Saving,', `acc_limit` varchar(25) DEFAULT NULL, `acc_close_dt` date DEFAULT NULL, `mature_dt` date DEFAULT NULL COMMENT 'For Bonds, Notes, ', `open_close_dt` int(11) DEFAULT NULL, `contact_info` varchar(200) DEFAULT NULL, `open_bal_dt` date DEFAULT NULL, `open_bal_amt` varchar(25) DEFAULT NULL, `cur_bal_amt` varchar(25) DEFAULT NULL, `close_bal_amt` varchar(25) DEFAULT NULL, `open_close_amt` varchar(25) DEFAULT NULL, `open_close_pcnt` varchar(6) DEFAULT NULL, `day_pcnt` varchar(6) DEFAULT NULL, `day_rate` varchar(6) DEFAULT NULL, `yr_rate` varchar(9) DEFAULT NULL, `yr_pcnt` varchar(6) DEFAULT NULL, `isu_bal_amt` varchar(25) DEFAULT NULL, `isu_bal_dt` date DEFAULT NULL, `clr_bal_amt` varchar(25) DEFAULT NULL, `clr_bal_dt` date DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, `old_isu_dt` date DEFAULT NULL, `old_clr_dt` date DEFAULT NULL, PRIMARY KEY (`idbank_acc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `bank_acc_rec` -- DROP TABLE IF EXISTS `bank_acc_rec`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bank_acc_rec` ( `idbank_acc_rec` int(11) NOT NULL AUTO_INCREMENT, `hist` int(3) DEFAULT NULL, `idbank_acc` int(11) DEFAULT NULL, `issue_dt` date DEFAULT NULL, `clear_dt` date DEFAULT NULL, `isu_clr_dt` int(5) DEFAULT NULL, `check_no` varchar(45) DEFAULT NULL, `check_amt` float DEFAULT NULL, `rec_type` varchar(45) DEFAULT NULL COMMENT 'D = Deposit,W = Withdrawal', `check_type` varchar(45) DEFAULT NULL, `trans_ref_tab` varchar(10) DEFAULT NULL, `trans_ref_id` int(11) DEFAULT NULL, `record_for` int(5) DEFAULT NULL COMMENT 'E, Payroll, Tax', `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `rec_smry` varchar(95) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idbank_acc_rec`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `bank_acc_rec_bal_clr` -- DROP TABLE IF EXISTS `bank_acc_rec_bal_clr`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bank_acc_rec_bal_clr` ( `idbk_acc_rec_bal_clr` int(11) NOT NULL AUTO_INCREMENT, `idbank_acc` int(11) DEFAULT NULL, `consol_dt` date DEFAULT NULL, `bank_depo` varchar(20) DEFAULT NULL, `bank_draw` varchar(20) DEFAULT NULL, `bank_bal` varchar(20) DEFAULT NULL, PRIMARY KEY (`idbk_acc_rec_bal_clr`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `bank_acc_rec_bal_isu` -- DROP TABLE IF EXISTS `bank_acc_rec_bal_isu`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bank_acc_rec_bal_isu` ( `idbk_acc_rec_bal_isu` int(11) NOT NULL AUTO_INCREMENT, `idbank_acc` int(11) DEFAULT NULL, `consol_dt` date DEFAULT NULL, `bank_depo` varchar(20) DEFAULT NULL, `bank_draw` varchar(20) DEFAULT NULL, `bank_bal` varchar(20) DEFAULT NULL, PRIMARY KEY (`idbk_acc_rec_bal_isu`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `bank_audit` -- DROP TABLE IF EXISTS `bank_audit`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bank_audit` ( `idbank_audit` int(19) NOT NULL AUTO_INCREMENT, `updated` datetime DEFAULT NULL, `updater` varchar(90) DEFAULT NULL, `table_update` varchar(90) DEFAULT NULL, `action` varchar(5) DEFAULT NULL, `table_id` text, `col1` text, `idlook_menu_pvt_lvl2` int(5) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idbank_audit`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `bank_bud` -- DROP TABLE IF EXISTS `bank_bud`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bank_bud` ( `idbank_bud` int(11) NOT NULL AUTO_INCREMENT, `bud_for_tab` varchar(20) DEFAULT NULL, `bud_ref_id` int(11) DEFAULT NULL, `bud_open_dt` date DEFAULT NULL, `bud_close_dt` date DEFAULT NULL, `bud_limit` varchar(20) DEFAULT NULL, `bud_bal` varchar(20) DEFAULT NULL, `bud_bal_dt` date DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `old_bud_dt` date DEFAULT NULL, `bud_open_amt` int(1) DEFAULT '0', PRIMARY KEY (`idbank_bud`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `bank_bud_rec` -- DROP TABLE IF EXISTS `bank_bud_rec`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bank_bud_rec` ( `idbank_bud_rec` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Bank Record', `idbank_bud` int(11) DEFAULT NULL, `trans_ref_tab` varchar(45) DEFAULT NULL, `trans_ref_id` int(11) DEFAULT NULL, `rec_dt` date DEFAULT NULL, `rec_amt` varchar(20) DEFAULT NULL, `rec_type` char(1) DEFAULT NULL COMMENT 'D =Deposit, W = Withdrawal', `record_for` int(5) DEFAULT NULL COMMENT 'Salary, Expense, etc', `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, PRIMARY KEY (`idbank_bud_rec`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `bank_bud_rec_bal` -- DROP TABLE IF EXISTS `bank_bud_rec_bal`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bank_bud_rec_bal` ( `idbank_bud_rec_bal` int(11) NOT NULL AUTO_INCREMENT, `idbank_bud` int(11) DEFAULT NULL, `consol_dt` date DEFAULT NULL, `bank_depo` varchar(20) DEFAULT NULL, `bank_draw` varchar(20) DEFAULT NULL, `bank_bal` varchar(20) DEFAULT NULL, PRIMARY KEY (`idbank_bud_rec_bal`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `bank_lk` -- DROP TABLE IF EXISTS `bank_lk`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bank_lk` ( `idbank_lk` int(11) NOT NULL AUTO_INCREMENT, `lk_nm` varchar(45) DEFAULT NULL, `lk_nm_desc` varchar(45) DEFAULT NULL, `disp_order` int(3) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `child_lvl` int(3) DEFAULT NULL, PRIMARY KEY (`idbank_lk`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `bank_lk_flw` -- DROP TABLE IF EXISTS `bank_lk_flw`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bank_lk_flw` ( `idbank_lk_flw` int(5) NOT NULL AUTO_INCREMENT, `wrk_flow_nm` varchar(25) DEFAULT NULL, `idbank_lk_val` int(5) DEFAULT NULL, `flw_desc` varchar(100) DEFAULT NULL, `idflow_par` int(5) DEFAULT NULL, `look_initial` char(1) DEFAULT NULL COMMENT 'Y or N', `disp_order` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idbank_lk_flw`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `bank_lk_val` -- DROP TABLE IF EXISTS `bank_lk_val`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bank_lk_val` ( `idbank_lk_val` int(11) NOT NULL AUTO_INCREMENT, `idbank_lk` int(5) DEFAULT NULL, `lk_val` varchar(45) DEFAULT NULL, `lk_val_desc` varchar(100) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `lk_val_par` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idbank_lk_val`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `bank_record_hist` -- DROP TABLE IF EXISTS `bank_record_hist`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bank_record_hist` ( `idbank_record_hist` int(11) NOT NULL AUTO_INCREMENT, `idbank_acc` int(11) DEFAULT NULL, `trans_by` int(11) DEFAULT NULL, `issue_dt` date DEFAULT NULL, `clear_dt` date DEFAULT NULL, `check_amt` float DEFAULT NULL, `rec_type` varchar(45) DEFAULT NULL COMMENT 'D = Deposit,B = Bounce,C = Correction', `updater` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, PRIMARY KEY (`idbank_record_hist`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `bank_trng` -- DROP TABLE IF EXISTS `bank_trng`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bank_trng` ( `idbank_trng` int(11) NOT NULL AUTO_INCREMENT, `disp_order` int(3) DEFAULT NULL, `train_nm` varchar(45) DEFAULT NULL, `train_desc` varchar(200) DEFAULT NULL, `duration` int(5) DEFAULT NULL, `cnt` int(5) DEFAULT NULL, `practical` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idbank_trng`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `bank_trng_doc` -- DROP TABLE IF EXISTS `bank_trng_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bank_trng_doc` ( `idbank_trng_doc` int(11) NOT NULL AUTO_INCREMENT, `idbank_trng` int(11) DEFAULT NULL, `disp_order` int(3) DEFAULT NULL, `trng_desc` varchar(100) DEFAULT NULL, `duration` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, `cloud_link` varchar(100) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idbank_trng_doc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `comp_active` -- DROP TABLE IF EXISTS `comp_active`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `comp_active` ( `idcomp_active` int(11) NOT NULL AUTO_INCREMENT, `comp_id` int(10) DEFAULT NULL, `comp_background` text, `active_type` char(1) DEFAULT NULL COMMENT 'dispute or alliance', `publish` char(1) DEFAULT NULL, `manage_by` int(11) DEFAULT NULL, `client_since` date DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` int(11) DEFAULT NULL, PRIMARY KEY (`idcomp_active`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `comp_address` -- DROP TABLE IF EXISTS `comp_address`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `comp_address` ( `comp_add_id` int(11) NOT NULL AUTO_INCREMENT, `comp_id` int(10) DEFAULT NULL, `look_street_no_id` int(11) DEFAULT NULL, `suite_no` varchar(45) DEFAULT NULL, `house_apt_type` int(5) DEFAULT NULL, `add_type` varchar(45) DEFAULT NULL COMMENT 'Primary, Branch', `from_dt` date DEFAULT NULL, `to_dt` date DEFAULT NULL, `from_to_dt` int(11) DEFAULT NULL, `no_days` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `last_updated` datetime DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`comp_add_id`), KEY `fk_comp_add_id` (`comp_id`), KEY `fk_look_street_comp_branch_idx` (`look_street_no_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `comp_attr_reg` -- DROP TABLE IF EXISTS `comp_attr_reg`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `comp_attr_reg` ( `idcomp_attr_reg` int(11) NOT NULL AUTO_INCREMENT, `comp_reg_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`idcomp_attr_reg`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `comp_audit` -- DROP TABLE IF EXISTS `comp_audit`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `comp_audit` ( `idcomp_audit` int(19) NOT NULL AUTO_INCREMENT, `updated` datetime DEFAULT NULL, `updater` varchar(90) DEFAULT NULL, `table_update` varchar(90) DEFAULT NULL, `action` varchar(5) DEFAULT NULL, `table_id` text, `col1` text, `col2` text, `col3` text, `col4` text, `col5` text, `col6` text, `idlook_menu_pvt_lvl2` int(5) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idcomp_audit`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `comp_contact` -- DROP TABLE IF EXISTS `comp_contact`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `comp_contact` ( `comp_contact_id` int(11) NOT NULL AUTO_INCREMENT, `comp_id` int(10) DEFAULT NULL, `emp_id` int(11) DEFAULT NULL, `title` varchar(45) DEFAULT NULL COMMENT 'Sales, HR, etc', `all_contacts` varchar(500) DEFAULT NULL, `description` varchar(100) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, PRIMARY KEY (`comp_contact_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `comp_contact_no` -- DROP TABLE IF EXISTS `comp_contact_no`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `comp_contact_no` ( `comp_contact_no_id` int(11) NOT NULL AUTO_INCREMENT, `comp_contact_id` int(11) DEFAULT NULL, `emp_contact_id` int(11) DEFAULT NULL COMMENT 'Phone, Cell, email', `last_updated` datetime DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, PRIMARY KEY (`comp_contact_no_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `comp_doc` -- DROP TABLE IF EXISTS `comp_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `comp_doc` ( `idcomp_doc` int(11) NOT NULL AUTO_INCREMENT, `comp_id` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, PRIMARY KEY (`idcomp_doc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `comp_h_day` -- DROP TABLE IF EXISTS `comp_h_day`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `comp_h_day` ( `idcomp_h_day` int(11) NOT NULL AUTO_INCREMENT, `idcomp_h_val` int(11) DEFAULT NULL, `comp_id` int(11) DEFAULT NULL, `holi_date` date DEFAULT NULL COMMENT 'For that year', `holi_type` char(1) DEFAULT NULL COMMENT 'Mandatory or Optional', `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idcomp_h_day`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `comp_h_val` -- DROP TABLE IF EXISTS `comp_h_val`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `comp_h_val` ( `idcomp_h_val` int(11) NOT NULL AUTO_INCREMENT, `occation_day` varchar(30) DEFAULT NULL COMMENT 'New year\\\\\\\\n', `occation_dt` varchar(10) DEFAULT NULL COMMENT '01/01', `occation_flex` char(1) DEFAULT NULL COMMENT 'Day may change', `occation_desc` varchar(45) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idcomp_h_val`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `comp_lk` -- DROP TABLE IF EXISTS `comp_lk`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `comp_lk` ( `idcomp_lk` int(11) NOT NULL AUTO_INCREMENT, `lk_nm` varchar(45) DEFAULT NULL, `lk_nm_desc` varchar(100) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `child_lvl` int(3) DEFAULT NULL, PRIMARY KEY (`idcomp_lk`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `comp_lk_val` -- DROP TABLE IF EXISTS `comp_lk_val`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `comp_lk_val` ( `idcomp_lk_val` int(11) NOT NULL AUTO_INCREMENT, `idcomp_lk` int(11) DEFAULT NULL, `lk_val` varchar(45) DEFAULT NULL, `lk_val_desc` varchar(100) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `lk_val_par` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idcomp_lk_val`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `comp_own` -- DROP TABLE IF EXISTS `comp_own`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `comp_own` ( `idcomp_own` int(9) NOT NULL AUTO_INCREMENT, `comp_id` int(10) DEFAULT NULL, `emp_id` int(9) DEFAULT NULL, `owner_share` int(9) DEFAULT NULL, `share_dt_from` date DEFAULT NULL, `share_dt_to` date DEFAULT NULL, PRIMARY KEY (`idcomp_own`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `comp_trng` -- DROP TABLE IF EXISTS `comp_trng`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `comp_trng` ( `idcomp_trng` int(11) NOT NULL AUTO_INCREMENT, `disp_order` int(3) DEFAULT NULL, `train_nm` varchar(45) DEFAULT NULL, `train_desc` varchar(200) DEFAULT NULL, `duration` int(5) DEFAULT NULL, `cnt` int(5) DEFAULT NULL, `practical` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idcomp_trng`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `comp_trng_doc` -- DROP TABLE IF EXISTS `comp_trng_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `comp_trng_doc` ( `idcomp_trng_doc` int(11) NOT NULL AUTO_INCREMENT, `idcomp_trng` int(11) DEFAULT NULL, `disp_order` int(3) DEFAULT NULL, `trng_desc` varchar(100) DEFAULT NULL, `duration` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, `cloud_link` varchar(100) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idcomp_trng_doc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `comp_type` -- DROP TABLE IF EXISTS `comp_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `comp_type` ( `idcomp_type` int(11) NOT NULL AUTO_INCREMENT, `comp_id` int(10) DEFAULT NULL, `comp_type` int(5) DEFAULT NULL COMMENT 'LLC, C - Corp, S-Corp', `from_dt` date DEFAULT NULL, `to_dt` date DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idcomp_type`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `company` -- DROP TABLE IF EXISTS `company`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `company` ( `comp_id` int(11) NOT NULL AUTO_INCREMENT, `idstorages` int(11) DEFAULT NULL, `companyname` varchar(65) DEFAULT NULL, `comp_tax_id` varchar(45) DEFAULT NULL, `company_info` varchar(500) DEFAULT NULL, `comp_website` varchar(95) DEFAULT NULL, `comp_phone` varchar(15) DEFAULT NULL, `comp_email` varchar(45) DEFAULT NULL, `all_contacts` text, `last_updated` datetime DEFAULT NULL, `updater` int(11) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`comp_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `contact_no` -- DROP TABLE IF EXISTS `contact_no`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `contact_no` ( `contact_id` int(11) NOT NULL AUTO_INCREMENT, `country_id` int(11) DEFAULT NULL, `contact_type` varchar(15) DEFAULT NULL, `contact_detail` varchar(95) DEFAULT NULL, `contact_cnt` int(5) DEFAULT NULL, `contact_smry` text, `contact_stat` varchar(45) DEFAULT NULL COMMENT 'Unsubscribe, DND, ', `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`contact_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_apps` -- DROP TABLE IF EXISTS `dev_apps`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_apps` ( `iddev_apps` int(11) NOT NULL AUTO_INCREMENT, `disp_order` int(3) DEFAULT NULL, `app_name` varchar(30) DEFAULT NULL, `app_skill_avg` varchar(4) DEFAULT NULL, `app_gap_avg` varchar(4) DEFAULT NULL, `app_st_dt` datetime DEFAULT NULL, `comp_id` int(10) DEFAULT NULL, `app_description` varchar(150) DEFAULT NULL, `app_e_dt` datetime DEFAULT NULL, `app_stat_tm` varchar(20) DEFAULT NULL, `app_lag_tm` varchar(20) DEFAULT NULL, `app_est_cnt` int(5) DEFAULT NULL, `app_est_tol` int(5) DEFAULT NULL, `app_est_pcnt` varchar(10) DEFAULT NULL, `app_est_req_cnt` int(5) DEFAULT NULL, `app_est_req_tol` int(5) DEFAULT NULL, `app_est_req_pcnt` varchar(10) DEFAULT NULL, `app_est_req_stat_cnt` int(5) DEFAULT NULL, `app_est_req_stat_tol` int(5) DEFAULT NULL, `app_est_req_stat_pcnt` varchar(10) DEFAULT NULL, `app_case_cnt` int(5) DEFAULT NULL, `app_case_tol` int(5) DEFAULT NULL, `app_case_pcnt` varchar(10) DEFAULT NULL, `app_case_atmpt` int(5) DEFAULT NULL, `app_bud_amt` varchar(45) DEFAULT NULL COMMENT 'Budget Amt', `app_use_amt` varchar(45) DEFAULT NULL, `app_use_pcnt` varchar(10) DEFAULT NULL, `app_bud_bal` varchar(45) DEFAULT NULL, `app_bud_pcnt` varchar(10) DEFAULT NULL, `app_pay_amt` varchar(45) DEFAULT NULL, `app_pay_pcnt` varchar(10) DEFAULT NULL, `app_bal_amt` varchar(45) DEFAULT NULL, `app_bal_pcnt` varchar(10) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, `old_app_dt` date DEFAULT NULL, `run_func` varchar(45) DEFAULT NULL COMMENT 'Y', PRIMARY KEY (`iddev_apps`), KEY `lk_app_e_dt` (`app_e_dt`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_apps_doc` -- DROP TABLE IF EXISTS `dev_apps_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_apps_doc` ( `iddev_app_doc` int(11) NOT NULL AUTO_INCREMENT, `iddev_apps` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, PRIMARY KEY (`iddev_app_doc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_attr_apps` -- DROP TABLE IF EXISTS `dev_attr_apps`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_attr_apps` ( `iddev_attr_apps` int(11) NOT NULL AUTO_INCREMENT, `dev_apps_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`iddev_attr_apps`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_attr_est` -- DROP TABLE IF EXISTS `dev_attr_est`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_attr_est` ( `iddev_attr_est` int(11) NOT NULL AUTO_INCREMENT, `dev_est_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(11) DEFAULT NULL, `close` int(11) DEFAULT NULL, `total` int(11) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL COMMENT 'Emp or company', `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`iddev_attr_est`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_attr_est_reqs` -- DROP TABLE IF EXISTS `dev_attr_est_reqs`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_attr_est_reqs` ( `iddev_attr_est_reqs` int(11) NOT NULL AUTO_INCREMENT, `dev_est_reqs_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL COMMENT '= close_req / total', `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`iddev_attr_est_reqs`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_attr_est_reqs_case` -- DROP TABLE IF EXISTS `dev_attr_est_reqs_case`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_attr_est_reqs_case` ( `iddev_attr_est_reqs_case` int(11) NOT NULL AUTO_INCREMENT, `dev_est_reqs_case_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`iddev_attr_est_reqs_case`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_attr_est_reqs_stat` -- DROP TABLE IF EXISTS `dev_attr_est_reqs_stat`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_attr_est_reqs_stat` ( `iddev_attr_est_reqs_stat` int(11) NOT NULL AUTO_INCREMENT, `dev_est_reqs_stat_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`iddev_attr_est_reqs_stat`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_attr_est_reqs_stat_forcast` -- DROP TABLE IF EXISTS `dev_attr_est_reqs_stat_forcast`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_attr_est_reqs_stat_forcast` ( `iddev_attr_est_reqs_stat_forcast` int(11) NOT NULL AUTO_INCREMENT, `dev_est_reqs_stat_forcast_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`iddev_attr_est_reqs_stat_forcast`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_audit` -- DROP TABLE IF EXISTS `dev_audit`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_audit` ( `iddev_audit` int(19) NOT NULL AUTO_INCREMENT, `updated` datetime DEFAULT NULL, `updater` int(11) DEFAULT NULL, `table_update` varchar(90) DEFAULT NULL, `action` varchar(10) DEFAULT NULL, `table_id` text, `col1` text, `idlook_menu_pvt_lvl2` int(5) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`iddev_audit`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_est` -- DROP TABLE IF EXISTS `dev_est`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_est` ( `iddev_est` int(11) NOT NULL AUTO_INCREMENT, `iddev_apps` int(11) DEFAULT NULL, `dev_est_smry` varchar(150) DEFAULT NULL, `est_st_dt` datetime DEFAULT NULL, `est_e_dt` datetime DEFAULT NULL, `est_time` int(11) DEFAULT NULL, `est_lag_tm` int(11) DEFAULT NULL, `owner_ref_tab` varchar(45) DEFAULT NULL COMMENT 'Required', `owner_ref_id` int(11) DEFAULT NULL COMMENT 'Required', `est_ref_tab` varchar(45) DEFAULT NULL COMMENT 'Required', `est_ref_id` int(11) DEFAULT NULL COMMENT 'Required', `priority` int(5) DEFAULT NULL COMMENT 'Required (Value 1 thru 5)', `category` int(5) DEFAULT NULL COMMENT 'IT, Support, Hybrid', `est_skill` varchar(5) DEFAULT NULL COMMENT 'Not needed', `est_gap_lvl` varchar(5) DEFAULT NULL COMMENT 'Not Needed', `est_type` varchar(11) DEFAULT NULL, `est_req_cnt` int(5) DEFAULT NULL, `est_req_tol` int(5) DEFAULT NULL, `est_req_pcnt` varchar(20) DEFAULT NULL, `est_req_stat_cnt` int(5) DEFAULT NULL, `est_req_stat_tol` int(5) DEFAULT NULL, `est_req_stat_pcnt` varchar(10) DEFAULT NULL, `est_case_cnt` int(5) DEFAULT NULL, `est_case_tol` int(5) DEFAULT NULL, `est_case_pcnt` varchar(20) DEFAULT NULL, `est_case_atmpt` int(5) DEFAULT NULL, `est_bud_amt` varchar(25) DEFAULT NULL, `est_use_amt` varchar(25) DEFAULT NULL COMMENT 'Exists', `est_use_pcnt` varchar(10) DEFAULT NULL, `est_bud_bal` varchar(25) DEFAULT NULL, `est_bud_pcnt` varchar(10) DEFAULT NULL, `est_pay_amt` varchar(25) DEFAULT NULL COMMENT 'Exists', `est_pay_pcnt` varchar(10) DEFAULT NULL, `est_bal_amt` varchar(25) DEFAULT NULL COMMENT 'Exists', `est_bal_pcnt` varchar(10) DEFAULT NULL, `updater` int(11) DEFAULT NULL COMMENT 'Not Needed', `last_updated` datetime DEFAULT NULL COMMENT 'Not Needed', `attach` char(1) DEFAULT NULL COMMENT 'Y or Null', `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(5) DEFAULT NULL, `old_est_dt` date DEFAULT NULL, `old_req_dt` date DEFAULT NULL COMMENT 'GUI not needed, use when multiple req entered in GUI to store single date', `run_func` char(1) DEFAULT NULL, PRIMARY KEY (`iddev_est`), KEY `lk_iddev_apps` (`iddev_apps`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_est_access` -- DROP TABLE IF EXISTS `dev_est_access`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_est_access` ( `iddev_est_access` int(11) NOT NULL AUTO_INCREMENT, `iddev_est` int(11) DEFAULT NULL, `dev_est_emp_id` int(11) DEFAULT NULL, `dev_app_access` varchar(15) DEFAULT NULL, `dev_est_access` varchar(15) DEFAULT NULL COMMENT '1 = View / 2 = edit ', `dev_est_req_access` varchar(15) DEFAULT NULL, `dev_est_reqs_case_access` varchar(15) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, PRIMARY KEY (`iddev_est_access`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_est_doc` -- DROP TABLE IF EXISTS `dev_est_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_est_doc` ( `iddev_est_doc` int(11) NOT NULL AUTO_INCREMENT, `iddev_est` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, PRIMARY KEY (`iddev_est_doc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_est_reqs` -- DROP TABLE IF EXISTS `dev_est_reqs`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_est_reqs` ( `iddev_est_reqs` int(11) NOT NULL AUTO_INCREMENT, `iddev_est` int(11) DEFAULT NULL, `req_st_dt` datetime DEFAULT NULL, `req_e_dt` datetime DEFAULT NULL, `req_time` int(11) DEFAULT NULL COMMENT 'Back-end script', `req_lag_tm` int(11) DEFAULT NULL COMMENT 'Back-end script', `disp_order` int(3) DEFAULT NULL, `req_desc` varchar(300) DEFAULT NULL, `skill_lvl` int(5) DEFAULT NULL, `req_type` int(5) DEFAULT NULL COMMENT 'Db, JS, web design, content, Analysis, presentation, document, programming, hybrid, network, server', `iddev_lk_wrk_flow` int(5) DEFAULT NULL, `req_status` int(5) DEFAULT NULL, `idlook_stat_order` int(5) DEFAULT NULL, `gap_lvl` int(5) DEFAULT NULL COMMENT '1=redo, 5 = perfect', `req_stat_st_dt` datetime DEFAULT NULL, `req_stat_e_dt` datetime DEFAULT NULL, `req_stat_time` int(11) DEFAULT NULL COMMENT 'Back-end script', `req_stat_time2` int(11) DEFAULT NULL, `req_stat_e_dt_pre` datetime DEFAULT NULL COMMENT 'Back-end script', `req_stat_lag_tm` int(11) DEFAULT NULL COMMENT 'Back-end script', `assigned_to` int(11) DEFAULT NULL, `req_stat_cnt` int(5) DEFAULT NULL COMMENT 'Back-end script', `req_stat_tol` int(5) DEFAULT NULL COMMENT 'Back-end script', `req_stat_pcnt` varchar(10) DEFAULT NULL COMMENT 'Back-end script', `req_case_cnt` int(5) DEFAULT NULL COMMENT 'Back-end script', `req_case_tol` int(5) DEFAULT NULL COMMENT 'Back-end script', `req_case_pcnt` varchar(10) DEFAULT NULL COMMENT 'Back-end script', `req_case_atmpt` int(5) DEFAULT NULL COMMENT 'Back-end script', `req_cases` int(5) DEFAULT NULL COMMENT 'Back-end script', `req_bud_amt` varchar(25) DEFAULT NULL COMMENT 'Back-end script', `req_use_amt` varchar(25) DEFAULT NULL COMMENT 'Back-end script', `req_use_pcnt` varchar(10) DEFAULT NULL COMMENT 'Req_use_amt / req_bud_amt * 100', `req_bud_bal` varchar(25) DEFAULT NULL, `req_bud_pcnt` varchar(10) DEFAULT NULL, `req_pay_amt` varchar(25) DEFAULT NULL COMMENT 'Back-end script', `req_pay_pcnt` varchar(10) DEFAULT NULL COMMENT 'Back-end script', `req_bal_amt` varchar(25) DEFAULT NULL COMMENT 'Back-end script', `req_bal_pcnt` varchar(10) DEFAULT NULL COMMENT 'Back-end script', `updater` int(11) DEFAULT NULL COMMENT 'GUI session', `last_updated` datetime DEFAULT NULL COMMENT 'GUI session', `del_dt` datetime DEFAULT NULL COMMENT 'GUI session', `del_by` int(11) DEFAULT NULL COMMENT 'GUI session', `del_day` int(5) DEFAULT NULL COMMENT 'GUI session', `archv_dt` datetime DEFAULT NULL COMMENT 'GUI session', `archv_by` int(11) DEFAULT NULL COMMENT 'GUI session', `rpt_req_stat_by` text COMMENT 'Back-end script', `rpt_req_stat_by_nm` text COMMENT 'Back-end script', `rpt_req_stat_id` text COMMENT 'Back-end script', `rpt_req_stat_id_nm` text COMMENT 'Back-end script', `rpt_req_stat_lag_tm` text COMMENT 'Back-end script', `rpt_req_stat_time` text COMMENT 'Back-end script', `old_forcast_dt` date DEFAULT NULL COMMENT 'GUI, field not need, calling forecast function', `old_status_dt` date DEFAULT NULL COMMENT 'GUI, field not need, calling status function', `old_req_dt` date DEFAULT NULL COMMENT 'GUI, field not need, calling kundali cubes function', `run_func` char(1) DEFAULT NULL COMMENT 'GUI, field not need, Y or N, if req end entered then run agile_func_cnt to close child records.', `old_case_dt` date DEFAULT NULL, PRIMARY KEY (`iddev_est_reqs`), KEY `lk_dev_est` (`iddev_est`), KEY `lk_del_dt` (`del_dt`), KEY `lk_archv_dt` (`archv_dt`), KEY `lk_req_e_dt` (`req_e_dt`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_est_reqs_case` -- DROP TABLE IF EXISTS `dev_est_reqs_case`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_est_reqs_case` ( `iddev_est_reqs_case` int(11) NOT NULL AUTO_INCREMENT, `iddev_est_reqs` int(11) DEFAULT NULL, `created_by` int(11) DEFAULT NULL, `create_dt` date DEFAULT NULL, `create_end_dt` date DEFAULT NULL, `create_time` int(11) DEFAULT NULL, `disp_order` int(2) DEFAULT NULL, `reqs_cases` varchar(200) DEFAULT NULL, `case_data` varchar(200) DEFAULT NULL, `case_result_desc` varchar(200) DEFAULT NULL, `case_cnt` int(5) DEFAULT NULL, `case_status` int(5) DEFAULT NULL, `executed_by` int(11) DEFAULT NULL, `execute_dt` date DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `last_updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(30) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, `old_case_dt` date DEFAULT NULL, PRIMARY KEY (`iddev_est_reqs_case`), KEY `lk_est_reqs` (`iddev_est_reqs`), KEY `lk_del_by` (`del_by`), KEY `lk_archv_by` (`archv_by`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_est_reqs_case_doc` -- DROP TABLE IF EXISTS `dev_est_reqs_case_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_est_reqs_case_doc` ( `iddev_est_reqs_case_doc` int(11) NOT NULL AUTO_INCREMENT, `iddev_est_reqs_case` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, PRIMARY KEY (`iddev_est_reqs_case_doc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_est_reqs_case_result` -- DROP TABLE IF EXISTS `dev_est_reqs_case_result`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_est_reqs_case_result` ( `iddev_est_reqs_case_result` int(11) NOT NULL AUTO_INCREMENT, `iddev_est_reqs_case` int(11) DEFAULT NULL, `case_data` varchar(200) DEFAULT NULL, `case_result_desc` varchar(200) DEFAULT NULL, `case_status` int(11) DEFAULT NULL, `executed_by` int(11) DEFAULT NULL, `execute_dt` date DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` varchar(45) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`iddev_est_reqs_case_result`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_est_reqs_case_result_doc` -- DROP TABLE IF EXISTS `dev_est_reqs_case_result_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_est_reqs_case_result_doc` ( `iddev_est_reqs_case_result_doc` int(11) NOT NULL AUTO_INCREMENT, `iddev_est_reqs_case_result` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, PRIMARY KEY (`iddev_est_reqs_case_result_doc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_est_reqs_doc` -- DROP TABLE IF EXISTS `dev_est_reqs_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_est_reqs_doc` ( `iddev_est_reqs_doc` int(11) NOT NULL AUTO_INCREMENT, `iddev_est_reqs` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, PRIMARY KEY (`iddev_est_reqs_doc`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_est_reqs_stat_amt` -- DROP TABLE IF EXISTS `dev_est_reqs_stat_amt`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_est_reqs_stat_amt` ( `iddev_est_reqs_stat_amt` int(11) NOT NULL AUTO_INCREMENT, `iddev_est_reqs_status` int(11) DEFAULT NULL, `hist_cnt` int(5) DEFAULT NULL, `reqs_quote_by` int(11) DEFAULT NULL, `reqs_quote_dt` date DEFAULT NULL, `req_stat_amt` varchar(25) DEFAULT NULL, `req_action_by` int(11) DEFAULT NULL, `req_action` int(5) DEFAULT NULL, `req_stat_paid` varchar(25) DEFAULT NULL, `req_stat_paid_pcnt` varchar(10) DEFAULT NULL, `req_stat_bal` varchar(25) DEFAULT NULL, `req_stat_bal_pcnt` varchar(10) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`iddev_est_reqs_stat_amt`), KEY `lk_reqs_status` (`iddev_est_reqs_status`), KEY `lk_quote_by` (`reqs_quote_by`), KEY `lk_action_by` (`req_action_by`), KEY `lk_del_dt` (`del_dt`), KEY `lk_archv_dt` (`archv_dt`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_est_reqs_stat_amt_hist` -- DROP TABLE IF EXISTS `dev_est_reqs_stat_amt_hist`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_est_reqs_stat_amt_hist` ( `iddev_est_reqs_stat_amt_hist` int(11) NOT NULL AUTO_INCREMENT, `iddev_est_reqs_stat_amt` int(11) DEFAULT NULL, `req_amt_old` float DEFAULT NULL, `req_amt_smry` varchar(95) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, PRIMARY KEY (`iddev_est_reqs_stat_amt_hist`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_est_reqs_status` -- DROP TABLE IF EXISTS `dev_est_reqs_status`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_est_reqs_status` ( `iddev_est_reqs_status` int(11) NOT NULL AUTO_INCREMENT, `iddev_est_reqs` int(11) DEFAULT NULL, `req_status` int(5) DEFAULT NULL, `idlook_stat_order` int(5) DEFAULT NULL, `stat_e_dt_pre` datetime DEFAULT NULL, `stat_lag_time` int(11) DEFAULT NULL, `stat_st_dt` datetime DEFAULT NULL, `stat_e_dt` datetime DEFAULT NULL, `stat_time` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, `assigned_to` int(11) DEFAULT NULL, `gap_lvl` int(5) DEFAULT NULL, `req_stat_amt` varchar(25) DEFAULT NULL, `req_stat_paid` varchar(25) DEFAULT NULL, `req_stat_paid_pcnt` varchar(10) DEFAULT NULL, `req_stat_bal` varchar(25) DEFAULT NULL, `req_stat_bal_pcnt` varchar(10) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`iddev_est_reqs_status`), KEY `est_reqs` (`iddev_est_reqs`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_est_reqs_status_forcast` -- DROP TABLE IF EXISTS `dev_est_reqs_status_forcast`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_est_reqs_status_forcast` ( `iddev_est_reqs_status_forcast` int(11) NOT NULL AUTO_INCREMENT, `iddev_est_reqs_status` int(11) DEFAULT NULL, `iddev_est_reqs` int(11) DEFAULT NULL, `req_status` int(5) DEFAULT NULL, `idlook_stat_order` int(5) DEFAULT NULL, `for_stat_e_dt_pre` datetime DEFAULT NULL, `for_stat_lag_time` int(11) DEFAULT NULL, `for_stat_st_dt` datetime DEFAULT NULL, `for_stat_e_dt` datetime DEFAULT NULL, `for_stat_time` int(11) DEFAULT NULL, `for_req_bud_amt` varchar(25) DEFAULT NULL, `for_amt_dt` datetime DEFAULT NULL, `for_amt_temp_dt` datetime DEFAULT NULL, `hist_cnt` int(5) DEFAULT NULL, `for_req_bud_amt_updater` int(11) DEFAULT NULL, `for_req_bud_amt_updated` datetime DEFAULT NULL, `last_updated` datetime DEFAULT NULL, `assigned_to` int(11) DEFAULT NULL, `forecast_smry` varchar(95) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`iddev_est_reqs_status_forcast`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_est_reqs_status_forcast_hist` -- DROP TABLE IF EXISTS `dev_est_reqs_status_forcast_hist`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_est_reqs_status_forcast_hist` ( `iddev_est_reqs_status_forcast_hist` int(11) NOT NULL AUTO_INCREMENT, `iddev_est_reqs_status_forcast` int(11) DEFAULT NULL, `forecast_req_bud_amt_old` varchar(15) DEFAULT NULL, `forecast_smry_old` varchar(95) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`iddev_est_reqs_status_forcast_hist`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_est_reqs_status_forcast_steps` -- DROP TABLE IF EXISTS `dev_est_reqs_status_forcast_steps`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_est_reqs_status_forcast_steps` ( `iddev_est_reqs_status_forcast_steps` int(11) NOT NULL AUTO_INCREMENT, `iddev_est_reqs` int(11) DEFAULT NULL, `dev_steps_details` varchar(100) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`iddev_est_reqs_status_forcast_steps`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_est_reqs_status_steps` -- DROP TABLE IF EXISTS `dev_est_reqs_status_steps`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_est_reqs_status_steps` ( `iddev_est_req_status_steps` int(11) NOT NULL AUTO_INCREMENT, `iddev_est_reqs_status` int(11) DEFAULT NULL, `dev_steps_details` varchar(100) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, `updater` int(11) DEFAULT NULL, PRIMARY KEY (`iddev_est_req_status_steps`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_lk_label` -- DROP TABLE IF EXISTS `dev_lk_label`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_lk_label` ( `iddev_lk_label` int(5) NOT NULL AUTO_INCREMENT, `display_size` varchar(45) DEFAULT NULL COMMENT '2px, 2 percent', `dev_label_nm` varchar(45) DEFAULT NULL, `hover_fields` varchar(255) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `lk_parent_val_id` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, PRIMARY KEY (`iddev_lk_label`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_lk_wrk_flow` -- DROP TABLE IF EXISTS `dev_lk_wrk_flow`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_lk_wrk_flow` ( `iddev_lk_wrk_flow` int(11) NOT NULL AUTO_INCREMENT, `wrk_flow_nm` varchar(45) DEFAULT NULL, `id_wrk_flow` int(11) DEFAULT NULL, `wrk_flow_desc` varchar(100) DEFAULT NULL, `id_wrk_flow_parent` int(11) DEFAULT NULL, `look_initial` varchar(5) DEFAULT NULL, `look_restart` varchar(5) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, PRIMARY KEY (`iddev_lk_wrk_flow`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_look` -- DROP TABLE IF EXISTS `dev_look`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_look` ( `iddev_look` int(11) NOT NULL AUTO_INCREMENT, `look_name` varchar(45) DEFAULT NULL, `look_name_desc` varchar(100) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `child_lvl` int(3) DEFAULT NULL, PRIMARY KEY (`iddev_look`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_look_value` -- DROP TABLE IF EXISTS `dev_look_value`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_look_value` ( `iddev_look_value` int(11) NOT NULL AUTO_INCREMENT, `iddev_look` int(11) DEFAULT NULL, `look_value` varchar(45) DEFAULT NULL, `look_value_desc` varchar(100) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `lk_val_par` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`iddev_look_value`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_trng` -- DROP TABLE IF EXISTS `dev_trng`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_trng` ( `iddev_trng` int(11) NOT NULL AUTO_INCREMENT, `disp_order` int(3) DEFAULT NULL, `train_nm` varchar(45) DEFAULT NULL, `train_desc` varchar(200) DEFAULT NULL, `duration` int(5) DEFAULT NULL, `cnt` int(5) DEFAULT NULL, `practical` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`iddev_trng`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dev_trng_doc` -- DROP TABLE IF EXISTS `dev_trng_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dev_trng_doc` ( `iddev_trng_doc` int(11) NOT NULL AUTO_INCREMENT, `iddev_trng` int(11) DEFAULT NULL, `disp_order` int(3) DEFAULT NULL, `trng_desc` varchar(100) DEFAULT NULL, `duration` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, `cloud_link` varchar(100) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`iddev_trng_doc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp` -- DROP TABLE IF EXISTS `emp`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp` ( `emp_id` int(11) NOT NULL AUTO_INCREMENT, `idstorages` int(11) DEFAULT NULL, `firstname` varchar(20) DEFAULT NULL, `middlename` varchar(20) DEFAULT NULL, `lastname` varchar(20) DEFAULT NULL, `nickname` varchar(5) DEFAULT NULL, `all_contacts` varchar(200) DEFAULT NULL, `unique_id_type` int(5) DEFAULT NULL COMMENT 'SSN, PAN, etc', `ssn` varchar(20) DEFAULT NULL, `dob` date DEFAULT NULL, `gender` int(5) DEFAULT NULL, `all_features` text, `cnt_feature` int(4) DEFAULT NULL, `all_education` text, `education_cnt` int(5) DEFAULT NULL, `education_yrs` int(11) DEFAULT NULL, `all_emp_org` text, `all_addresses` text, `sto_limit` varchar(20) DEFAULT NULL, `sto_usage` varchar(20) DEFAULT NULL, `sto_remain` varchar(20) DEFAULT NULL, `taxid` varchar(45) DEFAULT NULL, `hrs_forecast` varchar(25) DEFAULT NULL, `hrs_actual` varchar(25) DEFAULT NULL, `fore_act_pcnt` varchar(10) DEFAULT NULL, `amt_forcast` varchar(25) DEFAULT NULL, `amt_actual` varchar(25) DEFAULT NULL, `amt_pcnt` varchar(10) DEFAULT NULL, `vac_earn` varchar(25) DEFAULT NULL, `vac_use` varchar(25) DEFAULT NULL, `vac_bal` varchar(15) DEFAULT NULL, `vac_pcnt` varchar(10) DEFAULT NULL, `login_id` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, `updater` int(9) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, `old_org_dt` date DEFAULT NULL, `old_addr_dt` date DEFAULT NULL, PRIMARY KEY (`emp_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 MAX_ROWS=999999999 COMMENT='Used to store details of Apex employee details'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_access` -- DROP TABLE IF EXISTS `emp_access`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_access` ( `access_id` int(11) NOT NULL AUTO_INCREMENT, `emp_id` int(9) NOT NULL, `feature_id` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, PRIMARY KEY (`access_id`), KEY `feature_id_fk1` (`feature_id`), KEY `uid_fk3` (`emp_id`), KEY `fk_emp_id_allusr_acc_idx` (`emp_id`), KEY `fk_fea_allusr_acc_idx` (`feature_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 MAX_ROWS=999999999 COMMENT='Used to store access details of employees'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_activity` -- DROP TABLE IF EXISTS `emp_activity`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_activity` ( `idemp_activity` int(11) NOT NULL AUTO_INCREMENT, `emp_id` int(11) DEFAULT NULL, `call_recv_dt` date DEFAULT NULL, `next_call_dt` date DEFAULT NULL, `call_note` text, `last_updated` datetime DEFAULT NULL, `emp_id_updated` int(11) DEFAULT NULL, PRIMARY KEY (`idemp_activity`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_address` -- DROP TABLE IF EXISTS `emp_address`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_address` ( `emp_add_id` int(11) NOT NULL AUTO_INCREMENT, `emp_id` int(9) DEFAULT NULL, `look_street_no_id` int(10) DEFAULT NULL, `house_apt_no` varchar(45) DEFAULT NULL, `house_apt_type` int(5) DEFAULT NULL, `from_dt` date DEFAULT NULL, `to_dt` date DEFAULT NULL, `no_of_days` int(10) DEFAULT NULL, `add_type` varchar(45) DEFAULT NULL COMMENT 'Mailing or Physical', `last_updated` datetime DEFAULT NULL, `updater` int(11) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`emp_add_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_att_org_hrs` -- DROP TABLE IF EXISTS `emp_att_org_hrs`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_att_org_hrs` ( `idemp_att_org_hrs` int(11) NOT NULL AUTO_INCREMENT, `emp_org_hrs_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`idemp_att_org_hrs`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_att_org_hrs_days_cy` -- DROP TABLE IF EXISTS `emp_att_org_hrs_days_cy`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_att_org_hrs_days_cy` ( `idemp_att_org_hrs_days_cy` int(11) NOT NULL AUTO_INCREMENT, `emp_org_hrs_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`idemp_att_org_hrs_days_cy`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_attr_address` -- DROP TABLE IF EXISTS `emp_attr_address`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_attr_address` ( `idemp_attr_address` int(11) NOT NULL AUTO_INCREMENT, `emp_address_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`idemp_attr_address`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_attr_org` -- DROP TABLE IF EXISTS `emp_attr_org`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_attr_org` ( `idemp_attr_org` int(11) NOT NULL AUTO_INCREMENT, `emp_org_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`idemp_attr_org`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_audit` -- DROP TABLE IF EXISTS `emp_audit`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_audit` ( `idemp_audit` int(19) NOT NULL AUTO_INCREMENT, `updated` datetime DEFAULT NULL, `updater` varchar(90) DEFAULT NULL, `table_update` varchar(90) DEFAULT NULL, `action` varchar(5) DEFAULT NULL, `table_id` text, `col1` text, `idlook_menu_pvt_lvl2` int(5) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idemp_audit`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_contact` -- DROP TABLE IF EXISTS `emp_contact`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_contact` ( `emp_contact_id` int(11) NOT NULL AUTO_INCREMENT, `emp_id` int(9) DEFAULT NULL, `contact_id` int(11) DEFAULT NULL COMMENT 'email, cell, work, home', `emp_contact_type` varchar(10) DEFAULT NULL, `contact_vrifed` char(1) DEFAULT NULL, `summary` varchar(100) DEFAULT NULL, `contact_cnt` int(2) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, `updater` int(11) DEFAULT NULL, PRIMARY KEY (`emp_contact_id`), UNIQUE KEY `emp_contact_id` (`emp_contact_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_doc` -- DROP TABLE IF EXISTS `emp_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_doc` ( `idemp_doc` int(11) NOT NULL AUTO_INCREMENT, `emp_id` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, `emp_doc_type` int(5) DEFAULT NULL, PRIMARY KEY (`idemp_doc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_education` -- DROP TABLE IF EXISTS `emp_education`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_education` ( `idemp_education` int(11) NOT NULL AUTO_INCREMENT, `emp_id` int(11) DEFAULT NULL, `edu_name` int(5) DEFAULT NULL COMMENT 'School, college name', `edu_name_sub` int(5) DEFAULT NULL COMMENT 'campus_name', `edu_frm_dt` date DEFAULT NULL, `edu_to_dt` date DEFAULT NULL, `edu_frm_to_dt` int(5) DEFAULT NULL, `edu_subject` int(5) DEFAULT NULL COMMENT 'CSC, Civil', `edu_level` int(5) DEFAULT NULL COMMENT 'Bachelor, Master, PH.D, Drop Out,', `edu_smry` varchar(100) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idemp_education`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_lk` -- DROP TABLE IF EXISTS `emp_lk`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_lk` ( `idemp_lk` int(11) NOT NULL AUTO_INCREMENT, `lk_nm` varchar(45) DEFAULT NULL, `lk_nm_desc` varchar(100) DEFAULT NULL, `disp_order` varchar(45) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `child_lvl` int(3) DEFAULT NULL, PRIMARY KEY (`idemp_lk`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_lk_tag` -- DROP TABLE IF EXISTS `emp_lk_tag`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_lk_tag` ( `idemp_lk_tag` int(11) NOT NULL AUTO_INCREMENT, `owner_id` int(11) DEFAULT NULL, `lk_tag` varchar(200) DEFAULT NULL, `lk_tag_desc` varchar(200) DEFAULT NULL, `lk_disp_id` int(5) DEFAULT NULL, `lk_parent_val_id` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, PRIMARY KEY (`idemp_lk_tag`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_lk_val` -- DROP TABLE IF EXISTS `emp_lk_val`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_lk_val` ( `idemp_lk_value` int(11) NOT NULL AUTO_INCREMENT, `idemp_lk` int(11) DEFAULT NULL, `lk_val` varchar(45) DEFAULT NULL, `lk_val_desc` varchar(100) DEFAULT NULL, `disp_order` int(1) DEFAULT NULL, `lk_val_par` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idemp_lk_value`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_org` -- DROP TABLE IF EXISTS `emp_org`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_org` ( `emp_org_id` int(11) NOT NULL AUTO_INCREMENT, `comp_id` int(10) DEFAULT NULL, `emp_id` int(9) DEFAULT NULL, `org_start_dt` date DEFAULT NULL, `org_end_dt` date DEFAULT NULL, `no_of_days` int(10) DEFAULT NULL, `tentative_en_dt` date DEFAULT NULL COMMENT 'Comes from emp_org_hrs table', `emp_type` int(5) DEFAULT NULL COMMENT '1099, w2, freelancer', `pay_cy` varchar(10) DEFAULT NULL COMMENT 'Monthly, weekly, if null (Not Fixed)', `org_forecast` decimal(11,2) DEFAULT NULL, `org_actual` decimal(11,2) DEFAULT NULL, `org_pcnt` varchar(10) DEFAULT NULL, `org_amt_forcast` varchar(15) DEFAULT NULL, `org_amt_actual` varchar(15) DEFAULT NULL, `org_amt_pcnt` varchar(10) DEFAULT NULL, `org_vac_earn` varchar(15) DEFAULT NULL, `org_vac_use` varchar(15) DEFAULT NULL, `org_vac_pcnt` varchar(10) DEFAULT NULL, `org_vac_bal` varchar(15) DEFAULT NULL, `run_script` char(1) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `old_org_hrs_dt` date DEFAULT NULL, `last_updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`emp_org_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_org_access` -- DROP TABLE IF EXISTS `emp_org_access`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_org_access` ( `idemp_org_access` int(11) NOT NULL AUTO_INCREMENT, `emp_access_to` int(11) DEFAULT NULL, `emp_access_of` int(11) DEFAULT NULL, `acc_from_dt` date DEFAULT NULL, `acc_to_dt` date DEFAULT NULL, `acc_type` varchar(10) DEFAULT NULL COMMENT 'View (default), Edit, Archive, Delete, Toggle, Restore, Erase.', `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idemp_org_access`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_org_hrs` -- DROP TABLE IF EXISTS `emp_org_hrs`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_org_hrs` ( `idemp_org_hrs` int(11) NOT NULL AUTO_INCREMENT, `emp_org_id` int(11) DEFAULT NULL, `from_dt` date DEFAULT NULL, `to_dt` date DEFAULT NULL, `frm_to_org_hrs_days` int(11) DEFAULT NULL, `tentative_en_dt` date DEFAULT NULL, `org_hrs_forecast` decimal(11,2) DEFAULT NULL COMMENT 'Get details from emp_hrs', `org_hrs_actual` decimal(11,2) DEFAULT NULL, `org_hrs_pcnt` varchar(10) DEFAULT NULL, `org_hrs_amt_forcast` varchar(15) DEFAULT NULL, `org_hrs_amt_actual` varchar(15) DEFAULT NULL, `org_hrs_amt_pcnt` varchar(10) DEFAULT NULL, `emp_hrs_title` int(5) DEFAULT NULL COMMENT 'Probation, Jr, Sr, etc', `org_hrs_vac_earn` varchar(15) DEFAULT NULL, `org_hrs_vac_use` varchar(15) DEFAULT NULL, `org_hrs_vac_bal` varchar(15) DEFAULT NULL, `org_hrs_vac_pcnt` varchar(15) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, `hrs_cy_run` char(1) DEFAULT NULL COMMENT 'Y = All Run, N = Never ran, P = Partial ran', `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, `old_hrs_dt` date DEFAULT NULL, `cy_st_date` date DEFAULT NULL, PRIMARY KEY (`idemp_org_hrs`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_org_hrs_days` -- DROP TABLE IF EXISTS `emp_org_hrs_days`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_org_hrs_days` ( `idemp_org_hrs_days` int(11) NOT NULL AUTO_INCREMENT, `idemp_org_hrs` int(11) DEFAULT NULL, `tm_zn` varchar(10) DEFAULT NULL COMMENT 'Est, ist, ist', `start_tm` time DEFAULT NULL, `end_tm` time DEFAULT NULL, `hrs_tm` varchar(5) DEFAULT NULL, `hrs_tm_nm` varchar(5) DEFAULT NULL, `off_time` varchar(5) DEFAULT NULL, `off_time_nm` varchar(5) DEFAULT NULL, `days` varchar(2) DEFAULT NULL COMMENT '1 = Sunday\\\\n2 = Monday\\\\n3 = Tuesday\\\\n4 = Wednesday\\\\n5 = Thursday\\\\n6 = Friday\\\\n7 = Saturday\\\\n8 = Monday to Friday\\\\n9 = Monday to Saturday\\\\n10 = All Day\\\\n', `pay_amt` varchar(5) DEFAULT NULL, `look_street_no_id` int(11) DEFAULT NULL, `house_apt_type` int(5) DEFAULT NULL, `house_apt_no` varchar(15) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `cy_days_st_dt` date DEFAULT NULL, `hrs_day_cy_run` char(1) DEFAULT NULL COMMENT 'Y = All Run\\nN = Never ran\\nD = Will make previous records null and rerun.', PRIMARY KEY (`idemp_org_hrs_days`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_org_hrs_days_cy` -- DROP TABLE IF EXISTS `emp_org_hrs_days_cy`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_org_hrs_days_cy` ( `idemp_org_hrs_days_cy` int(11) NOT NULL AUTO_INCREMENT, `idemp_org_hrs_days` int(11) DEFAULT NULL, `day_start_tm` datetime DEFAULT NULL, `day_end_tm` datetime DEFAULT NULL, `day_hrs_forcast_tm` varchar(5) DEFAULT NULL, `day_hrs_forcast_tm_nm` varchar(5) DEFAULT NULL, `day_off_forcast` varchar(5) DEFAULT NULL, `day_off_forcast_nm` varchar(5) DEFAULT NULL, `day_pay_forcast_amt` varchar(11) DEFAULT NULL, `day_hrs_actual_tm` varchar(5) DEFAULT NULL, `day_hrs_actual_tm_nm` varchar(5) DEFAULT NULL, `day_off_actual` varchar(5) DEFAULT NULL, `day_off_actual_nm` varchar(5) DEFAULT NULL, `day_pay_actual_amt` varchar(11) DEFAULT NULL, PRIMARY KEY (`idemp_org_hrs_days_cy`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_org_vac` -- DROP TABLE IF EXISTS `emp_org_vac`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_org_vac` ( `idemp_org_vac` int(11) NOT NULL AUTO_INCREMENT, `idemp_org_hrs` int(11) DEFAULT NULL, `vac_type` varchar(15) DEFAULT NULL COMMENT 'H = Holiday, V = vacation, Sick, Maternity, Compensate ', `off_tm_days` varchar(9) DEFAULT NULL, `off_tm_calc` varchar(9) DEFAULT NULL COMMENT 'Val 1, .5, 1.5 \\\\\\\\\\\\\\\\nCal = val * 160 hrs, eg 1 earned monthy ', `hrs_earn` varchar(7) DEFAULT NULL, `hrs_use` varchar(7) DEFAULT NULL, `hrs_bal` varchar(7) DEFAULT NULL, `hrs_pcnt` varchar(10) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idemp_org_vac`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_pay` -- DROP TABLE IF EXISTS `emp_pay`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_pay` ( `idemp_pay` int(11) NOT NULL AUTO_INCREMENT, `emp_id` int(11) DEFAULT NULL, `pay_cy` varchar(10) DEFAULT NULL COMMENT 'Hard cord values hourly, monthly, yearly', `pay_frm_dt` date DEFAULT NULL, `pay_to_dt` date DEFAULT NULL, `gross_earn` varchar(10) DEFAULT NULL, `deduct` varchar(10) DEFAULT NULL, `net_earn` varchar(10) DEFAULT NULL, `pay_dt` date DEFAULT NULL, `bank_chk_no` varchar(10) DEFAULT NULL, `idbank_acc` int(11) DEFAULT NULL, `show_hide` char(1) DEFAULT NULL COMMENT 'Y or N', `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idemp_pay`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_pay_list` -- DROP TABLE IF EXISTS `emp_pay_list`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_pay_list` ( `idemp_pay_list` int(11) NOT NULL AUTO_INCREMENT, `idemp_pay` int(11) DEFAULT NULL, `pkg_type` int(5) DEFAULT NULL, `pay_type` char(1) DEFAULT NULL COMMENT 'D or W', PRIMARY KEY (`idemp_pay_list`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_pkg` -- DROP TABLE IF EXISTS `emp_pkg`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_pkg` ( `idemp_pkg` int(11) NOT NULL AUTO_INCREMENT, `emp_id` int(11) DEFAULT NULL, `pkg_frm` date DEFAULT NULL, `pkg_to` date DEFAULT NULL, `pkg_from_to` int(9) DEFAULT NULL, `pkg_type` int(5) DEFAULT NULL COMMENT 'Val from tak_lk_val, eg Insurance, 401, etc', `pkg_calc` varchar(5) DEFAULT NULL COMMENT 'Percent of fix', `pkg_calc_val` varchar(10) DEFAULT NULL COMMENT '5%', `pkg_calc_amt` varchar(10) DEFAULT NULL COMMENT 'If fixed, ask for amt, i.e $1000.00 insurance.', `pkg_emp_split` varchar(5) DEFAULT NULL, `pkg_emp_max` varchar(10) DEFAULT NULL COMMENT '15000, max', `pkg_er_split` varchar(5) DEFAULT NULL, `pkg_er_max` varchar(45) DEFAULT NULL COMMENT '5000.00', `updater` int(11) DEFAULT NULL, `updated` date DEFAULT NULL, PRIMARY KEY (`idemp_pkg`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_tag` -- DROP TABLE IF EXISTS `emp_tag`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_tag` ( `idemp_tag` int(11) NOT NULL AUTO_INCREMENT, `emp_id` int(11) DEFAULT NULL, `emp_tags` int(5) DEFAULT NULL, PRIMARY KEY (`idemp_tag`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_tag_merger` -- DROP TABLE IF EXISTS `emp_tag_merger`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_tag_merger` ( `emp_id` int(9) NOT NULL DEFAULT '0', `firstname` varchar(45) DEFAULT NULL, `lastname` varchar(45) DEFAULT NULL, `nickname` varchar(5) DEFAULT NULL, `gender` int(5) DEFAULT NULL, `emp_assigned_id` int(1) NOT NULL DEFAULT '0', `mod_call_recv_dt` varchar(8) CHARACTER SET utf8 DEFAULT NULL, `call_recv_dt` datetime DEFAULT NULL, `mod_next_call_dt` varchar(8) CHARACTER SET utf8 DEFAULT NULL, `next_call_dt` datetime DEFAULT NULL, `call_note` text, `emp_smry` varchar(200) DEFAULT NULL, `last_updated_sale` datetime DEFAULT NULL, `mod_last_updated` varchar(116) DEFAULT NULL, `emp_level` int(5) DEFAULT NULL, `emp_lvl_desc` varchar(200) DEFAULT NULL, `contacts` longtext, `emp_tag` longtext, `file_group` longtext, `258` decimal(23,0) DEFAULT NULL, `1358` decimal(23,0) DEFAULT NULL, `1369` decimal(23,0) DEFAULT NULL, `1666` decimal(23,0) DEFAULT NULL, `259` decimal(23,0) DEFAULT NULL, `67` decimal(23,0) DEFAULT NULL, `1707` decimal(23,0) DEFAULT NULL, `262` decimal(23,0) DEFAULT NULL, `263` decimal(23,0) DEFAULT NULL, `1022` decimal(23,0) DEFAULT NULL, `260` decimal(23,0) DEFAULT NULL, `261` decimal(23,0) DEFAULT NULL, `289` decimal(23,0) DEFAULT NULL, `290` decimal(23,0) DEFAULT NULL, `291` decimal(23,0) DEFAULT NULL, `293` decimal(23,0) DEFAULT NULL, `297` decimal(23,0) DEFAULT NULL, `1405` decimal(23,0) DEFAULT NULL, `255` decimal(23,0) DEFAULT NULL, `256` decimal(23,0) DEFAULT NULL, `295` decimal(23,0) DEFAULT NULL, `296` decimal(23,0) DEFAULT NULL, `975` decimal(23,0) DEFAULT NULL, `974` decimal(23,0) DEFAULT NULL, `973` decimal(23,0) DEFAULT NULL, `1417` decimal(23,0) DEFAULT NULL, `1418` decimal(23,0) DEFAULT NULL, `1678` decimal(23,0) DEFAULT NULL, `1680` decimal(23,0) DEFAULT NULL, `1706` decimal(23,0) DEFAULT NULL, `1682` decimal(23,0) DEFAULT NULL, `1684` decimal(23,0) DEFAULT NULL, `1686` decimal(23,0) DEFAULT NULL, `1687` decimal(23,0) DEFAULT NULL, `1688` decimal(23,0) DEFAULT NULL, `121` int(1) NOT NULL DEFAULT '0', `3` int(1) NOT NULL DEFAULT '0', `32` int(1) NOT NULL DEFAULT '0', `33` int(1) NOT NULL DEFAULT '0', `288` int(1) NOT NULL DEFAULT '0', `253` int(1) NOT NULL DEFAULT '0', `294` int(1) NOT NULL DEFAULT '0', `972` int(1) NOT NULL DEFAULT '0', `1416` int(1) NOT NULL DEFAULT '0', `1677` int(1) NOT NULL DEFAULT '0', `1681` int(1) NOT NULL DEFAULT '0', `1685` int(1) NOT NULL DEFAULT '0', `Total_Missing` int(1) NOT NULL DEFAULT '0' ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_trng` -- DROP TABLE IF EXISTS `emp_trng`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_trng` ( `idemp_trng` int(11) NOT NULL AUTO_INCREMENT, `disp_order` int(3) DEFAULT NULL, `train_nm` varchar(45) DEFAULT NULL, `train_desc` varchar(200) DEFAULT NULL, `duration` int(5) DEFAULT NULL, `cnt` int(5) DEFAULT NULL, `practical` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idemp_trng`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emp_trng_doc` -- DROP TABLE IF EXISTS `emp_trng_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emp_trng_doc` ( `idemp_trng_doc` int(11) NOT NULL AUTO_INCREMENT, `idemp_trng` int(11) DEFAULT NULL, `disp_order` int(3) DEFAULT NULL, `trng_desc` varchar(100) DEFAULT NULL, `duration` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, `cloud_link` varchar(100) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idemp_trng_doc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `engage` -- DROP TABLE IF EXISTS `engage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `engage` ( `engage_id` int(11) NOT NULL AUTO_INCREMENT, `srv_client` int(10) DEFAULT NULL, `srv_client_add` text, `srv_client_con` text, `srv_vendor` int(10) DEFAULT NULL, `srv_ven_add` text, `srv_ven_con` text, `srv_st_dt` date DEFAULT NULL, `srv_e_dt` date DEFAULT NULL, `srv_st_e_dt` int(5) DEFAULT NULL, `eng_tentive_en_dt` date DEFAULT NULL, `eng_cnt` int(5) DEFAULT NULL, `eng_tol` int(5) DEFAULT NULL, `eng_cnt_pcnt` varchar(10) DEFAULT NULL, `eg_sumry` varchar(200) DEFAULT NULL, `cloud_drive` text, `last_updated` datetime DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `en_prv_smry` text, `access_name` varchar(45) DEFAULT NULL, `remind` int(3) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`engage_id`), UNIQUE KEY `access_name_UNIQUE` (`access_name`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `engage_attr` -- DROP TABLE IF EXISTS `engage_attr`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `engage_attr` ( `idengage_attr` int(11) NOT NULL AUTO_INCREMENT, `enagage_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`idengage_attr`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `engage_attr_entity` -- DROP TABLE IF EXISTS `engage_attr_entity`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `engage_attr_entity` ( `idengage_attr_entity` int(11) NOT NULL AUTO_INCREMENT, `engage_entity_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`idengage_attr_entity`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `engage_audit` -- DROP TABLE IF EXISTS `engage_audit`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `engage_audit` ( `idengage_audit` int(19) NOT NULL AUTO_INCREMENT, `updated` datetime DEFAULT NULL, `updater` varchar(90) DEFAULT NULL, `table_update` varchar(90) DEFAULT NULL, `action` varchar(5) DEFAULT NULL, `table_id` text, `col1` text, `col2` text, `col3` text, `col4` text, `col5` text, `col6` text, `idlook_menu_pvt_lvl2` int(5) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idengage_audit`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `engage_comp` -- DROP TABLE IF EXISTS `engage_comp`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `engage_comp` ( `idengage_comp` int(11) NOT NULL AUTO_INCREMENT, `engage_id` int(11) DEFAULT NULL, `comp_id` int(10) DEFAULT NULL, PRIMARY KEY (`idengage_comp`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `engage_comp_add` -- DROP TABLE IF EXISTS `engage_comp_add`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `engage_comp_add` ( `idengage_comp_add` int(11) NOT NULL AUTO_INCREMENT, `idengage_comp` int(11) DEFAULT NULL, `comp_add_id` int(11) DEFAULT NULL, `add_type` int(5) DEFAULT NULL COMMENT 'Billing, Timesheet, etc', `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idengage_comp_add`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `engage_comp_con` -- DROP TABLE IF EXISTS `engage_comp_con`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `engage_comp_con` ( `idengage_comp_con` int(11) NOT NULL AUTO_INCREMENT, `idengage_comp` int(11) DEFAULT NULL, `comp_contact_id` int(11) DEFAULT NULL COMMENT 'Drop engage_add_con', `contact_notes` varchar(45) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idengage_comp_con`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `engage_doc` -- DROP TABLE IF EXISTS `engage_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `engage_doc` ( `idengage_doc` int(11) NOT NULL AUTO_INCREMENT, `engage_id` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, PRIMARY KEY (`idengage_doc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `engage_entity` -- DROP TABLE IF EXISTS `engage_entity`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `engage_entity` ( `idengage_entity` int(11) NOT NULL AUTO_INCREMENT, `engage_id` int(11) DEFAULT NULL, `engage_ref_tab` varchar(45) DEFAULT NULL, `engage_ref_id` int(11) DEFAULT NULL, `bill_start_dt` date DEFAULT NULL, `bill_cycle` varchar(15) DEFAULT NULL, `bill_end_dt` date DEFAULT NULL, `bill_st_e_dt` int(5) DEFAULT NULL, `bill_fst_dt` date DEFAULT NULL, `bill_day` varchar(10) DEFAULT NULL, `bill_pay_type` varchar(10) DEFAULT NULL, `eng_ent_cnt` int(5) DEFAULT NULL, `eng_ent_tol` int(5) DEFAULT NULL, `eng_bud_pcnt` varchar(5) DEFAULT NULL, `bill_pay_cy` varchar(20) DEFAULT NULL, `bill_pay_rate` varchar(20) DEFAULT NULL, `bill_title` int(5) DEFAULT NULL COMMENT 'Process Analyst, Scrum Master, ', `bill_hrs_mon` varchar(45) DEFAULT NULL COMMENT '10 hrs month', `bill_pay_rate_xtra` varchar(20) DEFAULT NULL COMMENT 'If goes beyond monthly rate.', `ts_cycle` varchar(15) DEFAULT NULL, `ts_fst_dt` date DEFAULT NULL, `ts_fst_day` varchar(10) DEFAULT NULL, `netpay` int(5) DEFAULT NULL, `tentative_e_dt` date DEFAULT NULL, `access_name` varchar(20) DEFAULT NULL, `remind` int(3) DEFAULT NULL, `summary` varchar(100) DEFAULT NULL, `cloud_drive` text, `allow_inv` char(1) DEFAULT NULL COMMENT 'Value Yes or No, no need look_value', `show_emp` char(1) DEFAULT NULL, `bill_cycle_run_dt` date DEFAULT NULL, `ts_cycle_run_dt` date DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `old_bc_dt` date DEFAULT NULL, `old_tc_dt` date DEFAULT NULL, PRIMARY KEY (`idengage_entity`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `engage_entity_bud` -- DROP TABLE IF EXISTS `engage_entity_bud`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `engage_entity_bud` ( `idengage_entity_bud` int(11) NOT NULL AUTO_INCREMENT, `idengage_entity` int(11) NOT NULL, `engage_bud_ref_id` int(11) DEFAULT NULL, `engage_bud_ref_tab` varchar(20) DEFAULT NULL, `engage_calc` varchar(5) DEFAULT NULL COMMENT '.70 %, $,', `engage_amt` varchar(20) DEFAULT NULL, `show_emp` char(1) DEFAULT NULL COMMENT 'Y or N', `engage_st_dt` date DEFAULT NULL, `engage_e_dt` date DEFAULT NULL, `engage_st_e_dt` int(5) DEFAULT NULL, `limit_amt` varchar(45) DEFAULT NULL, `engage_smry` varchar(45) DEFAULT NULL, `updated` datetime DEFAULT NULL, `updater` int(11) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idengage_entity_bud`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `engage_entity_doc` -- DROP TABLE IF EXISTS `engage_entity_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `engage_entity_doc` ( `idengage_entity_doc` int(11) NOT NULL AUTO_INCREMENT, `idengage_entity` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, PRIMARY KEY (`idengage_entity_doc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `fam_spouse` -- DROP TABLE IF EXISTS `fam_spouse`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `fam_spouse` ( `idfam_spouse` int(11) NOT NULL AUTO_INCREMENT, `emp_id1` int(11) DEFAULT NULL, `emp_id2` int(11) DEFAULT NULL, `fam_stat` varchar(45) DEFAULT NULL COMMENT 'Separate, together,', `fam_stat_dt` date DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idfam_spouse`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `fam_spouse_child` -- DROP TABLE IF EXISTS `fam_spouse_child`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `fam_spouse_child` ( `idfam_spouse_child` int(11) NOT NULL AUTO_INCREMENT, `idfam_spouse` int(11) DEFAULT NULL, `emp_id` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idfam_spouse_child`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `fam_spouse_stat` -- DROP TABLE IF EXISTS `fam_spouse_stat`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `fam_spouse_stat` ( `idfam_spouse_stat` int(11) NOT NULL AUTO_INCREMENT, `idfam_spouse` int(11) DEFAULT NULL, `fam_stat` varchar(45) DEFAULT NULL, `fam_stat_dt` date DEFAULT NULL, `fam_spouse_notes` varchar(45) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idfam_spouse_stat`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `feature` -- DROP TABLE IF EXISTS `feature`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `feature` ( `feature_no` int(11) NOT NULL AUTO_INCREMENT, `feature_id` int(11) DEFAULT NULL, `feature_name` varchar(45) DEFAULT NULL, `feature_desc` varchar(200) DEFAULT NULL, `disp_order` int(11) DEFAULT NULL, PRIMARY KEY (`feature_no`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `feature_access` -- DROP TABLE IF EXISTS `feature_access`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `feature_access` ( `idfeature_access` int(11) NOT NULL AUTO_INCREMENT, `feature_id` int(11) DEFAULT NULL, `emp_id` int(11) DEFAULT NULL COMMENT 'Employee assignee limitation', `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idfeature_access`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `feature_grp` -- DROP TABLE IF EXISTS `feature_grp`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `feature_grp` ( `idfeature_grp` int(11) NOT NULL AUTO_INCREMENT, `group_name` varchar(45) DEFAULT NULL, `feature_cnt` int(5) DEFAULT NULL, `group_desc` varchar(200) DEFAULT NULL, `feature_ids` text, `feature_nm` text, `updater` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, PRIMARY KEY (`idfeature_grp`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `feature_grp_list` -- DROP TABLE IF EXISTS `feature_grp_list`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `feature_grp_list` ( `idfeature_grp_list` int(11) NOT NULL AUTO_INCREMENT, `idfeature_grp` int(11) NOT NULL, `feature_id` int(11) NOT NULL, `disp_order` int(5) DEFAULT NULL, PRIMARY KEY (`idfeature_grp_list`), KEY `fk_feture_grp_name_feture_grp_id` (`idfeature_grp`), KEY `fk_feture_id_feture_grping_idx` (`feature_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `feature_lk` -- DROP TABLE IF EXISTS `feature_lk`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `feature_lk` ( `idfeature_lk` int(11) NOT NULL AUTO_INCREMENT, `lk_nm` varchar(45) DEFAULT NULL, `lk_nm_desc` varchar(100) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `child_lvl` int(3) DEFAULT NULL, PRIMARY KEY (`idfeature_lk`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `feature_lk_val` -- DROP TABLE IF EXISTS `feature_lk_val`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `feature_lk_val` ( `idfeature_lk_val` int(11) NOT NULL AUTO_INCREMENT, `idfeature_lk` int(11) DEFAULT NULL, `lk_val` varchar(45) DEFAULT NULL, `lk_val_desc` varchar(100) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `lk_val_par` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idfeature_lk_val`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `feature_menu` -- DROP TABLE IF EXISTS `feature_menu`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `feature_menu` ( `idfeature_menu` int(11) NOT NULL AUTO_INCREMENT, `feature_id` int(11) DEFAULT NULL, `idlook_menu_pvt` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, PRIMARY KEY (`idfeature_menu`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `festival` -- DROP TABLE IF EXISTS `festival`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `festival` ( `idfestival` int(11) NOT NULL AUTO_INCREMENT, `look_values_id` int(5) DEFAULT NULL, `comp_id` int(11) DEFAULT NULL, `festival_yr` int(5) DEFAULT NULL, `festival_day` date DEFAULT NULL, `festival_name` varchar(50) DEFAULT NULL, `festival_type` char(5) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, PRIMARY KEY (`idfestival`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hours` -- DROP TABLE IF EXISTS `hours`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hours` ( `hour_id` int(11) NOT NULL AUTO_INCREMENT, `idemp_org_hrs_days_cy` int(11) DEFAULT NULL, `emp_id` int(9) DEFAULT NULL, `idemp_org_hrs` int(11) DEFAULT NULL, `engage_ref_tab` varchar(10) DEFAULT NULL COMMENT 'comp or engage', `engage_ref_id` int(11) DEFAULT NULL, `idhours_cy_bc` int(11) DEFAULT NULL, `idinv` int(11) DEFAULT NULL, `idemp_pay` int(11) DEFAULT NULL, `hr_st_dt` datetime DEFAULT NULL, `hr_e_dt` datetime DEFAULT NULL, `off_time` varchar(5) DEFAULT NULL, `off_tm_nm` varchar(5) DEFAULT NULL, `hr_tol` varchar(5) DEFAULT NULL, `hr_tol_nm` varchar(5) DEFAULT NULL, `iddev_apps` int(11) DEFAULT NULL, `dev_est` int(11) DEFAULT NULL, `dev_est_reqs` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `hrs_type` varchar(20) DEFAULT NULL COMMENT 'B = Billable, N = Non Billable, OT = Extra, Comp = Compensation, R = Regular, Holiday, Vacation, Sick.', `updated` datetime DEFAULT NULL, `iplook_ip_addr` int(11) DEFAULT NULL, `approver` int(11) DEFAULT NULL COMMENT 'Approved, Denied', `approve_by` int(9) DEFAULT NULL, `approve_dt` date DEFAULT NULL, `approve_temp_dt` datetime DEFAULT NULL, `timecard_id` int(11) DEFAULT NULL, `summary` varchar(45) DEFAULT NULL, `hours_cnt` int(3) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`hour_id`), KEY `fkemp_hrs` (`emp_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hours_access` -- DROP TABLE IF EXISTS `hours_access`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hours_access` ( `idhours_access` int(11) NOT NULL AUTO_INCREMENT, `hrs_access_to` int(11) DEFAULT NULL, `hrs_access_of` int(11) DEFAULT NULL, `acc_from_dt` date DEFAULT NULL, `acc_to_dt` date DEFAULT NULL, `acc_type` varchar(10) DEFAULT NULL COMMENT 'View (default), Edit, Add, Approve, Archive, Delete, Restore, Erase.', `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idhours_access`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hours_attr` -- DROP TABLE IF EXISTS `hours_attr`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hours_attr` ( `idhours_attr` int(11) NOT NULL AUTO_INCREMENT, `hours_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`idhours_attr`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hours_cy_bc` -- DROP TABLE IF EXISTS `hours_cy_bc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hours_cy_bc` ( `idhours_cy_bc` int(11) NOT NULL AUTO_INCREMENT, `idengage_entity` int(11) DEFAULT NULL, `bc_st_dt` date DEFAULT NULL, `bc_e_dt` date DEFAULT NULL, `bc_due_dt` date DEFAULT NULL, `bc_forcast_hr` varchar(10) DEFAULT NULL, `bc_forcast_inv` varchar(10) DEFAULT NULL, `hr_approved` char(1) DEFAULT NULL COMMENT 'Y / N ', `hr_inv` char(1) DEFAULT NULL COMMENT 'Invoiced Y or N', `bc_actual_hr` varchar(10) DEFAULT NULL, `bc_hrs_pcnt` varchar(10) DEFAULT NULL, `bc_actual_inv` varchar(10) DEFAULT NULL, `bc_inv_pcnt` varchar(10) DEFAULT NULL, `show_hide` char(1) DEFAULT NULL COMMENT 'Y or N', `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idhours_cy_bc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hours_cy_tc` -- DROP TABLE IF EXISTS `hours_cy_tc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hours_cy_tc` ( `idhours_cy_tc` int(11) NOT NULL AUTO_INCREMENT, `idengage_entity` int(11) DEFAULT NULL, `tc_st_dt` date DEFAULT NULL, `tc_e_dt` date DEFAULT NULL, `tc_due_dt` date DEFAULT NULL, `tc_forcast_hr` varchar(10) DEFAULT NULL, `tc_actual_hr` varchar(10) DEFAULT NULL, `tc_hrs_pcnt` varchar(10) DEFAULT NULL, `hr_approved` char(1) DEFAULT NULL, `show_hide` char(1) DEFAULT NULL COMMENT 'Y or N', `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idhours_cy_tc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hours_hist` -- DROP TABLE IF EXISTS `hours_hist`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hours_hist` ( `idhour_hist` int(11) NOT NULL AUTO_INCREMENT, `hour_id` int(11) DEFAULT NULL, `hr_st_dt` datetime DEFAULT NULL, `hr_e_dt` datetime DEFAULT NULL, `off_time` varchar(5) DEFAULT NULL, `off_tm_nm` varchar(5) DEFAULT NULL, `hr_tol` varchar(5) DEFAULT NULL, `hr_tol_nm` varchar(5) DEFAULT NULL, `iddev_apps` int(11) DEFAULT NULL, `dev_est` int(11) DEFAULT NULL, `dev_est_reqs` int(11) DEFAULT NULL, `hrs_type` varchar(20) DEFAULT NULL COMMENT 'B = Billable, N = Non Billable', `updated` datetime DEFAULT NULL, `updater` int(11) DEFAULT NULL, `iplook_ip_addr` int(11) DEFAULT NULL, `approver` int(11) DEFAULT NULL, `summary` varchar(45) DEFAULT NULL, PRIMARY KEY (`idhour_hist`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hours_time` -- DROP TABLE IF EXISTS `hours_time`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hours_time` ( `timecard_id` int(11) NOT NULL AUTO_INCREMENT, `emp_id` int(9) NOT NULL, `comp_id` int(10) DEFAULT NULL, `timefrom_dt` date DEFAULT NULL, `timeto_dt` date DEFAULT NULL, `timefrom_to_day` int(5) DEFAULT NULL, `bill_hrs` decimal(5,2) DEFAULT NULL, `unbill_hrs` decimal(5,2) DEFAULT NULL, `total_hrs` decimal(5,2) DEFAULT NULL, `validate_dt` date DEFAULT NULL, `validate_by` varchar(10) DEFAULT NULL, `summary` varchar(150) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, `last_updated` date DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`timecard_id`), KEY `fkempid_ts_valid` (`emp_id`), KEY `fk_ts_val_comp_engage` (`comp_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hours_trng` -- DROP TABLE IF EXISTS `hours_trng`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hours_trng` ( `idhours_trng` int(11) NOT NULL AUTO_INCREMENT, `disp_order` int(3) DEFAULT NULL, `train_nm` varchar(45) DEFAULT NULL, `train_desc` varchar(200) DEFAULT NULL, `duration` int(5) DEFAULT NULL, `cnt` int(5) DEFAULT NULL, `practical` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idhours_trng`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hours_trng_doc` -- DROP TABLE IF EXISTS `hours_trng_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hours_trng_doc` ( `idhours_trng_doc` int(11) NOT NULL AUTO_INCREMENT, `idhours_trng` int(11) DEFAULT NULL, `disp_order` int(3) DEFAULT NULL, `trng_desc` varchar(100) DEFAULT NULL, `duration` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, `cloud_link` varchar(100) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idhours_trng_doc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hr_attr_recruit_activity` -- DROP TABLE IF EXISTS `hr_attr_recruit_activity`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hr_attr_recruit_activity` ( `idhr_attr_recruit_activity` int(11) NOT NULL AUTO_INCREMENT, `recruite_act_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`idhr_attr_recruit_activity`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hr_attr_recruite` -- DROP TABLE IF EXISTS `hr_attr_recruite`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hr_attr_recruite` ( `idhr_attr_recruite` int(11) NOT NULL AUTO_INCREMENT, `recruite_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`idhr_attr_recruite`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hr_audit` -- DROP TABLE IF EXISTS `hr_audit`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hr_audit` ( `idhr_audit` int(19) NOT NULL AUTO_INCREMENT, `updated` datetime DEFAULT NULL, `updater` varchar(90) DEFAULT NULL, `table_update` varchar(90) DEFAULT NULL, `action` varchar(5) DEFAULT NULL, `table_id` text, `col1` text, `idlook_menu_pvt_lvl2` int(5) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idhr_audit`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hr_meeting` -- DROP TABLE IF EXISTS `hr_meeting`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hr_meeting` ( `idhr_meeting` int(5) NOT NULL AUTO_INCREMENT, `st_tm_est` time DEFAULT NULL, `e_tm_est` time DEFAULT NULL, `st_tm_ist` time DEFAULT NULL, `e_tm_ist` time DEFAULT NULL, `description` varchar(200) DEFAULT NULL, `attendances` varchar(200) DEFAULT NULL, `scrum_master` varchar(100) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, `updater` int(11) DEFAULT NULL, PRIMARY KEY (`idhr_meeting`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hr_policy` -- DROP TABLE IF EXISTS `hr_policy`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hr_policy` ( `idhr_policy` int(11) NOT NULL AUTO_INCREMENT, `lk_policy` varchar(30) DEFAULT NULL, `lk_policy_desc` varchar(500) DEFAULT NULL, `lk_disp_id` int(5) DEFAULT NULL, `lk_paren_tag_id` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, `lk_policy_text` text, PRIMARY KEY (`idhr_policy`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hr_recruit` -- DROP TABLE IF EXISTS `hr_recruit`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hr_recruit` ( `idhr_recruit` int(11) NOT NULL AUTO_INCREMENT, `recruit_fst_nm` varchar(60) DEFAULT NULL, `recruit_last_nm` varchar(45) DEFAULT NULL, `recruit_open_dt` date DEFAULT NULL, `recruit_close_dt` date DEFAULT NULL, `recruit_level` int(1) DEFAULT NULL COMMENT '1 through 5 for priority', `recruit_smry` varchar(500) DEFAULT NULL, `recruite_dob` date DEFAULT NULL, `recruite_gender` int(5) DEFAULT NULL, `uniq_id_type` int(5) DEFAULT NULL, `uniq_id` varchar(20) DEFAULT NULL, `acc_mgr` int(11) DEFAULT NULL, `call_recv_dt` datetime DEFAULT NULL, `next_call_dt` datetime DEFAULT NULL, `call_note` varchar(100) DEFAULT NULL, `all_call_note` text, `recruit_attempt` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idhr_recruit`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hr_recruit_activity` -- DROP TABLE IF EXISTS `hr_recruit_activity`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hr_recruit_activity` ( `idhr_recruit_activity` int(11) NOT NULL AUTO_INCREMENT, `idhr_recruit` int(11) DEFAULT NULL, `call_recv_dt` date DEFAULT NULL, `emp_id` int(11) DEFAULT NULL, `next_call_dt` date DEFAULT NULL, `call_note` text, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idhr_recruit_activity`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hr_recruit_con` -- DROP TABLE IF EXISTS `hr_recruit_con`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hr_recruit_con` ( `idhr_recruit_con` int(11) NOT NULL AUTO_INCREMENT, `idhr_recruit` int(11) DEFAULT NULL, `contact_id` int(11) DEFAULT NULL COMMENT 'email, cell, work, home', `recruit_con_type` varchar(45) DEFAULT NULL, `summary` varchar(95) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idhr_recruit_con`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hr_recruit_lk` -- DROP TABLE IF EXISTS `hr_recruit_lk`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hr_recruit_lk` ( `idhr_recruit_lk` int(11) NOT NULL AUTO_INCREMENT, `lk_nm` varchar(45) DEFAULT NULL, `lk_nm_desc` varchar(100) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idhr_recruit_lk`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hr_recruit_lk_tag` -- DROP TABLE IF EXISTS `hr_recruit_lk_tag`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hr_recruit_lk_tag` ( `idhr_recruit_lk_tag` int(11) NOT NULL AUTO_INCREMENT, `owner_id` int(11) DEFAULT NULL, `lk_tag` varchar(45) DEFAULT NULL, `lk_tag_desc` varchar(200) DEFAULT NULL, `lk_disp_id` int(5) DEFAULT NULL, `lk_parent_tag_id` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, PRIMARY KEY (`idhr_recruit_lk_tag`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hr_recruit_lk_val` -- DROP TABLE IF EXISTS `hr_recruit_lk_val`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hr_recruit_lk_val` ( `idhr_recruit_lk_val` int(11) NOT NULL AUTO_INCREMENT, `idhr_recruit_lk` int(11) DEFAULT NULL, `lk_val` varchar(45) DEFAULT NULL, `lk_val_desc` varchar(100) DEFAULT NULL, `disp_order` int(1) DEFAULT NULL, `lk_val_par` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idhr_recruit_lk_val`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hr_review_attr` -- DROP TABLE IF EXISTS `hr_review_attr`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hr_review_attr` ( `idhr_review_attr` int(11) NOT NULL AUTO_INCREMENT, `review_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`idhr_review_attr`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hr_review_attr_activity` -- DROP TABLE IF EXISTS `hr_review_attr_activity`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hr_review_attr_activity` ( `idhr_recruite_attr_activity` int(11) NOT NULL AUTO_INCREMENT, `review_act_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`idhr_recruite_attr_activity`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hr_trng` -- DROP TABLE IF EXISTS `hr_trng`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hr_trng` ( `idhr_trng` int(11) NOT NULL AUTO_INCREMENT, `disp_order` int(3) DEFAULT NULL, `train_nm` varchar(45) DEFAULT NULL, `train_desc` varchar(200) DEFAULT NULL, `duration` int(5) DEFAULT NULL, `cnt` int(5) DEFAULT NULL, `practical` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idhr_trng`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hr_trng_doc` -- DROP TABLE IF EXISTS `hr_trng_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hr_trng_doc` ( `idhr_trng_doc` int(11) NOT NULL AUTO_INCREMENT, `idhr_trng` int(11) DEFAULT NULL, `disp_order` int(3) DEFAULT NULL, `trng_desc` varchar(100) DEFAULT NULL, `duration` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, `cloud_link` varchar(100) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idhr_trng_doc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `immi_attr` -- DROP TABLE IF EXISTS `immi_attr`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `immi_attr` ( `idimmi_attr` int(11) NOT NULL AUTO_INCREMENT, `immi_attr_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`idimmi_attr`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `immi_attr_stat` -- DROP TABLE IF EXISTS `immi_attr_stat`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `immi_attr_stat` ( `idimmi_attr_stat` int(11) NOT NULL AUTO_INCREMENT, `immi_attr__statdt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`idimmi_attr_stat`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `immi_audit` -- DROP TABLE IF EXISTS `immi_audit`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `immi_audit` ( `idimmi_audit` int(19) NOT NULL AUTO_INCREMENT, `updated` datetime DEFAULT NULL, `updater` varchar(90) DEFAULT NULL, `table_update` varchar(90) DEFAULT NULL, `action` varchar(5) DEFAULT NULL, `table_id` text, `col1` text, `idlook_menu_pvt_lvl2` int(5) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idimmi_audit`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `immi_lk` -- DROP TABLE IF EXISTS `immi_lk`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `immi_lk` ( `idimmi_lk` int(11) NOT NULL AUTO_INCREMENT, `lk_nm` varchar(45) DEFAULT NULL, `lk_nm_desc` varchar(100) DEFAULT NULL, `disp_order` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `child_lvl` int(3) DEFAULT NULL, PRIMARY KEY (`idimmi_lk`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `immi_lk_val` -- DROP TABLE IF EXISTS `immi_lk_val`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `immi_lk_val` ( `idimmi_lk_val` int(11) NOT NULL AUTO_INCREMENT, `idimmi_lk` int(11) DEFAULT NULL, `lk_val` varchar(100) DEFAULT NULL, `immi_form` char(1) DEFAULT NULL, `updater` varchar(100) DEFAULT NULL, `disp_order` int(11) DEFAULT NULL, `lk_parent_val_id` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `lk_val_desc` varchar(100) DEFAULT NULL, PRIMARY KEY (`idimmi_lk_val`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `immi_lk_wrk_flow` -- DROP TABLE IF EXISTS `immi_lk_wrk_flow`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `immi_lk_wrk_flow` ( `idimmi_lk_wrk_flow` int(11) NOT NULL AUTO_INCREMENT, `wrk_flow_nm` varchar(25) DEFAULT NULL, `id_wrk_flow` int(11) DEFAULT NULL, `wrk_flow_desc` varchar(100) DEFAULT NULL, `id_wrk_flow_parent` int(11) DEFAULT NULL, `look_initial` varchar(5) DEFAULT NULL, `look_restart` varchar(5) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idimmi_lk_wrk_flow`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `immi_qry` -- DROP TABLE IF EXISTS `immi_qry`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `immi_qry` ( `idimmi_qry` int(11) NOT NULL AUTO_INCREMENT, `disp_order` int(5) DEFAULT NULL, `immi_desc` varchar(150) DEFAULT NULL, `immi_desc_detail` text, `updated` datetime DEFAULT NULL, `updater` int(11) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(5) DEFAULT NULL, PRIMARY KEY (`idimmi_qry`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `immi_qry_rcpt` -- DROP TABLE IF EXISTS `immi_qry_rcpt`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `immi_qry_rcpt` ( `idimmi_qry_rcpt` int(11) NOT NULL AUTO_INCREMENT, `idimmi_rcpt` int(11) DEFAULT NULL, `idimmi_qry` int(11) DEFAULT NULL, `rcpt_cnt` int(5) DEFAULT NULL, `rcpt_tol` int(5) DEFAULT NULL, `rcpt_pcnt` varchar(10) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `rcpt_qry_st_dt` datetime DEFAULT NULL, `rcpt_qry_e_dt` datetime DEFAULT NULL, `rcpt_qry_due_dt` datetime DEFAULT NULL, `rcpt_qry_st_e_dt` int(5) DEFAULT NULL, `rcpt_asignee` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idimmi_qry_rcpt`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `immi_qry_rcpt_doc` -- DROP TABLE IF EXISTS `immi_qry_rcpt_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `immi_qry_rcpt_doc` ( `idimmi_qry_rcpt_doc` int(11) NOT NULL AUTO_INCREMENT COMMENT 'New table is immi_receipt_qry_list_doc', `idimmi_qry_rcpt` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, `updater` int(11) NOT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idimmi_qry_rcpt_doc`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `immi_rcpt` -- DROP TABLE IF EXISTS `immi_rcpt`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `immi_rcpt` ( `idimmi_rcpt` int(11) NOT NULL AUTO_INCREMENT, `comp_id` int(10) DEFAULT NULL, `rcpt_no` varchar(45) DEFAULT NULL, `rcpt_par_cnt` int(2) DEFAULT NULL, `rcpt_ch_cnt` int(2) DEFAULT NULL, `rcpt_type` int(5) DEFAULT NULL COMMENT 'AD, h1, L1, I-140, 1-485', `rcpt_type_sub` int(5) DEFAULT NULL, `rcpt_loc_cnt` int(2) DEFAULT NULL, `rcpt_address` varchar(100) DEFAULT NULL, `emp_id` int(11) DEFAULT NULL, `filed_dt` date DEFAULT NULL, `ad_title` int(5) DEFAULT NULL, `occ_code` int(5) DEFAULT NULL, `skill_level` int(5) DEFAULT NULL, `from_dt` date DEFAULT NULL, `to_dt` date DEFAULT NULL, `from_to_dt_days` int(5) DEFAULT NULL, `valid_days` int(5) DEFAULT NULL, `expire_dt` date DEFAULT NULL, `education` int(5) DEFAULT NULL, `exp_yr` int(5) DEFAULT NULL, `sal_type` varchar(10) DEFAULT NULL, `sal_amt` int(10) DEFAULT NULL, `assigned_to` int(11) DEFAULT NULL, `idimmi_lk_wrk_flow` int(5) DEFAULT NULL, `immi_stat_st_dt` date DEFAULT NULL, `immi_stat_e_est_dt` date DEFAULT NULL COMMENT 'Estimate end', `immi_stat_st_e_est_dt` int(5) DEFAULT NULL, `immi_stat_e_real_dt` date DEFAULT NULL, `immi_stat_st_e_real_dt` int(5) DEFAULT NULL, `rcpt_status` int(5) DEFAULT NULL, `immi_stat_cnt` int(3) DEFAULT NULL, `idlook_stat_order` int(11) DEFAULT NULL, `immi_summary` varchar(45) DEFAULT NULL, `all_receipt_smry` text, `updated` datetime DEFAULT NULL, `updater` int(11) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, `old_immi_dt` date DEFAULT NULL, PRIMARY KEY (`idimmi_rcpt`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `immi_rcpt_addr` -- DROP TABLE IF EXISTS `immi_rcpt_addr`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `immi_rcpt_addr` ( `idimmi_rcpt_addr` int(11) NOT NULL AUTO_INCREMENT, `idimmi_rcpt` int(11) DEFAULT NULL, `look_street_no_id` int(11) DEFAULT NULL, `property_type` int(11) DEFAULT NULL, `suite_no` varchar(20) DEFAULT NULL, `tm_zn` varchar(10) DEFAULT NULL, `start_tm` time DEFAULT NULL, `end_tm` time DEFAULT NULL, `hrs_tm` varchar(5) DEFAULT NULL, `off_time` varchar(5) DEFAULT NULL, `days` int(2) DEFAULT NULL COMMENT '1 = Sunday 2.Monday3.Tuesday.4 = Wednesday.5 = Thursday.6 = Friday.7 = Saturday.8 = Monday to Friday.9 = Monday to Saturday.10 = All Day', `day_cy` varchar(6) DEFAULT NULL COMMENT 'Week, Month, Quater', `day_pcnt` varchar(6) DEFAULT NULL, PRIMARY KEY (`idimmi_rcpt_addr`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `immi_rcpt_doc` -- DROP TABLE IF EXISTS `immi_rcpt_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `immi_rcpt_doc` ( `idimmi_rcpt_doc` int(11) NOT NULL AUTO_INCREMENT, `idimmi_rcpt` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, PRIMARY KEY (`idimmi_rcpt_doc`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `immi_rcpt_parent` -- DROP TABLE IF EXISTS `immi_rcpt_parent`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `immi_rcpt_parent` ( `idimmi_rcpt_parent` int(11) NOT NULL AUTO_INCREMENT, `rcpt_parent_id` int(11) DEFAULT NULL, `rcpt_child_id` int(11) DEFAULT NULL, PRIMARY KEY (`idimmi_rcpt_parent`), KEY `fk_immi_rcpt_child_id` (`rcpt_child_id`), KEY `fk_immi_rcpt_parent_id` (`rcpt_parent_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `immi_rcpt_stat` -- DROP TABLE IF EXISTS `immi_rcpt_stat`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `immi_rcpt_stat` ( `idimmi_rcpt_stat` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Old id was status_id', `idimmi_rcpt` int(11) DEFAULT NULL, `rcpt_status` int(5) DEFAULT NULL COMMENT 'reg, ins, app, rvk, q, qs, den, wd', `stat_st_dt` datetime DEFAULT NULL, `stat_e_dt` datetime DEFAULT NULL, `stat_st_e_dt` int(5) DEFAULT NULL, `stat_smry` varchar(30) DEFAULT NULL, `idlook_stat_order` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idimmi_rcpt_stat`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `immi_rcpt_stat_doc` -- DROP TABLE IF EXISTS `immi_rcpt_stat_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `immi_rcpt_stat_doc` ( `idimmi_rcpt_stat_doc` int(11) NOT NULL AUTO_INCREMENT, `idimmi_rcpt_stat` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, PRIMARY KEY (`idimmi_rcpt_stat_doc`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `immi_trng` -- DROP TABLE IF EXISTS `immi_trng`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `immi_trng` ( `idimmi_trng` int(11) NOT NULL AUTO_INCREMENT, `disp_order` int(3) DEFAULT NULL, `train_nm` varchar(45) DEFAULT NULL, `train_desc` varchar(200) DEFAULT NULL, `duration` int(5) DEFAULT NULL, `cnt` int(5) DEFAULT NULL, `practical` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idimmi_trng`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `immi_trng_doc` -- DROP TABLE IF EXISTS `immi_trng_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `immi_trng_doc` ( `idimmi_trng_doc` int(11) NOT NULL AUTO_INCREMENT, `idimmi_trng` int(11) DEFAULT NULL, `disp_order` int(3) DEFAULT NULL, `trng_desc` varchar(100) DEFAULT NULL, `duration` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, `cloud_link` varchar(100) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idimmi_trng_doc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `inv` -- DROP TABLE IF EXISTS `inv`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `inv` ( `idinv` int(11) NOT NULL AUTO_INCREMENT, `from_ref_tab` varchar(45) DEFAULT NULL, `from_ref_id` int(11) DEFAULT NULL, `all_contacts` text, `from_look_street_no_id` int(11) DEFAULT NULL, `from_suite_no` int(15) DEFAULT NULL, `from_address_type` int(11) DEFAULT NULL, `inv_phone` int(15) DEFAULT NULL, `inv_email` varchar(45) DEFAULT NULL, `inv_pre_no` varchar(45) DEFAULT NULL COMMENT 'ATS, ZK, KBC, etc', `invoice_no` int(11) DEFAULT NULL, `inv_post_no` varchar(45) DEFAULT NULL COMMENT 'A, B, A/B, etc', `to_ref_tab` varchar(45) DEFAULT NULL, `to_ref_id` int(11) DEFAULT NULL COMMENT 'emp or comp or prosp_consult', `to_look_street_no_id` int(11) DEFAULT NULL, `to_suite_no` int(11) DEFAULT NULL, `to_address_type` int(5) DEFAULT NULL, `from_dt` date DEFAULT NULL, `to_dt` date DEFAULT NULL, `from_to_dt` int(5) DEFAULT NULL, `billed_dt` date DEFAULT NULL, `due_dt` date DEFAULT NULL, `summary` varchar(500) DEFAULT NULL, `amt_sub` varchar(15) DEFAULT NULL, `amt_tax` varchar(15) DEFAULT NULL, `amt_tol` varchar(15) DEFAULT NULL, `amt_paid` varchar(15) DEFAULT NULL, `amt_paid_pcnt` varchar(10) DEFAULT NULL, `amt_bal` varchar(15) DEFAULT NULL, `visible` char(1) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idinv`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `inv_atten` -- DROP TABLE IF EXISTS `inv_atten`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `inv_atten` ( `idinv_atten` int(11) NOT NULL AUTO_INCREMENT, `idinv` int(11) DEFAULT NULL, `inv_attn_name` varchar(45) DEFAULT NULL, `inv_attn_contact_type` varchar(45) DEFAULT NULL, `inv_attn_contact` varchar(45) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, PRIMARY KEY (`idinv_atten`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `inv_audit` -- DROP TABLE IF EXISTS `inv_audit`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `inv_audit` ( `idinv_audit` int(19) NOT NULL AUTO_INCREMENT, `updated` datetime DEFAULT NULL, `updater` varchar(90) DEFAULT NULL, `table_update` varchar(90) DEFAULT NULL, `action` varchar(5) DEFAULT NULL, `table_id` text, `col1` text, `idlook_menu_pvt_lvl2` int(5) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idinv_audit`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `inv_doc` -- DROP TABLE IF EXISTS `inv_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `inv_doc` ( `idinv_doc` int(11) NOT NULL AUTO_INCREMENT, `idinv` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, PRIMARY KEY (`idinv_doc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `inv_list` -- DROP TABLE IF EXISTS `inv_list`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `inv_list` ( `idinv_list` int(11) NOT NULL AUTO_INCREMENT, `idinv` int(11) DEFAULT NULL, `inv_ref_id` varchar(45) DEFAULT NULL, `inv_ref_tab` varchar(5) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `inv_list_frm_dt` date DEFAULT NULL, `inv_list_to_dt` date DEFAULT NULL, `description` varchar(100) DEFAULT NULL, `qty` varchar(10) DEFAULT NULL, `rate` varchar(10) DEFAULT NULL, `amount` varchar(20) DEFAULT NULL, `tax_rate` varchar(20) DEFAULT NULL, `tax_amount` varchar(20) DEFAULT NULL, PRIMARY KEY (`idinv_list`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `inv_pay` -- DROP TABLE IF EXISTS `inv_pay`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `inv_pay` ( `inv_pay_id` int(11) NOT NULL AUTO_INCREMENT, `pay_frm_ref_tab` varchar(45) DEFAULT NULL, `pay_frm_ref_id` int(11) DEFAULT NULL, `pay_frm_acc_code` varchar(45) DEFAULT NULL, `pay_type` varchar(45) DEFAULT NULL, `pay_type_detail` varchar(45) DEFAULT NULL, `pay_net` float DEFAULT NULL COMMENT 'pay_amt - pay_fees\n', `pay_fee_percent` float DEFAULT NULL, `pay_fees_amt` float DEFAULT '0' COMMENT 'Default = 0 ', `pay_amt` float DEFAULT NULL, `pay_bal` float DEFAULT NULL COMMENT 'pay_net = pay_bal - inv_pay_apply.inv_amt_split', `visible` char(1) DEFAULT NULL, `smry` varchar(100) DEFAULT NULL, `pay_to_ref_tab` varchar(45) DEFAULT NULL, `pay_to_ref_id` int(11) DEFAULT NULL, `pay_to_acc_code` varchar(45) DEFAULT NULL, `pay_dt` date DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`inv_pay_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `inv_pay_apply` -- DROP TABLE IF EXISTS `inv_pay_apply`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `inv_pay_apply` ( `idinv_pay_apply` int(11) NOT NULL AUTO_INCREMENT, `inv_pay_id` int(11) DEFAULT NULL, `idinv` int(11) DEFAULT NULL, `inv_net` varchar(20) DEFAULT NULL, `inv_fee_percent` varchar(20) DEFAULT NULL, `inv_fee_amt` varchar(20) DEFAULT NULL, `inv_amt_split` varchar(20) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idinv_pay_apply`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `inv_pay_apply_amt` -- DROP TABLE IF EXISTS `inv_pay_apply_amt`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `inv_pay_apply_amt` ( `idinv_pay_apply_amt` int(11) NOT NULL AUTO_INCREMENT, `status_ref_id` int(11) DEFAULT NULL, `status_amt_ref_id` int(11) DEFAULT NULL, `status_ref_tab` varchar(45) DEFAULT NULL, `idinv_pay_apply` int(11) DEFAULT NULL, `req_paid_amt` varchar(20) DEFAULT NULL, `req_pay_dt` date DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idinv_pay_apply_amt`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `inv_trng` -- DROP TABLE IF EXISTS `inv_trng`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `inv_trng` ( `idinv_trng` int(11) NOT NULL AUTO_INCREMENT, `disp_order` int(3) DEFAULT NULL, `train_nm` varchar(45) DEFAULT NULL, `train_desc` varchar(200) DEFAULT NULL, `duration` int(5) DEFAULT NULL, `cnt` int(5) DEFAULT NULL, `practical` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idinv_trng`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `inv_trng_doc` -- DROP TABLE IF EXISTS `inv_trng_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `inv_trng_doc` ( `idinv_trng_doc` int(11) NOT NULL AUTO_INCREMENT, `idinv_trng` int(11) DEFAULT NULL, `disp_order` int(3) DEFAULT NULL, `trng_desc` varchar(100) DEFAULT NULL, `duration` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, `cloud_link` varchar(100) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idinv_trng_doc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lk_con` -- DROP TABLE IF EXISTS `lk_con`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lk_con` ( `country_id` int(11) NOT NULL AUTO_INCREMENT, `con_name` varchar(25) DEFAULT NULL, `con_full_name` varchar(25) DEFAULT NULL, `lk_design` varchar(25) DEFAULT NULL, `lk_design_hex` varchar(45) DEFAULT NULL, `con_code` int(5) DEFAULT NULL, `con_digit` int(3) DEFAULT NULL, PRIMARY KEY (`country_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lk_con_st` -- DROP TABLE IF EXISTS `lk_con_st`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lk_con_st` ( `state_id` int(11) NOT NULL AUTO_INCREMENT, `country_id` int(11) DEFAULT NULL, `state_name` varchar(45) DEFAULT NULL, `state_full_name` varchar(100) DEFAULT NULL, PRIMARY KEY (`state_id`), KEY `fk_look_coun_state_idx` (`country_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lk_con_st_conty` -- DROP TABLE IF EXISTS `lk_con_st_conty`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lk_con_st_conty` ( `idlook_county_district` int(11) NOT NULL AUTO_INCREMENT, `state_id` int(11) DEFAULT NULL, `county_district_city_nm` varchar(45) DEFAULT NULL COMMENT 'It could be county, district, or Main city', PRIMARY KEY (`idlook_county_district`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lk_con_st_conty_ct` -- DROP TABLE IF EXISTS `lk_con_st_conty_ct`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lk_con_st_conty_ct` ( `city_id` int(11) NOT NULL AUTO_INCREMENT, `idlook_county_district` int(11) DEFAULT NULL, `city_name` varchar(45) DEFAULT NULL, PRIMARY KEY (`city_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lk_con_st_conty_ct_zip` -- DROP TABLE IF EXISTS `lk_con_st_conty_ct_zip`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lk_con_st_conty_ct_zip` ( `postal_id` int(11) NOT NULL AUTO_INCREMENT, `city_id` int(11) NOT NULL, `zip_code` varchar(45) DEFAULT NULL, PRIMARY KEY (`postal_id`), KEY `city_id` (`city_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lk_con_st_conty_ct_zip_stret` -- DROP TABLE IF EXISTS `lk_con_st_conty_ct_zip_stret`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lk_con_st_conty_ct_zip_stret` ( `look_street_id` int(11) NOT NULL AUTO_INCREMENT, `postal_id` int(11) DEFAULT NULL, `street_name` varchar(100) DEFAULT NULL, `street_type` int(11) DEFAULT NULL, PRIMARY KEY (`look_street_id`), KEY `lk_postal_id` (`postal_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lk_con_st_conty_ct_zip_stret_no` -- DROP TABLE IF EXISTS `lk_con_st_conty_ct_zip_stret_no`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lk_con_st_conty_ct_zip_stret_no` ( `look_street_no_id` int(11) NOT NULL AUTO_INCREMENT, `look_street_id` int(11) DEFAULT NULL, `look_street_no` varchar(25) DEFAULT NULL, PRIMARY KEY (`look_street_no_id`), KEY `lk_street_id` (`look_street_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `log_global` -- DROP TABLE IF EXISTS `log_global`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `log_global` ( `idglb_log` bigint(20) NOT NULL AUTO_INCREMENT, `updated` datetime DEFAULT NULL, `updater` int(11) DEFAULT NULL, `table_update` varchar(200) DEFAULT NULL, `action` varchar(10) DEFAULT NULL, `table_id` int(11) DEFAULT NULL, `col1` text, `idlook_menu_pvt_lvl1` int(5) DEFAULT NULL, `idlook_menu_pvt_lvl2` int(5) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idglb_log`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `look_city` -- DROP TABLE IF EXISTS `look_city`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `look_city` ( `city_id` int(11) NOT NULL AUTO_INCREMENT, `idlook_county_district` int(11) DEFAULT NULL, `city_name` varchar(45) DEFAULT NULL, PRIMARY KEY (`city_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `look_city_bk` -- DROP TABLE IF EXISTS `look_city_bk`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `look_city_bk` ( `city_id` int(11) NOT NULL AUTO_INCREMENT, `idlook_county_district` int(11) DEFAULT NULL, `state_id` int(11) DEFAULT NULL, `city_name` varchar(45) DEFAULT NULL, PRIMARY KEY (`city_id`), KEY `fk_look_state_city_idx` (`state_id`), KEY `lk_state_id` (`state_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `look_country` -- DROP TABLE IF EXISTS `look_country`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `look_country` ( `country_id` int(11) NOT NULL AUTO_INCREMENT, `con_name` varchar(25) DEFAULT NULL, `con_full_name` varchar(25) DEFAULT NULL, `lk_design` varchar(25) DEFAULT NULL, `lk_design_hex` varchar(45) DEFAULT NULL, `con_code` int(5) DEFAULT NULL, `con_digit` int(3) DEFAULT NULL, PRIMARY KEY (`country_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `look_county_district` -- DROP TABLE IF EXISTS `look_county_district`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `look_county_district` ( `idlook_county_district` int(11) NOT NULL AUTO_INCREMENT, `state_id` int(11) DEFAULT NULL, `county_district_city_nm` varchar(45) DEFAULT NULL COMMENT 'It could be county, district, or Main city', PRIMARY KEY (`idlook_county_district`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `look_ip_addr` -- DROP TABLE IF EXISTS `look_ip_addr`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `look_ip_addr` ( `idlook_ip_addr` int(11) NOT NULL AUTO_INCREMENT, `ip_address` varchar(45) DEFAULT NULL, `domain_nm` text, `ip_contry` varchar(45) DEFAULT NULL, `ip_state` varchar(45) DEFAULT NULL, `ip_city` varchar(45) DEFAULT NULL, `ip_post_code` varchar(45) DEFAULT NULL, `updater` int(11) DEFAULT NULL COMMENT 'If null the system', `updated` datetime DEFAULT NULL, PRIMARY KEY (`idlook_ip_addr`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `look_menu_emp_log` -- DROP TABLE IF EXISTS `look_menu_emp_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `look_menu_emp_log` ( `idlook_menu_emp_log` int(11) NOT NULL AUTO_INCREMENT, `emp_id` int(11) DEFAULT NULL, `idlook_menu_pvt_lvl1` int(11) DEFAULT NULL, `idlook_menu_pvt_lvl2` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idlook_menu_emp_log`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `look_menu_pub` -- DROP TABLE IF EXISTS `look_menu_pub`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `look_menu_pub` ( `idlook_menu_pub` int(11) NOT NULL AUTO_INCREMENT, `lk_menu` varchar(200) DEFAULT NULL, `lk_menu_title` varchar(250) DEFAULT NULL, `lk_menu_path` varchar(250) DEFAULT NULL, `lk_disp_id` int(5) DEFAULT NULL, `lk_sub_val_id` int(11) DEFAULT NULL, `lk_menu_text` text, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idlook_menu_pub`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `look_menu_pub_con` -- DROP TABLE IF EXISTS `look_menu_pub_con`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `look_menu_pub_con` ( `idlook_menu_pub_con` int(11) NOT NULL AUTO_INCREMENT, `lk_title` varchar(45) DEFAULT NULL, `lk_desc` varchar(500) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `lk_show` char(1) DEFAULT NULL COMMENT 'Y or N', `lk_css` char(1) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idlook_menu_pub_con`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `look_menu_pvt` -- DROP TABLE IF EXISTS `look_menu_pvt`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `look_menu_pvt` ( `idlook_menu_pvt` int(11) NOT NULL AUTO_INCREMENT, `lk_values` varchar(200) DEFAULT NULL, `lk_design` varchar(45) DEFAULT NULL, `lk_value_desc` varchar(250) DEFAULT NULL, `lk_value_code` varchar(10) DEFAULT NULL, `lk_admin` varchar(3) DEFAULT NULL, `lk_display_id` int(5) DEFAULT NULL, `lk_sub_value_id` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idlook_menu_pvt`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `look_postal` -- DROP TABLE IF EXISTS `look_postal`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `look_postal` ( `postal_id` int(11) NOT NULL AUTO_INCREMENT, `city_id` int(11) NOT NULL, `zip_code` varchar(45) DEFAULT NULL, PRIMARY KEY (`postal_id`), KEY `city_id` (`city_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `look_state` -- DROP TABLE IF EXISTS `look_state`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `look_state` ( `state_id` int(11) NOT NULL AUTO_INCREMENT, `country_id` int(11) DEFAULT NULL, `state_name` varchar(45) DEFAULT NULL, `state_full_name` varchar(100) DEFAULT NULL, PRIMARY KEY (`state_id`), KEY `fk_look_coun_state_idx` (`country_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `look_street` -- DROP TABLE IF EXISTS `look_street`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `look_street` ( `look_street_id` int(11) NOT NULL AUTO_INCREMENT, `postal_id` int(11) DEFAULT NULL, `street_name` varchar(100) DEFAULT NULL, `street_type` int(11) DEFAULT NULL, PRIMARY KEY (`look_street_id`), KEY `lk_postal_id` (`postal_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `look_street_no` -- DROP TABLE IF EXISTS `look_street_no`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `look_street_no` ( `look_street_no_id` int(11) NOT NULL AUTO_INCREMENT, `look_street_id` int(11) DEFAULT NULL, `look_street_no` varchar(25) DEFAULT NULL, PRIMARY KEY (`look_street_no_id`), KEY `lk_street_id` (`look_street_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `look_survey` -- DROP TABLE IF EXISTS `look_survey`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `look_survey` ( `idlook_survey` int(11) NOT NULL AUTO_INCREMENT, `lk_sec_ques_ans` text, `updater` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, PRIMARY KEY (`idlook_survey`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `look_survey_flow` -- DROP TABLE IF EXISTS `look_survey_flow`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `look_survey_flow` ( `idlook_survey_flow` int(11) NOT NULL AUTO_INCREMENT, `idlook_survey` int(11) DEFAULT NULL, `survey_name` varchar(45) DEFAULT NULL, `look_sub_survey_id` int(11) DEFAULT NULL, `survey_text` varchar(45) DEFAULT NULL, `survey_points` int(2) DEFAULT NULL, `survey_order` int(2) DEFAULT NULL, `survey_type` varchar(10) DEFAULT NULL COMMENT 'S = Section, Q = question, etc, later change it to int(5)', `updater` int(5) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, PRIMARY KEY (`idlook_survey_flow`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mkt_assist_inc` -- DROP TABLE IF EXISTS `mkt_assist_inc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mkt_assist_inc` ( `idmkt_assist_inc` int(11) NOT NULL AUTO_INCREMENT, `emp_id` int(11) DEFAULT NULL, `idmkt_lk_val` int(11) DEFAULT NULL, `assist_from_dt` datetime DEFAULT NULL, `assist_to_dt` datetime DEFAULT NULL, `assist_amt` varchar(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idmkt_assist_inc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mkt_assist_stat_amt` -- DROP TABLE IF EXISTS `mkt_assist_stat_amt`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mkt_assist_stat_amt` ( `idmkt_assist_stat_amt` int(11) NOT NULL AUTO_INCREMENT, `idmkt_assist_stat` int(11) DEFAULT NULL, `assist_amt` varchar(10) DEFAULT NULL, `assist_action` varchar(15) DEFAULT NULL COMMENT '(approve, denial, pending)', `assist_action_by` int(11) DEFAULT NULL, `assist_bal` varchar(10) DEFAULT NULL, `assist_paid` varchar(10) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idmkt_assist_stat_amt`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mkt_attr` -- DROP TABLE IF EXISTS `mkt_attr`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mkt_attr` ( `idmkt_attr` int(11) NOT NULL AUTO_INCREMENT, `immi_attr_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`idmkt_attr`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mkt_attr_open` -- DROP TABLE IF EXISTS `mkt_attr_open`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mkt_attr_open` ( `idmkt_attr_open` int(11) NOT NULL AUTO_INCREMENT, `immi_attr_open_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`idmkt_attr_open`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mkt_attr_stat` -- DROP TABLE IF EXISTS `mkt_attr_stat`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mkt_attr_stat` ( `idmkt_attr_stat` int(11) NOT NULL AUTO_INCREMENT, `immi_attr_stat_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`idmkt_attr_stat`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mkt_audit` -- DROP TABLE IF EXISTS `mkt_audit`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mkt_audit` ( `idmkt_audit` int(19) NOT NULL AUTO_INCREMENT, `updated` datetime DEFAULT NULL, `updater` varchar(90) DEFAULT NULL, `table_update` varchar(90) DEFAULT NULL, `action` varchar(5) DEFAULT NULL, `table_id` text, `col1` text, `idlook_menu_pvt_lvl2` int(5) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idmkt_audit`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mkt_comp` -- DROP TABLE IF EXISTS `mkt_comp`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mkt_comp` ( `idmkt_comp` int(11) NOT NULL AUTO_INCREMENT, `companyname` varchar(100) DEFAULT NULL, `company_info` varchar(500) DEFAULT NULL, `comp_website` varchar(45) DEFAULT NULL, `comp_phone` varchar(45) DEFAULT NULL, `comp_email` varchar(45) DEFAULT NULL, `acc_mgr` int(11) DEFAULT NULL, `req_type` int(11) DEFAULT NULL, `track` varchar(10) DEFAULT NULL, `block` varchar(10) DEFAULT NULL, `block_dt` date DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idmkt_comp`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mkt_comp_open` -- DROP TABLE IF EXISTS `mkt_comp_open`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mkt_comp_open` ( `idmkt_comp_open` int(11) NOT NULL AUTO_INCREMENT, `idmkt_comp_ven` int(11) DEFAULT NULL, `idmkt_comp_client` int(11) DEFAULT NULL, `acc_mgr` int(11) DEFAULT NULL, `req_type` int(11) DEFAULT NULL, `open_dt` date DEFAULT NULL, `loc_state` int(11) DEFAULT NULL, `loc_city` int(11) DEFAULT NULL, `contact_info` varchar(100) DEFAULT NULL, `source` int(5) DEFAULT NULL, `open_details` varchar(1000) DEFAULT NULL, `close_dt` date DEFAULT NULL, `open_close_day` int(5) DEFAULT NULL COMMENT 'Delete this', `open_cnt` int(5) DEFAULT NULL, `open_tol` int(5) DEFAULT NULL, `open_pcnt` varchar(10) DEFAULT NULL, `assist_cnt` int(5) DEFAULT NULL, `summary` varchar(100) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` varchar(45) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, `old_comp_dt` date DEFAULT NULL, PRIMARY KEY (`idmkt_comp_open`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mkt_comp_open_assist` -- DROP TABLE IF EXISTS `mkt_comp_open_assist`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mkt_comp_open_assist` ( `idmkt_comp_open_assist` int(11) NOT NULL AUTO_INCREMENT, `idmkt_comp_open` int(11) DEFAULT NULL, `assist_id` int(11) DEFAULT NULL, `assist_st_dt` date DEFAULT NULL, `assist_e_dt` date DEFAULT NULL, `idmkt_wrk_flow` int(5) DEFAULT NULL, `assist_rate` varchar(10) DEFAULT NULL, `summary` varchar(100) DEFAULT NULL, `assist_status` int(5) DEFAULT NULL, `stat_e_dt_pre` date DEFAULT NULL, `stat_lag_tm` int(11) DEFAULT NULL, `stat_st_dt` date DEFAULT NULL, `stat_e_dt` date DEFAULT NULL, `no_days` int(5) DEFAULT NULL, `assist_stat_cnt` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `idlook_stat_order` int(5) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, `old_assist_dt` date DEFAULT NULL, `old_stat_dt` date DEFAULT NULL, PRIMARY KEY (`idmkt_comp_open_assist`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mkt_comp_open_assist_stat` -- DROP TABLE IF EXISTS `mkt_comp_open_assist_stat`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mkt_comp_open_assist_stat` ( `idmkt_comp_open_assist_stat` int(11) NOT NULL AUTO_INCREMENT, `idmkt_comp_open_assist` int(11) DEFAULT NULL, `assist_status` int(5) DEFAULT NULL, `stat_e_dt_pre` date DEFAULT NULL, `stat_lag_tm` int(5) DEFAULT NULL, `stat_st_dt` date DEFAULT NULL, `stat_e_dt` date DEFAULT NULL, `no_days_stat` int(5) DEFAULT NULL, `updated` datetime DEFAULT NULL, `updater` int(11) DEFAULT NULL, `idlook_stat_order` int(5) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idmkt_comp_open_assist_stat`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mkt_comp_open_assist_stat_step` -- DROP TABLE IF EXISTS `mkt_comp_open_assist_stat_step`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mkt_comp_open_assist_stat_step` ( `idmkt_comp_open_assist_stat_step` int(11) NOT NULL AUTO_INCREMENT, `idmkt_comp_open_assist_stat` int(11) DEFAULT NULL, `mkt_step_detail` varchar(100) DEFAULT NULL, `updated` datetime DEFAULT NULL, `updater` int(11) DEFAULT NULL, PRIMARY KEY (`idmkt_comp_open_assist_stat_step`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mkt_lk` -- DROP TABLE IF EXISTS `mkt_lk`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mkt_lk` ( `idmkt_lk` int(11) NOT NULL AUTO_INCREMENT, `mkt_name` varchar(45) DEFAULT NULL, `mkt_name_desc` varchar(100) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `child_lvl` int(3) DEFAULT NULL, PRIMARY KEY (`idmkt_lk`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mkt_lk_val` -- DROP TABLE IF EXISTS `mkt_lk_val`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mkt_lk_val` ( `idmkt_lk_val` int(11) NOT NULL AUTO_INCREMENT, `idmkt_lk` int(11) DEFAULT NULL, `mkt_value` varchar(45) DEFAULT NULL, `mkt_value_desc` varchar(100) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `lk_val_par` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idmkt_lk_val`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mkt_lk_wrk_flow` -- DROP TABLE IF EXISTS `mkt_lk_wrk_flow`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mkt_lk_wrk_flow` ( `idmkt_wrk_flow` int(11) NOT NULL AUTO_INCREMENT, `wrk_flow_nm` varchar(45) DEFAULT NULL, `id_wrk_flow` int(11) DEFAULT NULL, `wrk_flow_desc` varchar(100) DEFAULT NULL, `id_wrk_flow_parent` int(11) DEFAULT NULL, `look_initial` varchar(5) DEFAULT NULL, `look_restart` varchar(5) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, PRIMARY KEY (`idmkt_wrk_flow`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mkt_trng` -- DROP TABLE IF EXISTS `mkt_trng`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mkt_trng` ( `idmkt_trng` int(11) NOT NULL AUTO_INCREMENT, `disp_order` int(3) DEFAULT NULL, `train_nm` varchar(45) DEFAULT NULL, `train_desc` varchar(200) DEFAULT NULL, `duration` int(5) DEFAULT NULL, `cnt` int(5) DEFAULT NULL, `practical` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idmkt_trng`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mkt_trng_doc` -- DROP TABLE IF EXISTS `mkt_trng_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mkt_trng_doc` ( `idmkt_trng_doc` int(11) NOT NULL AUTO_INCREMENT, `idmkt_trng` int(11) DEFAULT NULL, `disp_order` int(3) DEFAULT NULL, `trng_desc` varchar(100) DEFAULT NULL, `duration` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, `cloud_link` varchar(100) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idmkt_trng_doc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `msg` -- DROP TABLE IF EXISTS `msg`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `msg` ( `idmsg` int(11) NOT NULL AUTO_INCREMENT, `msg_type` varchar(45) NOT NULL COMMENT 'Mail or Chat', `msg_subject` varchar(150) DEFAULT NULL, `msg_body` varchar(1000) DEFAULT NULL, `msg_size` varchar(10) DEFAULT NULL, `idmsg_parent` int(11) DEFAULT NULL, `msg_last` char(1) DEFAULT NULL, `idmsg_sender` int(11) DEFAULT NULL, `idmsg_recv` text, `msg_send_recv` text, `idmsg_recv_mn` text, `msg_dt` datetime DEFAULT NULL, `msg_dt_ms` int(11) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idmsg`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `msg_recver` -- DROP TABLE IF EXISTS `msg_recver`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `msg_recver` ( `idmsg_recver` int(11) NOT NULL AUTO_INCREMENT, `idmsg` int(11) DEFAULT NULL, `msg_recver` int(11) DEFAULT NULL, `msg_recver_dt` datetime DEFAULT NULL, `msg_flag` int(5) DEFAULT NULL COMMENT '1=High, 5=Low', `msg_folder` varchar(45) DEFAULT NULL COMMENT 'Inbox, Archive, Sent, Trash', PRIMARY KEY (`idmsg_recver`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `msg_sender` -- DROP TABLE IF EXISTS `msg_sender`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `msg_sender` ( `idmsg_sender` int(11) NOT NULL AUTO_INCREMENT, `idmsg` int(11) DEFAULT NULL, `msg_sender` int(11) DEFAULT NULL, `msg_sender_dt` datetime DEFAULT NULL, `msg_flag` int(5) DEFAULT NULL COMMENT '1=High, 5=Low', `msg_folder` varchar(45) DEFAULT NULL COMMENT 'Inbox, Archive, Sent, Trash', PRIMARY KEY (`idmsg_sender`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `msg_usr` -- DROP TABLE IF EXISTS `msg_usr`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `msg_usr` ( `idmsg_usr` int(11) NOT NULL AUTO_INCREMENT, `idusr1` int(11) DEFAULT NULL, `idusr2` int(11) DEFAULT NULL, `idusr_contacts` text, `add_dt` date DEFAULT NULL, `action_dt` date DEFAULT NULL, `curr_stat` char(1) DEFAULT NULL COMMENT 'B=Blocked', PRIMARY KEY (`idmsg_usr`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_acc_list` -- DROP TABLE IF EXISTS `net_acc_list`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_acc_list` ( `idnet_acc_list` int(11) NOT NULL AUTO_INCREMENT, `acc_nm` varchar(45) DEFAULT NULL, `acc_usr_nm` varchar(100) DEFAULT NULL, `acc_usr_pswd` varchar(45) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, PRIMARY KEY (`idnet_acc_list`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_attr_dt` -- DROP TABLE IF EXISTS `net_attr_dt`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_attr_dt` ( `idnet_attr_dt` int(11) NOT NULL AUTO_INCREMENT, `net_attr_tab` varchar(45) DEFAULT NULL, `net_attr_st_dt` varchar(45) DEFAULT NULL, `net_attr_till_dt` varchar(45) DEFAULT NULL, `net_att_cnt` int(5) DEFAULT NULL, `net_attr_reset_dt` varchar(45) DEFAULT NULL, `net_interim_dt` date DEFAULT NULL COMMENT 'Received while function running.', PRIMARY KEY (`idnet_attr_dt`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_audit` -- DROP TABLE IF EXISTS `net_audit`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_audit` ( `idnet_audit` int(19) NOT NULL AUTO_INCREMENT, `updated` datetime DEFAULT NULL, `updater` varchar(90) DEFAULT NULL, `table_update` varchar(90) DEFAULT NULL, `action` varchar(5) DEFAULT NULL, `table_id` text, `col1` text, `idlook_menu_pvt_lvl2` int(5) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idnet_audit`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_blk_dm` -- DROP TABLE IF EXISTS `net_blk_dm`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_blk_dm` ( `idnet_blk_dm` int(11) NOT NULL AUTO_INCREMENT, `domain_nm` varchar(45) DEFAULT NULL, `domain_reason` varchar(100) DEFAULT NULL, `blk_rqtr` int(11) DEFAULT NULL, `blk_by` int(11) DEFAULT NULL, `blk_date` datetime DEFAULT NULL, `blk_type` varchar(45) DEFAULT NULL COMMENT 'Blocked / Unsubscribed', `updater` int(11) DEFAULT NULL, `updated_on` datetime DEFAULT NULL, PRIMARY KEY (`idnet_blk_dm`), UNIQUE KEY `domain_nm_UNIQUE` (`domain_nm`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_blk_ip` -- DROP TABLE IF EXISTS `net_blk_ip`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_blk_ip` ( `idnet_blk_ip` int(11) NOT NULL AUTO_INCREMENT, `ip_address` varchar(45) DEFAULT NULL, `cnt_blk` int(11) DEFAULT NULL, `hostname` varchar(95) DEFAULT NULL, `city` varchar(45) DEFAULT NULL, `region` varchar(45) DEFAULT NULL, `country` varchar(45) DEFAULT NULL, `blk_by` varchar(15) DEFAULT NULL, `blk_dt` datetime DEFAULT NULL, `allow` char(1) DEFAULT NULL, PRIMARY KEY (`idnet_blk_ip`), UNIQUE KEY `ip_address_UNIQUE` (`ip_address`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_blk_ip_ser` -- DROP TABLE IF EXISTS `net_blk_ip_ser`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_blk_ip_ser` ( `idnet_blk_ip_ser` int(11) NOT NULL AUTO_INCREMENT, `idnet_blk_ip` int(11) DEFAULT NULL, `idnet_ser` int(11) DEFAULT NULL, `blk_ser_by` varchar(15) DEFAULT NULL, `blk_ser_dt` datetime DEFAULT NULL, `allow` char(1) DEFAULT NULL COMMENT 'Y / N', PRIMARY KEY (`idnet_blk_ip_ser`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_data` -- DROP TABLE IF EXISTS `net_data`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_data` ( `idnet_data_exe` int(11) NOT NULL AUTO_INCREMENT, `net_script_nm` varchar(45) DEFAULT NULL, `script_st_tm` datetime DEFAULT NULL, `net_script_frm` varchar(45) DEFAULT NULL COMMENT 'Menu name', `is_running` char(1) DEFAULT NULL, `net_attr_tab` varchar(45) DEFAULT NULL, `net_attr_st_dt` text, `net_attr_till_dt` varchar(45) DEFAULT NULL, `net_att_cnt` int(5) DEFAULT NULL, `net_attr_reset_dt` varchar(45) DEFAULT NULL, `net_interim_dt` date DEFAULT NULL, PRIMARY KEY (`idnet_data_exe`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_demo_tbl` -- DROP TABLE IF EXISTS `net_demo_tbl`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_demo_tbl` ( `idnet_demo_tbl` int(11) NOT NULL AUTO_INCREMENT, `table_name` varchar(45) DEFAULT NULL, `updater` varchar(45) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idnet_demo_tbl`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_demo_tbl2` -- DROP TABLE IF EXISTS `net_demo_tbl2`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_demo_tbl2` ( `idnet_demo_tbl2` int(11) NOT NULL AUTO_INCREMENT, `disp_order` int(5) DEFAULT NULL, `ins_stat` text, PRIMARY KEY (`idnet_demo_tbl2`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_domain_fwd` -- DROP TABLE IF EXISTS `net_domain_fwd`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_domain_fwd` ( `idnet_domain_fwd` int(11) NOT NULL AUTO_INCREMENT, `url_rcvd` text, `url_fwd` text, `updater` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, PRIMARY KEY (`idnet_domain_fwd`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_email_alias` -- DROP TABLE IF EXISTS `net_email_alias`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_email_alias` ( `idnet_email_alias` int(11) NOT NULL AUTO_INCREMENT, `idnet_emails` int(11) DEFAULT NULL, `idnet_emails_alias` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idnet_email_alias`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_email_fwd` -- DROP TABLE IF EXISTS `net_email_fwd`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_email_fwd` ( `idnet_email_fwd` int(11) NOT NULL AUTO_INCREMENT, `idnet_emails` int(11) DEFAULT NULL, `idnet_emails_fwd` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idnet_email_fwd`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_emails` -- DROP TABLE IF EXISTS `net_emails`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_emails` ( `idnet_emails` int(11) NOT NULL AUTO_INCREMENT, `nm_email` varchar(25) DEFAULT NULL, `email_type` varchar(10) DEFAULT NULL, `email_alias` varchar(100) DEFAULT NULL, `email_fwd` varchar(100) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `email_smry` varchar(100) DEFAULT NULL COMMENT 'assignee password, other info', PRIMARY KEY (`idnet_emails`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_entry` -- DROP TABLE IF EXISTS `net_entry`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_entry` ( `idnet_entry` int(11) NOT NULL AUTO_INCREMENT, `emp_id` int(11) DEFAULT NULL, `emp_pincode` varchar(10) DEFAULT NULL, `pin_smry` varchar(45) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idnet_entry`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_entry2` -- DROP TABLE IF EXISTS `net_entry2`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_entry2` ( `idnet_entry2` int(11) NOT NULL AUTO_INCREMENT, `net_key` varchar(45) DEFAULT NULL, PRIMARY KEY (`idnet_entry2`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_mail_rec` -- DROP TABLE IF EXISTS `net_mail_rec`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_mail_rec` ( `idnet_mail_rec` int(2) NOT NULL AUTO_INCREMENT, `rec_email_addr` varchar(45) DEFAULT NULL, `desc` varchar(200) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idnet_mail_rec`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_mail_send` -- DROP TABLE IF EXISTS `net_mail_send`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_mail_send` ( `idnet_mail_send` int(3) NOT NULL AUTO_INCREMENT, `mail_server_port` int(11) DEFAULT NULL COMMENT 'Smtp, http, etc', `user_id` varchar(45) DEFAULT NULL, `pass_word` varchar(45) DEFAULT NULL, `encrypt_pswd` varchar(256) DEFAULT NULL, `send_stat` varchar(10) DEFAULT NULL COMMENT 'Y Or N', `usage_order` int(2) DEFAULT NULL COMMENT '1, 2, 3, 4, 5, 6 ……', `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idnet_mail_send`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 MAX_ROWS=999999999 COMMENT='Used to store Mail Server details'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_script` -- DROP TABLE IF EXISTS `net_script`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_script` ( `idnet_script` int(11) NOT NULL AUTO_INCREMENT, `script_nm` varchar(45) DEFAULT NULL, `script_typ` varchar(10) DEFAULT NULL, `script_desc` varchar(200) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `cnt_log` int(11) DEFAULT NULL, `script_field` char(1) DEFAULT NULL, `script_col_nm` text, PRIMARY KEY (`idnet_script`), UNIQUE KEY `script_nm_UNIQUE` (`script_nm`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_script_key` -- DROP TABLE IF EXISTS `net_script_key`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_script_key` ( `idnet_script_key` int(11) NOT NULL AUTO_INCREMENT, `idnet_script` int(11) DEFAULT NULL, `api_url_loc` varchar(95) DEFAULT NULL, `api_passkey` varchar(45) DEFAULT NULL, `api_disp_order` int(2) DEFAULT NULL, PRIMARY KEY (`idnet_script_key`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_script_run` -- DROP TABLE IF EXISTS `net_script_run`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_script_run` ( `idnet_script_run` int(11) NOT NULL AUTO_INCREMENT, `idnet_script` int(11) DEFAULT NULL, `idnet_ser` int(11) DEFAULT NULL, `run_tm` int(11) DEFAULT NULL COMMENT 'In min i.e 5 min, 60 etc', `start_dt` date DEFAULT NULL, `last_run_tm` datetime DEFAULT NULL, `run_result` varchar(45) DEFAULT NULL COMMENT 'Fail / Success', `script_end` datetime DEFAULT NULL, `cnt_log` int(11) DEFAULT NULL, PRIMARY KEY (`idnet_script_run`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_script_run_log` -- DROP TABLE IF EXISTS `net_script_run_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_script_run_log` ( `idnet_script_run_log` int(11) NOT NULL AUTO_INCREMENT, `idnet_script` int(11) DEFAULT NULL, `idnet_script_run` int(11) DEFAULT NULL, `idnet_ser` int(11) DEFAULT NULL, `run_result` varchar(45) DEFAULT NULL COMMENT 'Fail / Success', `run_dt` datetime DEFAULT NULL, `run_by` varchar(45) DEFAULT NULL COMMENT 'Who am I', `updater` int(11) DEFAULT NULL COMMENT 'From php emp_id', `script_end` datetime DEFAULT NULL, PRIMARY KEY (`idnet_script_run_log`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_secure` -- DROP TABLE IF EXISTS `net_secure`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_secure` ( `idnet_secure` int(11) NOT NULL AUTO_INCREMENT, `access_fnm` varchar(45) DEFAULT NULL, `hostnm` varchar(45) DEFAULT NULL, `access_brsw` varchar(45) DEFAULT NULL, `access_by` int(11) DEFAULT NULL, `access_dt` datetime DEFAULT NULL, `menu_main` varchar(45) DEFAULT NULL, `menu_sub` varchar(45) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` varchar(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idnet_secure`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_ser` -- DROP TABLE IF EXISTS `net_ser`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_ser` ( `idnet_ser` int(11) NOT NULL AUTO_INCREMENT, `emp_id` int(11) DEFAULT NULL, `idasset_comp` int(11) DEFAULT NULL, `emp_use_frm_dt` date DEFAULT NULL, `emp_use_to` date DEFAULT NULL, `hostnm` varchar(10) DEFAULT NULL, `dep_usr` varchar(25) DEFAULT NULL, `host_conf` varchar(100) DEFAULT NULL, `hosted` varchar(100) DEFAULT NULL, `hostdm` varchar(25) DEFAULT NULL, `hostdm_multi` varchar(100) DEFAULT NULL, `host_type` varchar(45) DEFAULT NULL, `host_mst` varchar(10) DEFAULT NULL, `ip_lan` varchar(45) DEFAULT NULL, `ip_wan` varchar(45) DEFAULT NULL, `ip_usr` varchar(45) DEFAULT NULL, `gateway` varchar(10) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated_on` datetime DEFAULT NULL, `cnt_ser_blk` int(5) DEFAULT NULL, `cnt_db_blk` int(5) DEFAULT NULL, `cnt_blk_updated` datetime DEFAULT NULL, `dis_tot` float DEFAULT NULL, `dis_use` float DEFAULT NULL, `dis_free` float DEFAULT NULL, `dis_pcnt` varchar(5) DEFAULT NULL, `cnt_dis` int(5) DEFAULT NULL, `dis_grp_ser_stat` char(1) DEFAULT NULL, `ser_stat_updated` datetime DEFAULT NULL, `disc_chk_access` char(1) DEFAULT NULL, `chk_access_updated` datetime DEFAULT NULL, `dis_tol_grp` float DEFAULT NULL, `dis_mir_lvl` int(2) DEFAULT NULL, `dis_free_grp` float DEFAULT NULL, `dis_updated` datetime DEFAULT NULL, `cpu_dt_tm` date DEFAULT NULL, `users_load` varchar(5) DEFAULT NULL, `sys_load` varchar(5) DEFAULT NULL, `io_wait` varchar(5) DEFAULT NULL, `idle_wait` varchar(5) DEFAULT NULL, `cnt_ser_stat` int(5) DEFAULT NULL COMMENT 'Will count value “restart” of ner_ser_cpu ', `cpu_updated` datetime DEFAULT NULL, PRIMARY KEY (`idnet_ser`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_ser_clone` -- DROP TABLE IF EXISTS `net_ser_clone`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_ser_clone` ( `idnet_clone` int(11) NOT NULL AUTO_INCREMENT, `idnet_ser` int(11) DEFAULT NULL, `mst_app` varchar(45) DEFAULT NULL, `cloned_app` varchar(45) DEFAULT NULL, `code_bk` int(3) DEFAULT NULL, `db_bk` int(3) DEFAULT NULL, `valid_days` int(11) DEFAULT NULL, `validity` datetime DEFAULT NULL, `synced` datetime DEFAULT NULL, `devops` date DEFAULT NULL, `beta` date DEFAULT NULL, `live` date DEFAULT NULL, `old_code` date DEFAULT NULL, `alert_days` int(11) DEFAULT NULL, `app_url` varchar(45) DEFAULT NULL, `excluded` text, `deleted_on` datetime DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated_on` datetime DEFAULT NULL, PRIMARY KEY (`idnet_clone`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_ser_cpu` -- DROP TABLE IF EXISTS `net_ser_cpu`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_ser_cpu` ( `idnet_ser_cpu` int(11) NOT NULL AUTO_INCREMENT, `idnet_ser` int(11) DEFAULT NULL, `cpu_dt` date DEFAULT NULL, `cpu_tm` varchar(25) DEFAULT NULL, `users_load` varchar(10) DEFAULT NULL, `sys_load` varchar(10) DEFAULT NULL, `io_wait` varchar(10) DEFAULT NULL, `idle_wait` varchar(10) DEFAULT NULL, `ser_stat` varchar(10) DEFAULT NULL, `del_dt` int(11) DEFAULT NULL, `del_day` int(3) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idnet_ser_cpu`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_ser_dis` -- DROP TABLE IF EXISTS `net_ser_dis`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_ser_dis` ( `idnet_ser_dis` int(11) NOT NULL AUTO_INCREMENT, `idnet_ser` int(11) DEFAULT NULL, `dis_tot` float DEFAULT NULL, `dis_use` float DEFAULT NULL, `dis_free` float DEFAULT NULL, `dis_pcnt` varchar(45) DEFAULT NULL, `updater` varchar(45) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idnet_ser_dis`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_ser_net` -- DROP TABLE IF EXISTS `net_ser_net`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_ser_net` ( `idnet_ser_net` int(11) NOT NULL AUTO_INCREMENT, `idnet_ser` int(11) DEFAULT NULL, `net_port_dt` date DEFAULT NULL, `net_port_tm` varchar(25) DEFAULT NULL, `net_port` varchar(10) DEFAULT NULL COMMENT 'Eth0', `recv_kBs` varchar(20) DEFAULT NULL COMMENT 'Packets received div by 1024 to get MB /s ', `sent_kBs` varchar(20) DEFAULT NULL COMMENT 'Packets received div by 1024 to get MB /s ', `tol_kBs` varchar(20) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` varchar(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idnet_ser_net`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_tb_vw` -- DROP TABLE IF EXISTS `net_tb_vw`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_tb_vw` ( `idnet_tb_vw` int(5) NOT NULL AUTO_INCREMENT, `deploy` char(1) DEFAULT NULL, `updated_on` datetime DEFAULT NULL, `qry` longtext, `updater` varchar(20) DEFAULT NULL, PRIMARY KEY (`idnet_tb_vw`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_tb_vw_ser` -- DROP TABLE IF EXISTS `net_tb_vw_ser`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_tb_vw_ser` ( `idnet_tb_vw_ser` int(11) NOT NULL AUTO_INCREMENT, `idnet_tb_vw` int(11) DEFAULT NULL, `idnet_clone` int(11) DEFAULT NULL COMMENT 'From live1 column', `cloned_app` varchar(15) DEFAULT NULL, `updated_on` datetime DEFAULT NULL, PRIMARY KEY (`idnet_tb_vw_ser`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_tb_vw_ser_app` -- DROP TABLE IF EXISTS `net_tb_vw_ser_app`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_tb_vw_ser_app` ( `idnet_tb_vw_ser_app` int(11) NOT NULL AUTO_INCREMENT, `idnet_tb_vw_ser` int(11) DEFAULT NULL, `idnet_clone` int(11) DEFAULT NULL, `updated_on` datetime DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, PRIMARY KEY (`idnet_tb_vw_ser_app`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_trng` -- DROP TABLE IF EXISTS `net_trng`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_trng` ( `idnet_trng` int(11) NOT NULL AUTO_INCREMENT, `disp_order` int(3) DEFAULT NULL, `train_nm` varchar(45) DEFAULT NULL, `train_desc` varchar(200) DEFAULT NULL, `duration` int(5) DEFAULT NULL, `cnt` int(5) DEFAULT NULL, `practical` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idnet_trng`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `net_trng_doc` -- DROP TABLE IF EXISTS `net_trng_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `net_trng_doc` ( `idnet_trng_doc` int(11) NOT NULL AUTO_INCREMENT, `idnet_trng` int(11) DEFAULT NULL, `disp_order` int(3) DEFAULT NULL, `trng_desc` varchar(100) DEFAULT NULL, `duration` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, `cloud_link` varchar(100) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idnet_trng_doc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `prosp_attr_corp` -- DROP TABLE IF EXISTS `prosp_attr_corp`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `prosp_attr_corp` ( `idprosp_attr_corp` int(11) NOT NULL AUTO_INCREMENT, `prosp_attr_corp_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`idprosp_attr_corp`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `prosp_attr_corp_act` -- DROP TABLE IF EXISTS `prosp_attr_corp_act`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `prosp_attr_corp_act` ( `idprosp_attr_corp_act` int(11) NOT NULL AUTO_INCREMENT, `prosp_attr_corp_act_dt` date DEFAULT NULL, `qry_dt` date DEFAULT NULL, `new` int(5) DEFAULT NULL, `close` int(5) DEFAULT NULL, `total` int(7) DEFAULT NULL, `new_pcnt` varchar(10) DEFAULT NULL, `close_pcnt` varchar(10) DEFAULT NULL, `change_pcnt` varchar(10) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `section1` varchar(45) DEFAULT NULL, `idparent` int(11) DEFAULT NULL, PRIMARY KEY (`idprosp_attr_corp_act`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `prosp_audit` -- DROP TABLE IF EXISTS `prosp_audit`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `prosp_audit` ( `idprosp_audit` int(19) NOT NULL AUTO_INCREMENT, `updated` datetime DEFAULT NULL, `updater` int(11) DEFAULT NULL, `table_update` varchar(90) DEFAULT NULL, `action` varchar(10) DEFAULT NULL, `table_id` text, `col1` text, `idlook_menu_pvt_lvl2` int(5) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idprosp_audit`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `prosp_corp` -- DROP TABLE IF EXISTS `prosp_corp`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `prosp_corp` ( `idprosp_corp` int(11) NOT NULL AUTO_INCREMENT, `prosp_corp_type` int(5) DEFAULT NULL COMMENT 'Individual / company', `corp_entity_name` varchar(95) DEFAULT NULL, `corp_source` int(5) DEFAULT NULL, `corp_level` int(5) DEFAULT NULL, `corp_domain` int(5) DEFAULT NULL, `corp_domain_sub` int(5) DEFAULT NULL, `response` int(5) DEFAULT NULL, `corp_contacts` varchar(300) DEFAULT NULL, `corp_address` varchar(300) DEFAULT NULL, `register_yr` varchar(4) DEFAULT NULL, `register_state` varchar(2) DEFAULT NULL, `start_dt` date DEFAULT NULL, `acc_mgr` int(11) DEFAULT NULL, `end_dt` date DEFAULT NULL, `st_end_tm` int(11) DEFAULT NULL, `topic_discussed` varchar(300) DEFAULT NULL, `all_topic` text, `called_dt` date DEFAULT NULL, `call_nxt_dt` date DEFAULT NULL, `call_day_tm` int(5) DEFAULT NULL, `topic_count` int(5) DEFAULT NULL, `about_corp` varchar(300) DEFAULT NULL, `access_name` varchar(20) DEFAULT NULL, `tentative_en_dt` date DEFAULT NULL, `remind` int(3) DEFAULT NULL, `updated` datetime DEFAULT NULL, `updater` int(11) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, `old_corp_dt` date DEFAULT NULL, `old_corp_activity_dt` date DEFAULT NULL, PRIMARY KEY (`idprosp_corp`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `prosp_corp_access` -- DROP TABLE IF EXISTS `prosp_corp_access`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `prosp_corp_access` ( `idprosp_corp_access` int(11) NOT NULL AUTO_INCREMENT, `corp_accessor` int(11) DEFAULT NULL, `corp_access_acc_mgr` int(11) DEFAULT NULL, `from_dt_acc` date DEFAULT NULL, `to_dt_acc` date DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idprosp_corp_access`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `prosp_corp_act_amt` -- DROP TABLE IF EXISTS `prosp_corp_act_amt`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `prosp_corp_act_amt` ( `idprosp_corp_act_amt` int(11) NOT NULL AUTO_INCREMENT, `idprosp_corp_activity` int(11) DEFAULT NULL, `corp_lvl_amt` int(5) DEFAULT NULL, `corp_action` int(5) DEFAULT NULL, `corp_action_by` int(11) DEFAULT NULL, `corp_lvl_bal` float DEFAULT NULL, `corp_lvl_paid` float DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updater_on` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idprosp_corp_act_amt`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `prosp_corp_activity` -- DROP TABLE IF EXISTS `prosp_corp_activity`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `prosp_corp_activity` ( `idprosp_corp_activity` int(11) NOT NULL AUTO_INCREMENT, `idprosp_corp` int(11) DEFAULT NULL, `topic_disussed` varchar(300) DEFAULT NULL, `corp_level` int(5) DEFAULT NULL, `response` int(5) DEFAULT NULL, `called_dt` date DEFAULT NULL, `acc_mgr` int(11) DEFAULT NULL, `call_nxt_dt` date DEFAULT NULL, `call_day_tm` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idprosp_corp_activity`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `prosp_corp_doc` -- DROP TABLE IF EXISTS `prosp_corp_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `prosp_corp_doc` ( `idprosp_corp_doc` int(11) NOT NULL AUTO_INCREMENT, `idprosp_corp` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, PRIMARY KEY (`idprosp_corp_doc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `prosp_corp_inc` -- DROP TABLE IF EXISTS `prosp_corp_inc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `prosp_corp_inc` ( `idprosp_corp_inc` int(11) NOT NULL AUTO_INCREMENT, `idprosp_lk_val` int(11) DEFAULT NULL, `emp_id` int(11) DEFAULT NULL, `inc_frm` datetime DEFAULT NULL, `inc_to` datetime DEFAULT NULL, `inc_amt` float DEFAULT NULL, `approver_id` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idprosp_corp_inc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `prosp_lk` -- DROP TABLE IF EXISTS `prosp_lk`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `prosp_lk` ( `idprosp_lk` int(11) NOT NULL AUTO_INCREMENT, `prosp_name` varchar(45) DEFAULT NULL, `lk_name_desc` varchar(100) DEFAULT NULL, `disp_order` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `child_lvl` int(3) DEFAULT NULL, PRIMARY KEY (`idprosp_lk`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `prosp_lk_val` -- DROP TABLE IF EXISTS `prosp_lk_val`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `prosp_lk_val` ( `idprosp_lk_val` int(11) NOT NULL AUTO_INCREMENT, `idprosp_lk` int(11) DEFAULT NULL, `prosp_value` varchar(45) DEFAULT NULL, `prosp_value_desc` varchar(100) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `lk_val_par` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idprosp_lk_val`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `prosp_lk_val3` -- DROP TABLE IF EXISTS `prosp_lk_val3`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `prosp_lk_val3` ( `idprosp_lk_val` int(11) NOT NULL AUTO_INCREMENT, `idprosp_lk` int(11) DEFAULT NULL, `prosp_value` varchar(45) DEFAULT NULL, `prosp_value_desc` varchar(100) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `lk_val_par` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idprosp_lk_val`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `prosp_trng` -- DROP TABLE IF EXISTS `prosp_trng`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `prosp_trng` ( `idprosp_trng` int(11) NOT NULL AUTO_INCREMENT, `disp_order` int(3) DEFAULT NULL, `train_nm` varchar(45) DEFAULT NULL, `train_desc` varchar(200) DEFAULT NULL, `duration` int(5) DEFAULT NULL, `cnt` int(5) DEFAULT NULL, `practical` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idprosp_trng`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `prosp_trng_doc` -- DROP TABLE IF EXISTS `prosp_trng_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `prosp_trng_doc` ( `idprosp_trng_doc` int(11) NOT NULL AUTO_INCREMENT, `idprosp_trng` int(11) DEFAULT NULL, `disp_order` int(3) DEFAULT NULL, `trng_desc` varchar(100) DEFAULT NULL, `duration` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, `cloud_link` varchar(100) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idprosp_trng_doc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shr` -- DROP TABLE IF EXISTS `shr`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shr` ( `idshr` int(11) NOT NULL AUTO_INCREMENT, `comp_id` int(11) DEFAULT NULL, `shr_no` int(11) DEFAULT NULL COMMENT '100K, etc. ', `hlding` int(3) DEFAULT NULL COMMENT 'If 60% then 40 to general public', `issued` int(3) DEFAULT NULL, `thr_hld` int(3) DEFAULT NULL COMMENT 'Holding - Issued', `shr_symbl` varchar(45) DEFAULT NULL, `shr_type` int(5) DEFAULT NULL COMMENT 'Class A = voting / Preferred , Class B = Non Voting / Common, etc', `shr_pr` varchar(10) DEFAULT NULL COMMENT 'Latest Price', `shr_smry` varchar(200) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idshr`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shr_doc` -- DROP TABLE IF EXISTS `shr_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shr_doc` ( `idshr_doc` int(11) NOT NULL AUTO_INCREMENT, `idshr` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, PRIMARY KEY (`idshr_doc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shr_hist` -- DROP TABLE IF EXISTS `shr_hist`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shr_hist` ( `idshr_hist` int(11) NOT NULL AUTO_INCREMENT, `idshr` int(11) DEFAULT NULL, `shr_no` varchar(45) DEFAULT NULL, `raise_dt` date DEFAULT NULL, `raise_smry` varchar(100) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idshr_hist`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shr_hld` -- DROP TABLE IF EXISTS `shr_hld`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shr_hld` ( `idshr_hld` int(11) NOT NULL AUTO_INCREMENT, `idshr` int(11) DEFAULT NULL, `own_ref_tab` varchar(45) DEFAULT NULL, `own_ref_id` int(11) DEFAULT NULL, `shr_no` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idshr_hld`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shr_hld_rec` -- DROP TABLE IF EXISTS `shr_hld_rec`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shr_hld_rec` ( `idshr_hld_rec` int(11) NOT NULL AUTO_INCREMENT, `idshr` int(11) DEFAULT NULL, `shr_fm` int(11) DEFAULT NULL, `shr_no` int(11) DEFAULT NULL, `shr_to` int(11) DEFAULT NULL, `trade_dt` datetime DEFAULT NULL, `strike_pr` varchar(10) DEFAULT NULL, `settle_dt` datetime DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idshr_hld_rec`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shr_hld_trd` -- DROP TABLE IF EXISTS `shr_hld_trd`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shr_hld_trd` ( `idshr_hld_trd` int(11) NOT NULL AUTO_INCREMENT, `idshr_hld` int(11) DEFAULT NULL, `trd_type` int(5) DEFAULT NULL COMMENT 'Buy / Sell', `shr_no_trd` int(11) DEFAULT NULL, `trd_pr` varchar(10) DEFAULT NULL, `trd_smry` varchar(45) DEFAULT NULL COMMENT 'Sell / Buy all or none', `trd_or_dt` datetime DEFAULT NULL, `trd_exp_day` int(5) DEFAULT NULL, `trd_exp_dt` datetime DEFAULT NULL COMMENT 'Y or N', `trd_exe_dt` datetime DEFAULT NULL, `trd_or_exe_dt` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idshr_hld_trd`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shr_lk` -- DROP TABLE IF EXISTS `shr_lk`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shr_lk` ( `idshr_lk` int(11) NOT NULL AUTO_INCREMENT, `lk_nm` varchar(45) DEFAULT NULL, `lk_nm_desc` varchar(100) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `child_lvl` int(3) DEFAULT NULL, PRIMARY KEY (`idshr_lk`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shr_lk_val` -- DROP TABLE IF EXISTS `shr_lk_val`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shr_lk_val` ( `idshr_lk_val` int(11) NOT NULL AUTO_INCREMENT, `idshr_lk` int(11) DEFAULT NULL, `lk_val` varchar(45) DEFAULT NULL, `lk_val_desc` varchar(100) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `lk_val_par` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idshr_lk_val`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `storage_lk_tag` -- DROP TABLE IF EXISTS `storage_lk_tag`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `storage_lk_tag` ( `idstorage_lk_tag` int(11) NOT NULL AUTO_INCREMENT, `owner_id` int(11) DEFAULT NULL, `lk_tag` varchar(20) DEFAULT NULL, `lk_tag_desc` varchar(200) DEFAULT NULL, `lk_disp_id` int(5) DEFAULT NULL, `lk_parent_tag_id` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, PRIMARY KEY (`idstorage_lk_tag`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `storage_trng` -- DROP TABLE IF EXISTS `storage_trng`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `storage_trng` ( `idstorage_trng` int(11) NOT NULL AUTO_INCREMENT, `disp_order` int(3) DEFAULT NULL, `train_nm` varchar(45) DEFAULT NULL, `train_desc` varchar(200) DEFAULT NULL, `duration` int(5) DEFAULT NULL, `cnt` int(5) DEFAULT NULL, `practical` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idstorage_trng`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `storage_trng_doc` -- DROP TABLE IF EXISTS `storage_trng_doc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `storage_trng_doc` ( `idstorage_trng_doc` int(11) NOT NULL AUTO_INCREMENT, `idstorage_trng` int(11) DEFAULT NULL, `disp_order` int(3) DEFAULT NULL, `trng_desc` varchar(100) DEFAULT NULL, `duration` int(11) DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, `cloud_link` varchar(100) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idstorage_trng_doc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `storages` -- DROP TABLE IF EXISTS `storages`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `storages` ( `idstorages` int(11) NOT NULL AUTO_INCREMENT, `file_name` varchar(100) DEFAULT NULL, `file_ser_name` varchar(100) DEFAULT NULL, `sto_cloud_link` varchar(150) DEFAULT NULL COMMENT 'pub or pvt', `sto_cloud` int(5) DEFAULT NULL, `file_size` int(11) DEFAULT NULL, `file_cnv_size` int(11) DEFAULT NULL, `owner_id` int(11) DEFAULT NULL COMMENT 'C = (cabinet) F = file', `create_dt` datetime DEFAULT NULL, `expire_dt` date DEFAULT NULL, `ext_type` varchar(5) DEFAULT NULL COMMENT '.doc, .xls, etc', `public` char(1) DEFAULT 'N', `self_view` char(1) DEFAULT 'Y', `smry` varchar(95) DEFAULT NULL, `ref_emp_id` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `usage` int(5) DEFAULT NULL, `sto_tags` text, `sto_tag_cnt` int(5) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL COMMENT '30 / 60', `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, `chk_del` varchar(45) DEFAULT NULL, `file_cnvt` char(1) DEFAULT NULL, `dis_mir_lvl` int(2) DEFAULT NULL, `chk_sync` char(1) DEFAULT NULL, `chk_sync_date` datetime DEFAULT NULL, `show_list` char(1) DEFAULT NULL COMMENT 'Y or N value, to show in existing file listing for attachment', `1` varchar(45) DEFAULT NULL, `2` varchar(45) DEFAULT NULL, `3` varchar(45) DEFAULT NULL, `4` varchar(45) DEFAULT NULL, `5` varchar(45) DEFAULT NULL, `6` varchar(45) DEFAULT NULL, `8` varchar(45) DEFAULT NULL, `9` varchar(45) DEFAULT NULL, `11` varchar(45) DEFAULT NULL, `12` varchar(45) DEFAULT NULL, `13` varchar(45) DEFAULT NULL, `14` varchar(45) DEFAULT NULL, `15` varchar(45) DEFAULT NULL, `16` varchar(45) DEFAULT NULL, `17` varchar(45) DEFAULT NULL, `19` varchar(45) DEFAULT NULL, `20` varchar(45) DEFAULT NULL, `21` varchar(45) DEFAULT NULL, `22` varchar(45) DEFAULT NULL, `23` varchar(45) DEFAULT NULL, `24` varchar(45) DEFAULT NULL, `25` varchar(45) DEFAULT NULL, `26` varchar(45) DEFAULT NULL, `27` varchar(45) DEFAULT NULL, `28` varchar(45) DEFAULT NULL, `29` varchar(45) DEFAULT NULL, `32` varchar(45) DEFAULT NULL, `35` varchar(45) DEFAULT NULL, `36` varchar(45) DEFAULT NULL, `37` varchar(45) DEFAULT NULL, `38` varchar(45) DEFAULT NULL, `39` varchar(45) DEFAULT NULL, `41` varchar(45) DEFAULT NULL, `43` varchar(45) DEFAULT NULL, `44` varchar(45) DEFAULT NULL, `45` varchar(45) DEFAULT NULL, `46` varchar(45) DEFAULT NULL, `47` varchar(45) DEFAULT NULL, `48` varchar(45) DEFAULT NULL, `49` varchar(45) DEFAULT NULL, `50` varchar(45) DEFAULT NULL, `52` varchar(45) DEFAULT NULL, `53` varchar(45) DEFAULT NULL, `56` varchar(45) DEFAULT NULL, `58` varchar(45) DEFAULT NULL, `59` varchar(45) DEFAULT NULL, `60` varchar(45) DEFAULT NULL, `61` varchar(45) DEFAULT NULL, `62` varchar(45) DEFAULT NULL, `63` varchar(45) DEFAULT NULL, `64` varchar(45) DEFAULT NULL, `65` varchar(45) DEFAULT NULL, `66` varchar(45) DEFAULT NULL, `67` varchar(45) DEFAULT NULL, `68` varchar(45) DEFAULT NULL, `69` varchar(45) DEFAULT NULL, `70` varchar(45) DEFAULT NULL, `71` varchar(45) DEFAULT NULL, `72` varchar(45) DEFAULT NULL, `73` varchar(45) DEFAULT NULL, `74` varchar(45) DEFAULT NULL, `75` varchar(45) DEFAULT NULL, `76` varchar(45) DEFAULT NULL, `77` varchar(45) DEFAULT NULL, `78` varchar(45) DEFAULT NULL, `79` varchar(45) DEFAULT NULL, `80` varchar(45) DEFAULT NULL, PRIMARY KEY (`idstorages`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `storages_access` -- DROP TABLE IF EXISTS `storages_access`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `storages_access` ( `idstorages_access` int(11) NOT NULL AUTO_INCREMENT, `idstorages` int(11) DEFAULT NULL, `access_to` int(11) DEFAULT NULL, `access_type` varchar(10) DEFAULT NULL COMMENT 'View, Edit, Delete', `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idstorages_access`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `storages_audit` -- DROP TABLE IF EXISTS `storages_audit`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `storages_audit` ( `idstorages_audit` int(19) NOT NULL AUTO_INCREMENT, `updated` datetime DEFAULT NULL, `updater` varchar(90) DEFAULT NULL, `table_update` varchar(90) DEFAULT NULL, `action` varchar(5) DEFAULT NULL, `table_id` text, `col1` text, `idlook_menu_pvt_lvl2` int(5) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idstorages_audit`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `storages_hist` -- DROP TABLE IF EXISTS `storages_hist`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `storages_hist` ( `idstorages_hist` int(11) NOT NULL AUTO_INCREMENT, `idstorages` int(11) DEFAULT NULL, `expire_dt` date DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idstorages_hist`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `storages_lk` -- DROP TABLE IF EXISTS `storages_lk`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `storages_lk` ( `idstorages_lk` int(11) NOT NULL AUTO_INCREMENT, `lk_nm` varchar(45) DEFAULT NULL, `lk_nm_desc` varchar(100) DEFAULT NULL, `disp_order` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `child_lvl` int(3) DEFAULT NULL, PRIMARY KEY (`idstorages_lk`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `storages_lk_val` -- DROP TABLE IF EXISTS `storages_lk_val`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `storages_lk_val` ( `idstorages_lk_val` int(11) NOT NULL AUTO_INCREMENT, `idstorages_lk` int(11) DEFAULT NULL, `lk_val` varchar(45) DEFAULT NULL, `lk_val_desc` varchar(100) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `lk_val_par` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idstorages_lk_val`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `storages_order` -- DROP TABLE IF EXISTS `storages_order`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `storages_order` ( `idstorages_order` int(11) NOT NULL AUTO_INCREMENT, `create_dt` date DEFAULT NULL, `create_grp` int(11) DEFAULT NULL, `idnet_ser` int(11) DEFAULT NULL, `stored_dt` date DEFAULT NULL, `idstorages` int(11) DEFAULT NULL, `create_stored_dt` int(5) DEFAULT NULL, PRIMARY KEY (`idstorages_order`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `storages_ref` -- DROP TABLE IF EXISTS `storages_ref`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `storages_ref` ( `idstorages_ref` int(11) NOT NULL AUTO_INCREMENT, `idstorages` int(11) DEFAULT NULL, `idlook_menu_pvt_lvl1` int(11) DEFAULT NULL COMMENT 'Agile, Asset, Employee.', `idlook_menu_pvt_lvl2` int(11) DEFAULT NULL COMMENT 'Req, Cube, etc, manage', `sto_tab_nm` varchar(45) DEFAULT NULL COMMENT 'emp_attach, ', `chk_del` varchar(45) DEFAULT NULL, PRIMARY KEY (`idstorages_ref`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `student` -- DROP TABLE IF EXISTS `student`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `student` ( `idstudent` int(11) NOT NULL AUTO_INCREMENT, `first_name` varchar(45) DEFAULT NULL, `last_name` varchar(45) DEFAULT NULL, `nick_name` varchar(45) DEFAULT NULL, `school_nm` int(5) DEFAULT NULL, `dob` date DEFAULT NULL, `gender` int(5) DEFAULT NULL, `idstudent_doc` int(11) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, PRIMARY KEY (`idstudent`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `student_class` -- DROP TABLE IF EXISTS `student_class`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `student_class` ( `id_std_class` int(5) NOT NULL AUTO_INCREMENT, `idstudent` int(5) DEFAULT NULL, `std_class` varchar(45) DEFAULT NULL, `from` date DEFAULT NULL, `to` date DEFAULT NULL, PRIMARY KEY (`id_std_class`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `student_class_exam` -- DROP TABLE IF EXISTS `student_class_exam`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `student_class_exam` ( `id_std_class_exam` int(5) NOT NULL AUTO_INCREMENT, `id_std_class` int(5) DEFAULT NULL, `student_nm` varchar(45) DEFAULT NULL, `dob` varchar(45) DEFAULT NULL, `school_name` varchar(45) DEFAULT NULL, `gender_nm` varchar(45) DEFAULT NULL, `std_class` varchar(45) DEFAULT NULL, `subject` varchar(45) DEFAULT NULL, `marks` int(5) DEFAULT NULL, `result` varchar(45) DEFAULT NULL, `total` int(5) DEFAULT NULL, `percentage` varchar(45) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(5) DEFAULT NULL, PRIMARY KEY (`id_std_class_exam`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `student_lk` -- DROP TABLE IF EXISTS `student_lk`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `student_lk` ( `idstudent_lk` int(11) NOT NULL AUTO_INCREMENT, `lk_nm` varchar(45) DEFAULT NULL, `lk_nm_desc` varchar(100) DEFAULT NULL, `disp_order` varchar(45) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idstudent_lk`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `student_lk_val` -- DROP TABLE IF EXISTS `student_lk_val`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `student_lk_val` ( `idstudent_lk_value` int(11) NOT NULL AUTO_INCREMENT, `idstudent_lk` int(11) DEFAULT NULL, `lk_val` varchar(45) DEFAULT NULL, `lk_val_desc` varchar(100) DEFAULT NULL, `disp_order` int(1) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idstudent_lk_value`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tax_audit` -- DROP TABLE IF EXISTS `tax_audit`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tax_audit` ( `idtax_audit` int(19) NOT NULL AUTO_INCREMENT, `updated` datetime DEFAULT NULL, `updater` varchar(90) DEFAULT NULL, `table_update` varchar(90) DEFAULT NULL, `action` varchar(5) DEFAULT NULL, `table_id` text, `col1` text, `idlook_menu_pvt_lvl2` int(5) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(11) DEFAULT NULL, PRIMARY KEY (`idtax_audit`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tax_lk` -- DROP TABLE IF EXISTS `tax_lk`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tax_lk` ( `idtax_lk` int(11) NOT NULL AUTO_INCREMENT, `lk_nm` varchar(45) DEFAULT NULL, `lk_nm_desc` varchar(100) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, `child_lvl` int(3) DEFAULT NULL, PRIMARY KEY (`idtax_lk`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tax_lk_val` -- DROP TABLE IF EXISTS `tax_lk_val`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tax_lk_val` ( `idtax_lk_val` int(11) NOT NULL AUTO_INCREMENT, `idtax_lk` int(11) DEFAULT NULL, `lk_val` varchar(45) DEFAULT NULL, `lk_val_desc` varchar(100) DEFAULT NULL, `disp_order` int(5) DEFAULT NULL, `lk_val_par` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idtax_lk_val`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tax_reg` -- DROP TABLE IF EXISTS `tax_reg`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tax_reg` ( `idtax_reg` int(11) NOT NULL AUTO_INCREMENT, `comp_id` int(10) DEFAULT NULL, `state_id` int(11) DEFAULT NULL, `city_id` int(11) DEFAULT NULL, `dept_id` int(11) DEFAULT NULL, `reg_number` varchar(45) DEFAULT NULL, `login_smry` varchar(100) DEFAULT NULL, `login_link` varchar(100) DEFAULT NULL, `comp_open_dt` date DEFAULT NULL, `comp_close_dt` date DEFAULT NULL, `comp_open_close_day` int(7) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `del_dt` datetime DEFAULT NULL, `del_by` int(11) DEFAULT NULL, `del_day` int(5) DEFAULT NULL, `archv_dt` datetime DEFAULT NULL, `archv_by` int(5) DEFAULT NULL, PRIMARY KEY (`idtax_reg`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tax_reg_alwc` -- DROP TABLE IF EXISTS `tax_reg_alwc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tax_reg_alwc` ( `idtax_reg_alwc` int(11) NOT NULL AUTO_INCREMENT, `idtax_reg` int(11) DEFAULT NULL, `alwc_type` int(5) DEFAULT NULL COMMENT 'From tax_lk_val, eg insurance, 401, etc', `allowced` char(1) DEFAULT NULL COMMENT 'Y, N, C\\nY = deduct from gross and then calculate tax', `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idtax_reg_alwc`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tax_reg_rate` -- DROP TABLE IF EXISTS `tax_reg_rate`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tax_reg_rate` ( `idtax_reg_rate` int(11) NOT NULL AUTO_INCREMENT, `idtax_reg` int(11) DEFAULT NULL, `tax_for` varchar(15) DEFAULT NULL, `creditable` char(1) DEFAULT NULL, `tax_frm_dt` date DEFAULT NULL, `tax_to_dt` date DEFAULT NULL, `tax_frm_to_day` varchar(45) DEFAULT NULL, `tax_limit` varchar(20) DEFAULT NULL, `gender` int(2) DEFAULT NULL, `tax_amt` varchar(20) DEFAULT NULL, `parent_id` int(11) DEFAULT NULL, `tax_type` char(1) DEFAULT NULL COMMENT 'H = Hour, G = Gross', `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idtax_reg_rate`), KEY `fk_taxes_lk_state_idx` (`idtax_reg`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Temporary table structure for view `vw_addresses` -- DROP TABLE IF EXISTS `vw_addresses`; /*!50001 DROP VIEW IF EXISTS `vw_addresses`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_addresses` AS SELECT 1 AS `country_id`, 1 AS `con_name`, 1 AS `con_full_name`, 1 AS `con_code`, 1 AS `lk_design`, 1 AS `lk_design_hex`, 1 AS `con_digit`, 1 AS `state_id`, 1 AS `state_name`, 1 AS `state_full_name`, 1 AS `idlook_county_district`, 1 AS `county_district_city_nm`, 1 AS `city_id`, 1 AS `city_name`, 1 AS `postal_id`, 1 AS `zip_code`, 1 AS `look_street_id`, 1 AS `street_name`, 1 AS `look_street_no_id`, 1 AS `look_street_no`, 1 AS `street_type`, 1 AS `street_type_nm`, 1 AS `street_name_type`, 1 AS `addresses`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_addresses_old` -- DROP TABLE IF EXISTS `vw_addresses_old`; /*!50001 DROP VIEW IF EXISTS `vw_addresses_old`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_addresses_old` AS SELECT 1 AS `country_id`, 1 AS `con_name`, 1 AS `con_full_name`, 1 AS `con_code`, 1 AS `lk_design`, 1 AS `lk_design_hex`, 1 AS `con_digit`, 1 AS `state_id`, 1 AS `state_name`, 1 AS `state_full_name`, 1 AS `idlook_county_district`, 1 AS `county_district_city_nm`, 1 AS `city_id`, 1 AS `city_name`, 1 AS `postal_id`, 1 AS `zip_code`, 1 AS `look_street_id`, 1 AS `street_name`, 1 AS `look_street_no_id`, 1 AS `look_street_no`, 1 AS `street_type`, 1 AS `street_type_nm`, 1 AS `street_name_type`, 1 AS `addresses`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_all_users` -- DROP TABLE IF EXISTS `vw_all_users`; /*!50001 DROP VIEW IF EXISTS `vw_all_users`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_all_users` AS SELECT 1 AS `uid_id`, 1 AS `emp_id`, 1 AS `emp_fnm`, 1 AS `emp_nm`, 1 AS `user_name`, 1 AS `encrypt_pswd`, 1 AS `pswd_hint`, 1 AS `status`, 1 AS `expire_hrs`, 1 AS `expire_min`, 1 AS `expire_tm`, 1 AS `idlook_menu_pvt1`, 1 AS `idlook_menu_pvt1_nm`, 1 AS `idlook_menu_pvt2`, 1 AS `idlook_menu_pvt2_nm`, 1 AS `last_clicked`, 1 AS `last_clicked_fmt`, 1 AS `last_updated`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_all_usr_login` -- DROP TABLE IF EXISTS `vw_all_usr_login`; /*!50001 DROP VIEW IF EXISTS `vw_all_usr_login`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_all_usr_login` AS SELECT 1 AS `idall_usr_login`, 1 AS `emp_id`, 1 AS `emp_fnm`, 1 AS `emp_nm`, 1 AS `idlook_ip_addr`, 1 AS `ip_address`, 1 AS `domain_nm`, 1 AS `ip_country`, 1 AS `ip_state`, 1 AS `ip_city`, 1 AS `ip_post_code`, 1 AS `idlook_menu_pvt_lvl1`, 1 AS `main_menu`, 1 AS `idlook_menu_pvt_lvl2`, 1 AS `sub_menu`, 1 AS `device_nm`, 1 AS `os_nm`, 1 AS `browser`, 1 AS `lastlogin`, 1 AS `lastlogin_fmt`, 1 AS `lastlogout`, 1 AS `lastlogout_fmt`, 1 AS `logouttype`, 1 AS `logged_in`, 1 AS `logged_in_tm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_all_usr_login_wrk` -- DROP TABLE IF EXISTS `vw_all_usr_login_wrk`; /*!50001 DROP VIEW IF EXISTS `vw_all_usr_login_wrk`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_all_usr_login_wrk` AS SELECT 1 AS `idall_usr_login_wrk`, 1 AS `idall_usr_login`, 1 AS `emp_id`, 1 AS `emp_fnm`, 1 AS `emp_nm`, 1 AS `idlook_ip_addr`, 1 AS `ip_address`, 1 AS `domain_nm`, 1 AS `ip_contry`, 1 AS `ip_state`, 1 AS `ip_city`, 1 AS `ip_post_code`, 1 AS `device_nm`, 1 AS `os_nm`, 1 AS `browser`, 1 AS `lastlogin`, 1 AS `lastlogin_fmt`, 1 AS `lastlogout`, 1 AS `lastlogout_fmt`, 1 AS `logouttype`, 1 AS `page_nm`, 1 AS `table_nm`, 1 AS `page_id`, 1 AS `wrk_ids`, 1 AS `last_clicked`, 1 AS `last_clicked_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_asset_audit` -- DROP TABLE IF EXISTS `vw_asset_audit`; /*!50001 DROP VIEW IF EXISTS `vw_asset_audit`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_asset_audit` AS SELECT 1 AS `idasset_audit`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updated_fmt_yr`, 1 AS `updated_fmt_mon`, 1 AS `updated_fmt_day`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `table_update`, 1 AS `action`, 1 AS `table_id`, 1 AS `col1`, 1 AS `idlook_menu_pvt_lvl2`, 1 AS `idlook_menu_pvt_lvl2_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_bank_acc` -- DROP TABLE IF EXISTS `vw_bank_acc`; /*!50001 DROP VIEW IF EXISTS `vw_bank_acc`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_bank_acc` AS SELECT 1 AS `idbank_acc`, 1 AS `acc_owner`, 1 AS `acc_owner_fnm`, 1 AS `acc_owner_nm`, 1 AS `acc_owner_tab`, 1 AS `comp_id`, 1 AS `comp_fnm`, 1 AS `comp_nm`, 1 AS `comp_acc`, 1 AS `comp_acc_nm`, 1 AS `acc_no`, 1 AS `open_curncy`, 1 AS `acc_open_dt`, 1 AS `acc_open_dt_fmt`, 1 AS `acc_open_dt_yr`, 1 AS `acc_open_dt_mon`, 1 AS `acc_type`, 1 AS `acc_type_nm`, 1 AS `acc_limit`, 1 AS `acc_close_dt`, 1 AS `acc_close_dt_fmt`, 1 AS `acc_close_dt_yr`, 1 AS `acc_close_dt_mon`, 1 AS `mature_dt`, 1 AS `mature_dt_fmt`, 1 AS `mature_dt_yr`, 1 AS `mature_dt_mon`, 1 AS `open_close_dt`, 1 AS `open_close_dt_vir`, 1 AS `contact_info`, 1 AS `open_bal_dt`, 1 AS `open_bal_dt_fmt`, 1 AS `open_bal_amt`, 1 AS `cur_bal_amt`, 1 AS `close_bal_amt`, 1 AS `open_close_amt`, 1 AS `open_close_pcnt`, 1 AS `day_pcnt`, 1 AS `day_rate`, 1 AS `yr_rate`, 1 AS `yr_pcnt`, 1 AS `isu_bal_amt`, 1 AS `isu_bal_dt`, 1 AS `isu_bal_dt_fmt`, 1 AS `clr_bal_amt`, 1 AS `clr_bal_dt`, 1 AS `clr_bal_dt_fmt`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`, 1 AS `old_isu_dt`, 1 AS `old_clr_dt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_bank_acc_rec` -- DROP TABLE IF EXISTS `vw_bank_acc_rec`; /*!50001 DROP VIEW IF EXISTS `vw_bank_acc_rec`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_bank_acc_rec` AS SELECT 1 AS `idbank_acc_rec`, 1 AS `hist`, 1 AS `idbank_acc`, 1 AS `acc_owner_tab`, 1 AS `acc_owner`, 1 AS `acc_owner_fnm`, 1 AS `acc_owner_nm`, 1 AS `comp_id`, 1 AS `comp_fnm`, 1 AS `comp_nm`, 1 AS `acc_no`, 1 AS `acc_open_dt`, 1 AS `acc_open_dt_fmt`, 1 AS `acc_close_dt`, 1 AS `acc_close_dt_fmt`, 1 AS `open_close_dt`, 1 AS `open_close_dt_vir`, 1 AS `acc_type`, 1 AS `acc_type_nm`, 1 AS `acc_limit`, 1 AS `isu_bal_amt`, 1 AS `isu_bal_dt`, 1 AS `isu_bal_dt_fmt`, 1 AS `isu_bal_days`, 1 AS `clr_bal_amt`, 1 AS `clr_bal_dt`, 1 AS `clr_bal_dt_fmt`, 1 AS `clr_bal_days`, 1 AS `issue_dt`, 1 AS `issue_dt_fmt`, 1 AS `issue_dt_yr`, 1 AS `issue_dt_mon`, 1 AS `clear_dt`, 1 AS `clear_dt_fmt`, 1 AS `clear_dt_yr`, 1 AS `clear_dt_mon`, 1 AS `isu_clr_dt`, 1 AS `isu_clr_dt_vir`, 1 AS `check_no`, 1 AS `check_amt`, 1 AS `check_amt_fmt`, 1 AS `rec_type`, 1 AS `check_type`, 1 AS `check_type_nm`, 1 AS `trans_ref_tab`, 1 AS `trans_ref_id`, 1 AS `trans_fnm`, 1 AS `trans_nm`, 1 AS `record_for`, 1 AS `lvl1`, 1 AS `wrk_flow_nm`, 1 AS `idbank_lk_val_lvl1`, 1 AS `bank_lk_val_lvl1_nm`, 1 AS `lvl2`, 1 AS `idbank_lk_val_lvl2`, 1 AS `bank_lk_val_lvl2_nm`, 1 AS `lvl3`, 1 AS `idbank_lk_val_lvl3`, 1 AS `idbank_lk_val_lvl3_nm`, 1 AS `rec_smry`, 1 AS `record_for_nm`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_bank_audit` -- DROP TABLE IF EXISTS `vw_bank_audit`; /*!50001 DROP VIEW IF EXISTS `vw_bank_audit`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_bank_audit` AS SELECT 1 AS `idbank_audit`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updated_fmt_yr`, 1 AS `updated_fmt_mon`, 1 AS `updated_fmt_day`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `table_update`, 1 AS `action`, 1 AS `table_id`, 1 AS `col1`, 1 AS `idlook_menu_pvt_lvl2`, 1 AS `idlook_menu_pvt_lvl2_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_bank_bud` -- DROP TABLE IF EXISTS `vw_bank_bud`; /*!50001 DROP VIEW IF EXISTS `vw_bank_bud`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_bank_bud` AS SELECT 1 AS `idbank_bud`, 1 AS `bud_for_tab`, 1 AS `bud_ref_id`, 1 AS `bud_ref_fnm`, 1 AS `bud_ref_nm`, 1 AS `bud_open_dt`, 1 AS `bud_open_dt_fmt`, 1 AS `bud_open_yr`, 1 AS `bud_open_mon`, 1 AS `bud_close_dt`, 1 AS `bud_close_dt_fmt`, 1 AS `bud_close_yr`, 1 AS `bud_close_mon`, 1 AS `bud_limit`, 1 AS `bud_limit_fmt`, 1 AS `bud_bal`, 1 AS `bud_bal_fmt`, 1 AS `bud_bal_dt`, 1 AS `bud_bal_dt_fmt`, 1 AS `bud_bal_yr`, 1 AS `bud_bal_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `old_bud_dt`, 1 AS `old_bud_dt_fmt`, 1 AS `old_bud_dt_yr`, 1 AS `old_bud_dt_mon`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_bank_bud_rec` -- DROP TABLE IF EXISTS `vw_bank_bud_rec`; /*!50001 DROP VIEW IF EXISTS `vw_bank_bud_rec`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_bank_bud_rec` AS SELECT 1 AS `idbank_bud_rec`, 1 AS `idbank_bud`, 1 AS `bud_for_tab`, 1 AS `bud_ref_id`, 1 AS `bud_ref_fnm`, 1 AS `bud_ref_nm`, 1 AS `bud_open_dt`, 1 AS `bud_open_dt_fmt`, 1 AS `bud_close_dt`, 1 AS `bud_close_dt_fmt`, 1 AS `bud_limit`, 1 AS `bud_limit_fmt`, 1 AS `bud_bal`, 1 AS `bud_bal_fmt`, 1 AS `bud_bal_dt`, 1 AS `bud_bal_dt_fmt`, 1 AS `trans_ref_tab`, 1 AS `trans_ref_id`, 1 AS `trans_ref_fnm`, 1 AS `trans_ref_nm`, 1 AS `rec_dt`, 1 AS `rec_dt_fmt`, 1 AS `rec_dt_yr`, 1 AS `rec_dt_mon`, 1 AS `rec_amt`, 1 AS `rec_amt_fmt`, 1 AS `rec_type`, 1 AS `rec_type_nm`, 1 AS `record_for`, 1 AS `record_for_nm`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated_fmt`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_bank_bud_rec_bal` -- DROP TABLE IF EXISTS `vw_bank_bud_rec_bal`; /*!50001 DROP VIEW IF EXISTS `vw_bank_bud_rec_bal`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_bank_bud_rec_bal` AS SELECT 1 AS `idbank_bud_rec_bal`, 1 AS `idbank_bud`, 1 AS `bud_for_tab`, 1 AS `bud_ref_id`, 1 AS `bud_ref_fnm`, 1 AS `bud_ref_nm`, 1 AS `bud_open_dt`, 1 AS `bud_open_dt_fmt`, 1 AS `bud_close_dt`, 1 AS `bud_close_dt_fmt`, 1 AS `bud_limit`, 1 AS `bud_limit_fmt`, 1 AS `bud_bal`, 1 AS `bud_bal_fmt`, 1 AS `bud_bal_dt`, 1 AS `bud_bal_dt_fmt`, 1 AS `old_bud_dt`, 1 AS `old_bud_dt_fmt`, 1 AS `consol_dt`, 1 AS `consol_dt_fmt`, 1 AS `bank_depo`, 1 AS `bank_depo_fmt`, 1 AS `bank_draw`, 1 AS `bank_draw_fmt`, 1 AS `bank_bal`, 1 AS `bank_bal_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_bank_lk_flw` -- DROP TABLE IF EXISTS `vw_bank_lk_flw`; /*!50001 DROP VIEW IF EXISTS `vw_bank_lk_flw`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_bank_lk_flw` AS SELECT 1 AS `idbank_lk_flw`, 1 AS `wrk_flow_nm`, 1 AS `idbank_lk_val`, 1 AS `look_value`, 1 AS `flw_desc`, 1 AS `idflow_par`, 1 AS `look_initial`, 1 AS `disp_order`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_bank_lk_flw2` -- DROP TABLE IF EXISTS `vw_bank_lk_flw2`; /*!50001 DROP VIEW IF EXISTS `vw_bank_lk_flw2`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_bank_lk_flw2` AS SELECT 1 AS `lvl1`, 1 AS `wrk_flow_nm`, 1 AS `idbank_lk_val_lvl1`, 1 AS `idbank_lk_val_lvl1_nm`, 1 AS `idflow_par`, 1 AS `look_initial`, 1 AS `disp_order`, 1 AS `lvl2`, 1 AS `idbank_lk_val_lvl2`, 1 AS `bank_lk_val_lvl2_nm`, 1 AS `lvl3`, 1 AS `idbank_lk_val_lvl3`, 1 AS `bank_lk_val_lvl3_nm`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_comp_active` -- DROP TABLE IF EXISTS `vw_comp_active`; /*!50001 DROP VIEW IF EXISTS `vw_comp_active`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_comp_active` AS SELECT 1 AS `idcomp_active`, 1 AS `comp_id`, 1 AS `comp_fnm`, 1 AS `companyname`, 1 AS `comp_website`, 1 AS `comp_background`, 1 AS `active_type`, 1 AS `publish`, 1 AS `manage_by`, 1 AS `manage_by_fnm`, 1 AS `manage_by_nm`, 1 AS `client_since`, 1 AS `client_since_fmt`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_comp_address` -- DROP TABLE IF EXISTS `vw_comp_address`; /*!50001 DROP VIEW IF EXISTS `vw_comp_address`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_comp_address` AS SELECT 1 AS `comp_add_id`, 1 AS `comp_id`, 1 AS `comp_logo`, 1 AS `companyname`, 1 AS `look_street_no_id`, 1 AS `addresses`, 1 AS `suite_no`, 1 AS `house_apt_type`, 1 AS `house_apt_nm`, 1 AS `add_type`, 1 AS `from_dt`, 1 AS `from_dt_yr`, 1 AS `from_dt_mon`, 1 AS `from_dt_fmt`, 1 AS `to_dt`, 1 AS `to_dt_yr`, 1 AS `to_dt_mon`, 1 AS `to_dt_fmt`, 1 AS `from_to_dt`, 1 AS `from_to_dt_vir`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `updated_by`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_comp_audit` -- DROP TABLE IF EXISTS `vw_comp_audit`; /*!50001 DROP VIEW IF EXISTS `vw_comp_audit`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_comp_audit` AS SELECT 1 AS `idcomp_audit`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updated_fmt_yr`, 1 AS `updated_fmt_mon`, 1 AS `updated_fmt_day`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `table_update`, 1 AS `action`, 1 AS `table_id`, 1 AS `col1`, 1 AS `idlook_menu_pvt_lvl2`, 1 AS `idlook_menu_pvt_lvl2_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_comp_contact` -- DROP TABLE IF EXISTS `vw_comp_contact`; /*!50001 DROP VIEW IF EXISTS `vw_comp_contact`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_comp_contact` AS SELECT 1 AS `comp_contact_id`, 1 AS `comp_id`, 1 AS `comp_fnm`, 1 AS `companyname`, 1 AS `emp_id`, 1 AS `emp_fnm`, 1 AS `emp_nm`, 1 AS `title`, 1 AS `all_contacts`, 1 AS `description`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `updated_by`, 1 AS `updated_by_fnm`, 1 AS `updated_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_comp_contact_no` -- DROP TABLE IF EXISTS `vw_comp_contact_no`; /*!50001 DROP VIEW IF EXISTS `vw_comp_contact_no`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_comp_contact_no` AS SELECT 1 AS `comp_contact_no_id`, 1 AS `comp_contact_id`, 1 AS `comp_id`, 1 AS `comp_fnm`, 1 AS `comp_nm`, 1 AS `emp_id`, 1 AS `emp_fnm`, 1 AS `emp_nm`, 1 AS `title`, 1 AS `emp_contact_id`, 1 AS `contact_id`, 1 AS `emp_contact_type`, 1 AS `emp_contact_type_nm`, 1 AS `contact_detail`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `updated_by`, 1 AS `updated_by_fnm`, 1 AS `updated_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_comp_doc` -- DROP TABLE IF EXISTS `vw_comp_doc`; /*!50001 DROP VIEW IF EXISTS `vw_comp_doc`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_comp_doc` AS SELECT 1 AS `idcomp_doc`, 1 AS `comp_id`, 1 AS `idstorages`, 1 AS `file_name`, 1 AS `sto_cloud`, 1 AS `sto_cloud_nm`, 1 AS `file_size`, 1 AS `file_size_fmt`, 1 AS `owner_id`, 1 AS `owner_fnm`, 1 AS `owner_nm`, 1 AS `create_dt`, 1 AS `create_dt_fmt`, 1 AS `expire_dt`, 1 AS `expire_dt_fmt`, 1 AS `ext_type`, 1 AS `public`, 1 AS `self_view`, 1 AS `smry`, 1 AS `ref_emp_id`, 1 AS `ref_emp_fnm`, 1 AS `ref_emp_nm`, 1 AS `usage`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_comp_lk_val` -- DROP TABLE IF EXISTS `vw_comp_lk_val`; /*!50001 DROP VIEW IF EXISTS `vw_comp_lk_val`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_comp_lk_val` AS SELECT 1 AS `idcomp_lk_val`, 1 AS `idcomp_lk`, 1 AS `lk_val_par`, 1 AS `lk_val`, 1 AS `child_lvl`, 1 AS `lk_val_desc`, 1 AS `disp_order`, 1 AS `parent_id`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_comp_trng` -- DROP TABLE IF EXISTS `vw_comp_trng`; /*!50001 DROP VIEW IF EXISTS `vw_comp_trng`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_comp_trng` AS SELECT 1 AS `idcomp_trng`, 1 AS `disp_order`, 1 AS `train_nm`, 1 AS `train_desc`, 1 AS `duration`, 1 AS `cnt`, 1 AS `practical`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_comp_trng_doc` -- DROP TABLE IF EXISTS `vw_comp_trng_doc`; /*!50001 DROP VIEW IF EXISTS `vw_comp_trng_doc`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_comp_trng_doc` AS SELECT 1 AS `idcomp_trng_doc`, 1 AS `idcomp_trng`, 1 AS `train_nm`, 1 AS `train_desc`, 1 AS `disp_order`, 1 AS `trng_desc`, 1 AS `duration`, 1 AS `idstorages`, 1 AS `file_name`, 1 AS `sto_cloud`, 1 AS `sto_cloud_nm`, 1 AS `file_size`, 1 AS `file_size_fmt`, 1 AS `owner_id`, 1 AS `owner_fnm`, 1 AS `owner_nm`, 1 AS `create_dt`, 1 AS `create_dt_fmt`, 1 AS `expire_dt`, 1 AS `expire_dt_fmt`, 1 AS `ext_type`, 1 AS `public`, 1 AS `self_view`, 1 AS `smry`, 1 AS `ref_emp_id`, 1 AS `ref_emp_fnm`, 1 AS `ref_emp_nm`, 1 AS `cloud_link`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_company` -- DROP TABLE IF EXISTS `vw_company`; /*!50001 DROP VIEW IF EXISTS `vw_company`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_company` AS SELECT 1 AS `comp_id`, 1 AS `idstorages`, 1 AS `comp_fnm`, 1 AS `companyname`, 1 AS `comp_tax_id`, 1 AS `company_info`, 1 AS `comp_website`, 1 AS `comp_phone`, 1 AS `comp_email`, 1 AS `all_contacts`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_contact_no` -- DROP TABLE IF EXISTS `vw_contact_no`; /*!50001 DROP VIEW IF EXISTS `vw_contact_no`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_contact_no` AS SELECT 1 AS `contact_id`, 1 AS `country_id`, 1 AS `con_name`, 1 AS `con_full_name`, 1 AS `lk_design`, 1 AS `con_code`, 1 AS `con_digit`, 1 AS `contact_type`, 1 AS `contact_detail`, 1 AS `contact_cnt`, 1 AS `contact_smry`, 1 AS `contact_stat`, 1 AS `contact_stat_nm`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_apps` -- DROP TABLE IF EXISTS `vw_dev_apps`; /*!50001 DROP VIEW IF EXISTS `vw_dev_apps`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_apps` AS SELECT 1 AS `iddev_apps`, 1 AS `disp_order`, 1 AS `app_name`, 1 AS `app_skill_avg`, 1 AS `app_gap_avg`, 1 AS `app_st_dt`, 1 AS `app_st_dt_fmt`, 1 AS `app_st_dt_yr`, 1 AS `app_st_dt_mon`, 1 AS `comp_id`, 1 AS `companyname`, 1 AS `comp_fnm`, 1 AS `app_description`, 1 AS `app_e_dt`, 1 AS `app_e_dt_fmt`, 1 AS `dev_apps_cur_stat`, 1 AS `app_e_dt_yr`, 1 AS `app_e_dt_mon`, 1 AS `app_stat_tm`, 1 AS `app_stat_tm_vir`, 1 AS `app_lag_tm`, 1 AS `app_lag_tm_vir`, 1 AS `app_est_cnt`, 1 AS `app_est_tol`, 1 AS `app_est_cnt_tol`, 1 AS `app_est_pcnt`, 1 AS `app_est_req_cnt`, 1 AS `app_est_req_tol`, 1 AS `app_est_req_cnt_tol`, 1 AS `app_est_req_pcnt`, 1 AS `app_est_req_stat_cnt`, 1 AS `app_est_req_stat_tol`, 1 AS `app_est_req_stat_cnt_tol`, 1 AS `app_est_req_stat_pcnt`, 1 AS `app_case_cnt`, 1 AS `app_case_tol`, 1 AS `app_case_cnt_tol`, 1 AS `app_case_pcnt`, 1 AS `app_case_atmpt`, 1 AS `app_bud_amt`, 1 AS `app_use_amt`, 1 AS `app_bud_use_amt`, 1 AS `app_use_pcnt`, 1 AS `app_bud_bal`, 1 AS `app_bud_pcnt`, 1 AS `app_pay_amt`, 1 AS `app_pay_bal`, 1 AS `app_pay_pcnt`, 1 AS `app_bal_amt`, 1 AS `app_bal_pcnt`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `last_updated_yr`, 1 AS `last_updated_mon`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_apps_doc` -- DROP TABLE IF EXISTS `vw_dev_apps_doc`; /*!50001 DROP VIEW IF EXISTS `vw_dev_apps_doc`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_apps_doc` AS SELECT 1 AS `iddev_app_doc`, 1 AS `iddev_apps`, 1 AS `app_name`, 1 AS `idstorages`, 1 AS `file_name`, 1 AS `sto_cloud`, 1 AS `sto_cloud_nm`, 1 AS `file_size`, 1 AS `file_size_fmt`, 1 AS `owner_id`, 1 AS `owner_fnm`, 1 AS `owner_nm`, 1 AS `create_dt`, 1 AS `create_dt_fmt`, 1 AS `expire_dt`, 1 AS `expire_dt_fmt`, 1 AS `ext_type`, 1 AS `public`, 1 AS `self_view`, 1 AS `smry`, 1 AS `ref_emp_id`, 1 AS `ref_emp_fnm`, 1 AS `ref_emp_nm`, 1 AS `usage`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_audit` -- DROP TABLE IF EXISTS `vw_dev_audit`; /*!50001 DROP VIEW IF EXISTS `vw_dev_audit`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_audit` AS SELECT 1 AS `iddev_audit`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updated_fmt_yr`, 1 AS `updated_fmt_mon`, 1 AS `updated_fmt_day`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `table_update`, 1 AS `action`, 1 AS `table_id`, 1 AS `col1`, 1 AS `idlook_menu_pvt_lvl2`, 1 AS `idlook_menu_pvt_lvl2_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_est` -- DROP TABLE IF EXISTS `vw_dev_est`; /*!50001 DROP VIEW IF EXISTS `vw_dev_est`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_est` AS SELECT 1 AS `iddev_est`, 1 AS `attach`, 1 AS `iddev_apps`, 1 AS `app_name`, 1 AS `app_st_dt`, 1 AS `app_st_dt_fmt`, 1 AS `app_e_dt`, 1 AS `app_e_dt_fmt`, 1 AS `dev_apps_cur_stat`, 1 AS `comp_id`, 1 AS `comp_logo`, 1 AS `companyname`, 1 AS `app_est_cnt_tol`, 1 AS `app_est_pcnt`, 1 AS `app_bud_amt`, 1 AS `app_use_amt`, 1 AS `app_bud_use_amt`, 1 AS `app_use_pcnt`, 1 AS `app_bud_bal`, 1 AS `app_bud_pcnt`, 1 AS `app_pay_amt`, 1 AS `app_pay_bal`, 1 AS `app_pay_pcnt`, 1 AS `app_bal_amt`, 1 AS `app_bal_pcnt`, 1 AS `est_st_dt`, 1 AS `est_st_dt_fmt`, 1 AS `est_st_dt_yr`, 1 AS `est_st_dt_mon`, 1 AS `dev_est_smry`, 1 AS `est_e_dt`, 1 AS `est_e_dt_fmt`, 1 AS `dev_est_cur_stat`, 1 AS `est_e_dt_yr`, 1 AS `est_e_dt_mon`, 1 AS `est_time`, 1 AS `est_time_vir`, 1 AS `est_lag_tm`, 1 AS `est_lag_tm_vir`, 1 AS `owner_ref_tab`, 1 AS `owner_ref_id`, 1 AS `owner_fnm`, 1 AS `owner_ref_nm`, 1 AS `est_ref_tab`, 1 AS `est_ref_id`, 1 AS `est_fnm`, 1 AS `est_ref_nm`, 1 AS `priority`, 1 AS `priority_nm`, 1 AS `category`, 1 AS `category_nm`, 1 AS `est_skill`, 1 AS `est_gap_lvl`, 1 AS `est_type`, 1 AS `est_req_cnt`, 1 AS `est_req_tol`, 1 AS `est_req_cnt_tol`, 1 AS `est_req_pcnt`, 1 AS `est_req_stat_cnt`, 1 AS `est_req_stat_tol`, 1 AS `est_req_stat_cnt_tol`, 1 AS `est_req_stat_pcnt`, 1 AS `est_case_cnt`, 1 AS `est_case_tol`, 1 AS `est_case_cnt_tol`, 1 AS `est_case_pcnt`, 1 AS `est_case_atmpt`, 1 AS `est_bud_amt`, 1 AS `est_use_amt`, 1 AS `est_bud_use_amt`, 1 AS `est_use_pcnt`, 1 AS `est_bud_bal`, 1 AS `est_bud_pcnt`, 1 AS `est_pay_amt`, 1 AS `est_pay_bal`, 1 AS `est_pay_pcnt`, 1 AS `est_bal_amt`, 1 AS `est_bal_pcnt`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `last_updated_yr`, 1 AS `last_updated_mon`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`, 1 AS `old_est_dt`, 1 AS `old_req_dt`, 1 AS `run_func`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_est_access` -- DROP TABLE IF EXISTS `vw_dev_est_access`; /*!50001 DROP VIEW IF EXISTS `vw_dev_est_access`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_est_access` AS SELECT 1 AS `iddev_est_access`, 1 AS `iddev_apps`, 1 AS `app_name`, 1 AS `iddev_apps_name`, 1 AS `app_st_dt`, 1 AS `app_st_dt_fmt`, 1 AS `app_e_dt`, 1 AS `app_e_dt_fmt`, 1 AS `app_stat_tm`, 1 AS `app_stat_tm_vir`, 1 AS `app_lag_tm`, 1 AS `app_lag_tm_vir`, 1 AS `app_cur_stat`, 1 AS `companyname`, 1 AS `comp_logo`, 1 AS `app_description`, 1 AS `app_case_atmpt`, 1 AS `iddev_est`, 1 AS `dev_est_smry`, 1 AS `iddev_est_smry`, 1 AS `est_st_dt`, 1 AS `est_st_dt_fmt`, 1 AS `est_e_dt`, 1 AS `est_e_dt_fmt`, 1 AS `est_cur_stat`, 1 AS `est_time`, 1 AS `est_time_vir`, 1 AS `est_lag_tm`, 1 AS `owner_ref_tab`, 1 AS `owner_ref_id`, 1 AS `owner_fnm`, 1 AS `owner_ref_nm`, 1 AS `est_ref_tab`, 1 AS `est_ref_id`, 1 AS `est_fnm`, 1 AS `est_ref_nm`, 1 AS `dev_est_emp_id`, 1 AS `access_to_fnm`, 1 AS `dev_est_emp_id_nm`, 1 AS `nickname`, 1 AS `dev_app_access`, 1 AS `dev_est_access`, 1 AS `dev_est_req_access`, 1 AS `dev_est_reqs_case_access`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `dev_est_del_dt`, 1 AS `dev_est_del_dt_fmt`, 1 AS `dev_est_del_by`, 1 AS `dev_est_del_by_fnm`, 1 AS `dev_est_del_by_nm`, 1 AS `dev_est_del_stat`, 1 AS `dev_est_archv_dt`, 1 AS `dev_est_archv_dt_fmt`, 1 AS `dev_est_archv_by`, 1 AS `dev_est_archv_by_fnm`, 1 AS `dev_est_archv_by_nm`, 1 AS `dev_est_archv_stat`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_est_doc` -- DROP TABLE IF EXISTS `vw_dev_est_doc`; /*!50001 DROP VIEW IF EXISTS `vw_dev_est_doc`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_est_doc` AS SELECT 1 AS `iddev_est_doc`, 1 AS `iddev_est`, 1 AS `idstorages`, 1 AS `file_name`, 1 AS `sto_cloud`, 1 AS `sto_cloud_nm`, 1 AS `file_size`, 1 AS `file_size_fmt`, 1 AS `owner_id`, 1 AS `owner_fnm`, 1 AS `owner_nm`, 1 AS `create_dt`, 1 AS `create_dt_fmt`, 1 AS `expire_dt`, 1 AS `expire_dt_fmt`, 1 AS `ext_type`, 1 AS `public`, 1 AS `self_view`, 1 AS `smry`, 1 AS `ref_emp_id`, 1 AS `ref_emp_fnm`, 1 AS `ref_emp_nm`, 1 AS `usage`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_est_reqs` -- DROP TABLE IF EXISTS `vw_dev_est_reqs`; /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_est_reqs` AS SELECT 1 AS `iddev_est_reqs`, 1 AS `iddev_apps`, 1 AS `app_name`, 1 AS `app_st_dt`, 1 AS `app_st_dt_fmt`, 1 AS `app_e_dt`, 1 AS `app_e_dt_fmt`, 1 AS `dev_apps_cur_stat`, 1 AS `iddev_est`, 1 AS `dev_est_smry`, 1 AS `est_st_dt`, 1 AS `est_st_dt_fmt`, 1 AS `est_e_dt`, 1 AS `est_e_dt_fmt`, 1 AS `dev_est_cur_stat`, 1 AS `est_time`, 1 AS `est_time_vir`, 1 AS `owner_ref_tab`, 1 AS `owner_ref_id`, 1 AS `owner_fnm`, 1 AS `owner_ref_nm`, 1 AS `est_ref_tab`, 1 AS `est_ref_id`, 1 AS `est_fnm`, 1 AS `est_ref_nm`, 1 AS `est_type`, 1 AS `priority`, 1 AS `priority_nm`, 1 AS `category`, 1 AS `category_nm`, 1 AS `est_req_cnt`, 1 AS `est_req_tol`, 1 AS `est_req_cnt_tol`, 1 AS `est_req_pcnt`, 1 AS `req_st_dt`, 1 AS `req_st_dt_fmt`, 1 AS `req_st_dt_yr`, 1 AS `req_st_dt_mon`, 1 AS `req_e_dt`, 1 AS `req_e_dt_fmt`, 1 AS `dev_est_reqs_cur_stat`, 1 AS `req_e_dt_yr`, 1 AS `req_e_dt_mon`, 1 AS `req_time`, 1 AS `req_time_vir`, 1 AS `req_lag_tm`, 1 AS `req_lag_tm_vir`, 1 AS `disp_order`, 1 AS `req_desc`, 1 AS `skill_lvl`, 1 AS `skill_lvl_nm`, 1 AS `gap_lvl`, 1 AS `gap_lvl_nm`, 1 AS `req_type`, 1 AS `req_type_nm`, 1 AS `iddev_lk_wrk_flow`, 1 AS `wrk_flow_nm`, 1 AS `wrk_flow_desc`, 1 AS `req_status`, 1 AS `req_status_nm`, 1 AS `idlook_stat_order`, 1 AS `req_stat_st_dt`, 1 AS `req_stat_st_dt_fmt`, 1 AS `req_stat_e_dt`, 1 AS `req_stat_e_dt_fmt`, 1 AS `req_stat_time`, 1 AS `req_stat_time_vir`, 1 AS `req_stat_e_dt_pre`, 1 AS `req_stat_e_dt_pre_fmt`, 1 AS `req_stat_lag_tm`, 1 AS `req_stat_lag_tm_vir`, 1 AS `assigned_to`, 1 AS `assigned_to_fnm`, 1 AS `assigned_to_nm`, 1 AS `req_stat_cnt`, 1 AS `req_stat_tol`, 1 AS `req_stat_cnt_tol`, 1 AS `req_stat_pcnt`, 1 AS `req_case_cnt`, 1 AS `req_case_tol`, 1 AS `req_case_cnt_tol`, 1 AS `req_case_pcnt`, 1 AS `req_cases`, 1 AS `req_case_atmpt`, 1 AS `req_bud_amt`, 1 AS `req_use_amt`, 1 AS `req_bud_use_amt`, 1 AS `req_use_pcnt`, 1 AS `req_bud_bal`, 1 AS `req_bud_pcnt`, 1 AS `req_pay_amt`, 1 AS `req_pay_bal`, 1 AS `req_pay_pcnt`, 1 AS `req_bal_amt`, 1 AS `req_bal_pcnt`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`, 1 AS `rpt_req_stat_by`, 1 AS `rpt_req_stat_by_nm`, 1 AS `rpt_req_stat_id`, 1 AS `rpt_req_stat_id_nm`, 1 AS `rpt_req_stat_lag_tm`, 1 AS `rpt_req_stat_time`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_est_reqs_case` -- DROP TABLE IF EXISTS `vw_dev_est_reqs_case`; /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_case`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_est_reqs_case` AS SELECT 1 AS `iddev_est_reqs_case`, 1 AS `iddev_est_reqs`, 1 AS `iddev_est`, 1 AS `iddev_apps`, 1 AS `app_name`, 1 AS `est_st_dt_fmt`, 1 AS `est_e_dt_fmt`, 1 AS `est_time_vir`, 1 AS `req_st_dt`, 1 AS `req_st_dt_fmt`, 1 AS `req_e_dt`, 1 AS `req_e_dt_fmt`, 1 AS `req_time_vir`, 1 AS `priority_nm`, 1 AS `category_nm`, 1 AS `skill_lvl_nm`, 1 AS `gap_lvl_nm`, 1 AS `req_type_nm`, 1 AS `req_status`, 1 AS `req_status_nm`, 1 AS `req_desc`, 1 AS `dev_est_smry`, 1 AS `created_by_fnm`, 1 AS `created_by`, 1 AS `created_by_nm`, 1 AS `create_dt`, 1 AS `create_dt_fmt`, 1 AS `create_dt_yr`, 1 AS `create_dt_mon`, 1 AS `create_end_dt`, 1 AS `create_end_dt_fmt`, 1 AS `create_end_dt_yr`, 1 AS `create_end_dt_mon`, 1 AS `create_time`, 1 AS `create_time_vir`, 1 AS `disp_order`, 1 AS `reqs_cases`, 1 AS `case_data`, 1 AS `case_result_desc`, 1 AS `case_cnt`, 1 AS `case_status`, 1 AS `case_status_name`, 1 AS `executed_by`, 1 AS `executed_by_fnm`, 1 AS `executed_by_nm`, 1 AS `execute_dt`, 1 AS `execute_dt_fmt`, 1 AS `req_stat_cnt_tol`, 1 AS `req_stat_pcnt`, 1 AS `req_case_cnt_tol`, 1 AS `req_case_pcnt`, 1 AS `updated_by`, 1 AS `updater_fnm`, 1 AS `updated_by_nm`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `est_ref_nm`, 1 AS `est_fnm`, 1 AS `owner_ref_nm`, 1 AS `owner_fnm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_est_reqs_case_doc` -- DROP TABLE IF EXISTS `vw_dev_est_reqs_case_doc`; /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_case_doc`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_est_reqs_case_doc` AS SELECT 1 AS `iddev_est_reqs_case_doc`, 1 AS `iddev_est_reqs_case`, 1 AS `idstorages`, 1 AS `file_name`, 1 AS `sto_cloud`, 1 AS `sto_cloud_nm`, 1 AS `file_size`, 1 AS `file_size_fmt`, 1 AS `owner_id`, 1 AS `owner_fnm`, 1 AS `owner_nm`, 1 AS `create_dt`, 1 AS `create_dt_fmt`, 1 AS `expire_dt`, 1 AS `expire_dt_fmt`, 1 AS `ext_type`, 1 AS `public`, 1 AS `self_view`, 1 AS `smry`, 1 AS `ref_emp_id`, 1 AS `ref_emp_fnm`, 1 AS `ref_emp_nm`, 1 AS `usage`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_est_reqs_case_result` -- DROP TABLE IF EXISTS `vw_dev_est_reqs_case_result`; /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_case_result`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_est_reqs_case_result` AS SELECT 1 AS `iddev_est_reqs_case_result`, 1 AS `iddev_est_reqs_case`, 1 AS `iddev_est_reqs`, 1 AS `req_desc`, 1 AS `iddev_est`, 1 AS `iddev_apps`, 1 AS `case_result_desc_cases`, 1 AS `case_data`, 1 AS `case_result_desc`, 1 AS `case_status`, 1 AS `case_status_nm`, 1 AS `executed_by`, 1 AS `executed_by_fnm`, 1 AS `executed_by_nm`, 1 AS `execute_dt`, 1 AS `execute_dt_fmt`, 1 AS `updated_by`, 1 AS `updated_by_fnm`, 1 AS `updated_by_nm`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_est_reqs_case_result_doc` -- DROP TABLE IF EXISTS `vw_dev_est_reqs_case_result_doc`; /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_case_result_doc`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_est_reqs_case_result_doc` AS SELECT 1 AS `iddev_est_reqs_case_result_doc`, 1 AS `iddev_est_reqs_case_result`, 1 AS `idstorages`, 1 AS `file_name`, 1 AS `sto_cloud`, 1 AS `sto_cloud_nm`, 1 AS `file_size`, 1 AS `file_size_fmt`, 1 AS `owner_id`, 1 AS `owner_fnm`, 1 AS `owner_nm`, 1 AS `create_dt`, 1 AS `create_dt_fmt`, 1 AS `expire_dt`, 1 AS `expire_dt_fmt`, 1 AS `ext_type`, 1 AS `public`, 1 AS `self_view`, 1 AS `smry`, 1 AS `ref_emp_id`, 1 AS `ref_emp_fnm`, 1 AS `ref_emp_nm`, 1 AS `usage`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_est_reqs_doc` -- DROP TABLE IF EXISTS `vw_dev_est_reqs_doc`; /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_doc`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_est_reqs_doc` AS SELECT 1 AS `iddev_est_reqs_doc`, 1 AS `iddev_est_reqs`, 1 AS `idstorages`, 1 AS `file_name`, 1 AS `sto_cloud`, 1 AS `sto_cloud_nm`, 1 AS `file_size`, 1 AS `file_size_fmt`, 1 AS `owner_id`, 1 AS `owner_fnm`, 1 AS `owner_nm`, 1 AS `create_dt`, 1 AS `create_dt_fmt`, 1 AS `expire_dt`, 1 AS `expire_dt_fmt`, 1 AS `ext_type`, 1 AS `public`, 1 AS `self_view`, 1 AS `smry`, 1 AS `ref_emp_id`, 1 AS `ref_emp_fnm`, 1 AS `ref_emp_nm`, 1 AS `usage`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_est_reqs_stat_amt` -- DROP TABLE IF EXISTS `vw_dev_est_reqs_stat_amt`; /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_stat_amt`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_est_reqs_stat_amt` AS SELECT 1 AS `iddev_est_reqs_stat_amt`, 1 AS `iddev_apps`, 1 AS `app_name`, 1 AS `iddev_est`, 1 AS `dev_est_smry`, 1 AS `owner_ref_tab`, 1 AS `owner_ref_id`, 1 AS `owner_ref_fnm`, 1 AS `owner_ref_nm`, 1 AS `est_ref_tab`, 1 AS `est_ref_id`, 1 AS `est_ref_fnm`, 1 AS `est_ref_nm`, 1 AS `category`, 1 AS `category_nm`, 1 AS `iddev_est_reqs`, 1 AS `req_st_dt`, 1 AS `req_st_dt_fmt`, 1 AS `req_e_dt`, 1 AS `req_e_dt_fmt`, 1 AS `req_desc`, 1 AS `iddev_lk_wrk_flow`, 1 AS `wrk_flow_nm`, 1 AS `iddev_est_reqs_status`, 1 AS `req_status`, 1 AS `req_status_nm`, 1 AS `stat_st_dt`, 1 AS `stat_st_dt_fmt`, 1 AS `stat_st_yr`, 1 AS `stat_st_mon`, 1 AS `stat_e_dt`, 1 AS `stat_e_dt_fmt`, 1 AS `stat_e_yr`, 1 AS `stat_e_mon`, 1 AS `stat_time`, 1 AS `stat_time_vir`, 1 AS `stat_lag_time`, 1 AS `stat_lag_time_vir`, 1 AS `stat_e_dt_pre`, 1 AS `stat_e_dt_pre_fmt`, 1 AS `assigned_to`, 1 AS `assigned_to_fnm`, 1 AS `assigned_to_nm`, 1 AS `hist_cnt`, 1 AS `reqs_quote_by`, 1 AS `reqs_quote_by_fnm`, 1 AS `reqs_quote_by_nm`, 1 AS `reqs_quote_dt`, 1 AS `reqs_quote_dt_fmt`, 1 AS `reqs_quote_dt_yr`, 1 AS `reqs_quote_dt_mon`, 1 AS `req_stat_amt`, 1 AS `req_action_by`, 1 AS `req_action_by_fnm`, 1 AS `req_action_by_nm`, 1 AS `req_action`, 1 AS `req_action_nm`, 1 AS `req_stat_paid`, 1 AS `req_stat_bal`, 1 AS `cur_stat`, 1 AS `cur_stat_nm`, 1 AS `cur_assigned_to`, 1 AS `cur_assigned_to_fnm`, 1 AS `cur_assigned_to_nm`, 1 AS `cur_stat_st_dt`, 1 AS `cur_stat_st_dt_fmt`, 1 AS `cur_stat_e_dt`, 1 AS `cur_stat_e_dt_fmt`, 1 AS `cur_stat_tm`, 1 AS `cur_stat_tm_vir`, 1 AS `cur_stat_lag_tm`, 1 AS `cur_stat_lag_tm_vir`, 1 AS `req_type`, 1 AS `req_type_nm`, 1 AS `skill_lvl`, 1 AS `skill_lvl_nm`, 1 AS `gap_lvl`, 1 AS `gap_lvl_nm`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_est_reqs_stat_amt_hist` -- DROP TABLE IF EXISTS `vw_dev_est_reqs_stat_amt_hist`; /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_stat_amt_hist`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_est_reqs_stat_amt_hist` AS SELECT 1 AS `iddev_est_reqs_stat_amt_hist`, 1 AS `iddev_est_reqs_stat_amt`, 1 AS `req_amt_old`, 1 AS `req_amt_smry`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `last_updated`, 1 AS `last_updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_est_reqs_status` -- DROP TABLE IF EXISTS `vw_dev_est_reqs_status`; /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_status`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_est_reqs_status` AS SELECT 1 AS `iddev_est_reqs_status`, 1 AS `iddev_apps`, 1 AS `app_name`, 1 AS `app_st_dt`, 1 AS `app_st_dt_fmt`, 1 AS `app_e_dt`, 1 AS `app_e_dt_fmt`, 1 AS `dev_apps_cur_stat`, 1 AS `iddev_est`, 1 AS `dev_est_smry`, 1 AS `est_st_dt`, 1 AS `est_st_dt_fmt`, 1 AS `est_e_dt`, 1 AS `est_e_dt_fmt`, 1 AS `dev_est_cur_stat`, 1 AS `owner_ref_tab`, 1 AS `owner_ref_id`, 1 AS `owner_fnm`, 1 AS `owner_ref_nm`, 1 AS `est_ref_tab`, 1 AS `est_ref_id`, 1 AS `est_fnm`, 1 AS `est_ref_nm`, 1 AS `category`, 1 AS `category_nm`, 1 AS `est_type`, 1 AS `iddev_est_reqs`, 1 AS `req_st_dt`, 1 AS `req_st_dt_fmt`, 1 AS `req_st_dt_yr`, 1 AS `req_st_dt_mon`, 1 AS `req_e_dt`, 1 AS `req_e_dt_fmt`, 1 AS `dev_est_reqs_cur_stat`, 1 AS `iddev_lk_wrk_flow`, 1 AS `wrk_flow_nm`, 1 AS `req_e_dt_yr`, 1 AS `req_e_dt_mon`, 1 AS `req_time`, 1 AS `req_time_vir`, 1 AS `req_desc`, 1 AS `skill_lvl`, 1 AS `skill_lvl_nm`, 1 AS `gap_lvl`, 1 AS `gap_lvl_nm`, 1 AS `req_type`, 1 AS `req_type_nm`, 1 AS `req_status`, 1 AS `req_status_nm`, 1 AS `idlook_stat_order`, 1 AS `stat_e_dt_pre`, 1 AS `stat_e_dt_pre_fmt`, 1 AS `stat_lag_time`, 1 AS `stat_lag_time_vir`, 1 AS `stat_st_dt`, 1 AS `stat_st_dt_fmt`, 1 AS `stat_st_dt_yr`, 1 AS `stat_st_dt_mon`, 1 AS `stat_e_dt`, 1 AS `stat_e_dt_fmt`, 1 AS `stat_time`, 1 AS `stat_time_vir`, 1 AS `dev_est_reqs_status_cur_stat`, 1 AS `assigned_to`, 1 AS `assigned_to_fnm`, 1 AS `assigned_to_nm`, 1 AS `req_stat_amt`, 1 AS `req_stat_paid`, 1 AS `req_stat_paid_amt`, 1 AS `req_stat_paid_pcnt`, 1 AS `req_stat_bal`, 1 AS `req_stat_bal_amt`, 1 AS `req_stat_bal_pcnt`, 1 AS `nickname`, 1 AS `cur_stat`, 1 AS `cur_stat_nm`, 1 AS `cur_req_stat_e_dt_pre`, 1 AS `cur_req_stat_e_dt_pre_fmt`, 1 AS `cur_stat_lag_tm`, 1 AS `cur_stat_lag_tm_vir`, 1 AS `cur_req_stat_st_dt`, 1 AS `cur_stat_st_dt_fmt`, 1 AS `cur_req_stat_e_dt`, 1 AS `cur_stat_e_dt_fmt`, 1 AS `cur_stat_tm`, 1 AS `cur_stat_tm_vir`, 1 AS `req_stat_cnt`, 1 AS `req_stat_tol`, 1 AS `req_stat_cnt_tol`, 1 AS `req_stat_pcnt`, 1 AS `req_case_cnt`, 1 AS `req_case_tol`, 1 AS `req_case_cnt_tol`, 1 AS `req_case_pcnt`, 1 AS `req_cases`, 1 AS `req_case_atmpt`, 1 AS `cur_assigned_to`, 1 AS `cur_assigned_to_fnm`, 1 AS `cur_assigned_to_nm`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_est_reqs_status_forcast` -- DROP TABLE IF EXISTS `vw_dev_est_reqs_status_forcast`; /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_status_forcast`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_est_reqs_status_forcast` AS SELECT 1 AS `iddev_est_reqs_status_forcast`, 1 AS `iddev_apps`, 1 AS `app_name`, 1 AS `app_st_dt`, 1 AS `app_st_dt_fmt`, 1 AS `app_e_dt`, 1 AS `app_e_dt_fmt`, 1 AS `dev_apps_cur_stat`, 1 AS `iddev_est`, 1 AS `est_st_dt`, 1 AS `est_st_dt_fmt`, 1 AS `est_e_dt`, 1 AS `est_e_dt_fmt`, 1 AS `dev_est_cur_stat`, 1 AS `est_type`, 1 AS `category`, 1 AS `category_nm`, 1 AS `est_ref_id`, 1 AS `est_ref_tab`, 1 AS `est_fnm`, 1 AS `est_ref_nm`, 1 AS `owner_ref_id`, 1 AS `owner_ref_tab`, 1 AS `owner_fnm`, 1 AS `owner_ref_nm`, 1 AS `dev_est_smry`, 1 AS `iddev_est_reqs`, 1 AS `req_desc`, 1 AS `req_st_dt`, 1 AS `req_st_dt_fmt`, 1 AS `req_e_dt`, 1 AS `req_e_dt_fmt`, 1 AS `dev_est_reqs_cur_stat`, 1 AS `iddev_lk_wrk_flow`, 1 AS `wrk_flow_nm`, 1 AS `req_time`, 1 AS `req_time_vir`, 1 AS `req_type`, 1 AS `req_type_nm`, 1 AS `skill_lvl`, 1 AS `skill_lvl_nm`, 1 AS `gap_lvl`, 1 AS `gap_lvl_nm`, 1 AS `iddev_est_reqs_status`, 1 AS `stat_e_dt_act_pre`, 1 AS `stat_e_dt_act_pre_fmt`, 1 AS `stat_lag_time`, 1 AS `stat_lag_time_vir`, 1 AS `stat_st_dt_act`, 1 AS `stat_st_dt_act_fmt`, 1 AS `stat_e_dt_act`, 1 AS `stat_e_dt_act_fmt`, 1 AS `req_stat_time`, 1 AS `req_stat_time_vir`, 1 AS `assigned_to_act`, 1 AS `assigned_to_act_fnm`, 1 AS `assigned_to_act_nm`, 1 AS `iddev_est_reqs_status_nm`, 1 AS `req_status`, 1 AS `req_status_nm`, 1 AS `idlook_stat_order`, 1 AS `for_stat_e_dt_pre`, 1 AS `for_stat_e_dt_pre_fmt`, 1 AS `for_lag_time`, 1 AS `for_lag_time_vir`, 1 AS `for_stat_st_dt`, 1 AS `for_stat_st_dt_fmt`, 1 AS `for_stat_st_yr`, 1 AS `for_stat_st_mon`, 1 AS `for_stat_e_dt`, 1 AS `for_stat_e_dt_fmt`, 1 AS `dev_est_reqs_status_forcast_cur_stat`, 1 AS `for_stat_e_yr`, 1 AS `for_stat_e_mon`, 1 AS `for_stat_time`, 1 AS `for_stat_time_vir`, 1 AS `for_req_bud_amt`, 1 AS `for_req_bud_amt_nm`, 1 AS `for_amt_dt`, 1 AS `for_amt_dt_fmt`, 1 AS `for_amt_temp_dt`, 1 AS `req_stat_amt`, 1 AS `req_stat_amt_nm`, 1 AS `for_req_bud_stat_amt`, 1 AS `for_req_bud_stat_amt_pcnt`, 1 AS `req_stat_paid`, 1 AS `req_stat_paid_nm`, 1 AS `req_stat_paid_amt`, 1 AS `req_stat_paid_amt_pcnt`, 1 AS `req_stat_bal`, 1 AS `req_stat_bal_nm`, 1 AS `req_stat_bal_amt`, 1 AS `req_stat_bal_amt_pcnt`, 1 AS `hist_cnt`, 1 AS `for_req_bud_amt_updater`, 1 AS `for_req_bud_amt_updater_fnm`, 1 AS `for_req_bud_amt_updater_nm`, 1 AS `for_req_bud_amt_updated`, 1 AS `for_req_bud_amt_updated_fmt`, 1 AS `assigned_to`, 1 AS `assigned_to_fnm`, 1 AS `assigned_to_nm`, 1 AS `forecast_smry`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_est_reqs_status_forcast_hist` -- DROP TABLE IF EXISTS `vw_dev_est_reqs_status_forcast_hist`; /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_status_forcast_hist`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_est_reqs_status_forcast_hist` AS SELECT 1 AS `iddev_est_reqs_status_forcast_hist`, 1 AS `iddev_est_reqs_status_forcast`, 1 AS `forecast_req_bud_amt_old`, 1 AS `forecast_smry_old`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_est_reqs_status_forcast_steps` -- DROP TABLE IF EXISTS `vw_dev_est_reqs_status_forcast_steps`; /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_status_forcast_steps`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_est_reqs_status_forcast_steps` AS SELECT 1 AS `iddev_est_reqs_status_forcast_steps`, 1 AS `iddev_est_reqs`, 1 AS `dev_steps_details`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_est_reqs_status_steps` -- DROP TABLE IF EXISTS `vw_dev_est_reqs_status_steps`; /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_status_steps`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_est_reqs_status_steps` AS SELECT 1 AS `iddev_est_req_status_steps`, 1 AS `iddev_est_reqs_status`, 1 AS `iddev_est_reqs`, 1 AS `req_status`, 1 AS `req_status_nm`, 1 AS `dev_steps_details`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_lk_label` -- DROP TABLE IF EXISTS `vw_dev_lk_label`; /*!50001 DROP VIEW IF EXISTS `vw_dev_lk_label`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_lk_label` AS SELECT 1 AS `iddev_lk_label`, 1 AS `display_size`, 1 AS `dev_label_nm`, 1 AS `hover_fields`, 1 AS `disp_order`, 1 AS `lk_parent_val_id`, 1 AS `updater_id`, 1 AS `updater`, 1 AS `updater_file_name`, 1 AS `last_updated`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_lk_wrk_flow` -- DROP TABLE IF EXISTS `vw_dev_lk_wrk_flow`; /*!50001 DROP VIEW IF EXISTS `vw_dev_lk_wrk_flow`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_lk_wrk_flow` AS SELECT 1 AS `iddev_lk_wrk_flow`, 1 AS `wrk_flow_nm`, 1 AS `id_wrk_flow`, 1 AS `wrk_flow_desc`, 1 AS `id_wrk_flow_parent`, 1 AS `look_initial`, 1 AS `look_restart`, 1 AS `disp_order`, 1 AS `updater`, 1 AS `updater_fmt`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `last_updated_by`, 1 AS `look_value`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_look_value` -- DROP TABLE IF EXISTS `vw_dev_look_value`; /*!50001 DROP VIEW IF EXISTS `vw_dev_look_value`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_look_value` AS SELECT 1 AS `iddev_look_value`, 1 AS `iddev_look`, 1 AS `lk_val_par`, 1 AS `look_value`, 1 AS `child_lvl`, 1 AS `look_value_desc`, 1 AS `disp_order`, 1 AS `parent_id`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updated_by`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_trng` -- DROP TABLE IF EXISTS `vw_dev_trng`; /*!50001 DROP VIEW IF EXISTS `vw_dev_trng`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_trng` AS SELECT 1 AS `iddev_trng`, 1 AS `disp_order`, 1 AS `train_nm`, 1 AS `train_desc`, 1 AS `duration`, 1 AS `cnt`, 1 AS `practical`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_dev_trng_doc` -- DROP TABLE IF EXISTS `vw_dev_trng_doc`; /*!50001 DROP VIEW IF EXISTS `vw_dev_trng_doc`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_dev_trng_doc` AS SELECT 1 AS `iddev_trng_doc`, 1 AS `iddev_trng`, 1 AS `disp_order`, 1 AS `trng_desc`, 1 AS `duration`, 1 AS `idstorages`, 1 AS `cloud_link`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_emp` -- DROP TABLE IF EXISTS `vw_emp`; /*!50001 DROP VIEW IF EXISTS `vw_emp`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_emp` AS SELECT 1 AS `emp_id`, 1 AS `idstorages`, 1 AS `emp_fnm`, 1 AS `emp_fnm_ser`, 1 AS `idstorages_stat`, 1 AS `firstname`, 1 AS `middlename`, 1 AS `lastname`, 1 AS `fullname`, 1 AS `nickname`, 1 AS `user_name`, 1 AS `user_name_nm`, 1 AS `user_name_cur_stat`, 1 AS `status`, 1 AS `expire_tm`, 1 AS `last_clicked`, 1 AS `last_clicked_tm`, 1 AS `all_contacts`, 1 AS `all_contacts_nm`, 1 AS `emp_nm_all_contacts`, 1 AS `unique_id_type`, 1 AS `unique_id_nm`, 1 AS `ssn`, 1 AS `ssn_nm`, 1 AS `dob`, 1 AS `dob_fmt`, 1 AS `age`, 1 AS `gender_id`, 1 AS `gender_nm`, 1 AS `all_features`, 1 AS `cnt_feature`, 1 AS `all_education`, 1 AS `all_education_nm`, 1 AS `education_cnt`, 1 AS `education_yrs`, 1 AS `education_yrs_nm`, 1 AS `all_education_yrs_nm`, 1 AS `all_emp_org`, 1 AS `all_emp_org_nm`, 1 AS `all_addresses`, 1 AS `sto_limit`, 1 AS `sto_limit_fmt`, 1 AS `sto_usage`, 1 AS `sto_usage_fmt`, 1 AS `sto_remain`, 1 AS `sto_remain_fmt`, 1 AS `sto_usage_nm`, 1 AS `sto_remaining`, 1 AS `sto_usage_nm_pcnt`, 1 AS `sto_remain_nm_pcnt`, 1 AS `taxid`, 1 AS `taxid_nm`, 1 AS `hrs_forecast`, 1 AS `hrs_actual`, 1 AS `hrs_actual_forecast`, 1 AS `fore_act_pcnt`, 1 AS `amt_forcast`, 1 AS `amt_actual`, 1 AS `amt_actual_forcast`, 1 AS `amt_pcnt`, 1 AS `vac_earned`, 1 AS `vac_used`, 1 AS `vac_used_earned`, 1 AS `vac_pcnt`, 1 AS `vac_bal`, 1 AS `login_id`, 1 AS `domain_name`, 1 AS `contry`, 1 AS `ip_state`, 1 AS `ip_city`, 1 AS `ip_post_code`, 1 AS `lastlogin`, 1 AS `lastlogin_fmt`, 1 AS `lastlogout`, 1 AS `lastlogout_fmt`, 1 AS `from_fmt`, 1 AS `loggged_out`, 1 AS `logged_in`, 1 AS `logged_in_tm`, 1 AS `idlook_menu_pvt_lvl1`, 1 AS `main_menu`, 1 AS `idlook_menu_pvt_lvl2`, 1 AS `sub_menu`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_fnm_ser`, 1 AS `updater_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_fnm_ser`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_fnm_ser`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_emp_access` -- DROP TABLE IF EXISTS `vw_emp_access`; /*!50001 DROP VIEW IF EXISTS `vw_emp_access`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_emp_access` AS SELECT 1 AS `access_id`, 1 AS `emp_id`, 1 AS `emp_fnm`, 1 AS `emp_name`, 1 AS `user_name`, 1 AS `feature_id`, 1 AS `feature_name`, 1 AS `feature_desc`, 1 AS `disp_order`, 1 AS `updated_by`, 1 AS `updated_by_fnm`, 1 AS `updated_by_nm`, 1 AS `last_updated`, 1 AS `last_updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_emp_activity` -- DROP TABLE IF EXISTS `vw_emp_activity`; /*!50001 DROP VIEW IF EXISTS `vw_emp_activity`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_emp_activity` AS SELECT 1 AS `idemp_activity`, 1 AS `empd_id`, 1 AS `call_recv_dt`, 1 AS `emp_id`, 1 AS `updater`, 1 AS `next_call_dt`, 1 AS `call_note`, 1 AS `last_updated`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_emp_address` -- DROP TABLE IF EXISTS `vw_emp_address`; /*!50001 DROP VIEW IF EXISTS `vw_emp_address`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_emp_address` AS SELECT 1 AS `emp_add_id`, 1 AS `emp_id`, 1 AS `emp_fnm`, 1 AS `emp_nm`, 1 AS `look_street_no_id`, 1 AS `look_street_id`, 1 AS `look_street_no`, 1 AS `street_name`, 1 AS `street_type`, 1 AS `street_type_name`, 1 AS `street_name_type`, 1 AS `postal_id`, 1 AS `zip_code`, 1 AS `city_id`, 1 AS `city_name`, 1 AS `idlook_county_district`, 1 AS `county_district_city_nm`, 1 AS `state_id`, 1 AS `state_name`, 1 AS `state_full_name`, 1 AS `country_id`, 1 AS `con_name`, 1 AS `con_full_name`, 1 AS `lk_design`, 1 AS `con_code`, 1 AS `con_digit`, 1 AS `house_apt_no`, 1 AS `house_apt_type`, 1 AS `house_apt_type_nm`, 1 AS `addresses`, 1 AS `from_dt`, 1 AS `from_dt_fmt`, 1 AS `from_dt_yr`, 1 AS `from_dt_mon`, 1 AS `to_dt`, 1 AS `to_dt_fmt`, 1 AS `to_dt_yr`, 1 AS `to_dt_mon`, 1 AS `no_of_days`, 1 AS `no_of_days_vir`, 1 AS `add_type`, 1 AS `add_type_nm`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_emp_audit` -- DROP TABLE IF EXISTS `vw_emp_audit`; /*!50001 DROP VIEW IF EXISTS `vw_emp_audit`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_emp_audit` AS SELECT 1 AS `idemp_audit`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updated_fmt_yr`, 1 AS `updated_fmt_mon`, 1 AS `updated_fmt_day`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `table_update`, 1 AS `action`, 1 AS `table_id`, 1 AS `col1`, 1 AS `idlook_menu_pvt_lvl2`, 1 AS `idlook_menu_pvt_lvl2_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_emp_bench` -- DROP TABLE IF EXISTS `vw_emp_bench`; /*!50001 DROP VIEW IF EXISTS `vw_emp_bench`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_emp_bench` AS SELECT 1 AS `value`, 1 AS `emp_org_id`, 1 AS `emp_fnm`, 1 AS `emp_nm`, 1 AS `companyname`, 1 AS `comp_fnm`, 1 AS `start_dt`, 1 AS `start_dt_fmt`, 1 AS `bill_cycle`, 1 AS `end_dt`, 1 AS `end_dt_fmt`, 1 AS `no_of_days`, 1 AS `no_of_days_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_emp_contact` -- DROP TABLE IF EXISTS `vw_emp_contact`; /*!50001 DROP VIEW IF EXISTS `vw_emp_contact`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_emp_contact` AS SELECT 1 AS `emp_contact_id`, 1 AS `emp_id`, 1 AS `emp_fnm`, 1 AS `emp_nm`, 1 AS `contact_id`, 1 AS `country_id`, 1 AS `con_name`, 1 AS `con_code`, 1 AS `con_name_code`, 1 AS `contact_type`, 1 AS `emp_contact_type`, 1 AS `emp_contact_type_nm`, 1 AS `contact_detail`, 1 AS `emp_contact_type_detail`, 1 AS `contact_vrifed`, 1 AS `summary`, 1 AS `contact_cnt`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `last_updated`, 1 AS `last_updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_emp_doc` -- DROP TABLE IF EXISTS `vw_emp_doc`; /*!50001 DROP VIEW IF EXISTS `vw_emp_doc`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_emp_doc` AS SELECT 1 AS `idemp_doc`, 1 AS `emp_id`, 1 AS `emp_fnm`, 1 AS `emp_nm`, 1 AS `idstorages`, 1 AS `file_name`, 1 AS `file_ser_name`, 1 AS `sto_cloud_link`, 1 AS `sto_cloud`, 1 AS `sto_cloud_nm`, 1 AS `file_size`, 1 AS `file_cnv_size`, 1 AS `owner_id`, 1 AS `owner_fnm`, 1 AS `owner_nm`, 1 AS `create_dt`, 1 AS `create_dt_fmt`, 1 AS `expire_dt`, 1 AS `expire_dt_fmt`, 1 AS `expire_dt_fmt2`, 1 AS `expire_dt_no_days`, 1 AS `expire_dt_cur_stat`, 1 AS `ext_type`, 1 AS `public`, 1 AS `self_view`, 1 AS `smry`, 1 AS `ref_emp_id`, 1 AS `ref_emp_fnm`, 1 AS `ref_emp_nm`, 1 AS `usage`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `emp_doc_type`, 1 AS `emp_doc_type_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_emp_education` -- DROP TABLE IF EXISTS `vw_emp_education`; /*!50001 DROP VIEW IF EXISTS `vw_emp_education`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_emp_education` AS SELECT 1 AS `idemp_education`, 1 AS `emp_id`, 1 AS `emp_fnm`, 1 AS `emp_nm`, 1 AS `edu_name`, 1 AS `edu_nm`, 1 AS `edu_name_sub`, 1 AS `edu_name_sub_nm`, 1 AS `edu_frm_dt`, 1 AS `edu_frm_dt_fmt`, 1 AS `edu_frm_dt_yr`, 1 AS `edu_frm_dt_mon`, 1 AS `edu_to_dt`, 1 AS `edu_to_dt_fmt`, 1 AS `edu_to_dt_yr`, 1 AS `edu_to_dt_mon`, 1 AS `edu_frm_to_dt`, 1 AS `edu_frm_to_dt_vir`, 1 AS `edu_cur_stat`, 1 AS `edu_subject`, 1 AS `edu_subject_nm`, 1 AS `edu_level`, 1 AS `edu_level_nm`, 1 AS `edu_smry`, 1 AS `edu_smry_vir`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_emp_lk_val` -- DROP TABLE IF EXISTS `vw_emp_lk_val`; /*!50001 DROP VIEW IF EXISTS `vw_emp_lk_val`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_emp_lk_val` AS SELECT 1 AS `idemp_lk_value`, 1 AS `idemp_lk`, 1 AS `lk_val_par`, 1 AS `lk_val`, 1 AS `child_lvl`, 1 AS `lk_val_desc`, 1 AS `disp_order`, 1 AS `parent_id`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_fmt`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updated_by`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_emp_org` -- DROP TABLE IF EXISTS `vw_emp_org`; /*!50001 DROP VIEW IF EXISTS `vw_emp_org`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_emp_org` AS SELECT 1 AS `emp_org_id`, 1 AS `emp_id`, 1 AS `emp_fnm`, 1 AS `emp_nm`, 1 AS `comp_id`, 1 AS `companyname`, 1 AS `comp_fnm`, 1 AS `org_start_dt`, 1 AS `org_start_dt_yr`, 1 AS `org_start_dt_mon`, 1 AS `org_start_dt_fmt`, 1 AS `org_end_dt`, 1 AS `org_end_dt_yr`, 1 AS `org_end_dt_mon`, 1 AS `org_end_dt_fmt`, 1 AS `org_start_end_dt_cur_stat`, 1 AS `no_of_days`, 1 AS `no_of_days_fmt`, 1 AS `emp_type`, 1 AS `emp_type_nm`, 1 AS `org_forecast`, 1 AS `org_actual`, 1 AS `org_actual_forecast`, 1 AS `org_pcnt`, 1 AS `org_amt_forcast`, 1 AS `org_amt_actual`, 1 AS `org_amt_actual_forcast`, 1 AS `org_amt_pcnt`, 1 AS `org_vac_used`, 1 AS `org_vac_earned`, 1 AS `org_vac_used_earned`, 1 AS `org_vac_pcnt`, 1 AS `org_vac_bal`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `old_org_hrs_dt`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_emp_org_access` -- DROP TABLE IF EXISTS `vw_emp_org_access`; /*!50001 DROP VIEW IF EXISTS `vw_emp_org_access`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_emp_org_access` AS SELECT 1 AS `idemp_org_access`, 1 AS `emp_access_to`, 1 AS `emp_access_to_fnm`, 1 AS `emp_access_to_nm`, 1 AS `emp_access_of`, 1 AS `emp_access_of_fnm`, 1 AS `emp_access_of_nm`, 1 AS `acc_from_dt`, 1 AS `acc_from_dt_fmt`, 1 AS `acc_from_dt_yr`, 1 AS `acc_from_dt_mon`, 1 AS `acc_to_dt`, 1 AS `acc_to_dt_fmt`, 1 AS `acc_to_dt_yr`, 1 AS `acc_to_dt_mon`, 1 AS `acc_type`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_emp_org_hrs` -- DROP TABLE IF EXISTS `vw_emp_org_hrs`; /*!50001 DROP VIEW IF EXISTS `vw_emp_org_hrs`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_emp_org_hrs` AS SELECT 1 AS `idemp_org_hrs`, 1 AS `emp_org_id`, 1 AS `emp_id`, 1 AS `emp_fnm`, 1 AS `emp_nm`, 1 AS `comp_id`, 1 AS `comp_fnm`, 1 AS `comp_nm`, 1 AS `org_start_dt`, 1 AS `org_start_dt_fmt`, 1 AS `org_start_dt_yr`, 1 AS `org_start_dt_mon`, 1 AS `org_end_dt`, 1 AS `org_end_dt_fmt`, 1 AS `org_end_dt_yr`, 1 AS `org_end_dt_mon`, 1 AS `org_start_end_dt_cur_stat`, 1 AS `emp_type`, 1 AS `emp_type_nm`, 1 AS `from_dt`, 1 AS `from_dt_fmt`, 1 AS `from_yr`, 1 AS `from_mon`, 1 AS `to_dt`, 1 AS `to_dt_fmt`, 1 AS `to_yr`, 1 AS `to_mon`, 1 AS `duration`, 1 AS `comp_fnm_nm_title_duration`, 1 AS `from_to_dt_cur_stat`, 1 AS `frm_to_org_hrs_days`, 1 AS `frm_to_org_hrs_days_fmt`, 1 AS `tentative_en_dt`, 1 AS `tentative_en_dt_fmt`, 1 AS `tentative_en_dt_fmt_no`, 1 AS `tentative_en_dt_fmt2`, 1 AS `org_hrs_forecast`, 1 AS `org_hrs_actual`, 1 AS `org_hrs_actual_forecast`, 1 AS `org_hrs_pcnt`, 1 AS `org_hrs_amt_forcast`, 1 AS `org_hrs_amt_actual`, 1 AS `org_hrs_amt_actual_forcast`, 1 AS `org_hrs_amt_pcnt`, 1 AS `emp_hrs_title`, 1 AS `emp_hrs_title_nm`, 1 AS `org_hrs_vac_earn`, 1 AS `org_hrs_vac_use`, 1 AS `org_hrs_vac_use_earn`, 1 AS `org_hrs_vac_bal`, 1 AS `org_hrs_vac_pcnt`, 1 AS `idstorages`, 1 AS `hrs_cy_run`, 1 AS `hrs_cy_run_nm`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`, 1 AS `old_hrs_dt`, 1 AS `cy_st_date`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_emp_org_hrs_days` -- DROP TABLE IF EXISTS `vw_emp_org_hrs_days`; /*!50001 DROP VIEW IF EXISTS `vw_emp_org_hrs_days`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_emp_org_hrs_days` AS SELECT 1 AS `idemp_org_hrs_days`, 1 AS `emp_org_id`, 1 AS `emp_id`, 1 AS `emp_fnm`, 1 AS `emp_nm`, 1 AS `comp_id`, 1 AS `comp_fnm`, 1 AS `comp_nm`, 1 AS `org_start_dt`, 1 AS `org_start_dt_fmt`, 1 AS `org_start_dt_yr`, 1 AS `org_start_dt_mon`, 1 AS `org_end_dt`, 1 AS `org_end_dt_fmt`, 1 AS `org_end_dt_yr`, 1 AS `org_end_dt_mon`, 1 AS `no_of_days`, 1 AS `no_of_days_vir`, 1 AS `emp_type`, 1 AS `emp_type_nm`, 1 AS `run_script`, 1 AS `idemp_org_hrs`, 1 AS `from_dt`, 1 AS `from_dt_fmt`, 1 AS `from_yr`, 1 AS `from_mon`, 1 AS `to_dt`, 1 AS `to_dt_fmt`, 1 AS `to_yr`, 1 AS `to_mon`, 1 AS `frm_to_org_hrs_days`, 1 AS `frm_to_org_hrs_days_fmt`, 1 AS `tentative_en_dt`, 1 AS `tentative_en_dt_fmt`, 1 AS `org_hrs_forecast`, 1 AS `org_hrs_actual`, 1 AS `org_hrs_pcnt`, 1 AS `emp_hrs_title`, 1 AS `emp_hrs_title_nm`, 1 AS `tm_zn`, 1 AS `start_tm`, 1 AS `start_tm_fmt`, 1 AS `end_tm`, 1 AS `end_tm_fmt`, 1 AS `hrs_tm`, 1 AS `hrs_tm_nm`, 1 AS `off_time`, 1 AS `off_time_nm`, 1 AS `days`, 1 AS `days_nm`, 1 AS `pay_amt`, 1 AS `look_street_no_id`, 1 AS `country_id`, 1 AS `con_name`, 1 AS `state_id`, 1 AS `state_name`, 1 AS `idlook_county_district`, 1 AS `county_district_city_nm`, 1 AS `city_id`, 1 AS `city_name`, 1 AS `postal_id`, 1 AS `zip_code`, 1 AS `look_street_id`, 1 AS `look_street_no`, 1 AS `street_name`, 1 AS `street_type`, 1 AS `street_type_nm`, 1 AS `house_apt_type`, 1 AS `house_apt_type_nm`, 1 AS `house_apt_no`, 1 AS `addresses`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `cy_days_st_dt`, 1 AS `hrs_day_cy_run`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_emp_org_hrs_days_cy` -- DROP TABLE IF EXISTS `vw_emp_org_hrs_days_cy`; /*!50001 DROP VIEW IF EXISTS `vw_emp_org_hrs_days_cy`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_emp_org_hrs_days_cy` AS SELECT 1 AS `idemp_org_hrs_days_cy`, 1 AS `emp_org_id`, 1 AS `emp_id`, 1 AS `emp_fnm`, 1 AS `emp_nm`, 1 AS `comp_id`, 1 AS `comp_fnm`, 1 AS `comp_nm`, 1 AS `org_start_dt`, 1 AS `org_start_dt_fmt`, 1 AS `org_end_dt`, 1 AS `org_end_dt_fmt`, 1 AS `no_of_days`, 1 AS `no_of_days_fmt`, 1 AS `emp_type`, 1 AS `emp_type_nm`, 1 AS `idemp_org_hrs`, 1 AS `from_dt`, 1 AS `from_dt_fmt`, 1 AS `to_dt`, 1 AS `to_dt_fmt`, 1 AS `frm_to_org_hrs_days`, 1 AS `frm_to_org_hrs_days_fmt`, 1 AS `tentative_en_dt`, 1 AS `tentative_en_dt_fmt`, 1 AS `org_hrs_forecast`, 1 AS `org_hrs_actual`, 1 AS `org_hrs_pcnt`, 1 AS `emp_hrs_title`, 1 AS `emp_hrs_title_nm`, 1 AS `idemp_org_hrs_days`, 1 AS `start_tm`, 1 AS `start_tm_fmt`, 1 AS `end_tm`, 1 AS `end_tm_fmt`, 1 AS `hrs_tm`, 1 AS `off_time`, 1 AS `off_time_nm`, 1 AS `days`, 1 AS `pay_amt`, 1 AS `look_street_no_id`, 1 AS `country_id`, 1 AS `con_name`, 1 AS `state_id`, 1 AS `state_name`, 1 AS `idlook_county_district`, 1 AS `county_district_city_nm`, 1 AS `city_id`, 1 AS `city_name`, 1 AS `postal_id`, 1 AS `zip_code`, 1 AS `look_street_id`, 1 AS `look_street_no`, 1 AS `street_name`, 1 AS `street_type`, 1 AS `street_type_nm`, 1 AS `house_apt_type`, 1 AS `house_apt_type_nm`, 1 AS `house_apt_no`, 1 AS `addresses`, 1 AS `day_start_tm`, 1 AS `day_start_tm_fmt`, 1 AS `day_start_tm_dt`, 1 AS `day_start_tm_dt_tm`, 1 AS `day_start_tm_day`, 1 AS `day_start_tm_vir`, 1 AS `day_start_tm_yr`, 1 AS `day_start_tm_mon`, 1 AS `day_end_tm`, 1 AS `day_end_tm_fmt`, 1 AS `day_end_tm_fmt_tm`, 1 AS `day_end_tm_day`, 1 AS `day_end_tm_yr`, 1 AS `day_end_tm_mon`, 1 AS `day_hrs_forcast_tm`, 1 AS `day_hrs_forcast_tm_nm`, 1 AS `day_off_forcast`, 1 AS `day_off_forcast_nm`, 1 AS `day_pay_forcast_amt`, 1 AS `day_hrs_actual_tm`, 1 AS `day_hrs_actual_tm_nm`, 1 AS `day_off_actual`, 1 AS `day_off_actual_nm`, 1 AS `day_pay_actual_amt`, 1 AS `days_schedule`, 1 AS `days_actual`, 1 AS `day_start_yr_mon`, 1 AS `hrs_days_updater`, 1 AS `hrs_days_updater_fnm`, 1 AS `hrs_days_updater_nm`, 1 AS `hrs_days_updated`, 1 AS `hrs_days_updated_fmt`, 1 AS `hrs_del_dt`, 1 AS `hrs_del_dt_fmt`, 1 AS `hrs_del_by`, 1 AS `hrs_del_by_fnm`, 1 AS `hrs_del_by_nm`, 1 AS `hrs_del_day`, 1 AS `hrs_del_day_vir`, 1 AS `hrs_archv_dt`, 1 AS `hrs_archv_dt_fmt`, 1 AS `hrs_archv_by`, 1 AS `hrs_archv_by_fnm`, 1 AS `hrs_archv_by_nm`, 1 AS `hrs_day_cy_run`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_emp_org_vac` -- DROP TABLE IF EXISTS `vw_emp_org_vac`; /*!50001 DROP VIEW IF EXISTS `vw_emp_org_vac`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_emp_org_vac` AS SELECT 1 AS `idemp_org_vac`, 1 AS `emp_org_id`, 1 AS `emp_id`, 1 AS `emp_fnm`, 1 AS `emp_nm`, 1 AS `comp_id`, 1 AS `comp_fnm`, 1 AS `comp_nm`, 1 AS `org_start_dt`, 1 AS `org_start_dt_fmt`, 1 AS `org_end_dt`, 1 AS `org_end_dt_fmt`, 1 AS `org_st_e_dt_fmt`, 1 AS `no_of_days`, 1 AS `no_of_days_vir`, 1 AS `org_tentative_en_dt`, 1 AS `org_tentative_en_dt_fmt`, 1 AS `emp_type`, 1 AS `emp_type_fmt`, 1 AS `idemp_org_hrs`, 1 AS `from_dt`, 1 AS `from_dt_fmt`, 1 AS `to_dt`, 1 AS `to_dt_fmt`, 1 AS `from_to_dt_fmt`, 1 AS `comp_fnm_nm_title_duration`, 1 AS `frm_to_org_hrs_days`, 1 AS `frm_to_org_hrs_days_vir`, 1 AS `tentative_en_dt`, 1 AS `tentative_en_dt_fmt`, 1 AS `emp_hrs_title`, 1 AS `emp_hrs_title_nm`, 1 AS `vac_type`, 1 AS `off_tm_days`, 1 AS `off_tm_calc`, 1 AS `hrs_earn`, 1 AS `hrs_use`, 1 AS `hrs_use_earn`, 1 AS `hrs_bal`, 1 AS `hrs_pcnt`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_engage` -- DROP TABLE IF EXISTS `vw_engage`; /*!50001 DROP VIEW IF EXISTS `vw_engage`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_engage` AS SELECT 1 AS `engage_id`, 1 AS `srv_client`, 1 AS `srv_client_fnm`, 1 AS `srv_client_nm`, 1 AS `srv_client_add`, 1 AS `srv_client_con`, 1 AS `srv_vendor`, 1 AS `srv_vendor_fnm`, 1 AS `srv_vendor_nm`, 1 AS `srv_ven_add`, 1 AS `srv_ven_con`, 1 AS `srv_st_dt`, 1 AS `srv_st_dt_fmt`, 1 AS `srv_st_yr`, 1 AS `srv_st_mon`, 1 AS `srv_e_dt`, 1 AS `srv_e_dt_fmt`, 1 AS `srv_e_yr`, 1 AS `srv_e_mon`, 1 AS `engage_cur_stat`, 1 AS `eng_tentive_en_dt`, 1 AS `eng_tentive_en_dt_fmt`, 1 AS `eng_tentive_en_yr_mon`, 1 AS `srv_st_e_dt`, 1 AS `srv_st_e_dt_fmt`, 1 AS `eng_cnt`, 1 AS `eng_tol`, 1 AS `eng_cnt_tol`, 1 AS `eng_cnt_pcnt`, 1 AS `eg_sumry`, 1 AS `cloud_drive`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `updated_by`, 1 AS `updated_by_fnm`, 1 AS `updated_by_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_engage_comp_add` -- DROP TABLE IF EXISTS `vw_engage_comp_add`; /*!50001 DROP VIEW IF EXISTS `vw_engage_comp_add`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_engage_comp_add` AS SELECT 1 AS `idengage_comp_add`, 1 AS `idengage_comp`, 1 AS `comp_add_id`, 1 AS `engage_id`, 1 AS `comp_id`, 1 AS `comp_fnm`, 1 AS `comp_nm`, 1 AS `look_street_no_id`, 1 AS `look_street_no`, 1 AS `street_name`, 1 AS `street_type`, 1 AS `house_apt_type_nm`, 1 AS `suite_no`, 1 AS `city_name`, 1 AS `state_name`, 1 AS `county_district_city_nm`, 1 AS `zip_code`, 1 AS `con_name`, 1 AS `comp_address_full`, 1 AS `add_type`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_engage_comp_con` -- DROP TABLE IF EXISTS `vw_engage_comp_con`; /*!50001 DROP VIEW IF EXISTS `vw_engage_comp_con`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_engage_comp_con` AS SELECT 1 AS `idengage_comp_con`, 1 AS `idengage_comp`, 1 AS `engage_id`, 1 AS `comp_id`, 1 AS `comp_fnm`, 1 AS `companyname`, 1 AS `comp_contact_id`, 1 AS `emp_id`, 1 AS `emp_fnm`, 1 AS `emp_nm`, 1 AS `title`, 1 AS `all_contacts`, 1 AS `comp_contact_all_details`, 1 AS `contact_notes`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_engage_doc` -- DROP TABLE IF EXISTS `vw_engage_doc`; /*!50001 DROP VIEW IF EXISTS `vw_engage_doc`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_engage_doc` AS SELECT 1 AS `idengage_doc`, 1 AS `engage_id`, 1 AS `idstorages`, 1 AS `file_name`, 1 AS `sto_cloud`, 1 AS `sto_cloud_nm`, 1 AS `file_size`, 1 AS `file_size_fmt`, 1 AS `owner_id`, 1 AS `owner_fnm`, 1 AS `owner_nm`, 1 AS `create_dt`, 1 AS `create_dt_fmt`, 1 AS `expire_dt`, 1 AS `expire_dt_fmt`, 1 AS `ext_type`, 1 AS `public`, 1 AS `self_view`, 1 AS `smry`, 1 AS `ref_emp_id`, 1 AS `ref_emp_fnm`, 1 AS `ref_emp_nm`, 1 AS `usage`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_engage_entity` -- DROP TABLE IF EXISTS `vw_engage_entity`; /*!50001 DROP VIEW IF EXISTS `vw_engage_entity`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_engage_entity` AS SELECT 1 AS `idengage_entity`, 1 AS `engage_id`, 1 AS `srv_client`, 1 AS `srv_client_fnm`, 1 AS `srv_client_nm`, 1 AS `srv_client_add`, 1 AS `srv_client_con`, 1 AS `srv_vendor`, 1 AS `srv_vendor_fnm`, 1 AS `srv_vendor_nm`, 1 AS `srv_ven_add`, 1 AS `srv_ven_con`, 1 AS `srv_st_dt`, 1 AS `srv_e_dt`, 1 AS `engage_cur_stat`, 1 AS `srv_st_e_dt`, 1 AS `eng_cnt`, 1 AS `eng_tol`, 1 AS `eng_cnt_tol`, 1 AS `eng_cnt_tol_pcnt`, 1 AS `engage_ref_tab`, 1 AS `engage_ref_id`, 1 AS `engage_ref_fnm`, 1 AS `engage_ref_nm`, 1 AS `engage_ref_tab_fnm_nm`, 1 AS `bill_start_dt`, 1 AS `bill_start_dt_fmt`, 1 AS `bill_start_yr`, 1 AS `bill_start_mon`, 1 AS `bill_cycle`, 1 AS `bill_end_dt`, 1 AS `bill_end_dt_fmt`, 1 AS `bill_end_yr`, 1 AS `bill_end_mon`, 1 AS `engage_entity_cur_stat`, 1 AS `bill_st_e_dt`, 1 AS `bill_st_e_dt_vir`, 1 AS `bill_fst_dt`, 1 AS `bill_fst_dt_fmt`, 1 AS `bill_day`, 1 AS `bill_pay_type`, 1 AS `bill_pay_type_nm`, 1 AS `bill_pay_cy`, 1 AS `bill_pay_rate`, 1 AS `bill_title`, 1 AS `bill_title_nm`, 1 AS `bill_hrs_mon`, 1 AS `bill_pay_rate_xtra`, 1 AS `ts_cycle`, 1 AS `ts_fst_dt`, 1 AS `ts_fst_dt_fmt`, 1 AS `netpay`, 1 AS `tentative_e_dt`, 1 AS `tentative_e_dt_fmt`, 1 AS `tentative_e_mon_yr`, 1 AS `access_name`, 1 AS `remind`, 1 AS `summary`, 1 AS `cloud_drive`, 1 AS `allow_inv`, 1 AS `show_emp`, 1 AS `bill_cycle_run_dt`, 1 AS `bill_cycle_run_dt_fmt`, 1 AS `bill_cycle_ran`, 1 AS `ts_cycle_run_dt`, 1 AS `ts_cycle_run_dt_fmt`, 1 AS `ts_cycle_ran`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `old_bc_dt`, 1 AS `old_tc_dt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_engage_entity_bud` -- DROP TABLE IF EXISTS `vw_engage_entity_bud`; /*!50001 DROP VIEW IF EXISTS `vw_engage_entity_bud`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_engage_entity_bud` AS SELECT 1 AS `idengage_entity_bud`, 1 AS `engage_id`, 1 AS `srv_client`, 1 AS `srv_client_fnm`, 1 AS `srv_client_nm`, 1 AS `srv_client_add`, 1 AS `srv_client_con`, 1 AS `srv_vendor`, 1 AS `srv_vendor_fnm`, 1 AS `srv_vendor_nm`, 1 AS `srv_ven_add`, 1 AS `srv_ven_con`, 1 AS `srv_st_dt`, 1 AS `srv_st_dt_fmt`, 1 AS `srv_e_dt`, 1 AS `srv_e_dt_fmt`, 1 AS `srv_st_e_dt`, 1 AS `srv_st_e_dt_fmt`, 1 AS `eng_tentive_en_dt`, 1 AS `eng_tentive_en_dt_fmt`, 1 AS `eng_cnt`, 1 AS `eng_tol`, 1 AS `eng_cnt_tol`, 1 AS `eng_cnt_tol_pcnt`, 1 AS `eg_sumry`, 1 AS `cloud_drive`, 1 AS `idengage_entity`, 1 AS `engage_ref_tab`, 1 AS `engage_ref_id`, 1 AS `engage_ref_fnm`, 1 AS `engage_ref_nm`, 1 AS `engage_ref_tab_fnm_nm`, 1 AS `bill_start_dt`, 1 AS `bill_start_dt_fmt`, 1 AS `bill_cycle`, 1 AS `bill_end_dt`, 1 AS `bill_end_dt_fmt`, 1 AS `bill_st_e_dt`, 1 AS `bill_st_e_dt_vir`, 1 AS `bill_fst_dt`, 1 AS `bill_fst_dt_fmt`, 1 AS `bill_day`, 1 AS `bill_pay_type`, 1 AS `bill_pay_type_nm`, 1 AS `eng_ent_cnt`, 1 AS `eng_ent_tol`, 1 AS `eng_bud_pcnt`, 1 AS `bill_pay_rate`, 1 AS `bill_title`, 1 AS `bill_title_nm`, 1 AS `bill_hrs_mon`, 1 AS `bill_pay_rate_xtra`, 1 AS `ts_cycle`, 1 AS `ts_fst_dt`, 1 AS `ts_fst_dt_fmt`, 1 AS `ts_fst_day`, 1 AS `netpay`, 1 AS `tentative_e_dt`, 1 AS `tentative_e_dt_fmt`, 1 AS `engage_bud_ref_id`, 1 AS `engage_bud_ref_tab`, 1 AS `engage_bud_ref_tab_fnm`, 1 AS `engage_bud_ref_tab_nm`, 1 AS `engage_bud_ref_tab_fnm_nm`, 1 AS `engage_calc`, 1 AS `engage_amt`, 1 AS `show_emp`, 1 AS `engage_st_dt`, 1 AS `engage_st_dt_fmt`, 1 AS `engage_st_dt_yr`, 1 AS `engage_st_dt_mon`, 1 AS `engage_e_dt`, 1 AS `engage_e_dt_fmt`, 1 AS `engage_e_dt_yr`, 1 AS `engage_e_dt_mon`, 1 AS `engage_st_e_dt`, 1 AS `engage_st_e_dt_vir`, 1 AS `limit_amt`, 1 AS `engage_smry`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_engage_entity_doc` -- DROP TABLE IF EXISTS `vw_engage_entity_doc`; /*!50001 DROP VIEW IF EXISTS `vw_engage_entity_doc`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_engage_entity_doc` AS SELECT 1 AS `idengage_entity_doc`, 1 AS `idengage_entity`, 1 AS `idstorages`, 1 AS `file_name`, 1 AS `sto_cloud`, 1 AS `sto_cloud_nm`, 1 AS `file_size`, 1 AS `file_size_fmt`, 1 AS `owner_id`, 1 AS `owner_fnm`, 1 AS `owner_nm`, 1 AS `create_dt`, 1 AS `create_dt_fmt`, 1 AS `expire_dt`, 1 AS `expire_dt_fmt`, 1 AS `ext_type`, 1 AS `public`, 1 AS `self_view`, 1 AS `smry`, 1 AS `ref_emp_id`, 1 AS `ref_emp_fnm`, 1 AS `ref_emp_nm`, 1 AS `usage`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_feature` -- DROP TABLE IF EXISTS `vw_feature`; /*!50001 DROP VIEW IF EXISTS `vw_feature`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_feature` AS SELECT 1 AS `feature_no`, 1 AS `feature_id`, 1 AS `feature_name`, 1 AS `feature_desc`, 1 AS `disp_order`, 1 AS `assigned`, 1 AS `groups`, 1 AS `menus`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_feature_grp` -- DROP TABLE IF EXISTS `vw_feature_grp`; /*!50001 DROP VIEW IF EXISTS `vw_feature_grp`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_feature_grp` AS SELECT 1 AS `idfeature_grp`, 1 AS `group_name`, 1 AS `feature_cnt`, 1 AS `group_desc`, 1 AS `feature_ids`, 1 AS `feature_nm`, 1 AS `updater`, 1 AS `emp_fnm`, 1 AS `fullname`, 1 AS `last_updated`, 1 AS `last_updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_feature_grp_list` -- DROP TABLE IF EXISTS `vw_feature_grp_list`; /*!50001 DROP VIEW IF EXISTS `vw_feature_grp_list`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_feature_grp_list` AS SELECT 1 AS `idfeature_grp_list`, 1 AS `idfeature_grp`, 1 AS `group_name`, 1 AS `group_desc`, 1 AS `updater`, 1 AS `emp_fnm`, 1 AS `fullname`, 1 AS `last_updated_fmt`, 1 AS `feature_id`, 1 AS `feature_name`, 1 AS `feature_desc`, 1 AS `disp_order`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_feature_lk_val` -- DROP TABLE IF EXISTS `vw_feature_lk_val`; /*!50001 DROP VIEW IF EXISTS `vw_feature_lk_val`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_feature_lk_val` AS SELECT 1 AS `idfeature_lk_val`, 1 AS `idfeature_lk`, 1 AS `lk_val_par`, 1 AS `lk_val`, 1 AS `child_lvl`, 1 AS `lk_val_desc`, 1 AS `disp_order`, 1 AS `parent_id`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_festival` -- DROP TABLE IF EXISTS `vw_festival`; /*!50001 DROP VIEW IF EXISTS `vw_festival`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_festival` AS SELECT 1 AS `idfestival`, 1 AS `look_values_id`, 1 AS `comp_id`, 1 AS `festival_yr`, 1 AS `festival_day`, 1 AS `day`, 1 AS `festival_name`, 1 AS `festival_type`, 1 AS `last_updated`, 1 AS `updated_by`, 1 AS `mod_last_updated`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_festival_company` -- DROP TABLE IF EXISTS `vw_festival_company`; /*!50001 DROP VIEW IF EXISTS `vw_festival_company`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_festival_company` AS SELECT 1 AS `idfestival`, 1 AS `look_values_id`, 1 AS `comp_id`, 1 AS `companyname`, 1 AS `festival_yr`, 1 AS `festival_day`, 1 AS `day`, 1 AS `festival_name`, 1 AS `festival_type`, 1 AS `last_updated`, 1 AS `updated_by`, 1 AS `mod_last_updated`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_hours` -- DROP TABLE IF EXISTS `vw_hours`; /*!50001 DROP VIEW IF EXISTS `vw_hours`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_hours` AS SELECT 1 AS `hour_id`, 1 AS `idemp_org_hrs_days_cy`, 1 AS `idemp_org_hrs_days_cy_nm`, 1 AS `emp_id`, 1 AS `emp_fnm`, 1 AS `emp_nm`, 1 AS `idemp_org_hrs`, 1 AS `emp_org_hrs_comp_id`, 1 AS `emp_org_hrs_comp_fnm`, 1 AS `emp_org_hrs_comp_nm`, 1 AS `engage_ref_tab`, 1 AS `engage_ref_id`, 1 AS `engage_ref_fnm`, 1 AS `engage_ref_nm`, 1 AS `engage_ref_nm2`, 1 AS `comp_id`, 1 AS `companyname`, 1 AS `comp_fnm`, 1 AS `idhours_cy_bc`, 1 AS `idhours_cy_bc_nm`, 1 AS `idinv`, 1 AS `idinv_nm`, 1 AS `idemp_pay`, 1 AS `idemp_pay_nm`, 1 AS `hr_st_dt`, 1 AS `hr_st_dt_fmt`, 1 AS `hr_st_day`, 1 AS `hr_st_dt_yr`, 1 AS `hr_st_dt_mon`, 1 AS `hr_st_dt_yr_mon`, 1 AS `hr_st_dt_tm_fmt`, 1 AS `hr_e_dt`, 1 AS `hr_e_dt_fmt`, 1 AS `hr_e_day`, 1 AS `hr_e_day_no`, 1 AS `hr_e_dt_yr`, 1 AS `hr_e_dt_mon`, 1 AS `hr_e_dt_yr_mon`, 1 AS `hr_e_dt_yr_mon_no`, 1 AS `hr_e_dt_tm_fmt`, 1 AS `hr_st_e_dt_tm_fmt`, 1 AS `off_time`, 1 AS `off_tm_nm`, 1 AS `hr_tol`, 1 AS `hr_tol_nm`, 1 AS `iddev_apps`, 1 AS `app_nm`, 1 AS `dev_est`, 1 AS `dev_est_nm`, 1 AS `dev_est_smry`, 1 AS `dev_est_reqs`, 1 AS `dev_est_reqs_nm`, 1 AS `req_desc`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `hrs_type`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `iplook_ip_addr`, 1 AS `ip_address`, 1 AS `domain_nm`, 1 AS `ip_contry`, 1 AS `ip_state`, 1 AS `ip_city`, 1 AS `ip_post_code`, 1 AS `approver`, 1 AS `approver_fnm`, 1 AS `approver_nm`, 1 AS `approve_by`, 1 AS `approve_by_fnm`, 1 AS `approve_by_nm`, 1 AS `approve_dt`, 1 AS `approve_dt_fmt_up`, 1 AS `approve_temp_dt`, 1 AS `timecard_id`, 1 AS `summary`, 1 AS `hours_cnt`, 1 AS `hours_cnt_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_hours_access` -- DROP TABLE IF EXISTS `vw_hours_access`; /*!50001 DROP VIEW IF EXISTS `vw_hours_access`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_hours_access` AS SELECT 1 AS `idhours_access`, 1 AS `hrs_access_to`, 1 AS `hrs_access_to_fnm`, 1 AS `hrs_access_to_nm`, 1 AS `hrs_access_of`, 1 AS `hrs_access_fnm`, 1 AS `hrs_access_of_nm`, 1 AS `acc_from_dt`, 1 AS `acc_from_dt_fmt`, 1 AS `acc_from_yr`, 1 AS `acc_from_mon`, 1 AS `acc_to_dt`, 1 AS `acc_to_dt_fmt`, 1 AS `acc_to_yr`, 1 AS `acc_to_mon`, 1 AS `acc_type`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_hours_cy_bc` -- DROP TABLE IF EXISTS `vw_hours_cy_bc`; /*!50001 DROP VIEW IF EXISTS `vw_hours_cy_bc`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_hours_cy_bc` AS SELECT 1 AS `idhours_cy_bc`, 1 AS `idengage_entity`, 1 AS `engage_id`, 1 AS `srv_client`, 1 AS `srv_client_fnm`, 1 AS `srv_client_nm`, 1 AS `srv_client_add`, 1 AS `srv_client_con`, 1 AS `srv_vendor`, 1 AS `srv_vendor_fnm`, 1 AS `srv_vendor_nm`, 1 AS `srv_ven_add`, 1 AS `srv_ven_con`, 1 AS `srv_st_dt`, 1 AS `srv_st_dt_fmt`, 1 AS `srv_e_dt`, 1 AS `srv_e_dt_fmt`, 1 AS `engage_ref_tab`, 1 AS `engage_ref_id`, 1 AS `engage_ref_fnm`, 1 AS `engage_ref_nm`, 1 AS `bill_start_dt`, 1 AS `bill_start_dt_fmt`, 1 AS `bill_cycle`, 1 AS `bill_end_dt`, 1 AS `bill_end_dt_fmt`, 1 AS `bill_st_e_dt`, 1 AS `bill_st_e_dt_vir`, 1 AS `tentative_e_dt`, 1 AS `tentative_e_dt_fmt`, 1 AS `bill_pay_type`, 1 AS `bill_pay_cy`, 1 AS `bill_pay_rate`, 1 AS `bill_title`, 1 AS `bill_title_nm`, 1 AS `bill_hrs_mon`, 1 AS `bill_pay_rate_xtra`, 1 AS `ts_cycle`, 1 AS `netpay`, 1 AS `allow_inv`, 1 AS `show_emp`, 1 AS `bc_st_dt`, 1 AS `bc_st_dt_fmt`, 1 AS `bc_e_dt`, 1 AS `bc_e_dt_fmt`, 1 AS `bc_due_dt`, 1 AS `bc_due_dt_fmt`, 1 AS `bc_forcast_hr`, 1 AS `bc_actual_hr`, 1 AS `bc_actual_hr_forcast_hr`, 1 AS `bc_hrs_pcnt`, 1 AS `hr_approved`, 1 AS `hr_inv`, 1 AS `bc_forcast_inv`, 1 AS `bc_actual_inv`, 1 AS `bc_actual_inv_forcast_inv`, 1 AS `bc_inv_pcnt`, 1 AS `show_hide`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_hours_cy_tc` -- DROP TABLE IF EXISTS `vw_hours_cy_tc`; /*!50001 DROP VIEW IF EXISTS `vw_hours_cy_tc`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_hours_cy_tc` AS SELECT 1 AS `idhours_cy_tc`, 1 AS `idengage_entity`, 1 AS `engage_id`, 1 AS `srv_client`, 1 AS `srv_client_fnm`, 1 AS `srv_client_nm`, 1 AS `srv_client_add`, 1 AS `srv_client_con`, 1 AS `srv_vendor`, 1 AS `srv_vendor_fnm`, 1 AS `srv_vendor_nm`, 1 AS `srv_ven_add`, 1 AS `srv_ven_con`, 1 AS `srv_st_dt`, 1 AS `srv_st_dt_fmt`, 1 AS `srv_e_dt`, 1 AS `srv_e_dt_fmt`, 1 AS `engage_ref_tab`, 1 AS `engage_ref_id`, 1 AS `engage_ref_fnm`, 1 AS `engage_ref_nm`, 1 AS `bill_start_dt`, 1 AS `bill_start_dt_fmt`, 1 AS `bill_cycle`, 1 AS `bill_end_dt`, 1 AS `bill_end_dt_fmt`, 1 AS `bill_st_e_dt`, 1 AS `bill_st_e_dt_vir`, 1 AS `tentative_e_dt`, 1 AS `tentative_e_dt_fmt`, 1 AS `bill_pay_type`, 1 AS `bill_pay_cy`, 1 AS `bill_pay_rate`, 1 AS `bill_title`, 1 AS `bill_title_nm`, 1 AS `bill_hrs_mon`, 1 AS `bill_pay_rate_xtra`, 1 AS `ts_cycle`, 1 AS `netpay`, 1 AS `allow_inv`, 1 AS `show_emp`, 1 AS `tc_st_dt`, 1 AS `tc_st_dt_fmt`, 1 AS `tc_e_dt`, 1 AS `tc_e_dt_fmt`, 1 AS `tc_due_dt`, 1 AS `tc_due_dt_fmt`, 1 AS `tc_forcast_hr`, 1 AS `tc_actual_hr`, 1 AS `tc_actual_hr_forcast_hr`, 1 AS `tc_hrs_pcnt`, 1 AS `hr_approved`, 1 AS `show_hide`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_hours_hist` -- DROP TABLE IF EXISTS `vw_hours_hist`; /*!50001 DROP VIEW IF EXISTS `vw_hours_hist`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_hours_hist` AS SELECT 1 AS `idhour_hist`, 1 AS `hour_id`, 1 AS `hr_st_dt`, 1 AS `hr_st_dt_fmt`, 1 AS `hr_st_day`, 1 AS `hr_st_dt_tm_fmt`, 1 AS `hr_e_dt`, 1 AS `hr_e_dt_fmt`, 1 AS `hr_e_day`, 1 AS `hr_e_dt_tm_fmt`, 1 AS `hr_st_e_dt_tm_fmt`, 1 AS `off_time`, 1 AS `off_tm_nm`, 1 AS `hr_tol`, 1 AS `hr_tol_nm`, 1 AS `iddev_apps`, 1 AS `app_nm`, 1 AS `dev_est`, 1 AS `dev_est_nm`, 1 AS `dev_est_smry`, 1 AS `dev_est_reqs`, 1 AS `dev_est_reqs_nm`, 1 AS `req_desc`, 1 AS `agile_details`, 1 AS `hrs_type`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `iplook_ip_addr`, 1 AS `ip_address`, 1 AS `domain_nm`, 1 AS `ip_contry`, 1 AS `ip_state`, 1 AS `ip_city`, 1 AS `ip_post_code`, 1 AS `approver`, 1 AS `approver_fnm`, 1 AS `approver_nm`, 1 AS `summary`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_hours_time` -- DROP TABLE IF EXISTS `vw_hours_time`; /*!50001 DROP VIEW IF EXISTS `vw_hours_time`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_hours_time` AS SELECT 1 AS `timecard_id`, 1 AS `emp_id`, 1 AS `emp_fnm`, 1 AS `emp_nm`, 1 AS `comp_id`, 1 AS `comp_fnm`, 1 AS `comp_nm`, 1 AS `timefrom_dt`, 1 AS `timefrom_dt_fmt`, 1 AS `timefrom_dt_yr`, 1 AS `timefrom_dt_mon`, 1 AS `timeto_dt`, 1 AS `timeto_dt_fmt`, 1 AS `timefrom_to_day`, 1 AS `bill_hrs`, 1 AS `unbill_hrs`, 1 AS `total_hrs`, 1 AS `validate_dt`, 1 AS `validate_dt_fmt`, 1 AS `validate_dt_cur_stat`, 1 AS `validate_by`, 1 AS `validate_by_fnm`, 1 AS `validate_by_nm`, 1 AS `summary`, 1 AS `idstorages`, 1 AS `idstorages_cur_stat`, 1 AS `file_name`, 1 AS `file_ser_name`, 1 AS `file_size`, 1 AS `owner_id`, 1 AS `owner_fnm`, 1 AS `owner_nm`, 1 AS `ext_type`, 1 AS `public`, 1 AS `self_view`, 1 AS `smry`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `updated_by`, 1 AS `updated_by_fnm`, 1 AS `updated_by_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_hr_audit` -- DROP TABLE IF EXISTS `vw_hr_audit`; /*!50001 DROP VIEW IF EXISTS `vw_hr_audit`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_hr_audit` AS SELECT 1 AS `idhr_audit`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updated_fmt_yr`, 1 AS `updated_fmt_mon`, 1 AS `updated_fmt_day`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `table_update`, 1 AS `action`, 1 AS `table_id`, 1 AS `col1`, 1 AS `idlook_menu_pvt_lvl2`, 1 AS `idlook_menu_pvt_lvl2_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_hr_meeting` -- DROP TABLE IF EXISTS `vw_hr_meeting`; /*!50001 DROP VIEW IF EXISTS `vw_hr_meeting`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_hr_meeting` AS SELECT 1 AS `idhr_meeting`, 1 AS `st_tm_est`, 1 AS `e_tm_est`, 1 AS `est_meeting_time`, 1 AS `st_tm_ist`, 1 AS `e_tm_ist`, 1 AS `ist_meeting_time`, 1 AS `description`, 1 AS `attendants`, 1 AS `scrum_master`, 1 AS `last_updated`, 1 AS `updater`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_hr_policy` -- DROP TABLE IF EXISTS `vw_hr_policy`; /*!50001 DROP VIEW IF EXISTS `vw_hr_policy`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_hr_policy` AS SELECT 1 AS `idhr_policy`, 1 AS `lk_policy`, 1 AS `lk_policy_desc`, 1 AS `lk_disp_id`, 1 AS `lk_paren_tag_id`, 1 AS `updater`, 1 AS `updater_nm`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `last_updated_by`, 1 AS `lk_policy_text`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_hr_recruit_lk` -- DROP TABLE IF EXISTS `vw_hr_recruit_lk`; /*!50001 DROP VIEW IF EXISTS `vw_hr_recruit_lk`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_hr_recruit_lk` AS SELECT 1 AS `idhr_recruit_lk_val`, 1 AS `idhr_recruit_lk`, 1 AS `hr_val`, 1 AS `lk_val_desc`, 1 AS `disp_order`, 1 AS `parent_id`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updated_by`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_hr_recruit_lk_tag` -- DROP TABLE IF EXISTS `vw_hr_recruit_lk_tag`; /*!50001 DROP VIEW IF EXISTS `vw_hr_recruit_lk_tag`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_hr_recruit_lk_tag` AS SELECT 1 AS `idhr_recruit_lk_tag`, 1 AS `lk_tag`, 1 AS `lk_tag_desc`, 1 AS `lk_disp_id`, 1 AS `lk_parent_tag_id`, 1 AS `updater`, 1 AS `updater_fmt`, 1 AS `updater_file_name`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `last_updated_by`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_hr_recruit_lk_val` -- DROP TABLE IF EXISTS `vw_hr_recruit_lk_val`; /*!50001 DROP VIEW IF EXISTS `vw_hr_recruit_lk_val`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_hr_recruit_lk_val` AS SELECT 1 AS `idhr_recruit_lk_val`, 1 AS `idhr_recruit_lk`, 1 AS `lk_val_par`, 1 AS `hr_val`, 1 AS `lk_val_desc`, 1 AS `disp_order`, 1 AS `parent_id`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updated_by`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_immi_audit` -- DROP TABLE IF EXISTS `vw_immi_audit`; /*!50001 DROP VIEW IF EXISTS `vw_immi_audit`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_immi_audit` AS SELECT 1 AS `idimmi_audit`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updated_fmt_yr`, 1 AS `updated_fmt_mon`, 1 AS `updated_fmt_day`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `table_update`, 1 AS `action`, 1 AS `table_id`, 1 AS `col1`, 1 AS `idlook_menu_pvt_lvl2`, 1 AS `idlook_menu_pvt_lvl2_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_immi_lk_val` -- DROP TABLE IF EXISTS `vw_immi_lk_val`; /*!50001 DROP VIEW IF EXISTS `vw_immi_lk_val`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_immi_lk_val` AS SELECT 1 AS `idimmi_lk_val`, 1 AS `idimmi_lk`, 1 AS `lk_val`, 1 AS `lk_val_desc`, 1 AS `immi_form`, 1 AS `disp_order`, 1 AS `parent_id`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `lk_parent_val_id`, 1 AS `parent_lk_val`, 1 AS `parent_lk_val_desc`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_immi_lk_wrk_flow` -- DROP TABLE IF EXISTS `vw_immi_lk_wrk_flow`; /*!50001 DROP VIEW IF EXISTS `vw_immi_lk_wrk_flow`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_immi_lk_wrk_flow` AS SELECT 1 AS `idimmi_lk_wrk_flow`, 1 AS `wrk_flow_nm`, 1 AS `id_wrk_flow`, 1 AS `wrk_flow_desc`, 1 AS `id_wrk_flow_parent`, 1 AS `look_restart`, 1 AS `look_initial`, 1 AS `disp_order`, 1 AS `updater`, 1 AS `updater_fmt`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `last_updated_by`, 1 AS `lk_val`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_immi_qry` -- DROP TABLE IF EXISTS `vw_immi_qry`; /*!50001 DROP VIEW IF EXISTS `vw_immi_qry`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_immi_qry` AS SELECT 1 AS `idimmi_qry`, 1 AS `disp_order`, 1 AS `immi_desc`, 1 AS `immi_desc_detail`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_immi_rcpt` -- DROP TABLE IF EXISTS `vw_immi_rcpt`; /*!50001 DROP VIEW IF EXISTS `vw_immi_rcpt`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_immi_rcpt` AS SELECT 1 AS `idimmi_rcpt`, 1 AS `comp_id`, 1 AS `comp_fnm`, 1 AS `comp_nm`, 1 AS `rcpt_no`, 1 AS `rcpt_par_cnt`, 1 AS `rcpt_par_cnt_nm`, 1 AS `rcpt_ch_cnt`, 1 AS `rcpt_ch_cnt_nm`, 1 AS `rcpt_type`, 1 AS `rcpt_type_nm`, 1 AS `rcpt_type_sub`, 1 AS `rcpt_type_sub_nm`, 1 AS `rcpt_loc_cnt`, 1 AS `rcpt_loc_cnt_nm`, 1 AS `rcpt_address`, 1 AS `rcpt_address_nm`, 1 AS `emp_id`, 1 AS `emp_fnm`, 1 AS `emp_nm`, 1 AS `filed_dt`, 1 AS `filed_dt_fmt`, 1 AS `filed_dt_yr`, 1 AS `filed_dt_mon`, 1 AS `ad_title`, 1 AS `ad_title_nm`, 1 AS `occ_code`, 1 AS `occ_code_nm`, 1 AS `skill_level`, 1 AS `skill_level_nm`, 1 AS `from_dt`, 1 AS `from_dt_fmt`, 1 AS `from_dt_yr`, 1 AS `from_dt_mon`, 1 AS `to_dt`, 1 AS `to_dt_fmt`, 1 AS `to_dt_yr`, 1 AS `to_dt_mon`, 1 AS `from_to_dt_days`, 1 AS `from_to_dt_days_vir`, 1 AS `from_to_dt_days_combo`, 1 AS `valid_days`, 1 AS `valid_days_nm`, 1 AS `expire_dt`, 1 AS `expire_dt_fmt`, 1 AS `expire_dt_fmt2`, 1 AS `expire_dt_no_days`, 1 AS `expire_dt_cur_stat`, 1 AS `education`, 1 AS `education_nm`, 1 AS `exp_yr`, 1 AS `exp_yr_nm`, 1 AS `sal_type`, 1 AS `sal_type_nm`, 1 AS `sal_amt`, 1 AS `sal_amt_nm`, 1 AS `assigned_to`, 1 AS `assigned_to_fnm`, 1 AS `assigned_to_nm`, 1 AS `idimmi_lk_wrk_flow`, 1 AS `idimmi_lk_wrk_flow_nm`, 1 AS `immi_stat_st_dt`, 1 AS `immi_stat_st_dt_fmt`, 1 AS `immi_stat_e_est_dt`, 1 AS `immi_stat_e_est_dt_fmt`, 1 AS `immi_stat_st_e_est_dt`, 1 AS `immi_stat_st_e_est_dt_vir`, 1 AS `immi_stat_e_real_dt`, 1 AS `immi_stat_e_real_dt_fmt`, 1 AS `immi_stat_st_e_real_dt`, 1 AS `immi_stat_st_e_real_dt_vir`, 1 AS `immi_stat_st_e_real_dt_cur_stat`, 1 AS `immi_stat_st_e_dt_cur_est`, 1 AS `rcpt_status`, 1 AS `rcpt_status_nm`, 1 AS `immi_stat_cnt`, 1 AS `immi_summary`, 1 AS `idlook_stat_order`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_immi_rcpt_addr` -- DROP TABLE IF EXISTS `vw_immi_rcpt_addr`; /*!50001 DROP VIEW IF EXISTS `vw_immi_rcpt_addr`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_immi_rcpt_addr` AS SELECT 1 AS `idimmi_rcpt_addr`, 1 AS `idimmi_rcpt`, 1 AS `look_street_no_id`, 1 AS `look_street_id`, 1 AS `look_street_no`, 1 AS `postal_id`, 1 AS `street_name`, 1 AS `street_type`, 1 AS `street_type_nm`, 1 AS `city_id`, 1 AS `zip_code`, 1 AS `state_id`, 1 AS `city_name`, 1 AS `county_district_city_nm`, 1 AS `country_id`, 1 AS `state_name`, 1 AS `con_name`, 1 AS `property_type`, 1 AS `property_type_nm`, 1 AS `suite_no`, 1 AS `addresses`, 1 AS `tm_zn`, 1 AS `start_tm`, 1 AS `start_tm_fmt`, 1 AS `end_tm`, 1 AS `end_tm_fmt`, 1 AS `hrs_tm`, 1 AS `hrs_tm_nm`, 1 AS `off_time`, 1 AS `off_time_nm`, 1 AS `days_schedule`, 1 AS `days`, 1 AS `day_cy`, 1 AS `day_cy_nm`, 1 AS `day_pcnt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_immi_rcpt_doc` -- DROP TABLE IF EXISTS `vw_immi_rcpt_doc`; /*!50001 DROP VIEW IF EXISTS `vw_immi_rcpt_doc`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_immi_rcpt_doc` AS SELECT 1 AS `idimmi_rcpt_doc`, 1 AS `idimmi_rcpt`, 1 AS `comp_id`, 1 AS `comp_fnm`, 1 AS `comp_nm`, 1 AS `rcpt_type`, 1 AS `rcpt_type_nm`, 1 AS `rcpt_no`, 1 AS `idstorages`, 1 AS `file_name`, 1 AS `sto_cloud`, 1 AS `sto_cloud_nm`, 1 AS `file_size`, 1 AS `file_size_fmt`, 1 AS `owner_id`, 1 AS `owner_fnm`, 1 AS `owner_nm`, 1 AS `create_dt`, 1 AS `create_dt_fmt`, 1 AS `expire_dt`, 1 AS `expire_dt_fmt`, 1 AS `ext_type`, 1 AS `public`, 1 AS `self_view`, 1 AS `smry`, 1 AS `ref_emp_id`, 1 AS `ref_emp_fnm`, 1 AS `ref_emp_nm`, 1 AS `usage`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_immi_rcpt_parent` -- DROP TABLE IF EXISTS `vw_immi_rcpt_parent`; /*!50001 DROP VIEW IF EXISTS `vw_immi_rcpt_parent`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_immi_rcpt_parent` AS SELECT 1 AS `idimmi_rcpt_parent`, 1 AS `rcpt_parent_id`, 1 AS `comp_id_par`, 1 AS `comp_fnm_par`, 1 AS `comp_nm_par`, 1 AS `rcpt_loc_cnt_par`, 1 AS `rcpt_loc_cnt_nm_par`, 1 AS `rcpt_address_par`, 1 AS `rcpt_address_nm_par`, 1 AS `rcpt_type_par`, 1 AS `rcpt_type_nm_par`, 1 AS `rcpt_type_sub_par`, 1 AS `rcpt_type_sub_nm_par`, 1 AS `rcpt_no_par`, 1 AS `emp_id_par`, 1 AS `emp_fnm_par`, 1 AS `emp_nm_par`, 1 AS `filled_dt_par`, 1 AS `filled_dt_fmt_par`, 1 AS `ad_title_par`, 1 AS `ad_title_nm_par`, 1 AS `occ_code_par`, 1 AS `occ_code_nm_par`, 1 AS `skill_level_par`, 1 AS `skill_level_nm_par`, 1 AS `from_dt_par`, 1 AS `from_dt_fmt_par`, 1 AS `to_dt_par`, 1 AS `to_dt_fmt_par`, 1 AS `from_to_dt_days_par`, 1 AS `from_to_dt_days_vir_par`, 1 AS `valid_days_par`, 1 AS `valid_days_nm_par`, 1 AS `expire_dt_par`, 1 AS `expire_dt_fmt_par`, 1 AS `education_par`, 1 AS `education_nm_par`, 1 AS `exp_yr_par`, 1 AS `exp_yr_nm_par`, 1 AS `sal_type_par`, 1 AS `sal_type_nm_par`, 1 AS `sal_amt_par`, 1 AS `sal_amt_nm_par`, 1 AS `rcpt_child_id`, 1 AS `comp_id_ch`, 1 AS `comp_fnm_ch`, 1 AS `comp_nm_ch`, 1 AS `rcpt_type_ch`, 1 AS `rcpt_type_nm_ch`, 1 AS `rcpt_type_sub_ch`, 1 AS `rcpt_type_sub_nm_ch`, 1 AS `rcpt_loc_cnt_ch`, 1 AS `rcpt_loc_cnt_nm_ch`, 1 AS `rcpt_address_ch`, 1 AS `rcpt_address_nm_ch`, 1 AS `rcpt_no_ch`, 1 AS `emp_id_ch`, 1 AS `emp_fnm_ch`, 1 AS `emp_nm_ch`, 1 AS `filled_dt_ch`, 1 AS `filled_dt_fmt_ch`, 1 AS `ad_title_ch`, 1 AS `ad_title_nm_ch`, 1 AS `occ_code_ch`, 1 AS `occ_code_nm_ch`, 1 AS `skill_level_ch`, 1 AS `skill_level_nm_ch`, 1 AS `from_dt_ch`, 1 AS `from_dt_fmt_ch`, 1 AS `to_dt_ch`, 1 AS `to_dt_fmt_ch`, 1 AS `from_to_dt_days_ch`, 1 AS `from_to_dt_days_vir_ch`, 1 AS `valid_days_ch`, 1 AS `valid_days_nm_ch`, 1 AS `expire_dt_ch`, 1 AS `expire_dt_fmt_ch`, 1 AS `education_ch`, 1 AS `education_nm_ch`, 1 AS `exp_yr_ch`, 1 AS `exp_yr_nm_ch`, 1 AS `sal_type_ch`, 1 AS `sal_type_nm_ch`, 1 AS `sal_amt_ch`, 1 AS `sal_amt_nm_ch`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_immi_rcpt_stat` -- DROP TABLE IF EXISTS `vw_immi_rcpt_stat`; /*!50001 DROP VIEW IF EXISTS `vw_immi_rcpt_stat`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_immi_rcpt_stat` AS SELECT 1 AS `idimmi_rcpt_stat`, 1 AS `idimmi_rcpt`, 1 AS `comp_id`, 1 AS `comp_fnm`, 1 AS `comp_nm`, 1 AS `rcpt_type`, 1 AS `rcpt_type_nm`, 1 AS `rcpt_no`, 1 AS `rcpt_status`, 1 AS `rcpt_status_nm`, 1 AS `stat_st_dt`, 1 AS `stat_st_dt_fmt`, 1 AS `stat_st_dt_yr`, 1 AS `stat_st_dt_mon`, 1 AS `stat_e_dt`, 1 AS `stat_e_dt_fmt`, 1 AS `stat_e_dt_yr`, 1 AS `stat_e_dt_mon`, 1 AS `stat_st_e_dt`, 1 AS `stat_st_e_dt_vir`, 1 AS `cur_stat`, 1 AS `cur_stat_nm`, 1 AS `cur_stat_st_dt`, 1 AS `cur_stat_st_dt_fmt`, 1 AS `cur_stat_e_real_dt`, 1 AS `cur_stat_e_real_dt_fmt`, 1 AS `cur_stat_st_e_real_dt`, 1 AS `cur_stat_st_e_real_dt_vir`, 1 AS `stat_smry`, 1 AS `idlook_stat_order`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_immi_rcpt_stat_doc` -- DROP TABLE IF EXISTS `vw_immi_rcpt_stat_doc`; /*!50001 DROP VIEW IF EXISTS `vw_immi_rcpt_stat_doc`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_immi_rcpt_stat_doc` AS SELECT 1 AS `idimmi_rcpt_stat_doc`, 1 AS `idimmi_rcpt_stat`, 1 AS `idstorages`, 1 AS `file_name`, 1 AS `sto_cloud`, 1 AS `sto_cloud_nm`, 1 AS `file_size`, 1 AS `file_size_fmt`, 1 AS `owner_id`, 1 AS `owner_fnm`, 1 AS `owner_nm`, 1 AS `create_dt`, 1 AS `create_dt_fmt`, 1 AS `expire_dt`, 1 AS `expire_dt_fmt`, 1 AS `ext_type`, 1 AS `public`, 1 AS `self_view`, 1 AS `smry`, 1 AS `ref_emp_id`, 1 AS `ref_emp_fnm`, 1 AS `ref_emp_nm`, 1 AS `usage`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_inv` -- DROP TABLE IF EXISTS `vw_inv`; /*!50001 DROP VIEW IF EXISTS `vw_inv`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_inv` AS SELECT 1 AS `idinv`, 1 AS `from_ref_tab`, 1 AS `from_ref_id`, 1 AS `from_nm`, 1 AS `from_fnm`, 1 AS `all_contacts`, 1 AS `from_look_street_no_id`, 1 AS `from_address`, 1 AS `from_suite_no`, 1 AS `from_address_type`, 1 AS `from_address_type_nm`, 1 AS `inv_phone`, 1 AS `inv_email`, 1 AS `inv_pre_no`, 1 AS `invoice_no`, 1 AS `inv_post_no`, 1 AS `to_ref_tab`, 1 AS `to_ref_id`, 1 AS `to_nm`, 1 AS `to_fnm`, 1 AS `to_look_street_no_id`, 1 AS `to_address`, 1 AS `to_suite_no`, 1 AS `to_address_type`, 1 AS `to_address_type_nm`, 1 AS `from_dt`, 1 AS `from_dt_fmt`, 1 AS `to_dt`, 1 AS `to_dt_fmt`, 1 AS `billed_dt`, 1 AS `billed_dt_fmt`, 1 AS `due_dt`, 1 AS `due_dt_fmt`, 1 AS `summary`, 1 AS `amt_sub`, 1 AS `amt_tax`, 1 AS `amt_tol`, 1 AS `amt_paid`, 1 AS `amt_bal`, 1 AS `visible`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_inv_audit` -- DROP TABLE IF EXISTS `vw_inv_audit`; /*!50001 DROP VIEW IF EXISTS `vw_inv_audit`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_inv_audit` AS SELECT 1 AS `idinv_audit`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updated_fmt_yr`, 1 AS `updated_fmt_mon`, 1 AS `updated_fmt_day`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `table_update`, 1 AS `action`, 1 AS `table_id`, 1 AS `col1`, 1 AS `idlook_menu_pvt_lvl2`, 1 AS `idlook_menu_pvt_lvl2_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_inv_doc` -- DROP TABLE IF EXISTS `vw_inv_doc`; /*!50001 DROP VIEW IF EXISTS `vw_inv_doc`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_inv_doc` AS SELECT 1 AS `idinv_doc`, 1 AS `idinv`, 1 AS `idstorages`, 1 AS `file_name`, 1 AS `sto_cloud`, 1 AS `sto_cloud_nm`, 1 AS `file_size`, 1 AS `file_size_fmt`, 1 AS `owner_id`, 1 AS `owner_fnm`, 1 AS `owner_nm`, 1 AS `create_dt`, 1 AS `create_dt_fmt`, 1 AS `expire_dt`, 1 AS `expire_dt_fmt`, 1 AS `ext_type`, 1 AS `public`, 1 AS `self_view`, 1 AS `smry`, 1 AS `ref_emp_id`, 1 AS `ref_emp_fnm`, 1 AS `ref_emp_nm`, 1 AS `usage`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_log_global` -- DROP TABLE IF EXISTS `vw_log_global`; /*!50001 DROP VIEW IF EXISTS `vw_log_global`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_log_global` AS SELECT 1 AS `idglb_log`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updated_yr`, 1 AS `updated_mon`, 1 AS `updated_day`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `table_update`, 1 AS `action`, 1 AS `table_id`, 1 AS `tab_nm_id`, 1 AS `col1`, 1 AS `idlook_menu_pvt_lvl1`, 1 AS `idlook_menu_pvt_lvl1_fmt`, 1 AS `idlook_menu_pvt_lvl2`, 1 AS `idlook_menu_pvt_lvl2_fmt`, 1 AS `menu_main_sub`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_look_address2` -- DROP TABLE IF EXISTS `vw_look_address2`; /*!50001 DROP VIEW IF EXISTS `vw_look_address2`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_look_address2` AS SELECT 1 AS `comp_emp`, 1 AS `comp_emp_add_id`, 1 AS `comp_emp_id`, 1 AS `comp_logo_emp_fnm`, 1 AS `companyname_emp_nm`, 1 AS `look_street_no_id`, 1 AS `addresses`, 1 AS `house_apt_type`, 1 AS `house_apt_nm`, 1 AS `add_type`, 1 AS `from_dt`, 1 AS `from_dt_yr`, 1 AS `from_dt_mon`, 1 AS `from_dt_fmt`, 1 AS `to_dt`, 1 AS `to_dt_yr`, 1 AS `to_dt_mon`, 1 AS `to_dt_fmt`, 1 AS `from_to_dt`, 1 AS `from_to_dt_vir`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_look_menu_pvt` -- DROP TABLE IF EXISTS `vw_look_menu_pvt`; /*!50001 DROP VIEW IF EXISTS `vw_look_menu_pvt`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_look_menu_pvt` AS SELECT 1 AS `idlook_menu_pvt`, 1 AS `lk_values`, 1 AS `lk_design`, 1 AS `lk_value_desc`, 1 AS `lk_value_code`, 1 AS `lk_admin`, 1 AS `lk_display_id`, 1 AS `lk_sub_value_id`, 1 AS `updater`, 1 AS `updater_nm`, 1 AS `updater_file_name`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_look_street` -- DROP TABLE IF EXISTS `vw_look_street`; /*!50001 DROP VIEW IF EXISTS `vw_look_street`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_look_street` AS SELECT 1 AS `look_street_id`, 1 AS `postal_id`, 1 AS `street_name`, 1 AS `street_type`, 1 AS `street_type_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_mk_lk_val` -- DROP TABLE IF EXISTS `vw_mk_lk_val`; /*!50001 DROP VIEW IF EXISTS `vw_mk_lk_val`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_mk_lk_val` AS SELECT 1 AS `idmkt_lk_val`, 1 AS `idmkt_lk`, 1 AS `lk_val_par`, 1 AS `mkt_value`, 1 AS `child_lvl`, 1 AS `mkt_value_desc`, 1 AS `disp_order`, 1 AS `parent_id`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_mkt_audit` -- DROP TABLE IF EXISTS `vw_mkt_audit`; /*!50001 DROP VIEW IF EXISTS `vw_mkt_audit`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_mkt_audit` AS SELECT 1 AS `idmkt_audit`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updated_fmt_yr`, 1 AS `updated_fmt_mon`, 1 AS `updated_fmt_day`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `table_update`, 1 AS `action`, 1 AS `table_id`, 1 AS `col1`, 1 AS `idlook_menu_pvt_lvl2`, 1 AS `idlook_menu_pvt_lvl2_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_mkt_comp` -- DROP TABLE IF EXISTS `vw_mkt_comp`; /*!50001 DROP VIEW IF EXISTS `vw_mkt_comp`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_mkt_comp` AS SELECT 1 AS `idmkt_comp`, 1 AS `companyname`, 1 AS `company_info`, 1 AS `comp_website`, 1 AS `comp_phone`, 1 AS `comp_email`, 1 AS `comp_all_detail`, 1 AS `acc_mgr`, 1 AS `acc_mgr_fnm`, 1 AS `acc_mgr_nm`, 1 AS `req_type`, 1 AS `req_type_nm`, 1 AS `track`, 1 AS `block`, 1 AS `block_dt`, 1 AS `block_dt_fmt`, 1 AS `block_dt_yr`, 1 AS `block_dt_mon`, 1 AS `block_dt_yr_mon`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_mkt_comp_open` -- DROP TABLE IF EXISTS `vw_mkt_comp_open`; /*!50001 DROP VIEW IF EXISTS `vw_mkt_comp_open`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_mkt_comp_open` AS SELECT 1 AS `idmkt_comp_open`, 1 AS `idmkt_comp_ven`, 1 AS `mkt_comp_ven_nm`, 1 AS `mkt_comp_ven_nm_contact`, 1 AS `ven_acc_mgr`, 1 AS `ven_acc_mgr_fnm`, 1 AS `ven_acc_mgr_nm`, 1 AS `ven_req_type`, 1 AS `ven_req_type_nm`, 1 AS `ven_track`, 1 AS `ven_block`, 1 AS `ven_block_dt`, 1 AS `ven_block_dt_fmt`, 1 AS `idmkt_comp_client`, 1 AS `mkt_comp_client_nm`, 1 AS `client_acc_mgr`, 1 AS `client_acc_mgr_fnm`, 1 AS `client_acc_mgr_nm`, 1 AS `client_req_type`, 1 AS `client_req_type_nm`, 1 AS `client_track`, 1 AS `client_block`, 1 AS `client_block_dt`, 1 AS `client_block_dt_fmt`, 1 AS `acc_mgr`, 1 AS `acc_mgr_fnm`, 1 AS `acc_mgr_nm`, 1 AS `req_type`, 1 AS `req_type_nm`, 1 AS `open_dt`, 1 AS `open_dt_fmt`, 1 AS `open_dt_yr`, 1 AS `open_dt_mon`, 1 AS `loc_state`, 1 AS `state_nm`, 1 AS `loc_city`, 1 AS `city_nm`, 1 AS `state_city_nm`, 1 AS `contact_info`, 1 AS `source`, 1 AS `source_nm`, 1 AS `open_details`, 1 AS `close_dt`, 1 AS `close_dt_fmt`, 1 AS `close_dt_yr`, 1 AS `close_dt_mon`, 1 AS `mkt_comp_open_cur_stat`, 1 AS `open_close_day`, 1 AS `open_close_day_fmt`, 1 AS `open_cnt`, 1 AS `open_tol`, 1 AS `open_cnt_tol`, 1 AS `open_pcnt`, 1 AS `summary`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`, 1 AS `old_comp_dt`, 1 AS `old_comp_dt_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_mkt_comp_open_assist` -- DROP TABLE IF EXISTS `vw_mkt_comp_open_assist`; /*!50001 DROP VIEW IF EXISTS `vw_mkt_comp_open_assist`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_mkt_comp_open_assist` AS SELECT 1 AS `idmkt_comp_open_assist`, 1 AS `idmkt_comp_open`, 1 AS `idmkt_comp_ven`, 1 AS `mkt_comp_ven_nm`, 1 AS `idmkt_comp_client`, 1 AS `mkt_comp_client_nm`, 1 AS `acc_mgr`, 1 AS `acc_mgr_fnm`, 1 AS `acc_mgr_nm`, 1 AS `req_type`, 1 AS `req_type_nm`, 1 AS `open_dt`, 1 AS `open_dt_fmt`, 1 AS `loc_city`, 1 AS `state_nm`, 1 AS `location_nm`, 1 AS `contact_info`, 1 AS `source`, 1 AS `source_nm`, 1 AS `open_details`, 1 AS `close_dt`, 1 AS `close_dt_fmt`, 1 AS `mkt_comp_open_cur_stat`, 1 AS `open_close_day`, 1 AS `open_close_day_fmt`, 1 AS `open_cnt`, 1 AS `open_tol`, 1 AS `open_pcnt`, 1 AS `open_cnt_tol`, 1 AS `assist_id`, 1 AS `assist_fnm`, 1 AS `assist_nm`, 1 AS `assist_st_dt`, 1 AS `assist_st_dt_fmt`, 1 AS `assist_st_dt_yr`, 1 AS `assist_st_dt_mon`, 1 AS `assist_e_dt`, 1 AS `assist_e_dt_fmt`, 1 AS `assist_e_dt_yr`, 1 AS `assist_e_dt_mon`, 1 AS `assist_cur_stat`, 1 AS `idmkt_wrk_flow`, 1 AS `wrk_flow_nm`, 1 AS `assist_rate`, 1 AS `summary`, 1 AS `assist_status`, 1 AS `assist_status_nm`, 1 AS `stat_e_dt_pre`, 1 AS `stat_e_dt_pre_fmt`, 1 AS `stat_lag_tm`, 1 AS `stat_st_dt`, 1 AS `stat_st_dt_fmt`, 1 AS `stat_st_dt_yr`, 1 AS `stat_st_dt_mon`, 1 AS `stat_e_dt`, 1 AS `stat_e_dt_fmt`, 1 AS `stat_e_dt_yr`, 1 AS `stat_e_dt_mon`, 1 AS `mkt_comp_open_assist_cur_stat`, 1 AS `no_days`, 1 AS `no_days_vir`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `idlook_stat_order`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_mkt_comp_open_assist_stat` -- DROP TABLE IF EXISTS `vw_mkt_comp_open_assist_stat`; /*!50001 DROP VIEW IF EXISTS `vw_mkt_comp_open_assist_stat`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_mkt_comp_open_assist_stat` AS SELECT 1 AS `idmkt_comp_open_assist_stat`, 1 AS `idmkt_comp_open_assist`, 1 AS `idmkt_comp_open`, 1 AS `idmkt_comp_ven`, 1 AS `idmkt_comp_ven_nm`, 1 AS `idmkt_comp_client`, 1 AS `idmkt_comp_client_nm`, 1 AS `acc_mgr`, 1 AS `acc_mgr_fnm`, 1 AS `acc_mgr_nm`, 1 AS `req_type`, 1 AS `req_type_nm`, 1 AS `open_dt`, 1 AS `open_dt_fmt`, 1 AS `loc_city`, 1 AS `state_nm`, 1 AS `location_nm`, 1 AS `contact_info`, 1 AS `source`, 1 AS `source_nm`, 1 AS `open_details`, 1 AS `close_dt`, 1 AS `close_dt_fmt`, 1 AS `mkt_comp_open_cur_stat`, 1 AS `open_close_day`, 1 AS `open_close_day_fmt`, 1 AS `open_cnt`, 1 AS `open_tol`, 1 AS `open_cnt_tol`, 1 AS `open_pcnt`, 1 AS `assist_id`, 1 AS `assist_fnm`, 1 AS `assist_nm`, 1 AS `assist_rate`, 1 AS `summary`, 1 AS `cur_assist_status`, 1 AS `cur_assist_status_nm`, 1 AS `cur_stat_st_dt`, 1 AS `cur_stat_st_dt_fmt`, 1 AS `cur_stat_e_dt`, 1 AS `cur_stat_e_dt_fmt`, 1 AS `no_days`, 1 AS `no_days_vir`, 1 AS `assist_status`, 1 AS `assist_status_nm`, 1 AS `stat_st_dt`, 1 AS `stat_st_dt_fmt`, 1 AS `stat_e_dt`, 1 AS `stat_e_dt_fmt`, 1 AS `mkt_comp_open_assist_cur_stat`, 1 AS `no_days_stat`, 1 AS `no_days_stat_vir`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `idlook_stat_order`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_mkt_comp_open_assist_stat_step` -- DROP TABLE IF EXISTS `vw_mkt_comp_open_assist_stat_step`; /*!50001 DROP VIEW IF EXISTS `vw_mkt_comp_open_assist_stat_step`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_mkt_comp_open_assist_stat_step` AS SELECT 1 AS `idmkt_comp_open_assist_stat_step`, 1 AS `idmkt_comp_open_assist_stat`, 1 AS `mkt_step_detail`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_mkt_lk_val` -- DROP TABLE IF EXISTS `vw_mkt_lk_val`; /*!50001 DROP VIEW IF EXISTS `vw_mkt_lk_val`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_mkt_lk_val` AS SELECT 1 AS `idmkt_lk_val`, 1 AS `idmkt_lk`, 1 AS `lk_val_par`, 1 AS `mkt_value`, 1 AS `child_lvl`, 1 AS `mkt_value_desc`, 1 AS `disp_order`, 1 AS `parent_id`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_mkt_lk_wrk_flow` -- DROP TABLE IF EXISTS `vw_mkt_lk_wrk_flow`; /*!50001 DROP VIEW IF EXISTS `vw_mkt_lk_wrk_flow`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_mkt_lk_wrk_flow` AS SELECT 1 AS `idmkt_wrk_flow`, 1 AS `wrk_flow_nm`, 1 AS `id_wrk_flow`, 1 AS `wrk_flow_desc`, 1 AS `id_wrk_flow_parent`, 1 AS `look_initial`, 1 AS `look_restart`, 1 AS `disp_order`, 1 AS `updater`, 1 AS `updater_fmt`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `last_updated_by`, 1 AS `mkt_value`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_net_audit` -- DROP TABLE IF EXISTS `vw_net_audit`; /*!50001 DROP VIEW IF EXISTS `vw_net_audit`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_net_audit` AS SELECT 1 AS `idnet_audit`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updated_fmt_yr`, 1 AS `updated_fmt_mon`, 1 AS `updated_fmt_day`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `table_update`, 1 AS `action`, 1 AS `table_id`, 1 AS `col1`, 1 AS `idlook_menu_pvt_lvl2`, 1 AS `idlook_menu_pvt_lvl2_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_net_blk_dm` -- DROP TABLE IF EXISTS `vw_net_blk_dm`; /*!50001 DROP VIEW IF EXISTS `vw_net_blk_dm`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_net_blk_dm` AS SELECT 1 AS `idnet_blk_dm`, 1 AS `domain_nm`, 1 AS `domain_reason`, 1 AS `blk_rqtr`, 1 AS `blk_rqtr_fnm`, 1 AS `blk_rqtr_nm`, 1 AS `blk_by`, 1 AS `blk_by_fnm`, 1 AS `blk_by_nm`, 1 AS `blk_date`, 1 AS `blk_date_fmt`, 1 AS `blk_yr`, 1 AS `blk_mon`, 1 AS `blk_day`, 1 AS `blk_type`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `last_updated`, 1 AS `last_updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_net_blk_ip_ser` -- DROP TABLE IF EXISTS `vw_net_blk_ip_ser`; /*!50001 DROP VIEW IF EXISTS `vw_net_blk_ip_ser`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_net_blk_ip_ser` AS SELECT 1 AS `idnet_blk_ip_ser`, 1 AS `idnet_blk_ip`, 1 AS `idnet_ser`, 1 AS `blk_ser_by`, 1 AS `blk_ser_dt`, 1 AS `blk_ser_dt_fmt`, 1 AS `allow_ip_ser`, 1 AS `ip_address`, 1 AS `cnt_blk`, 1 AS `hostname`, 1 AS `city`, 1 AS `region`, 1 AS `country`, 1 AS `blk_by`, 1 AS `blk_dt`, 1 AS `blk_dt_fmt`, 1 AS `allow_ip`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_net_script` -- DROP TABLE IF EXISTS `vw_net_script`; /*!50001 DROP VIEW IF EXISTS `vw_net_script`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_net_script` AS SELECT 1 AS `idnet_script`, 1 AS `script_nm`, 1 AS `script_typ`, 1 AS `script_desc`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `cnt_log`, 1 AS `script_field`, 1 AS `script_col_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_net_script_run` -- DROP TABLE IF EXISTS `vw_net_script_run`; /*!50001 DROP VIEW IF EXISTS `vw_net_script_run`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_net_script_run` AS SELECT 1 AS `run`, 1 AS `next_run_min`, 1 AS `next_run_tm`, 1 AS `script_nm`, 1 AS `hostnm`, 1 AS `run_tm`, 1 AS `last_run_tm_fmt`, 1 AS `script_end_fmt`, 1 AS `exe_tm`, 1 AS `idnet_script_run`, 1 AS `idnet_script`, 1 AS `script_desc`, 1 AS `idnet_ser`, 1 AS `hosted`, 1 AS `hostdm`, 1 AS `host_type`, 1 AS `host_mst`, 1 AS `start_dt`, 1 AS `last_run_tm`, 1 AS `script_end`, 1 AS `cnt_log`, 1 AS `run_result`, 1 AS `min_since`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_net_script_run_log` -- DROP TABLE IF EXISTS `vw_net_script_run_log`; /*!50001 DROP VIEW IF EXISTS `vw_net_script_run_log`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_net_script_run_log` AS SELECT 1 AS `idnet_script_run_log`, 1 AS `idnet_script`, 1 AS `idnet_script_run`, 1 AS `idnet_ser`, 1 AS `run_result`, 1 AS `run_dt`, 1 AS `run_dt_fmt`, 1 AS `run_by`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `script_end`, 1 AS `script_end_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_net_secure` -- DROP TABLE IF EXISTS `vw_net_secure`; /*!50001 DROP VIEW IF EXISTS `vw_net_secure`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_net_secure` AS SELECT 1 AS `idnet_secure`, 1 AS `access_fnm`, 1 AS `hostnm`, 1 AS `access_brsw`, 1 AS `access_by`, 1 AS `access_by_fnm`, 1 AS `access_by_nm`, 1 AS `access_dt`, 1 AS `access_dt_fmt`, 1 AS `access_dt_yr`, 1 AS `access_dt_mon`, 1 AS `menu_main`, 1 AS `menu_main_nm`, 1 AS `menu_sub`, 1 AS `menu_sub_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_net_ser` -- DROP TABLE IF EXISTS `vw_net_ser`; /*!50001 DROP VIEW IF EXISTS `vw_net_ser`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_net_ser` AS SELECT 1 AS `idnet_ser`, 1 AS `hostnm`, 1 AS `hosted`, 1 AS `hostdm`, 1 AS `hostdm_multi`, 1 AS `host_type`, 1 AS `host_mst`, 1 AS `ip_lan`, 1 AS `ip_wan`, 1 AS `ip_usr`, 1 AS `gateway`, 1 AS `ips`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated_on`, 1 AS `updated_on_fmt`, 1 AS `mst_hostnm`, 1 AS `mst_hostdm`, 1 AS `mst_ip_lan`, 1 AS `mst_ip_wan`, 1 AS `cnt_ser_blk`, 1 AS `cnt_db_blk`, 1 AS `blocks`, 1 AS `cnt_blk_updated`, 1 AS `cnt_blk_updated_fmt`, 1 AS `dis_tot`, 1 AS `dis_tot_fmt`, 1 AS `dis_use`, 1 AS `dis_use_fmt`, 1 AS `dis_use_tot`, 1 AS `dis_free`, 1 AS `dis_free_fmt`, 1 AS `dis_free_tot`, 1 AS `dis_pcnt`, 1 AS `cnt_dis`, 1 AS `dis_grp_ser_stat`, 1 AS `ser_stat_updated`, 1 AS `ser_stat_updated_fmt`, 1 AS `disc_chk_access`, 1 AS `dis_tol_grp`, 1 AS `dis_mir_lvl`, 1 AS `dis_free_grp`, 1 AS `dis_updated`, 1 AS `dis_updated_fmt`, 1 AS `cpu_dt_tm`, 1 AS `cpu_dt_tm_fmt`, 1 AS `users_load`, 1 AS `sys_load`, 1 AS `io_wait`, 1 AS `idle_wait`, 1 AS `cnt_ser_stat`, 1 AS `cpu_updated`, 1 AS `cpu_updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_net_ser_clone` -- DROP TABLE IF EXISTS `vw_net_ser_clone`; /*!50001 DROP VIEW IF EXISTS `vw_net_ser_clone`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_net_ser_clone` AS SELECT 1 AS `idnet_clone`, 1 AS `idnet_ser`, 1 AS `hostnm`, 1 AS `hostdm`, 1 AS `host_mst`, 1 AS `ip_lan`, 1 AS `ip_wan`, 1 AS `ip_usr`, 1 AS `gateway`, 1 AS `mst_app`, 1 AS `cloned_app`, 1 AS `code_bk`, 1 AS `db_bk`, 1 AS `valid_days`, 1 AS `validity`, 1 AS `synced`, 1 AS `alert_days`, 1 AS `app_url`, 1 AS `deleted_on`, 1 AS `updater`, 1 AS `updated_on`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_net_tb_vw_ser` -- DROP TABLE IF EXISTS `vw_net_tb_vw_ser`; /*!50001 DROP VIEW IF EXISTS `vw_net_tb_vw_ser`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_net_tb_vw_ser` AS SELECT 1 AS `idnet_tb_vw_ser`, 1 AS `idnet_tb_vw`, 1 AS `idnet_clone`, 1 AS `net_tb_vw_ser_updt`, 1 AS `net_tb_vw_updt`, 1 AS `qry`, 1 AS `updater`, 1 AS `idnet_ser`, 1 AS `hostnm`, 1 AS `hostdm`, 1 AS `host_mst`, 1 AS `ip_lan`, 1 AS `ip_wan`, 1 AS `mst_app`, 1 AS `cloned_app`, 1 AS `validity`, 1 AS `deleted_on`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_net_tb_vw_ser_app` -- DROP TABLE IF EXISTS `vw_net_tb_vw_ser_app`; /*!50001 DROP VIEW IF EXISTS `vw_net_tb_vw_ser_app`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_net_tb_vw_ser_app` AS SELECT 1 AS `idnet_tb_vw_ser_app`, 1 AS `idnet_tb_vw_ser`, 1 AS `idnet_clone`, 1 AS `updated_on`, 1 AS `updated_by`, 1 AS `idnet_ser`, 1 AS `host_mst`, 1 AS `ip_lan`, 1 AS `ip_wan`, 1 AS `gateway`, 1 AS `mst_app`, 1 AS `cloned_app`, 1 AS `validity`, 1 AS `deleted_on`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_prosp_audit` -- DROP TABLE IF EXISTS `vw_prosp_audit`; /*!50001 DROP VIEW IF EXISTS `vw_prosp_audit`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_prosp_audit` AS SELECT 1 AS `idprosp_audit`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updated_fmt_yr`, 1 AS `updated_fmt_mon`, 1 AS `updated_fmt_day`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `table_update`, 1 AS `action`, 1 AS `table_id`, 1 AS `col1`, 1 AS `idlook_menu_pvt_lvl2`, 1 AS `idlook_menu_pvt_lvl2_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_prosp_corp` -- DROP TABLE IF EXISTS `vw_prosp_corp`; /*!50001 DROP VIEW IF EXISTS `vw_prosp_corp`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_prosp_corp` AS SELECT 1 AS `idprosp_corp`, 1 AS `prosp_corp_type`, 1 AS `prosp_corp_type_nm`, 1 AS `corp_entity_name`, 1 AS `corp_name_contact`, 1 AS `corp_source`, 1 AS `corp_source_nm`, 1 AS `corp_level`, 1 AS `corp_level_nm`, 1 AS `corp_domain`, 1 AS `corp_domain_nm`, 1 AS `corp_domain_sub`, 1 AS `corp_domain_sub_nm`, 1 AS `response`, 1 AS `response_nm`, 1 AS `corp_contacts`, 1 AS `corp_address`, 1 AS `corp_address_nm`, 1 AS `register_yr`, 1 AS `register_yr_fmt`, 1 AS `register_state`, 1 AS `register_state_fmt`, 1 AS `start_dt`, 1 AS `start_dt_fmt`, 1 AS `start_dt_yr`, 1 AS `start_dt_mon`, 1 AS `end_dt`, 1 AS `end_dt_fmt`, 1 AS `end_dt_yr`, 1 AS `end_dt_mon`, 1 AS `prosp_corp_cur_stat`, 1 AS `st_end_tm`, 1 AS `st_end_tm_vir`, 1 AS `acc_mgr`, 1 AS `acc_mgr_fnm`, 1 AS `acc_mgr_nm`, 1 AS `topic_discussed`, 1 AS `all_topic`, 1 AS `called_dt`, 1 AS `called_dt_fmt`, 1 AS `call_nxt_dt`, 1 AS `call_nxt_dt_fmt`, 1 AS `call_day_tm`, 1 AS `call_day_tm_vir`, 1 AS `topic_count`, 1 AS `about_corp`, 1 AS `about_corp_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `arch_by_fnm`, 1 AS `arch_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_prosp_corp_access` -- DROP TABLE IF EXISTS `vw_prosp_corp_access`; /*!50001 DROP VIEW IF EXISTS `vw_prosp_corp_access`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_prosp_corp_access` AS SELECT 1 AS `idprosp_corp_access`, 1 AS `corp_accessor`, 1 AS `corp_accessor_fnm`, 1 AS `corp_accessor_nm`, 1 AS `corp_access_acc_mgr`, 1 AS `corp_access_acc_mgr_fnm`, 1 AS `corp_access_acc_mgr_nm`, 1 AS `from_dt_acc`, 1 AS `from_dt_acc_fmt`, 1 AS `to_dt_acc`, 1 AS `to_dt_acc_fmt`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_prosp_corp_activity` -- DROP TABLE IF EXISTS `vw_prosp_corp_activity`; /*!50001 DROP VIEW IF EXISTS `vw_prosp_corp_activity`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_prosp_corp_activity` AS SELECT 1 AS `idprosp_corp_activity`, 1 AS `idprosp_corp`, 1 AS `prosp_corp_type`, 1 AS `prosp_corp_type_nm`, 1 AS `corp_entity_name`, 1 AS `corp_source`, 1 AS `corp_source_nm`, 1 AS `corp_domain`, 1 AS `corp_domain_nm`, 1 AS `corp_domain_sub`, 1 AS `corp_domain_sub_nm`, 1 AS `corp_contacts`, 1 AS `corp_address`, 1 AS `corp_address_nm`, 1 AS `register_yr`, 1 AS `register_yr_fmt`, 1 AS `register_state`, 1 AS `register_state_fmt`, 1 AS `start_dt`, 1 AS `start_dt_fmt`, 1 AS `end_dt`, 1 AS `end_dt_fmt`, 1 AS `prosp_corp_cur_stat`, 1 AS `st_end_tm`, 1 AS `st_end_tm_vir`, 1 AS `about_corp`, 1 AS `topic_disussed`, 1 AS `corp_level`, 1 AS `corp_level_nm`, 1 AS `response`, 1 AS `response_nm`, 1 AS `called_dt`, 1 AS `called_dt_fmt`, 1 AS `called_dt_yr`, 1 AS `called_dt_mon`, 1 AS `acc_mgr`, 1 AS `acc_mgr_fnm`, 1 AS `acc_mgr_nm`, 1 AS `call_nxt_dt`, 1 AS `call_nxt_dt_fmt`, 1 AS `call_nxt_dt_yr`, 1 AS `call_nxt_dt_mon`, 1 AS `prosp_corp_activity_cur_stat`, 1 AS `call_day_tm`, 1 AS `call_day_tm_vir`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `arch_by_fnm`, 1 AS `arch_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_prosp_corp_doc` -- DROP TABLE IF EXISTS `vw_prosp_corp_doc`; /*!50001 DROP VIEW IF EXISTS `vw_prosp_corp_doc`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_prosp_corp_doc` AS SELECT 1 AS `idprosp_corp_doc`, 1 AS `idprosp_corp`, 1 AS `idstorages`, 1 AS `file_name`, 1 AS `sto_cloud`, 1 AS `sto_cloud_nm`, 1 AS `file_size`, 1 AS `file_size_fmt`, 1 AS `owner_id`, 1 AS `owner_fnm`, 1 AS `owner_nm`, 1 AS `create_dt`, 1 AS `create_dt_fmt`, 1 AS `expire_dt`, 1 AS `expire_dt_fmt`, 1 AS `ext_type`, 1 AS `public`, 1 AS `self_view`, 1 AS `smry`, 1 AS `ref_emp_id`, 1 AS `ref_emp_fnm`, 1 AS `ref_emp_nm`, 1 AS `usage`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_prosp_lk_val` -- DROP TABLE IF EXISTS `vw_prosp_lk_val`; /*!50001 DROP VIEW IF EXISTS `vw_prosp_lk_val`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_prosp_lk_val` AS SELECT 1 AS `idprosp_lk_val`, 1 AS `idprosp_lk`, 1 AS `lk_val_par`, 1 AS `prosp_value`, 1 AS `child_lvl`, 1 AS `prosp_value_desc`, 1 AS `disp_order`, 1 AS `parent_id`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_shr` -- DROP TABLE IF EXISTS `vw_shr`; /*!50001 DROP VIEW IF EXISTS `vw_shr`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_shr` AS SELECT 1 AS `idshr`, 1 AS `comp_id`, 1 AS `comp_fnm`, 1 AS `companyname`, 1 AS `shr_no`, 1 AS `shr_no_fmt`, 1 AS `hlding`, 1 AS `hlding_pcnt`, 1 AS `hlding_amt`, 1 AS `hlding_amt_fmt`, 1 AS `issued`, 1 AS `issued_pcnt`, 1 AS `issued_amt`, 1 AS `issued_amt_fmt`, 1 AS `thr_hld`, 1 AS `thr_hld_pcnt`, 1 AS `thr_hld_amt`, 1 AS `thr_hld_amt_fmt`, 1 AS `shr_symbl`, 1 AS `shr_type`, 1 AS `shr_type_nm`, 1 AS `shr_type_desc`, 1 AS `shr_pr`, 1 AS `shr_pr_fmt`, 1 AS `market_cap`, 1 AS `market_cap_fmt`, 1 AS `shr_smry`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_shr_doc` -- DROP TABLE IF EXISTS `vw_shr_doc`; /*!50001 DROP VIEW IF EXISTS `vw_shr_doc`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_shr_doc` AS SELECT 1 AS `idshr_doc`, 1 AS `idshr`, 1 AS `idstorages`, 1 AS `file_name`, 1 AS `sto_cloud`, 1 AS `sto_cloud_nm`, 1 AS `file_size`, 1 AS `file_size_fmt`, 1 AS `owner_id`, 1 AS `owner_fnm`, 1 AS `owner_nm`, 1 AS `create_dt`, 1 AS `create_dt_fmt`, 1 AS `expire_dt`, 1 AS `expire_dt_fmt`, 1 AS `ext_type`, 1 AS `public`, 1 AS `self_view`, 1 AS `smry`, 1 AS `ref_emp_id`, 1 AS `ref_emp_fnm`, 1 AS `ref_emp_nm`, 1 AS `usage`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_shr_hld` -- DROP TABLE IF EXISTS `vw_shr_hld`; /*!50001 DROP VIEW IF EXISTS `vw_shr_hld`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_shr_hld` AS SELECT 1 AS `idshr_hld`, 1 AS `idshr`, 1 AS `comp_fnm`, 1 AS `companyname`, 1 AS `own_ref_tab`, 1 AS `own_ref_fnm`, 1 AS `own_ref_nm`, 1 AS `own_ref_id`, 1 AS `shr_no`, 1 AS `shr_no_fmt`, 1 AS `total_shares`, 1 AS `total_shares_fmt`, 1 AS `share_amt`, 1 AS `share_amt_fmt`, 1 AS `shr_no_pcnt`, 1 AS `shr_pr`, 1 AS `shr_pr_fmt`, 1 AS `shr_amt_pr`, 1 AS `shr_amt_pr_fmt`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_shr_hld_rec` -- DROP TABLE IF EXISTS `vw_shr_hld_rec`; /*!50001 DROP VIEW IF EXISTS `vw_shr_hld_rec`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_shr_hld_rec` AS SELECT 1 AS `idshr_hld_rec`, 1 AS `idshr`, 1 AS `companyname`, 1 AS `comp_fnm`, 1 AS `shr_fm`, 1 AS `shr_fm_nm`, 1 AS `shr_no`, 1 AS `shr_pcnt`, 1 AS `shr_to`, 1 AS `shr_to_nm`, 1 AS `trade_dt`, 1 AS `trade_dt_fmt`, 1 AS `strike_pr`, 1 AS `strike_pr_fmt`, 1 AS `settle_dt`, 1 AS `settle_dt_fmt`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_shr_hld_trd` -- DROP TABLE IF EXISTS `vw_shr_hld_trd`; /*!50001 DROP VIEW IF EXISTS `vw_shr_hld_trd`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_shr_hld_trd` AS SELECT 1 AS `idshr_hld_trd`, 1 AS `idshr_hld`, 1 AS `own_ref_tab`, 1 AS `own_ref_id`, 1 AS `own_ref_fnm`, 1 AS `own_ref_nm`, 1 AS `comp_fnm`, 1 AS `companyname`, 1 AS `trd_type`, 1 AS `trd_type_nm`, 1 AS `shr_type`, 1 AS `shr_symbl`, 1 AS `shr_type_nm`, 1 AS `shr_type_desc`, 1 AS `shr_hld_shr_no`, 1 AS `shr_hld_shr_no_fmt`, 1 AS `total_shares`, 1 AS `total_shares_fmt`, 1 AS `share_amt`, 1 AS `share_amt_fmt`, 1 AS `shr_no_pcnt`, 1 AS `shr_amt_pr`, 1 AS `shr_amt_pr_fmt`, 1 AS `shr_pr`, 1 AS `shr_pr_fmt`, 1 AS `shr_no_trd`, 1 AS `trd_pr`, 1 AS `trd_smry`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `trd_or_dt`, 1 AS `trd_or_dt_fmt`, 1 AS `trd_exp_day`, 1 AS `trd_exp_dt`, 1 AS `trd_exp_dt_fmt`, 1 AS `trd_exe_dt`, 1 AS `trd_exe_dt_fmt`, 1 AS `trd_or_exe_dt`, 1 AS `trd_or_exe_dt_vir`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_shr_lk_val` -- DROP TABLE IF EXISTS `vw_shr_lk_val`; /*!50001 DROP VIEW IF EXISTS `vw_shr_lk_val`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_shr_lk_val` AS SELECT 1 AS `idshr_lk_val`, 1 AS `idshr_lk`, 1 AS `lk_val_par`, 1 AS `lk_val`, 1 AS `lk_val_desc`, 1 AS `disp_order`, 1 AS `parent_id`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updated_by`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_storage_lk_tag` -- DROP TABLE IF EXISTS `vw_storage_lk_tag`; /*!50001 DROP VIEW IF EXISTS `vw_storage_lk_tag`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_storage_lk_tag` AS SELECT 1 AS `idstorage_lk_tag`, 1 AS `lk_tag`, 1 AS `lk_tag_desc`, 1 AS `lk_disp_id`, 1 AS `lk_parent_tag_id`, 1 AS `updater`, 1 AS `updater_fmt`, 1 AS `updater_file_name`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `last_updated_by`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_storages` -- DROP TABLE IF EXISTS `vw_storages`; /*!50001 DROP VIEW IF EXISTS `vw_storages`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_storages` AS SELECT 1 AS `idstorages`, 1 AS `file_name`, 1 AS `file_ser_name`, 1 AS `sto_cloud_link`, 1 AS `sto_cloud_link_nm`, 1 AS `sto_cloud`, 1 AS `sto_cloud_nm`, 1 AS `file_size`, 1 AS `file_cnv_size`, 1 AS `actual_size`, 1 AS `owner_id`, 1 AS `owner_fnm`, 1 AS `owner_nm`, 1 AS `create_dt`, 1 AS `create_dt_fmt`, 1 AS `create_dt_yr`, 1 AS `create_dt_mon`, 1 AS `expire_dt`, 1 AS `expire_dt_fmt`, 1 AS `expire_dt_fmt2`, 1 AS `expire_dt_no_days`, 1 AS `expire_dt_cur_stat`, 1 AS `ext_type`, 1 AS `public`, 1 AS `self_view`, 1 AS `smry`, 1 AS `ref_emp_id`, 1 AS `ref_emp_id_fnm`, 1 AS `ref_emp_id_nm`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_dt_fmt`, 1 AS `usage`, 1 AS `sto_tags`, 1 AS `sto_tags_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`, 1 AS `chk_del`, 1 AS `file_cnvt`, 1 AS `dis_mir_lvl`, 1 AS `chk_sync`, 1 AS `chk_sync_date`, 1 AS `show_list`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_storages_access` -- DROP TABLE IF EXISTS `vw_storages_access`; /*!50001 DROP VIEW IF EXISTS `vw_storages_access`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_storages_access` AS SELECT 1 AS `idstorages_access`, 1 AS `idstorages`, 1 AS `access_to`, 1 AS `access_to_fnm`, 1 AS `access_to_nm`, 1 AS `access_type`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_storages_audit` -- DROP TABLE IF EXISTS `vw_storages_audit`; /*!50001 DROP VIEW IF EXISTS `vw_storages_audit`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_storages_audit` AS SELECT 1 AS `idstorages_audit`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updated_fmt_yr`, 1 AS `updated_fmt_mon`, 1 AS `updated_fmt_day`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `table_update`, 1 AS `action`, 1 AS `table_id`, 1 AS `col1`, 1 AS `idlook_menu_pvt_lvl2`, 1 AS `idlook_menu_pvt_lvl2_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_storages_order` -- DROP TABLE IF EXISTS `vw_storages_order`; /*!50001 DROP VIEW IF EXISTS `vw_storages_order`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_storages_order` AS SELECT 1 AS `idstorages_order`, 1 AS `create_dt`, 1 AS `create_dt_fmt`, 1 AS `create_dt_yr`, 1 AS `create_dt_mon`, 1 AS `create_grp`, 1 AS `idnet_ser`, 1 AS `hostnm`, 1 AS `hostdm`, 1 AS `ip_lan`, 1 AS `ip_wan`, 1 AS `server`, 1 AS `stored_dt`, 1 AS `stored_dt_fmt`, 1 AS `stored_dt_yr`, 1 AS `stored_dt_mon`, 1 AS `stored_dt_cur_stat`, 1 AS `idstorages`, 1 AS `file_name`, 1 AS `file_ser_name`, 1 AS `file_size`, 1 AS `ext_type`, 1 AS `public`, 1 AS `chk_sync`, 1 AS `create_stored_dt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_storages_ref` -- DROP TABLE IF EXISTS `vw_storages_ref`; /*!50001 DROP VIEW IF EXISTS `vw_storages_ref`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_storages_ref` AS SELECT 1 AS `idstorages_ref`, 1 AS `idstorages`, 1 AS `file_name`, 1 AS `idlook_menu_pvt_lvl1`, 1 AS `idlook_menu_pvt_lvl1_nm`, 1 AS `idlook_menu_pvt_lvl2`, 1 AS `idlook_menu_pvt_lvl2_nm`, 1 AS `sto_tab_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_student` -- DROP TABLE IF EXISTS `vw_student`; /*!50001 DROP VIEW IF EXISTS `vw_student`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_student` AS SELECT 1 AS `Idstudent`, 1 AS `first_name`, 1 AS `last_name`, 1 AS `nick_name`, 1 AS `school_nm`, 1 AS `school_name`, 1 AS `dob`, 1 AS `dob_fmt`, 1 AS `gender`, 1 AS `gender_nm`, 1 AS `idstudent_doc`, 1 AS `updater`, 1 AS `updater_nm`, 1 AS `last_updated`, 1 AS `last_updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_student_class` -- DROP TABLE IF EXISTS `vw_student_class`; /*!50001 DROP VIEW IF EXISTS `vw_student_class`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_student_class` AS SELECT 1 AS `id_std_class`, 1 AS `idstudent`, 1 AS `student_nm`, 1 AS `school_name`, 1 AS `nick_name`, 1 AS `school_nm`, 1 AS `dob`, 1 AS `dob_fmt`, 1 AS `gender`, 1 AS `gender_nm`, 1 AS `std_class`, 1 AS `from`, 1 AS `from_fmt`, 1 AS `to`, 1 AS `to_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_student_class_exam` -- DROP TABLE IF EXISTS `vw_student_class_exam`; /*!50001 DROP VIEW IF EXISTS `vw_student_class_exam`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_student_class_exam` AS SELECT 1 AS `id_std_class_exam`, 1 AS `idstudent`, 1 AS `student_nm`, 1 AS `nick_name`, 1 AS `school_nm`, 1 AS `school_name`, 1 AS `gender`, 1 AS `gender_nm`, 1 AS `dob`, 1 AS `dob_fmt`, 1 AS `id_std_class`, 1 AS `std_class`, 1 AS `from`, 1 AS `from_fmt`, 1 AS `to`, 1 AS `to_fmt`, 1 AS `subject`, 1 AS `marks`, 1 AS `total`, 1 AS `percentage`, 1 AS `result`, 1 AS `updater`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_by`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_by`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_tax_audit` -- DROP TABLE IF EXISTS `vw_tax_audit`; /*!50001 DROP VIEW IF EXISTS `vw_tax_audit`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_tax_audit` AS SELECT 1 AS `idtax_audit`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updated_fmt_yr`, 1 AS `updated_fmt_mon`, 1 AS `updated_fmt_day`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `table_update`, 1 AS `action`, 1 AS `table_id`, 1 AS `col1`, 1 AS `idlook_menu_pvt_lvl2`, 1 AS `idlook_menu_pvt_lvl2_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_dt_yr`, 1 AS `del_dt_mon`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_dt_yr`, 1 AS `archv_dt_mon`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_tax_lk_val` -- DROP TABLE IF EXISTS `vw_tax_lk_val`; /*!50001 DROP VIEW IF EXISTS `vw_tax_lk_val`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_tax_lk_val` AS SELECT 1 AS `idtax_lk_val`, 1 AS `idtax_lk`, 1 AS `lk_val_par`, 1 AS `lk_val`, 1 AS `lk_val_desc`, 1 AS `disp_order`, 1 AS `parent_id`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`, 1 AS `updated_by`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_tax_reg` -- DROP TABLE IF EXISTS `vw_tax_reg`; /*!50001 DROP VIEW IF EXISTS `vw_tax_reg`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_tax_reg` AS SELECT 1 AS `idtax_reg`, 1 AS `comp_id`, 1 AS `comp_fnm`, 1 AS `comp_nm`, 1 AS `state_id`, 1 AS `state_nm`, 1 AS `city_id`, 1 AS `city_nm`, 1 AS `dept_id`, 1 AS `dept_nm`, 1 AS `reg_number`, 1 AS `login_smry`, 1 AS `login_link`, 1 AS `comp_open_dt`, 1 AS `comp_open_dt_fmt`, 1 AS `comp_close_dt`, 1 AS `comp_close_dt_fmt`, 1 AS `comp_open_close_cur_stat`, 1 AS `comp_open_close_day`, 1 AS `comp_open_close_day_vir`, 1 AS `last_updated`, 1 AS `last_updated_fmt`, 1 AS `updated_by`, 1 AS `updated_by_fnm`, 1 AS `updated_by_nm`, 1 AS `del_dt`, 1 AS `del_dt_fmt`, 1 AS `del_by`, 1 AS `del_by_fnm`, 1 AS `del_by_nm`, 1 AS `del_day`, 1 AS `del_day_vir`, 1 AS `archv_dt`, 1 AS `archv_dt_fmt`, 1 AS `archv_by`, 1 AS `archv_by_fnm`, 1 AS `archv_by_nm`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_tax_reg_rate` -- DROP TABLE IF EXISTS `vw_tax_reg_rate`; /*!50001 DROP VIEW IF EXISTS `vw_tax_reg_rate`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_tax_reg_rate` AS SELECT 1 AS `idtax_reg_rate`, 1 AS `idtax_reg`, 1 AS `comp_id`, 1 AS `comp_fnm`, 1 AS `comp_nm`, 1 AS `state_id`, 1 AS `state_nm`, 1 AS `city_id`, 1 AS `city_nm`, 1 AS `dept_id`, 1 AS `dept_nm`, 1 AS `reg_number`, 1 AS `comp_open_dt`, 1 AS `comp_open_dt_fmt`, 1 AS `comp_close_dt`, 1 AS `comp_close_dt_fmt`, 1 AS `comp_open_close_day`, 1 AS `comp_open_close_day_vir`, 1 AS `tax_for`, 1 AS `creditable`, 1 AS `tax_frm_dt`, 1 AS `tax_frm_dt_fmt`, 1 AS `tax_to_dt`, 1 AS `tax_to_dt_fmt`, 1 AS `tax_frm_to_cur_stat`, 1 AS `tax_frm_to_day`, 1 AS `tax_frm_to_day_vir`, 1 AS `tax_limit`, 1 AS `gender`, 1 AS `gender_nm`, 1 AS `tax_amt`, 1 AS `parent_id`, 1 AS `tax_type`, 1 AS `updater`, 1 AS `updater_fnm`, 1 AS `updater_nm`, 1 AS `updated`, 1 AS `updated_fmt`*/; SET character_set_client = @saved_cs_client; -- -- Temporary table structure for view `vw_web_mail` -- DROP TABLE IF EXISTS `vw_web_mail`; /*!50001 DROP VIEW IF EXISTS `vw_web_mail`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE VIEW `vw_web_mail` AS SELECT 1 AS `idweb_mail`, 1 AS `email_sender`, 1 AS `idlook_ip_addr`, 1 AS `ip_address`, 1 AS `domain_nm`, 1 AS `ip_contry`, 1 AS `ip_state`, 1 AS `ip_city`, 1 AS `ip_post_code`, 1 AS `idnet_mail_send`, 1 AS `mail_server_port`, 1 AS `user_id`, 1 AS `pass_word`, 1 AS `send_stat`, 1 AS `usage_order`, 1 AS `os_nm`, 1 AS `browser_nm`, 1 AS `device_nm`, 1 AS `msg_sent`, 1 AS `sent_dt`, 1 AS `sent_dt_fmt`, 1 AS `sent_dt_yr`, 1 AS `sent_dt_mon`, 1 AS `sent_dt_yr_mon`, 1 AS `action_by`, 1 AS `action_by_fnm`, 1 AS `action_by_nm`, 1 AS `action_dt`, 1 AS `action_dt_fmt`, 1 AS `sent_act_day`, 1 AS `sent_act_day_vir`*/; SET character_set_client = @saved_cs_client; -- -- Table structure for table `web_mail` -- DROP TABLE IF EXISTS `web_mail`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `web_mail` ( `idweb_mail` int(11) NOT NULL AUTO_INCREMENT, `email_sender` varchar(45) DEFAULT NULL, `ph_sender` varchar(45) DEFAULT NULL, `idlook_ip_addr` int(11) DEFAULT NULL, `idnet_mail_send` int(11) DEFAULT NULL, `os_nm` varchar(15) DEFAULT NULL COMMENT 'Mac, Windows, Linux', `browser_nm` varchar(45) DEFAULT NULL, `device_nm` varchar(45) DEFAULT NULL, `msg_sent` varchar(250) DEFAULT NULL, `sent_dt` datetime DEFAULT NULL, `action_by` int(11) DEFAULT NULL, `action_dt` datetime DEFAULT NULL, `sent_act_day` int(5) DEFAULT NULL, `updater` int(11) DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`idweb_mail`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `web_otp` -- DROP TABLE IF EXISTS `web_otp`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `web_otp` ( `idweb_otp` int(11) NOT NULL AUTO_INCREMENT, `contact_type` varchar(10) DEFAULT NULL COMMENT 'Phone Or Email', `contact_id` int(11) DEFAULT NULL, `otp_code` varchar(10) DEFAULT NULL, `emp_id` int(11) DEFAULT NULL, `session_id` varchar(80) DEFAULT NULL, `idlook_ip_addr` int(11) DEFAULT NULL, `otp_sent_dt` datetime DEFAULT NULL, `expire_tm` datetime DEFAULT NULL, `attempts` int(3) DEFAULT NULL, `otp_enter_dt` datetime DEFAULT NULL, `otp_day_tm` int(3) DEFAULT NULL COMMENT 'Value to store in seconds', `otp_stat` varchar(45) DEFAULT NULL, PRIMARY KEY (`idweb_otp`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `web_otp2` -- DROP TABLE IF EXISTS `web_otp2`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `web_otp2` ( `idweb_otp` int(11) NOT NULL AUTO_INCREMENT, `contact_type` varchar(10) DEFAULT NULL COMMENT 'Phone Or Email', `contact_id` varchar(45) DEFAULT NULL, `otp_code` varchar(10) DEFAULT NULL, `emp_id` int(11) DEFAULT NULL, `session_id` varchar(80) DEFAULT NULL, `idlook_ip_addr` int(11) DEFAULT NULL, `otp_sent_dt` datetime DEFAULT NULL, `expire_tm` datetime DEFAULT NULL, `attempts` int(3) DEFAULT NULL, `otp_enter_dt` datetime DEFAULT NULL, `otp_day_tm` int(3) DEFAULT NULL COMMENT 'Value to store in seconds', `status` enum('pending','verified','expired','max_attempts') DEFAULT 'pending', PRIMARY KEY (`idweb_otp`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Final view structure for view `vw_addresses` -- /*!50001 DROP VIEW IF EXISTS `vw_addresses`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8mb4 */; /*!50001 SET character_set_results = utf8mb4 */; /*!50001 SET collation_connection = utf8mb4_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_addresses` AS select `a`.`country_id` AS `country_id`,ifnull(`a`.`con_name`,'No Country') AS `con_name`,`a`.`con_full_name` AS `con_full_name`,`a`.`con_code` AS `con_code`,`a`.`lk_design` AS `lk_design`,`a`.`lk_design_hex` AS `lk_design_hex`,`a`.`con_digit` AS `con_digit`,`b`.`state_id` AS `state_id`,ifnull(`b`.`state_name`,'No State') AS `state_name`,ifnull(`b`.`state_full_name`,'No State Full Name') AS `state_full_name`,`h`.`idlook_county_district` AS `idlook_county_district`,ifnull(`h`.`county_district_city_nm`,'No County') AS `county_district_city_nm`,`c`.`city_id` AS `city_id`,ifnull(`c`.`city_name`,'No City') AS `city_name`,ifnull(`d`.`postal_id`,'No Postal Id') AS `postal_id`,ifnull(`d`.`zip_code`,'No Zip Code') AS `zip_code`,`e`.`look_street_id` AS `look_street_id`,ifnull(`e`.`street_name`,'No Street Name') AS `street_name`,`f`.`look_street_no_id` AS `look_street_no_id`,ifnull(`f`.`look_street_no`,'No Street') AS `look_street_no`,ifnull(`e`.`street_type`,'No Street Type') AS `street_type`,ifnull(`g`.`lk_val`,'No Street Type') AS `street_type_nm`,concat(ifnull(`e`.`street_name`,'No Street Name'),' ',ifnull(`g`.`lk_val`,'No Street Type')) AS `street_name_type`,concat(ifnull(`f`.`look_street_no`,'No Street '),' ',ifnull(`e`.`street_name`,'No Street, '),' ',ifnull(`g`.`lk_val`,'No Street Type'),' ',ifnull(`c`.`city_name`,'No City, '),' (',ifnull(`h`.`county_district_city_nm`,'No County'),'), ',ifnull(`b`.`state_name`,'No State, '),' ',ifnull(`d`.`zip_code`,'No Zip Code, '),' ','(',ifnull(`a`.`con_name`,'No Country'),')') AS `addresses` from (((((((`look_country` `a` left join `look_state` `b` on((`a`.`country_id` = `b`.`country_id`))) left join `look_county_district` `h` on((`b`.`state_id` = `h`.`state_id`))) left join `look_city` `c` on((`h`.`idlook_county_district` = `c`.`idlook_county_district`))) left join `look_postal` `d` on((`c`.`city_id` = `d`.`city_id`))) left join `look_street` `e` on((`d`.`postal_id` = `e`.`postal_id`))) left join `look_street_no` `f` on((`e`.`look_street_id` = `f`.`look_street_id`))) left join `feature_lk_val` `g` on((`e`.`street_type` = `g`.`idfeature_lk_val`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_addresses_old` -- /*!50001 DROP VIEW IF EXISTS `vw_addresses_old`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8mb4 */; /*!50001 SET character_set_results = utf8mb4 */; /*!50001 SET collation_connection = utf8mb4_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_addresses_old` AS select `a`.`country_id` AS `country_id`,ifnull(`a`.`con_name`,'No Country') AS `con_name`,`a`.`con_full_name` AS `con_full_name`,`a`.`con_code` AS `con_code`,`a`.`lk_design` AS `lk_design`,`a`.`lk_design_hex` AS `lk_design_hex`,`a`.`con_digit` AS `con_digit`,`b`.`state_id` AS `state_id`,ifnull(`b`.`state_name`,'No State') AS `state_name`,`b`.`state_full_name` AS `state_full_name`,`h`.`idlook_county_district` AS `idlook_county_district`,ifnull(`h`.`county_district_city_nm`,'No County') AS `county_district_city_nm`,`c`.`city_id` AS `city_id`,ifnull(`c`.`city_name`,'No City') AS `city_name`,ifnull(`d`.`postal_id`,'No Postal Id') AS `postal_id`,ifnull(`d`.`zip_code`,'No Zip Code') AS `zip_code`,`e`.`look_street_id` AS `look_street_id`,ifnull(`e`.`street_name`,'No Street Name') AS `street_name`,`f`.`look_street_no_id` AS `look_street_no_id`,ifnull(`f`.`look_street_no`,'No Street') AS `look_street_no`,ifnull(`e`.`street_type`,'No Street Type') AS `street_type`,ifnull(`g`.`lk_val`,'No Street Type') AS `street_type_nm`,concat(ifnull(`e`.`street_name`,'No Street Name'),' ',ifnull(`g`.`lk_val`,'No Street Type')) AS `street_name_type`,concat(ifnull(`f`.`look_street_no`,'No Street '),' ',ifnull(`e`.`street_name`,'No Street, '),' ',ifnull(`g`.`lk_val`,'No Street Type'),', ',ifnull(`c`.`city_name`,'No City, '),' ',ifnull(`h`.`county_district_city_nm`,'No County'),' ',', ',ifnull(`b`.`state_name`,'No State, '),' ',ifnull(`d`.`zip_code`,'No Zip Code, '),' ','(',ifnull(`a`.`con_name`,'No Country'),')') AS `addresses` from (((((((`look_country` `a` left join `look_state` `b` on((`a`.`country_id` = `b`.`country_id`))) left join `look_county_district` `h` on((`b`.`state_id` = `h`.`state_id`))) left join `look_city` `c` on((`c`.`idlook_county_district` = `h`.`idlook_county_district`))) left join `look_postal` `d` on((`c`.`city_id` = `d`.`city_id`))) left join `look_street` `e` on((`d`.`postal_id` = `e`.`postal_id`))) left join `look_street_no` `f` on((`e`.`look_street_id` = `f`.`look_street_id`))) left join `feature_lk_val` `g` on((`e`.`street_type` = `g`.`idfeature_lk_val`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_all_users` -- /*!50001 DROP VIEW IF EXISTS `vw_all_users`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_all_users` AS select `a`.`uid_id` AS `uid_id`,`a`.`emp_id` AS `emp_id`,`f`.`file_name` AS `emp_fnm`,concat(`b`.`firstname`,' ',`b`.`lastname`) AS `emp_nm`,`a`.`user_name` AS `user_name`,`a`.`encrypt_pswd` AS `encrypt_pswd`,`a`.`pswd_hint` AS `pswd_hint`,`a`.`status` AS `status`,`a`.`expire_hrs` AS `expire_hrs`,`a`.`expire_min` AS `expire_min`,`a`.`expire_tm` AS `expire_tm`,`a`.`idlook_menu_pvt1` AS `idlook_menu_pvt1`,`k`.`lk_values` AS `idlook_menu_pvt1_nm`,`a`.`idlook_menu_pvt2` AS `idlook_menu_pvt2`,`l`.`lk_value_desc` AS `idlook_menu_pvt2_nm`,`a`.`last_clicked` AS `last_clicked`,date_format(`a`.`last_clicked`,'%m-%d-%y %h:%i %p') AS `last_clicked_fmt`,`a`.`last_updated` AS `last_updated`,`a`.`updater` AS `updater`,`g`.`file_name` AS `updater_fnm`,(case when (isnull(`a`.`last_updated`) and isnull(`a`.`updater`)) then 'Not Updated' when (isnull(`a`.`updater`) and (`a`.`last_updated` is not null)) then 'Admin' when ((`a`.`last_updated` is not null) and (`a`.`updater` is not null)) then concat(`b`.`firstname`,' ',`b`.`lastname`) end) AS `updater_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y') AS `del_dt_fmt`,date_format(`a`.`del_dt`,'%Y') AS `del_dt_yr`,date_format(`a`.`del_dt`,'%M') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`h`.`file_name` AS `del_by_fnm`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`del_by`)) then 'Not Deleted' when (isnull(`a`.`del_by`) and (`a`.`del_dt` is not null)) then 'Admin' when ((`a`.`del_dt` is not null) and (`a`.`del_by` is not null)) then concat(`e`.`firstname`,' ',`e`.`lastname`) end) AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y') AS `archv_dt_fmt`,date_format(`a`.`archv_dt`,'%Y') AS `archv_dt_yr`,date_format(`a`.`archv_dt`,'%M') AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`i`.`file_name` AS `archv_by_fnm`,(case when (isnull(`a`.`archv_dt`) and isnull(`a`.`archv_by`)) then 'Not Archived' when (isnull(`a`.`archv_by`) and (`a`.`archv_dt` is not null)) then 'Admin' when ((`a`.`archv_dt` is not null) and (`a`.`archv_by` is not null)) then concat(`e`.`firstname`,' ',`e`.`lastname`) end) AS `archv_by_nm` from ((((((((((`all_users` `a` left join `emp` `b` on((`b`.`emp_id` = `a`.`emp_id`))) left join `storages` `f` on((`f`.`idstorages` = `b`.`idstorages`))) left join `emp` `c` on((`c`.`emp_id` = `a`.`updater`))) left join `storages` `g` on((`g`.`idstorages` = `c`.`idstorages`))) left join `emp` `d` on((`d`.`emp_id` = `a`.`del_by`))) left join `storages` `h` on((`h`.`idstorages` = `d`.`idstorages`))) left join `emp` `e` on((`e`.`emp_id` = `a`.`archv_by`))) left join `storages` `i` on((`i`.`idstorages` = `e`.`idstorages`))) left join `look_menu_pvt` `k` on((`a`.`idlook_menu_pvt1` = `k`.`idlook_menu_pvt`))) left join `look_menu_pvt` `l` on((`a`.`idlook_menu_pvt2` = `l`.`idlook_menu_pvt`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_all_usr_login` -- /*!50001 DROP VIEW IF EXISTS `vw_all_usr_login`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_all_usr_login` AS select `a`.`idall_usr_login` AS `idall_usr_login`,`a`.`emp_id` AS `emp_id`,`c`.`file_name` AS `emp_fnm`,ifnull(concat(`b`.`firstname`,' ',`b`.`lastname`),'Admin') AS `emp_nm`,`a`.`idlook_ip_addr` AS `idlook_ip_addr`,`d`.`ip_address` AS `ip_address`,`d`.`domain_nm` AS `domain_nm`,`d`.`ip_contry` AS `ip_country`,`d`.`ip_state` AS `ip_state`,`d`.`ip_city` AS `ip_city`,`d`.`ip_post_code` AS `ip_post_code`,`a`.`idlook_menu_pvt_lvl1` AS `idlook_menu_pvt_lvl1`,`e`.`lk_values` AS `main_menu`,`a`.`idlook_menu_pvt_lvl2` AS `idlook_menu_pvt_lvl2`,ifnull(`f`.`lk_values`,'Main Menu') AS `sub_menu`,`a`.`device_nm` AS `device_nm`,`a`.`os_nm` AS `os_nm`,`a`.`browser` AS `browser`,`a`.`lastlogin` AS `lastlogin`,date_format(`a`.`lastlogin`,'%m-%d-%y %h:%i %p') AS `lastlogin_fmt`,`a`.`lastlogout` AS `lastlogout`,if(isnull(`a`.`lastlogout`),'Active',date_format(`a`.`lastlogout`,'%m-%d-%y %h:%i %p')) AS `lastlogout_fmt`,`a`.`logouttype` AS `logouttype`,`a`.`logged_in` AS `logged_in`,timestampdiff(MINUTE,`a`.`lastlogin`,`a`.`lastlogout`) AS `logged_in_tm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,date_format(`a`.`del_dt`,'%Y') AS `del_dt_yr`,date_format(`a`.`del_dt`,'%M') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`h`.`file_name` AS `del_by_fnm`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`del_by`)) then 'Not Deleted' when (isnull(`a`.`del_by`) and (`a`.`del_dt` is not null)) then 'Admin' when ((`a`.`del_dt` is not null) and (`a`.`del_by` is not null)) then concat(`g`.`firstname`,' ',`g`.`lastname`) end) AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,date_format(`a`.`archv_dt`,'%Y') AS `archv_dt_yr`,date_format(`a`.`archv_dt`,'%M') AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`j`.`file_name` AS `archv_by_fnm`,(case when (isnull(`a`.`archv_dt`) and isnull(`a`.`archv_by`)) then 'Not Archived' when (isnull(`a`.`archv_by`) and (`a`.`archv_dt` is not null)) then 'Admin' when ((`a`.`archv_dt` is not null) and (`a`.`archv_by` is not null)) then concat(`i`.`firstname`,' ',`i`.`lastname`) end) AS `archv_by_nm` from (((((((((`all_usr_login` `a` left join `emp` `b` on((`b`.`emp_id` = `a`.`emp_id`))) left join `storages` `c` on((`c`.`idstorages` = `b`.`idstorages`))) left join `look_ip_addr` `d` on((`d`.`idlook_ip_addr` = `a`.`idlook_ip_addr`))) left join `look_menu_pvt` `e` on((`e`.`idlook_menu_pvt` = `a`.`idlook_menu_pvt_lvl1`))) left join `look_menu_pvt` `f` on((`f`.`idlook_menu_pvt` = `a`.`idlook_menu_pvt_lvl2`))) left join `emp` `g` on((`g`.`emp_id` = `a`.`del_by`))) left join `storages` `h` on((`h`.`idstorages` = `g`.`idstorages`))) left join `emp` `i` on((`i`.`emp_id` = `a`.`archv_by`))) left join `storages` `j` on((`j`.`idstorages` = `i`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_all_usr_login_wrk` -- /*!50001 DROP VIEW IF EXISTS `vw_all_usr_login_wrk`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8mb4 */; /*!50001 SET character_set_results = utf8mb4 */; /*!50001 SET collation_connection = utf8mb4_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_all_usr_login_wrk` AS select `a`.`idall_usr_login_wrk` AS `idall_usr_login_wrk`,`b`.`idall_usr_login` AS `idall_usr_login`,`b`.`emp_id` AS `emp_id`,`d`.`file_name` AS `emp_fnm`,ifnull(concat(`c`.`firstname`,' ',`c`.`lastname`),'Admin') AS `emp_nm`,`b`.`idlook_ip_addr` AS `idlook_ip_addr`,`e`.`ip_address` AS `ip_address`,`e`.`domain_nm` AS `domain_nm`,`e`.`ip_contry` AS `ip_contry`,`e`.`ip_state` AS `ip_state`,`e`.`ip_city` AS `ip_city`,`e`.`ip_post_code` AS `ip_post_code`,`b`.`device_nm` AS `device_nm`,`b`.`os_nm` AS `os_nm`,`b`.`browser` AS `browser`,`b`.`lastlogin` AS `lastlogin`,date_format(`b`.`lastlogin`,'%m-%d-%y %h:%i %p') AS `lastlogin_fmt`,`b`.`lastlogout` AS `lastlogout`,date_format(`b`.`lastlogout`,'%m-%d-%y %h:%i %p') AS `lastlogout_fmt`,`b`.`logouttype` AS `logouttype`,`a`.`page_nm` AS `page_nm`,`a`.`table_nm` AS `table_nm`,`a`.`page_id` AS `page_id`,`a`.`wrk_ids` AS `wrk_ids`,`a`.`last_clicked` AS `last_clicked`,date_format(`a`.`last_clicked`,'%m-%d-%y %h:%i %p') AS `last_clicked_fmt` from ((((`all_usr_login_wrk` `a` left join `all_usr_login` `b` on((`a`.`idall_usr_login` = `b`.`idall_usr_login`))) left join `emp` `c` on((`b`.`emp_id` = `c`.`emp_id`))) left join `storages` `d` on((`c`.`idstorages` = `d`.`idstorages`))) left join `look_ip_addr` `e` on((`b`.`idlook_ip_addr` = `e`.`idlook_ip_addr`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_asset_audit` -- /*!50001 DROP VIEW IF EXISTS `vw_asset_audit`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_asset_audit` AS select `a`.`idasset_audit` AS `idasset_audit`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,date_format(`a`.`updated`,'%Y') AS `updated_fmt_yr`,date_format(`a`.`updated`,'%M') AS `updated_fmt_mon`,dayname(`a`.`updated`) AS `updated_fmt_day`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,(case when (isnull(`a`.`updated`) and isnull(`a`.`updater`)) then 'Not Updated' when (isnull(`a`.`updater`) and (`a`.`updated` is not null)) then 'Admin' when ((`a`.`updated` is not null) and (`a`.`updater` is not null)) then concat(`b`.`firstname`,' ',`b`.`lastname`) end) AS `updater_nm`,`a`.`table_update` AS `table_update`,`a`.`action` AS `action`,`a`.`table_id` AS `table_id`,`a`.`col1` AS `col1`,`a`.`idlook_menu_pvt_lvl2` AS `idlook_menu_pvt_lvl2`,`d`.`lk_values` AS `idlook_menu_pvt_lvl2_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`f`.`file_name` AS `del_by_fnm`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`del_by`)) then 'Not Deleted' when (isnull(`a`.`del_by`) and (`a`.`del_dt` is not null)) then 'Admin' when ((`a`.`del_dt` is not null) and (`a`.`del_by` is not null)) then concat(`e`.`firstname`,' ',`e`.`lastname`) end) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`h`.`file_name` AS `archv_by_fnm`,(case when (isnull(`a`.`archv_dt`) and isnull(`a`.`archv_by`)) then 'Not Archived' when (isnull(`a`.`archv_by`) and (`a`.`archv_dt` is not null)) then 'Admin' when ((`a`.`archv_dt` is not null) and (`a`.`archv_by` is not null)) then concat(`g`.`firstname`,' ',`g`.`lastname`) end) AS `archv_by_nm` from (((((((`asset_audit` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `look_menu_pvt` `d` on((`a`.`idlook_menu_pvt_lvl2` = `d`.`idlook_menu_pvt`))) left join `emp` `e` on((`a`.`del_by` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `emp` `g` on((`a`.`archv_by` = `g`.`emp_id`))) left join `storages` `h` on((`g`.`idstorages` = `h`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_bank_acc` -- /*!50001 DROP VIEW IF EXISTS `vw_bank_acc`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_bank_acc` AS select `a`.`idbank_acc` AS `idbank_acc`,`a`.`acc_owner` AS `acc_owner`,(case when (`a`.`acc_owner_tab` like 'emp') then `c`.`file_name` when (`a`.`acc_owner_tab` like 'comp') then `e`.`file_name` end) AS `acc_owner_fnm`,(case when (`a`.`acc_owner_tab` like 'emp') then concat(`b`.`firstname`,' ',`b`.`lastname`) when (`a`.`acc_owner_tab` like 'comp') then `d`.`companyname` end) AS `acc_owner_nm`,`a`.`acc_owner_tab` AS `acc_owner_tab`,`a`.`comp_id` AS `comp_id`,`g`.`file_name` AS `comp_fnm`,`f`.`companyname` AS `comp_nm`,`a`.`comp_acc` AS `comp_acc`,`o`.`lk_val` AS `comp_acc_nm`,`a`.`acc_no` AS `acc_no`,`a`.`open_curncy` AS `open_curncy`,`a`.`acc_open_dt` AS `acc_open_dt`,date_format(`a`.`acc_open_dt`,'%m-%d-%y') AS `acc_open_dt_fmt`,date_format(`a`.`acc_open_dt`,'%Y') AS `acc_open_dt_yr`,date_format(`a`.`acc_open_dt`,'%M') AS `acc_open_dt_mon`,`a`.`acc_type` AS `acc_type`,`n`.`lk_val` AS `acc_type_nm`,`a`.`acc_limit` AS `acc_limit`,`a`.`acc_close_dt` AS `acc_close_dt`,date_format(`a`.`acc_close_dt`,'%m-%d-%y') AS `acc_close_dt_fmt`,date_format(`a`.`acc_close_dt`,'%Y') AS `acc_close_dt_yr`,date_format(`a`.`acc_close_dt`,'%M') AS `acc_close_dt_mon`,`a`.`mature_dt` AS `mature_dt`,date_format(`a`.`mature_dt`,'%m-%d-%y') AS `mature_dt_fmt`,date_format(`a`.`mature_dt`,'%Y') AS `mature_dt_yr`,date_format(`a`.`mature_dt`,'%M') AS `mature_dt_mon`,`a`.`open_close_dt` AS `open_close_dt`,ifnull(`a`.`open_close_dt`,timestampdiff(DAY,`a`.`acc_open_dt`,now())) AS `open_close_dt_vir`,`a`.`contact_info` AS `contact_info`,`a`.`open_bal_dt` AS `open_bal_dt`,date_format(`a`.`open_bal_dt`,'%m-%d-%y') AS `open_bal_dt_fmt`,`a`.`open_bal_amt` AS `open_bal_amt`,`a`.`cur_bal_amt` AS `cur_bal_amt`,`a`.`close_bal_amt` AS `close_bal_amt`,`a`.`open_close_amt` AS `open_close_amt`,`a`.`open_close_pcnt` AS `open_close_pcnt`,`a`.`day_pcnt` AS `day_pcnt`,`a`.`day_rate` AS `day_rate`,`a`.`yr_rate` AS `yr_rate`,`a`.`yr_pcnt` AS `yr_pcnt`,`a`.`isu_bal_amt` AS `isu_bal_amt`,`a`.`isu_bal_dt` AS `isu_bal_dt`,date_format(`a`.`isu_bal_dt`,'%m-%d-%y') AS `isu_bal_dt_fmt`,`a`.`clr_bal_amt` AS `clr_bal_amt`,`a`.`clr_bal_dt` AS `clr_bal_dt`,date_format(`a`.`clr_bal_dt`,'%m-%d-%y') AS `clr_bal_dt_fmt`,`a`.`updater` AS `updater`,`i`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`h`.`firstname`,' ',`h`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`k`.`file_name` AS `del_by_fnm`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`del_by`)) then 'Not Deleted' when (isnull(`a`.`del_by`) and (`a`.`del_dt` is not null)) then 'Admin' when ((`a`.`del_dt` is not null) and (`a`.`del_by` is not null)) then concat(`j`.`firstname`,' ',`j`.`lastname`) end) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`m`.`file_name` AS `archv_by_fnm`,(case when (isnull(`a`.`archv_dt`) and isnull(`a`.`archv_by`)) then 'Not Archived' when (isnull(`a`.`archv_by`) and (`a`.`archv_dt` is not null)) then 'Admin' when ((`a`.`archv_dt` is not null) and (`a`.`archv_by` is not null)) then concat(`l`.`firstname`,' ',`l`.`lastname`) end) AS `archv_by_nm`,`a`.`old_isu_dt` AS `old_isu_dt`,`a`.`old_clr_dt` AS `old_clr_dt` from ((((((((((((((`bank_acc` `a` left join `emp` `b` on((`a`.`acc_owner` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `company` `d` on((`a`.`acc_owner` = `d`.`comp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `company` `f` on((`a`.`comp_id` = `f`.`comp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `emp` `h` on((`a`.`updater` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) left join `emp` `j` on((`a`.`del_by` = `j`.`emp_id`))) left join `storages` `k` on((`j`.`idstorages` = `k`.`idstorages`))) left join `emp` `l` on((`a`.`archv_by` = `l`.`emp_id`))) left join `storages` `m` on((`l`.`idstorages` = `m`.`idstorages`))) left join `bank_lk_val` `n` on((`a`.`acc_type` = `n`.`idbank_lk_val`))) left join `bank_lk_val` `o` on((`a`.`comp_acc` = `o`.`idbank_lk_val`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_bank_acc_rec` -- /*!50001 DROP VIEW IF EXISTS `vw_bank_acc_rec`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_bank_acc_rec` AS select `a`.`idbank_acc_rec` AS `idbank_acc_rec`,`a`.`hist` AS `hist`,`a`.`idbank_acc` AS `idbank_acc`,`b`.`acc_owner_tab` AS `acc_owner_tab`,`b`.`acc_owner` AS `acc_owner`,(case when (`b`.`acc_owner_tab` like 'emp') then `d`.`file_name` when (`b`.`acc_owner_tab` like 'comp') then `f`.`file_name` end) AS `acc_owner_fnm`,(case when (`b`.`acc_owner_tab` = 'emp') then concat(`c`.`firstname`,' ',`c`.`lastname`) when (`b`.`acc_owner_tab` = 'comp') then `e`.`companyname` end) AS `acc_owner_nm`,`b`.`comp_id` AS `comp_id`,`h`.`file_name` AS `comp_fnm`,`g`.`companyname` AS `comp_nm`,`b`.`acc_no` AS `acc_no`,`b`.`acc_open_dt` AS `acc_open_dt`,date_format(`b`.`acc_open_dt`,'%m-%d-%y') AS `acc_open_dt_fmt`,`b`.`acc_close_dt` AS `acc_close_dt`,date_format(`b`.`acc_close_dt`,'%m-%d-%y') AS `acc_close_dt_fmt`,`b`.`open_close_dt` AS `open_close_dt`,ifnull(`b`.`open_close_dt`,timestampdiff(DAY,`b`.`acc_open_dt`,now())) AS `open_close_dt_vir`,`b`.`acc_type` AS `acc_type`,`i`.`lk_val` AS `acc_type_nm`,`b`.`acc_limit` AS `acc_limit`,`b`.`isu_bal_amt` AS `isu_bal_amt`,`b`.`isu_bal_dt` AS `isu_bal_dt`,date_format(`b`.`isu_bal_dt`,'%m-%d-%y') AS `isu_bal_dt_fmt`,timestampdiff(DAY,`b`.`isu_bal_dt`,now()) AS `isu_bal_days`,`b`.`clr_bal_amt` AS `clr_bal_amt`,`b`.`clr_bal_dt` AS `clr_bal_dt`,date_format(`b`.`clr_bal_dt`,'%m-%d-%y') AS `clr_bal_dt_fmt`,timestampdiff(DAY,`b`.`clr_bal_dt`,now()) AS `clr_bal_days`,`a`.`issue_dt` AS `issue_dt`,date_format(`a`.`issue_dt`,'%m-%d-%y') AS `issue_dt_fmt`,date_format(`a`.`issue_dt`,'%Y') AS `issue_dt_yr`,date_format(`a`.`issue_dt`,'%M') AS `issue_dt_mon`,`a`.`clear_dt` AS `clear_dt`,date_format(`a`.`clear_dt`,'%m-%d-%y') AS `clear_dt_fmt`,date_format(`a`.`clear_dt`,'%Y') AS `clear_dt_yr`,date_format(`a`.`clear_dt`,'%M') AS `clear_dt_mon`,`a`.`isu_clr_dt` AS `isu_clr_dt`,ifnull(`a`.`isu_clr_dt`,timestampdiff(DAY,`a`.`issue_dt`,now())) AS `isu_clr_dt_vir`,`a`.`check_no` AS `check_no`,`a`.`check_amt` AS `check_amt`,round(`a`.`check_amt`,2) AS `check_amt_fmt`,`a`.`rec_type` AS `rec_type`,`a`.`check_type` AS `check_type`,ifnull(`y`.`lk_val`,'No check Type') AS `check_type_nm`,`a`.`trans_ref_tab` AS `trans_ref_tab`,`a`.`trans_ref_id` AS `trans_ref_id`,(case when (`a`.`trans_ref_tab` like 'emp') then `k`.`file_name` when (`a`.`trans_ref_tab` like 'comp') then `m`.`file_name` when (`a`.`trans_ref_tab` like 'tax') then 'NA' end) AS `trans_fnm`,(case when (`a`.`trans_ref_tab` like 'emp') then concat(`j`.`firstname`,' ',`j`.`lastname`) when (`a`.`trans_ref_tab` like 'comp') then `l`.`companyname` when (`a`.`trans_ref_tab` like 'tax') then concat(`x`.`state_name`,' - ',`v`.`lk_val`) end) AS `trans_nm`,`a`.`record_for` AS `record_for`,`ae`.`idbank_lk_flw` AS `lvl1`,`ae`.`wrk_flow_nm` AS `wrk_flow_nm`,`ae`.`idbank_lk_val` AS `idbank_lk_val_lvl1`,`af`.`lk_val` AS `bank_lk_val_lvl1_nm`,`ac`.`idbank_lk_flw` AS `lvl2`,`ac`.`idbank_lk_val` AS `idbank_lk_val_lvl2`,`ad`.`lk_val` AS `bank_lk_val_lvl2_nm`,`aa`.`idbank_lk_flw` AS `lvl3`,`aa`.`idbank_lk_val` AS `idbank_lk_val_lvl3`,`ab`.`lk_val` AS `idbank_lk_val_lvl3_nm`,`a`.`rec_smry` AS `rec_smry`,concat(`af`.`lk_val`,' > ',`ad`.`lk_val`,' > ',`ab`.`lk_val`,' ') AS `record_for_nm`,`a`.`updater` AS `updater`,`p`.`file_name` AS `updater_fnm`,(case when (isnull(`a`.`updated`) and isnull(`a`.`updater`)) then 'Not Updated' when (isnull(`a`.`updater`) and (`a`.`updated` is not null)) then 'Admin' when ((`a`.`updated` is not null) and (`a`.`updater` is not null)) then concat(`o`.`firstname`,' ',`o`.`lastname`) end) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,`a`.`del_by` AS `del_by`,`r`.`file_name` AS `del_by_fnm`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`del_by`)) then 'Not Deleted' when (isnull(`a`.`del_by`) and (`a`.`del_dt` is not null)) then 'Admin' when ((`a`.`del_dt` is not null) and (`a`.`del_by` is not null)) then concat(`q`.`firstname`,' ',`q`.`lastname`) end) AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,`a`.`archv_by` AS `archv_by`,`t`.`file_name` AS `archv_by_fnm`,(case when (isnull(`a`.`archv_dt`) and isnull(`a`.`archv_by`)) then 'Not Archived' when (isnull(`a`.`archv_by`) and (`a`.`archv_dt` is not null)) then 'Admin' when ((`a`.`archv_dt` is not null) and (`a`.`archv_by` is not null)) then concat(`s`.`firstname`,' ',`s`.`lastname`) end) AS `archv_by_nm` from (((((((((((((((((((((((((((((`bank_acc_rec` `a` left join `bank_acc` `b` on((`a`.`idbank_acc` = `b`.`idbank_acc`))) left join `emp` `c` on((`b`.`acc_owner` = `c`.`emp_id`))) left join `storages` `d` on((`c`.`idstorages` = `d`.`idstorages`))) left join `company` `e` on((`b`.`acc_owner` = `e`.`comp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `company` `g` on((`b`.`comp_id` = `g`.`comp_id`))) left join `storages` `h` on((`g`.`idstorages` = `h`.`idstorages`))) left join `bank_lk_val` `i` on((`b`.`acc_type` = `i`.`idbank_lk_val`))) left join `bank_lk_val` `y` on((`a`.`check_type` = `y`.`idbank_lk_val`))) left join `emp` `j` on((`a`.`trans_ref_id` = `j`.`emp_id`))) left join `storages` `k` on((`j`.`idstorages` = `k`.`idstorages`))) left join `company` `l` on((`a`.`trans_ref_id` = `l`.`comp_id`))) left join `tax_reg` `u` on((`a`.`trans_ref_id` = `u`.`idtax_reg`))) left join `look_state` `x` on((`u`.`state_id` = `x`.`state_id`))) left join `storages` `m` on((`l`.`idstorages` = `m`.`idstorages`))) left join `bank_lk_val` `n` on((`a`.`record_for` = `n`.`idbank_lk_val`))) left join `emp` `o` on((`a`.`updater` = `o`.`emp_id`))) left join `storages` `p` on((`o`.`idstorages` = `p`.`idstorages`))) left join `emp` `q` on((`a`.`del_by` = `q`.`emp_id`))) left join `storages` `r` on((`q`.`idstorages` = `r`.`idstorages`))) left join `emp` `s` on((`a`.`archv_by` = `s`.`emp_id`))) left join `storages` `t` on((`s`.`idstorages` = `t`.`idstorages`))) left join `bank_lk_flw` `aa` on((`a`.`record_for` = `aa`.`idbank_lk_flw`))) left join `bank_lk_val` `ab` on((`aa`.`idbank_lk_val` = `ab`.`idbank_lk_val`))) left join `bank_lk_flw` `ac` on((`aa`.`idflow_par` = `ac`.`idbank_lk_flw`))) left join `bank_lk_val` `ad` on((`ac`.`idbank_lk_val` = `ad`.`idbank_lk_val`))) left join `bank_lk_flw` `ae` on((`ac`.`idflow_par` = `ae`.`idbank_lk_flw`))) left join `bank_lk_val` `af` on((`ae`.`idbank_lk_val` = `af`.`idbank_lk_val`))) left join `tax_lk_val` `v` on((`u`.`dept_id` = `v`.`idtax_lk_val`))) order by `a`.`idbank_acc`,`a`.`issue_dt` desc */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_bank_audit` -- /*!50001 DROP VIEW IF EXISTS `vw_bank_audit`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_bank_audit` AS select `a`.`idbank_audit` AS `idbank_audit`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,date_format(`a`.`updated`,'%Y') AS `updated_fmt_yr`,date_format(`a`.`updated`,'%M') AS `updated_fmt_mon`,dayname(`a`.`updated`) AS `updated_fmt_day`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,(case when (isnull(`a`.`updated`) and isnull(`a`.`updater`)) then 'Not Updated' when (isnull(`a`.`updater`) and (`a`.`updated` is not null)) then 'Admin' when ((`a`.`updated` is not null) and (`a`.`updater` is not null)) then concat(`b`.`firstname`,' ',`b`.`lastname`) end) AS `updater_nm`,`a`.`table_update` AS `table_update`,`a`.`action` AS `action`,`a`.`table_id` AS `table_id`,`a`.`col1` AS `col1`,`a`.`idlook_menu_pvt_lvl2` AS `idlook_menu_pvt_lvl2`,`d`.`lk_values` AS `idlook_menu_pvt_lvl2_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`f`.`file_name` AS `del_by_fnm`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`del_by`)) then 'Not Deleted' when (isnull(`a`.`del_by`) and (`a`.`del_dt` is not null)) then 'Admin' when ((`a`.`del_dt` is not null) and (`a`.`del_by` is not null)) then concat(`e`.`firstname`,' ',`e`.`lastname`) end) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`h`.`file_name` AS `archv_by_fnm`,(case when (isnull(`a`.`archv_dt`) and isnull(`a`.`archv_by`)) then 'Not Archived' when (isnull(`a`.`archv_by`) and (`a`.`archv_dt` is not null)) then 'Admin' when ((`a`.`archv_dt` is not null) and (`a`.`archv_by` is not null)) then concat(`g`.`firstname`,' ',`g`.`lastname`) end) AS `archv_by_nm` from (((((((`bank_audit` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `look_menu_pvt` `d` on((`a`.`idlook_menu_pvt_lvl2` = `d`.`idlook_menu_pvt`))) left join `emp` `e` on((`a`.`del_by` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `emp` `g` on((`a`.`archv_by` = `g`.`emp_id`))) left join `storages` `h` on((`g`.`idstorages` = `h`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_bank_bud` -- /*!50001 DROP VIEW IF EXISTS `vw_bank_bud`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_bank_bud` AS select `a`.`idbank_bud` AS `idbank_bud`,`a`.`bud_for_tab` AS `bud_for_tab`,`a`.`bud_ref_id` AS `bud_ref_id`,(case when (`a`.`bud_for_tab` = 'emp') then `c`.`file_name` when (`a`.`bud_for_tab` = 'comp') then `e`.`file_name` end) AS `bud_ref_fnm`,(case when (`a`.`bud_for_tab` = 'emp') then concat(`b`.`firstname`,' ',`b`.`lastname`) when (`a`.`bud_for_tab` = 'comp') then `d`.`companyname` end) AS `bud_ref_nm`,`a`.`bud_open_dt` AS `bud_open_dt`,date_format(`a`.`bud_open_dt`,'%m-%d-%y') AS `bud_open_dt_fmt`,date_format(`a`.`bud_open_dt`,'%Y') AS `bud_open_yr`,date_format(`a`.`bud_open_dt`,'%M') AS `bud_open_mon`,`a`.`bud_close_dt` AS `bud_close_dt`,date_format(`a`.`bud_close_dt`,'%m-%d-%y') AS `bud_close_dt_fmt`,date_format(`a`.`bud_close_dt`,'%Y') AS `bud_close_yr`,date_format(`a`.`bud_close_dt`,'%M') AS `bud_close_mon`,`a`.`bud_limit` AS `bud_limit`,round(`a`.`bud_limit`,2) AS `bud_limit_fmt`,`a`.`bud_bal` AS `bud_bal`,round(`a`.`bud_bal`,2) AS `bud_bal_fmt`,`a`.`bud_bal_dt` AS `bud_bal_dt`,date_format(`a`.`bud_bal_dt`,'%m-%d-%y') AS `bud_bal_dt_fmt`,date_format(`a`.`bud_bal_dt`,'%Y') AS `bud_bal_yr`,date_format(`a`.`bud_bal_dt`,'%M') AS `bud_bal_mon`,`a`.`del_by` AS `del_by`,`g`.`file_name` AS `del_by_fnm`,ifnull(concat(`f`.`firstname`,' ',`f`.`lastname`),'Admin') AS `del_by_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_by` AS `archv_by`,`i`.`file_name` AS `archv_by_fnm`,ifnull(concat(`h`.`firstname`,' ',`h`.`lastname`),'Admin') AS `archv_by_nm`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,`a`.`old_bud_dt` AS `old_bud_dt`,date_format(`a`.`old_bud_dt`,'%m-%d-%y') AS `old_bud_dt_fmt`,date_format(`a`.`old_bud_dt`,'%Y') AS `old_bud_dt_yr`,date_format(`a`.`old_bud_dt`,'%M') AS `old_bud_dt_mon` from ((((((((`bank_bud` `a` left join `emp` `b` on((`a`.`bud_ref_id` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `company` `d` on((`a`.`bud_ref_id` = `d`.`comp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `emp` `f` on((`a`.`del_by` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `emp` `h` on((`a`.`archv_by` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_bank_bud_rec` -- /*!50001 DROP VIEW IF EXISTS `vw_bank_bud_rec`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_bank_bud_rec` AS select `a`.`idbank_bud_rec` AS `idbank_bud_rec`,`a`.`idbank_bud` AS `idbank_bud`,`b`.`bud_for_tab` AS `bud_for_tab`,`b`.`bud_ref_id` AS `bud_ref_id`,(case when (`b`.`bud_for_tab` = 'emp') then `d`.`file_name` when (`b`.`bud_for_tab` = 'comp') then `f`.`file_name` end) AS `bud_ref_fnm`,(case when (`b`.`bud_for_tab` = 'emp') then concat(`c`.`firstname`,' ',`c`.`lastname`) when (`b`.`bud_for_tab` = 'comp') then `e`.`companyname` end) AS `bud_ref_nm`,`b`.`bud_open_dt` AS `bud_open_dt`,date_format(`b`.`bud_open_dt`,'%m-%d-%y') AS `bud_open_dt_fmt`,`b`.`bud_close_dt` AS `bud_close_dt`,date_format(`b`.`bud_close_dt`,'%m-%d-%y') AS `bud_close_dt_fmt`,`b`.`bud_limit` AS `bud_limit`,round(`b`.`bud_limit`,2) AS `bud_limit_fmt`,`b`.`bud_bal` AS `bud_bal`,round(`b`.`bud_bal`,2) AS `bud_bal_fmt`,`b`.`bud_bal_dt` AS `bud_bal_dt`,date_format(`b`.`bud_bal_dt`,'%m-%d-%y') AS `bud_bal_dt_fmt`,`a`.`trans_ref_tab` AS `trans_ref_tab`,`a`.`trans_ref_id` AS `trans_ref_id`,(case when (`a`.`trans_ref_tab` like 'emp') then `h`.`file_name` when (`a`.`trans_ref_tab` like 'comp') then `j`.`file_name` end) AS `trans_ref_fnm`,ifnull((case when (`a`.`trans_ref_tab` like 'emp') then concat(`g`.`firstname`,' ',`g`.`lastname`) when (`a`.`trans_ref_tab` like 'comp') then `i`.`companyname` end),'No From Name') AS `trans_ref_nm`,`a`.`rec_dt` AS `rec_dt`,date_format(`a`.`rec_dt`,'%m-%d-%y') AS `rec_dt_fmt`,date_format(`a`.`rec_dt`,'%Y') AS `rec_dt_yr`,date_format(`a`.`rec_dt`,'%M') AS `rec_dt_mon`,`a`.`rec_amt` AS `rec_amt`,round(`a`.`rec_amt`,2) AS `rec_amt_fmt`,`a`.`rec_type` AS `rec_type`,ifnull((case when (`a`.`rec_type` = 'D') then 'Deposit' when (`a`.`rec_type` = 'W') then 'Withdrawal' end),'No Rec Type') AS `rec_type_nm`,`a`.`record_for` AS `record_for`,ifnull(`o`.`lk_val`,'NO Record For') AS `record_for_nm`,`a`.`updater` AS `updater`,`q`.`file_name` AS `updater_fnm`,(case when (isnull(`a`.`updated`) and isnull(`a`.`updater`)) then 'Not Updated' when (isnull(`a`.`updater`) and (`a`.`updated` is not null)) then 'Admin' when ((`a`.`updated` is not null) and (`a`.`updater` is not null)) then concat(`p`.`firstname`,' ',`p`.`lastname`) end) AS `updater_nm`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`del_by` AS `del_by`,`s`.`file_name` AS `del_by_fnm`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`del_by`)) then 'Not Deleted' when (isnull(`a`.`del_by`) and (`a`.`del_dt` is not null)) then 'Admin' when ((`a`.`del_dt` is not null) and (`a`.`del_by` is not null)) then concat(`r`.`firstname`,' ',`r`.`lastname`) end) AS `del_by_nm`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_by` AS `archv_by`,`u`.`file_name` AS `archv_by_fnm`,(case when (isnull(`a`.`archv_dt`) and isnull(`a`.`archv_by`)) then 'Not Archived' when (isnull(`a`.`archv_by`) and (`a`.`archv_dt` is not null)) then 'Admin' when ((`a`.`archv_dt` is not null) and (`a`.`archv_by` is not null)) then concat(`t`.`firstname`,' ',`t`.`lastname`) end) AS `archv_by_nm` from ((((((((((((((((`bank_bud_rec` `a` left join `bank_bud` `b` on((`a`.`idbank_bud` = `b`.`idbank_bud`))) left join `emp` `c` on((`b`.`bud_ref_id` = `c`.`emp_id`))) left join `storages` `d` on((`c`.`idstorages` = `d`.`idstorages`))) left join `company` `e` on((`b`.`bud_ref_id` = `e`.`comp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `emp` `g` on((`a`.`trans_ref_id` = `g`.`emp_id`))) left join `storages` `h` on((`g`.`idstorages` = `h`.`idstorages`))) left join `company` `i` on((`a`.`trans_ref_id` = `i`.`comp_id`))) left join `storages` `j` on((`i`.`idstorages` = `j`.`idstorages`))) left join `bank_lk_val` `o` on((`a`.`record_for` = `o`.`idbank_lk_val`))) left join `emp` `p` on((`a`.`updater` = `p`.`emp_id`))) left join `storages` `q` on((`p`.`idstorages` = `q`.`idstorages`))) left join `emp` `r` on((`a`.`del_by` = `r`.`emp_id`))) left join `storages` `s` on((`r`.`idstorages` = `s`.`idstorages`))) left join `emp` `t` on((`a`.`archv_by` = `t`.`emp_id`))) left join `storages` `u` on((`t`.`idstorages` = `u`.`idstorages`))) order by `a`.`idbank_bud` desc,`a`.`rec_dt` desc */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_bank_bud_rec_bal` -- /*!50001 DROP VIEW IF EXISTS `vw_bank_bud_rec_bal`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_bank_bud_rec_bal` AS select `a`.`idbank_bud_rec_bal` AS `idbank_bud_rec_bal`,`a`.`idbank_bud` AS `idbank_bud`,`b`.`bud_for_tab` AS `bud_for_tab`,`b`.`bud_ref_id` AS `bud_ref_id`,(case when (`b`.`bud_for_tab` = 'emp') then `d`.`file_name` when (`b`.`bud_for_tab` = 'comp') then `f`.`file_name` end) AS `bud_ref_fnm`,(case when (`b`.`bud_for_tab` = 'emp') then concat(`c`.`firstname`,' ',`c`.`lastname`) when (`b`.`bud_for_tab` = 'comp') then `e`.`companyname` end) AS `bud_ref_nm`,`b`.`bud_open_dt` AS `bud_open_dt`,date_format(`b`.`bud_open_dt`,'%m-%d-%y') AS `bud_open_dt_fmt`,`b`.`bud_close_dt` AS `bud_close_dt`,date_format(`b`.`bud_close_dt`,'%m-%d-%y') AS `bud_close_dt_fmt`,`b`.`bud_limit` AS `bud_limit`,round(`b`.`bud_limit`,2) AS `bud_limit_fmt`,`b`.`bud_bal` AS `bud_bal`,round(`b`.`bud_bal`,2) AS `bud_bal_fmt`,`b`.`bud_bal_dt` AS `bud_bal_dt`,date_format(`b`.`bud_bal_dt`,'%m-%d-%y') AS `bud_bal_dt_fmt`,`b`.`old_bud_dt` AS `old_bud_dt`,date_format(`b`.`old_bud_dt`,'%m-%d-%y') AS `old_bud_dt_fmt`,`a`.`consol_dt` AS `consol_dt`,date_format(`a`.`consol_dt`,'%m-%d-%y') AS `consol_dt_fmt`,`a`.`bank_depo` AS `bank_depo`,round(`a`.`bank_depo`,2) AS `bank_depo_fmt`,`a`.`bank_draw` AS `bank_draw`,round(`a`.`bank_draw`,2) AS `bank_draw_fmt`,`a`.`bank_bal` AS `bank_bal`,round(`a`.`bank_bal`,2) AS `bank_bal_fmt` from (((((`bank_bud_rec_bal` `a` left join `bank_bud` `b` on((`a`.`idbank_bud` = `b`.`idbank_bud`))) left join `emp` `c` on((`b`.`bud_ref_id` = `c`.`emp_id`))) left join `storages` `d` on((`c`.`idstorages` = `d`.`idstorages`))) left join `company` `e` on((`b`.`bud_ref_id` = `e`.`comp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_bank_lk_flw` -- /*!50001 DROP VIEW IF EXISTS `vw_bank_lk_flw`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_bank_lk_flw` AS select `a`.`idbank_lk_flw` AS `idbank_lk_flw`,`a`.`wrk_flow_nm` AS `wrk_flow_nm`,`a`.`idbank_lk_val` AS `idbank_lk_val`,`b`.`lk_val` AS `look_value`,`a`.`flw_desc` AS `flw_desc`,`a`.`idflow_par` AS `idflow_par`,`a`.`look_initial` AS `look_initial`,`a`.`disp_order` AS `disp_order`,`a`.`updater` AS `updater`,`d`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`c`.`firstname`,' ',`c`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from (((`bank_lk_flw` `a` left join `bank_lk_val` `b` on((`a`.`idbank_lk_val` = `b`.`idbank_lk_val`))) left join `emp` `c` on((`a`.`updater` = `c`.`emp_id`))) left join `storages` `d` on((`c`.`idstorages` = `d`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_bank_lk_flw2` -- /*!50001 DROP VIEW IF EXISTS `vw_bank_lk_flw2`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_bank_lk_flw2` AS select `a`.`idbank_lk_flw` AS `lvl1`,`a`.`wrk_flow_nm` AS `wrk_flow_nm`,`a`.`idbank_lk_val` AS `idbank_lk_val_lvl1`,`h`.`lk_val` AS `idbank_lk_val_lvl1_nm`,`a`.`idflow_par` AS `idflow_par`,`a`.`look_initial` AS `look_initial`,`a`.`disp_order` AS `disp_order`,`b`.`idbank_lk_flw` AS `lvl2`,`b`.`idbank_lk_val` AS `idbank_lk_val_lvl2`,`c`.`lk_val` AS `bank_lk_val_lvl2_nm`,`d`.`idbank_lk_flw` AS `lvl3`,`d`.`idbank_lk_val` AS `idbank_lk_val_lvl3`,`e`.`lk_val` AS `bank_lk_val_lvl3_nm`,`a`.`updater` AS `updater`,`g`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`f`.`firstname`,' ',`f`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((((`bank_lk_flw` `d` left join ((`bank_lk_flw` `b` left join (`bank_lk_flw` `a` left join `bank_lk_val` `h` on((`a`.`idbank_lk_val` = `h`.`idbank_lk_val`))) on((`a`.`idbank_lk_flw` = `b`.`idflow_par`))) left join `bank_lk_val` `c` on((`b`.`idbank_lk_val` = `c`.`idbank_lk_val`))) on((`b`.`idbank_lk_flw` = `d`.`idflow_par`))) left join `bank_lk_val` `e` on((`d`.`idbank_lk_val` = `e`.`idbank_lk_val`))) left join `emp` `f` on((`a`.`updater` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) where (`a`.`idbank_lk_flw` is not null) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_comp_active` -- /*!50001 DROP VIEW IF EXISTS `vw_comp_active`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_comp_active` AS select `a`.`idcomp_active` AS `idcomp_active`,`a`.`comp_id` AS `comp_id`,`e`.`file_name` AS `comp_fnm`,`b`.`companyname` AS `companyname`,`b`.`comp_website` AS `comp_website`,`a`.`comp_background` AS `comp_background`,`a`.`active_type` AS `active_type`,`a`.`publish` AS `publish`,`a`.`manage_by` AS `manage_by`,`f`.`file_name` AS `manage_by_fnm`,concat(trim(ifnull(`c`.`firstname`,'')),' ',trim(ifnull(nullif(`c`.`middlename`,''),'')),convert((case when ((`c`.`middlename` is not null) and (`c`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`c`.`lastname`,''))) AS `manage_by_nm`,`a`.`client_since` AS `client_since`,date_format(`a`.`client_since`,'%m-%d-%y') AS `client_since_fmt`,`a`.`updater` AS `updater`,`g`.`file_name` AS `updater_fnm`,concat(trim(ifnull(`d`.`firstname`,'')),' ',trim(ifnull(nullif(`d`.`middlename`,''),'')),convert((case when ((`d`.`middlename` is not null) and (`d`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`d`.`lastname`,''))) AS `updater_nm`,`a`.`updated` AS `updated` from ((((((`comp_active` `a` left join `company` `b` on((`b`.`comp_id` = `a`.`comp_id`))) left join `storages` `e` on((`b`.`idstorages` = `e`.`idstorages`))) left join `emp` `c` on((`c`.`emp_id` = `a`.`manage_by`))) left join `storages` `f` on((`c`.`idstorages` = `f`.`idstorages`))) left join `emp` `d` on((`d`.`emp_id` = `a`.`updater`))) left join `storages` `g` on((`d`.`idstorages` = `g`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_comp_address` -- /*!50001 DROP VIEW IF EXISTS `vw_comp_address`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8mb4 */; /*!50001 SET character_set_results = utf8mb4 */; /*!50001 SET collation_connection = utf8mb4_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_comp_address` AS select `a`.`comp_add_id` AS `comp_add_id`,`a`.`comp_id` AS `comp_id`,`g`.`file_name` AS `comp_logo`,`b`.`companyname` AS `companyname`,`a`.`look_street_no_id` AS `look_street_no_id`,`c`.`addresses` AS `addresses`,`a`.`suite_no` AS `suite_no`,`a`.`house_apt_type` AS `house_apt_type`,`d`.`lk_val` AS `house_apt_nm`,`a`.`add_type` AS `add_type`,`a`.`from_dt` AS `from_dt`,date_format(`a`.`from_dt`,'%Y') AS `from_dt_yr`,date_format(`a`.`from_dt`,'%M') AS `from_dt_mon`,date_format(`a`.`from_dt`,'%m-%d-%y') AS `from_dt_fmt`,`a`.`to_dt` AS `to_dt`,date_format(`a`.`to_dt`,'%Y') AS `to_dt_yr`,date_format(`a`.`to_dt`,'%M') AS `to_dt_mon`,date_format(`a`.`to_dt`,'%m-%d-%y') AS `to_dt_fmt`,`a`.`from_to_dt` AS `from_to_dt`,timestampdiff(DAY,`a`.`from_dt`,ifnull(`a`.`to_dt`,now())) AS `from_to_dt_vir`,`a`.`updater` AS `updater`,`f`.`file_name` AS `updater_fnm`,concat(`e`.`firstname`,' ',`e`.`lastname`) AS `updater_nm`,`a`.`updated` AS `updated`,`a`.`last_updated` AS `last_updated`,date_format(`a`.`last_updated`,_utf8'%m-%d-%y %h:%i %p') AS `last_updated_fmt`,`a`.`updated_by` AS `updated_by`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`k`.`file_name` AS `del_by_fnm`,if(isnull(`a`.`del_by`),'Admin',concat(`j`.`firstname`,' ',`j`.`lastname`)) AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,ifnull(convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4),'Not Archived') AS `archv_dt_yr`,ifnull(convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4),'Not Archived') AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`h`.`file_name` AS `archv_by_fnm`,if(isnull(`a`.`archv_by`),'Admin',concat(`i`.`firstname`,' ',`i`.`lastname`)) AS `archv_by_nm` from ((((((((((`comp_address` `a` left join `company` `b` on((`b`.`comp_id` = `a`.`comp_id`))) left join `storages` `g` on((`g`.`idstorages` = `b`.`idstorages`))) left join `vw_addresses` `c` on((`c`.`look_street_no_id` = `a`.`look_street_no_id`))) left join `feature_lk_val` `d` on((`d`.`idfeature_lk_val` = `a`.`house_apt_type`))) left join `emp` `e` on((`e`.`emp_id` = `a`.`updater`))) left join `storages` `f` on((`f`.`idstorages` = `e`.`idstorages`))) left join `emp` `j` on((`a`.`del_by` = `j`.`emp_id`))) left join `storages` `k` on((`k`.`idstorages` = `j`.`idstorages`))) left join `emp` `i` on((`a`.`archv_by` = `i`.`emp_id`))) left join `storages` `h` on((`h`.`idstorages` = `e`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_comp_audit` -- /*!50001 DROP VIEW IF EXISTS `vw_comp_audit`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_comp_audit` AS select `a`.`idcomp_audit` AS `idcomp_audit`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,date_format(`a`.`updated`,'%Y') AS `updated_fmt_yr`,date_format(`a`.`updated`,'%M') AS `updated_fmt_mon`,dayname(`a`.`updated`) AS `updated_fmt_day`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,(case when (isnull(`a`.`updated`) and isnull(`a`.`updater`)) then 'Not Updated' when (isnull(`a`.`updater`) and (`a`.`updated` is not null)) then 'Admin' when ((`a`.`updated` is not null) and (`a`.`updater` is not null)) then concat(`b`.`firstname`,' ',`b`.`lastname`) end) AS `updater_nm`,`a`.`table_update` AS `table_update`,`a`.`action` AS `action`,`a`.`table_id` AS `table_id`,`a`.`col1` AS `col1`,`a`.`idlook_menu_pvt_lvl2` AS `idlook_menu_pvt_lvl2`,`d`.`lk_values` AS `idlook_menu_pvt_lvl2_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`f`.`file_name` AS `del_by_fnm`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`del_by`)) then 'Not Deleted' when (isnull(`a`.`del_by`) and (`a`.`del_dt` is not null)) then 'Admin' when ((`a`.`del_dt` is not null) and (`a`.`del_by` is not null)) then concat(`e`.`firstname`,' ',`e`.`lastname`) end) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`h`.`file_name` AS `archv_by_fnm`,(case when (isnull(`a`.`archv_dt`) and isnull(`a`.`archv_by`)) then 'Not Archived' when (isnull(`a`.`archv_by`) and (`a`.`archv_dt` is not null)) then 'Admin' when ((`a`.`archv_dt` is not null) and (`a`.`archv_by` is not null)) then concat(`g`.`firstname`,' ',`g`.`lastname`) end) AS `archv_by_nm` from (((((((`comp_audit` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `look_menu_pvt` `d` on((`a`.`idlook_menu_pvt_lvl2` = `d`.`idlook_menu_pvt`))) left join `emp` `e` on((`a`.`del_by` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `emp` `g` on((`a`.`archv_by` = `g`.`emp_id`))) left join `storages` `h` on((`g`.`idstorages` = `h`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_comp_contact` -- /*!50001 DROP VIEW IF EXISTS `vw_comp_contact`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_comp_contact` AS select `a`.`comp_contact_id` AS `comp_contact_id`,`a`.`comp_id` AS `comp_id`,`c`.`file_name` AS `comp_fnm`,`b`.`companyname` AS `companyname`,`a`.`emp_id` AS `emp_id`,`e`.`file_name` AS `emp_fnm`,concat(`d`.`firstname`,' ',`d`.`lastname`) AS `emp_nm`,`a`.`title` AS `title`,`a`.`all_contacts` AS `all_contacts`,`a`.`description` AS `description`,`a`.`last_updated` AS `last_updated`,date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p') AS `last_updated_fmt`,`a`.`updated_by` AS `updated_by`,`g`.`file_name` AS `updated_by_fnm`,concat(`f`.`firstname`,' ',`f`.`lastname`) AS `updated_by_nm` from ((((((`comp_contact` `a` left join `company` `b` on((`b`.`comp_id` = `a`.`comp_id`))) left join `storages` `c` on((`c`.`idstorages` = `b`.`idstorages`))) left join `emp` `d` on((`d`.`emp_id` = `a`.`emp_id`))) left join `storages` `e` on((`e`.`idstorages` = `d`.`idstorages`))) left join `emp` `f` on((`f`.`emp_id` = `a`.`updated_by`))) left join `storages` `g` on((`g`.`idstorages` = `f`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_comp_contact_no` -- /*!50001 DROP VIEW IF EXISTS `vw_comp_contact_no`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_comp_contact_no` AS select `a`.`comp_contact_no_id` AS `comp_contact_no_id`,`a`.`comp_contact_id` AS `comp_contact_id`,`b`.`comp_id` AS `comp_id`,`k`.`file_name` AS `comp_fnm`,`j`.`companyname` AS `comp_nm`,`b`.`emp_id` AS `emp_id`,`d`.`file_name` AS `emp_fnm`,concat(`c`.`firstname`,' ',`c`.`lastname`) AS `emp_nm`,`b`.`title` AS `title`,`a`.`emp_contact_id` AS `emp_contact_id`,`e`.`contact_id` AS `contact_id`,`e`.`emp_contact_type` AS `emp_contact_type`,`f`.`lk_val` AS `emp_contact_type_nm`,`i`.`contact_detail` AS `contact_detail`,`a`.`last_updated` AS `last_updated`,date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p') AS `last_updated_fmt`,`a`.`updated_by` AS `updated_by`,`h`.`file_name` AS `updated_by_fnm`,ifnull(concat(`g`.`firstname`,' ',`g`.`lastname`),'Admin') AS `updated_by_nm` from ((((((((((`comp_contact_no` `a` left join `comp_contact` `b` on((`a`.`comp_contact_id` = `b`.`comp_contact_id`))) left join `emp` `c` on((`b`.`emp_id` = `c`.`emp_id`))) left join `storages` `d` on((`c`.`idstorages` = `d`.`idstorages`))) left join `emp_contact` `e` on((`a`.`emp_contact_id` = `e`.`emp_contact_id`))) left join `emp_lk_val` `f` on((`e`.`emp_contact_type` = `f`.`idemp_lk_value`))) left join `contact_no` `i` on((`e`.`contact_id` = `i`.`contact_id`))) left join `emp` `g` on((`a`.`updated_by` = `g`.`emp_id`))) left join `storages` `h` on((`g`.`idstorages` = `h`.`idstorages`))) left join `company` `j` on((`b`.`comp_id` = `j`.`comp_id`))) left join `storages` `k` on((`j`.`idstorages` = `k`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_comp_doc` -- /*!50001 DROP VIEW IF EXISTS `vw_comp_doc`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_comp_doc` AS select `a`.`idcomp_doc` AS `idcomp_doc`,`a`.`comp_id` AS `comp_id`,`a`.`idstorages` AS `idstorages`,`c`.`file_name` AS `file_name`,`c`.`sto_cloud` AS `sto_cloud`,ifnull(`k`.`lk_val`,'Local') AS `sto_cloud_nm`,`c`.`file_size` AS `file_size`,(case when (`c`.`file_size` < 1024) then concat(`c`.`file_size`,' B') when ((`c`.`file_size` > 1024) and (`c`.`file_size` < 1048576)) then concat(round((`c`.`file_size` / 1024),2),' KB') when ((`c`.`file_size` > 1048576) and (`c`.`file_size` < 1073741824)) then concat(round(((`c`.`file_size` / 1024) / 1024),2),' MB') when (`c`.`file_size` > 1073741824) then concat(round((((`c`.`file_size` / 1024) / 1024) / 1024),2),' GB') end) AS `file_size_fmt`,`c`.`owner_id` AS `owner_id`,`e`.`file_name` AS `owner_fnm`,ifnull(concat(`d`.`firstname`,' ',`d`.`lastname`),'Admin') AS `owner_nm`,`c`.`create_dt` AS `create_dt`,date_format(`c`.`create_dt`,'%m-%d-%y %h:%i %p') AS `create_dt_fmt`,`c`.`expire_dt` AS `expire_dt`,date_format(`c`.`expire_dt`,'%m-%d-%y %h:%i %p') AS `expire_dt_fmt`,`c`.`ext_type` AS `ext_type`,`c`.`public` AS `public`,`c`.`self_view` AS `self_view`,`c`.`smry` AS `smry`,`c`.`ref_emp_id` AS `ref_emp_id`,`g`.`file_name` AS `ref_emp_fnm`,ifnull(concat(`f`.`firstname`,' ',`f`.`lastname`),'Admin') AS `ref_emp_nm`,`c`.`usage` AS `usage`,`c`.`updater` AS `updater`,`i`.`file_name` AS `updater_fnm`,ifnull(concat(`h`.`firstname`,' ',`h`.`lastname`),'Admin') AS `updater_nm`,`c`.`updated` AS `updated`,date_format(`c`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((((((((`comp_doc` `a` left join `storages` `c` on((`a`.`idstorages` = `c`.`idstorages`))) left join `emp` `d` on((`c`.`owner_id` = `d`.`emp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `emp` `f` on((`c`.`ref_emp_id` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `feature_lk_val` `k` on((`a`.`idstorages` = `k`.`idfeature_lk_val`))) left join `emp` `h` on((`c`.`updater` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_comp_lk_val` -- /*!50001 DROP VIEW IF EXISTS `vw_comp_lk_val`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_comp_lk_val` AS select `a`.`idcomp_lk_val` AS `idcomp_lk_val`,NULL AS `idcomp_lk`,`a`.`lk_val_par` AS `lk_val_par`,`a`.`lk_val` AS `lk_val`,NULL AS `child_lvl`,`a`.`lk_val_desc` AS `lk_val_desc`,`a`.`disp_order` AS `disp_order`,`a`.`idcomp_lk` AS `parent_id`,`a`.`updater` AS `updater`,`d`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`b`.`firstname`,' ',`b`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) AS `updated_fmt` from ((`comp_lk_val` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `d` on((`d`.`idstorages` = `b`.`idstorages`))) union all select NULL AS `idcomp_lk_val`,`a`.`idcomp_lk` AS `idcomp_lk`,NULL AS `lk_val_par`,`a`.`lk_nm` AS `lk_nm`,if((`a`.`child_lvl` = 0),1,ifnull(`a`.`child_lvl`,1)) AS `child_lvl`,`a`.`lk_nm_desc` AS `lk_nm_desc`,`a`.`disp_order` AS `disp_order`,NULL AS `parent_id`,`a`.`updater` AS `updater`,`d`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`b`.`firstname`,' ',`b`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,if(isnull(`a`.`updated`),'System',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) AS `updated_fmt` from ((`comp_lk` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `d` on((`d`.`idstorages` = `b`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_comp_trng` -- /*!50001 DROP VIEW IF EXISTS `vw_comp_trng`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_comp_trng` AS select `a`.`idcomp_trng` AS `idcomp_trng`,`a`.`disp_order` AS `disp_order`,`a`.`train_nm` AS `train_nm`,`a`.`train_desc` AS `train_desc`,`a`.`duration` AS `duration`,`a`.`cnt` AS `cnt`,`a`.`practical` AS `practical`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,ifnull(concat(`b`.`firstname`,' ',`b`.`lastname`),'Admin') AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((`comp_trng` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) order by `a`.`disp_order` */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_comp_trng_doc` -- /*!50001 DROP VIEW IF EXISTS `vw_comp_trng_doc`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_comp_trng_doc` AS select `a`.`idcomp_trng_doc` AS `idcomp_trng_doc`,`a`.`idcomp_trng` AS `idcomp_trng`,`j`.`train_nm` AS `train_nm`,`j`.`train_desc` AS `train_desc`,`a`.`disp_order` AS `disp_order`,`a`.`trng_desc` AS `trng_desc`,`a`.`duration` AS `duration`,`a`.`idstorages` AS `idstorages`,`b`.`file_name` AS `file_name`,`b`.`sto_cloud` AS `sto_cloud`,ifnull(`c`.`lk_val`,'Local') AS `sto_cloud_nm`,`b`.`file_size` AS `file_size`,(case when (`b`.`file_size` < 1024) then concat(`b`.`file_size`,' B') when ((`b`.`file_size` > 1024) and (`b`.`file_size` < 1048576)) then concat(round((`b`.`file_size` / 1024),2),' KB') when ((`b`.`file_size` > 1048576) and (`b`.`file_size` < 1073741824)) then concat(round(((`b`.`file_size` / 1024) / 1024),2),' MB') when (`b`.`file_size` > 1073741824) then concat(round((((`b`.`file_size` / 1024) / 1024) / 1024),2),' GB') end) AS `file_size_fmt`,`b`.`owner_id` AS `owner_id`,`e`.`file_name` AS `owner_fnm`,ifnull(concat(`d`.`firstname`,' ',`d`.`lastname`),'Admin') AS `owner_nm`,`b`.`create_dt` AS `create_dt`,date_format(`b`.`create_dt`,'%m-%d-%y %h:%i %p') AS `create_dt_fmt`,`b`.`expire_dt` AS `expire_dt`,date_format(`b`.`expire_dt`,'%m-%d-%y %h:%i %p') AS `expire_dt_fmt`,`b`.`ext_type` AS `ext_type`,`b`.`public` AS `public`,`b`.`self_view` AS `self_view`,`b`.`smry` AS `smry`,`b`.`ref_emp_id` AS `ref_emp_id`,`g`.`file_name` AS `ref_emp_fnm`,concat(`f`.`firstname`,' ',`f`.`lastname`) AS `ref_emp_nm`,`a`.`cloud_link` AS `cloud_link`,`a`.`updater` AS `updater`,`i`.`file_name` AS `updater_fnm`,ifnull(concat(`h`.`firstname`,' ',`h`.`lastname`),'Admin') AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from (((((((((`comp_trng_doc` `a` left join `storages` `b` on((`a`.`idstorages` = `b`.`idstorages`))) left join `feature_lk_val` `c` on((`b`.`sto_cloud` = `c`.`idfeature_lk_val`))) left join `emp` `d` on((`b`.`owner_id` = `d`.`emp_id`))) left join `storages` `e` on((`d`.`idstorages` = `d`.`idstorages`))) left join `emp` `f` on((`b`.`ref_emp_id` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `emp` `h` on((`a`.`updater` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) left join `comp_trng` `j` on((`a`.`idcomp_trng` = `j`.`idcomp_trng`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_company` -- /*!50001 DROP VIEW IF EXISTS `vw_company`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_company` AS select `a`.`comp_id` AS `comp_id`,`a`.`idstorages` AS `idstorages`,`b`.`file_name` AS `comp_fnm`,`a`.`companyname` AS `companyname`,`a`.`comp_tax_id` AS `comp_tax_id`,`a`.`company_info` AS `company_info`,`a`.`comp_website` AS `comp_website`,`a`.`comp_phone` AS `comp_phone`,`a`.`comp_email` AS `comp_email`,`a`.`all_contacts` AS `all_contacts`,`a`.`last_updated` AS `last_updated`,date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p') AS `last_updated_fmt`,`a`.`updater` AS `updater`,`d`.`file_name` AS `updater_fnm`,ifnull(concat(`c`.`firstname`,' ',`c`.`lastname`),'Admin') AS `updater_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`f`.`file_name` AS `del_by_fnm`,ifnull(concat(`e`.`firstname`,' ',`e`.`lastname`),'Admin') AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,ifnull(convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4),'Not Archived') AS `archv_dt_yr`,ifnull(convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4),'Not Archived') AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`h`.`file_name` AS `archv_by_fnm`,ifnull(concat(`g`.`firstname`,' ',`g`.`lastname`),'Admin') AS `archv_by_nm` from (((((((`company` `a` left join `storages` `b` on((`a`.`idstorages` = `b`.`idstorages`))) left join `emp` `c` on((`a`.`updater` = `c`.`emp_id`))) left join `storages` `d` on((`c`.`idstorages` = `d`.`idstorages`))) left join `emp` `e` on((`a`.`del_by` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `emp` `g` on((`a`.`archv_by` = `g`.`emp_id`))) left join `storages` `h` on((`g`.`idstorages` = `h`.`idstorages`))) order by `a`.`last_updated` desc */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_contact_no` -- /*!50001 DROP VIEW IF EXISTS `vw_contact_no`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_contact_no` AS select `a`.`contact_id` AS `contact_id`,`a`.`country_id` AS `country_id`,`b`.`con_name` AS `con_name`,`b`.`con_full_name` AS `con_full_name`,`b`.`lk_design` AS `lk_design`,`b`.`con_code` AS `con_code`,`b`.`con_digit` AS `con_digit`,`a`.`contact_type` AS `contact_type`,`a`.`contact_detail` AS `contact_detail`,`a`.`contact_cnt` AS `contact_cnt`,`a`.`contact_smry` AS `contact_smry`,`a`.`contact_stat` AS `contact_stat`,ifnull(`a`.`contact_stat`,'Yes') AS `contact_stat_nm`,`a`.`updater` AS `updater`,`d`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(trim(ifnull(`c`.`firstname`,'')),' ',trim(ifnull(nullif(`c`.`middlename`,''),'')),convert((case when ((`c`.`middlename` is not null) and (`c`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`c`.`lastname`,'')))) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from (((`contact_no` `a` left join `look_country` `b` on((`a`.`country_id` = `b`.`country_id`))) left join `emp` `c` on((`a`.`updater` = `c`.`emp_id`))) left join `storages` `d` on((`c`.`idstorages` = `d`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_apps` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_apps`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_apps` AS select `a`.`iddev_apps` AS `iddev_apps`,`a`.`disp_order` AS `disp_order`,`a`.`app_name` AS `app_name`,ifnull(`a`.`app_skill_avg`,'0.0') AS `app_skill_avg`,ifnull(`a`.`app_gap_avg`,'0.0') AS `app_gap_avg`,`a`.`app_st_dt` AS `app_st_dt`,if(isnull(`a`.`app_st_dt`),'Not Started',date_format(`a`.`app_st_dt`,'%m-%d-%y %h:%i %p')) AS `app_st_dt_fmt`,ifnull(date_format(`a`.`app_st_dt`,'%Y'),'Not Started') AS `app_st_dt_yr`,ifnull(date_format(`a`.`app_st_dt`,'%M'),'Not Started') AS `app_st_dt_mon`,`a`.`comp_id` AS `comp_id`,ifnull(`d`.`companyname`,'No Company') AS `companyname`,`i`.`file_name` AS `comp_fnm`,`a`.`app_description` AS `app_description`,`a`.`app_e_dt` AS `app_e_dt`,(case when (`a`.`app_e_dt` is not null) then date_format(`a`.`app_e_dt`,'%m-%d-%y %h:%i %p') when (isnull(`a`.`app_e_dt`) and isnull(`a`.`app_st_dt`)) then 'Not Started' when (isnull(`a`.`app_e_dt`) and (`a`.`app_st_dt` is not null)) then 'In Progress' end) AS `app_e_dt_fmt`,if(isnull(`a`.`app_e_dt`),'Open','Closed') AS `dev_apps_cur_stat`,(case when (`a`.`app_e_dt` is not null) then date_format(`a`.`app_e_dt`,'%Y') when (isnull(`a`.`app_e_dt`) and isnull(`a`.`app_st_dt`)) then 'Not Started' when (isnull(`a`.`app_e_dt`) and (`a`.`app_st_dt` is not null)) then 'In Progress' end) AS `app_e_dt_yr`,(case when (`a`.`app_e_dt` is not null) then date_format(`a`.`app_e_dt`,'%M') when (isnull(`a`.`app_e_dt`) and isnull(`a`.`app_st_dt`)) then 'Not Started' when (isnull(`a`.`app_e_dt`) and (`a`.`app_st_dt` is not null)) then 'In Progress' end) AS `app_e_dt_mon`,`a`.`app_stat_tm` AS `app_stat_tm`,ifnull(`a`.`app_stat_tm`,timestampdiff(MINUTE,`a`.`app_st_dt`,now())) AS `app_stat_tm_vir`,`a`.`app_lag_tm` AS `app_lag_tm`,`a`.`app_lag_tm` AS `app_lag_tm_vir`,`a`.`app_est_cnt` AS `app_est_cnt`,`a`.`app_est_tol` AS `app_est_tol`,concat((case when (`a`.`app_est_cnt` > 999) then concat((trim(round((`a`.`app_est_cnt` / 1000),2)) + 0),'K') when (`a`.`app_est_cnt` < 1000) then `a`.`app_est_cnt` end),' of ',(case when (`a`.`app_est_tol` > 999) then concat((trim(round((`a`.`app_est_tol` / 1000),2)) + 0),'K') when (`a`.`app_est_tol` < 1000) then `a`.`app_est_tol` end)) AS `app_est_cnt_tol`,ifnull(`a`.`app_est_pcnt`,'0%') AS `app_est_pcnt`,`a`.`app_est_req_cnt` AS `app_est_req_cnt`,`a`.`app_est_req_tol` AS `app_est_req_tol`,concat((case when (`a`.`app_est_req_cnt` > 999) then concat((trim(round((`a`.`app_est_req_cnt` / 1000),2)) + 0),'K') when (`a`.`app_est_req_cnt` < 1000) then `a`.`app_est_req_cnt` end),' of ',(case when (`a`.`app_est_req_tol` > 999) then concat((trim(round((`a`.`app_est_req_tol` / 1000),2)) + 0),'K') when (`a`.`app_est_req_tol` < 1000) then `a`.`app_est_req_tol` end)) AS `app_est_req_cnt_tol`,ifnull(`a`.`app_est_req_pcnt`,'0%') AS `app_est_req_pcnt`,`a`.`app_est_req_stat_cnt` AS `app_est_req_stat_cnt`,`a`.`app_est_req_stat_tol` AS `app_est_req_stat_tol`,concat((case when (`a`.`app_est_req_stat_cnt` > 999) then concat((trim(round((`a`.`app_est_req_stat_cnt` / 1000),2)) + 0),'K') when (`a`.`app_est_req_stat_cnt` < 1000) then `a`.`app_est_req_stat_cnt` end),' of ',(case when (`a`.`app_est_req_stat_tol` > 999) then concat((trim(round((`a`.`app_est_req_stat_tol` / 1000),2)) + 0),'K') when (`a`.`app_est_req_stat_tol` < 1000) then `a`.`app_est_req_stat_tol` end)) AS `app_est_req_stat_cnt_tol`,ifnull(`a`.`app_est_req_stat_pcnt`,'0%') AS `app_est_req_stat_pcnt`,`a`.`app_case_cnt` AS `app_case_cnt`,`a`.`app_case_tol` AS `app_case_tol`,concat((case when (`a`.`app_case_cnt` > 999) then concat((trim(round((`a`.`app_case_cnt` / 1000),2)) + 0),'K') when (`a`.`app_case_cnt` < 1000) then `a`.`app_case_cnt` end),' of ',(case when (`a`.`app_case_tol` > 999) then concat((trim(round((`a`.`app_case_tol` / 1000),2)) + 0),'K') when (`a`.`app_case_tol` < 1000) then `a`.`app_case_tol` end)) AS `app_case_cnt_tol`,`a`.`app_case_pcnt` AS `app_case_pcnt`,`a`.`app_case_atmpt` AS `app_case_atmpt`,`a`.`app_bud_amt` AS `app_bud_amt`,`a`.`app_use_amt` AS `app_use_amt`,concat((case when ((`a`.`app_use_amt` > 999) and (`a`.`app_use_amt` < 1000000)) then convert(concat((trim(round((`a`.`app_use_amt` / 1000),2)) + 0),'K') using latin1) when (`a`.`app_use_amt` < 1000) then `a`.`app_use_amt` when ((`a`.`app_use_amt` > 999999) and (`a`.`app_use_amt` < 1000000000)) then convert(concat((trim(round((`a`.`app_use_amt` / 1000000),2)) + 0),'M') using latin1) when (`a`.`app_use_amt` > 999999999) then convert(concat((trim(round((`a`.`app_use_amt` / 1000000000),2)) + 0),'B') using latin1) end),' of ',(case when ((`a`.`app_bud_amt` > 999) and (`a`.`app_bud_amt` < 1000000)) then convert(concat((trim(round((`a`.`app_bud_amt` / 1000),2)) + 0),'K') using latin1) when (`a`.`app_bud_amt` < 1000) then `a`.`app_bud_amt` when ((`a`.`app_bud_amt` > 999999) and (`a`.`app_bud_amt` < 1000000000)) then convert(concat((trim(round((`a`.`app_bud_amt` / 1000000),2)) + 0),'M') using latin1) when (`a`.`app_bud_amt` > 999999999) then convert(concat((trim(round((`a`.`app_bud_amt` / 1000000000),2)) + 0),'B') using latin1) end)) AS `app_bud_use_amt`,`a`.`app_use_pcnt` AS `app_use_pcnt`,`a`.`app_bud_bal` AS `app_bud_bal`,`a`.`app_bud_pcnt` AS `app_bud_pcnt`,`a`.`app_pay_amt` AS `app_pay_amt`,concat((case when ((`a`.`app_pay_amt` > 999) and (`a`.`app_pay_amt` < 1000000)) then convert(concat((trim(round((`a`.`app_pay_amt` / 1000),2)) + 0),'K') using latin1) when (`a`.`app_pay_amt` < 1000) then `a`.`app_pay_amt` when ((`a`.`app_pay_amt` > 999999) and (`a`.`app_pay_amt` < 1000000000)) then convert(concat((trim(round((`a`.`app_pay_amt` / 1000000),2)) + 0),'M') using latin1) when (`a`.`app_pay_amt` > 999999999) then convert(concat((trim(round((`a`.`app_pay_amt` / 1000000000),2)) + 0),'B') using latin1) end),' of ',(case when ((`a`.`app_use_amt` > 999) and (`a`.`app_use_amt` < 1000000)) then convert(concat((trim(round((`a`.`app_use_amt` / 1000),2)) + 0),'K') using latin1) when (`a`.`app_use_amt` < 1000) then `a`.`app_use_amt` when ((`a`.`app_use_amt` > 999999) and (`a`.`app_use_amt` < 1000000000)) then convert(concat((trim(round((`a`.`app_use_amt` / 1000000),2)) + 0),'M') using latin1) when (`a`.`app_use_amt` > 999999999) then convert(concat((trim(round((`a`.`app_use_amt` / 1000000000),2)) + 0),'B') using latin1) end)) AS `app_pay_bal`,`a`.`app_pay_pcnt` AS `app_pay_pcnt`,`a`.`app_bal_amt` AS `app_bal_amt`,`a`.`app_bal_pcnt` AS `app_bal_pcnt`,`a`.`updater` AS `updater`,`f`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`e`.`firstname`,'',`e`.`lastname`)) AS `updater_nm`,`a`.`last_updated` AS `last_updated`,date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p') AS `last_updated_fmt`,ifnull(date_format(`a`.`last_updated`,'%Y'),'Never') AS `last_updated_yr`,ifnull(date_format(`a`.`last_updated`,'%M'),'Never') AS `last_updated_mon`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(date_format(`a`.`del_dt`,'%Y'),'Not Deleted') AS `del_dt_yr`,ifnull(date_format(`a`.`del_dt`,'%M'),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`g`.`file_name` AS `del_by_fnm`,if(isnull(`a`.`del_by`),'Admin',concat(`b`.`firstname`,'',`b`.`lastname`)) AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,ifnull(date_format(`a`.`archv_dt`,'%Y'),'Not Archived') AS `archv_dt_yr`,ifnull(date_format(`a`.`archv_dt`,'%M'),'Not Archived') AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`h`.`file_name` AS `archv_by_fnm`,if(isnull(`a`.`archv_by`),'Admin',concat(`c`.`firstname`,'',`c`.`lastname`)) AS `archv_by_nm` from ((((((((`dev_apps` `a` left join `emp` `e` on((`a`.`updater` = `e`.`emp_id`))) left join `storages` `f` on((`f`.`idstorages` = `e`.`idstorages`))) left join `emp` `b` on((`a`.`del_by` = `b`.`emp_id`))) left join `storages` `g` on((`g`.`idstorages` = `b`.`idstorages`))) left join `emp` `c` on((`a`.`archv_by` = `c`.`emp_id`))) left join `storages` `h` on((`h`.`idstorages` = `c`.`idstorages`))) left join `company` `d` on((`a`.`comp_id` = `d`.`comp_id`))) left join `storages` `i` on((`i`.`idstorages` = `d`.`idstorages`))) order by `a`.`last_updated` desc */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_apps_doc` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_apps_doc`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_apps_doc` AS select `a`.`iddev_app_doc` AS `iddev_app_doc`,`a`.`iddev_apps` AS `iddev_apps`,`b`.`app_name` AS `app_name`,`a`.`idstorages` AS `idstorages`,`c`.`file_name` AS `file_name`,`c`.`sto_cloud` AS `sto_cloud`,ifnull(`k`.`lk_val`,'Local') AS `sto_cloud_nm`,`c`.`file_size` AS `file_size`,(case when (`c`.`file_size` < 1024) then concat(`c`.`file_size`,' B') when ((`c`.`file_size` > 1024) and (`c`.`file_size` < 1048576)) then concat(round((`c`.`file_size` / 1024),2),' KB') when ((`c`.`file_size` > 1048576) and (`c`.`file_size` < 1073741824)) then concat(round(((`c`.`file_size` / 1024) / 1024),2),' MB') when (`c`.`file_size` > 1073741824) then concat(round((((`c`.`file_size` / 1024) / 1024) / 1024),2),' GB') end) AS `file_size_fmt`,`c`.`owner_id` AS `owner_id`,`e`.`file_name` AS `owner_fnm`,ifnull(concat(`d`.`firstname`,' ',`d`.`lastname`),'Admin') AS `owner_nm`,`c`.`create_dt` AS `create_dt`,date_format(`c`.`create_dt`,'%m-%d-%y %h:%i %p') AS `create_dt_fmt`,`c`.`expire_dt` AS `expire_dt`,date_format(`c`.`expire_dt`,'%m-%d-%y %h:%i %p') AS `expire_dt_fmt`,`c`.`ext_type` AS `ext_type`,`c`.`public` AS `public`,`c`.`self_view` AS `self_view`,`c`.`smry` AS `smry`,`c`.`ref_emp_id` AS `ref_emp_id`,`g`.`file_name` AS `ref_emp_fnm`,ifnull(concat(`f`.`firstname`,' ',`f`.`lastname`),'Admin') AS `ref_emp_nm`,`c`.`usage` AS `usage`,`c`.`updater` AS `updater`,`i`.`file_name` AS `updater_fnm`,ifnull(concat(`h`.`firstname`,' ',`h`.`lastname`),'Admin') AS `updater_nm`,`c`.`updated` AS `updated`,date_format(`c`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from (((((((((`dev_apps_doc` `a` left join `dev_apps` `b` on((`a`.`iddev_apps` = `b`.`iddev_apps`))) left join `storages` `c` on((`a`.`idstorages` = `c`.`idstorages`))) left join `emp` `d` on((`c`.`owner_id` = `d`.`emp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `emp` `f` on((`c`.`ref_emp_id` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `emp` `h` on((`c`.`updater` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) left join `feature_lk_val` `k` on((`a`.`idstorages` = `k`.`idfeature_lk_val`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_audit` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_audit`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_audit` AS select `a`.`iddev_audit` AS `iddev_audit`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,date_format(`a`.`updated`,'%Y') AS `updated_fmt_yr`,date_format(`a`.`updated`,'%M') AS `updated_fmt_mon`,dayname(`a`.`updated`) AS `updated_fmt_day`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,(case when (isnull(`a`.`updated`) and isnull(`a`.`updater`)) then 'Not Updated' when (isnull(`a`.`updater`) and (`a`.`updated` is not null)) then 'Admin' when ((`a`.`updated` is not null) and (`a`.`updater` is not null)) then concat(`b`.`firstname`,' ',`b`.`lastname`) end) AS `updater_nm`,`a`.`table_update` AS `table_update`,`a`.`action` AS `action`,`a`.`table_id` AS `table_id`,`a`.`col1` AS `col1`,`a`.`idlook_menu_pvt_lvl2` AS `idlook_menu_pvt_lvl2`,`d`.`lk_values` AS `idlook_menu_pvt_lvl2_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`f`.`file_name` AS `del_by_fnm`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`del_by`)) then 'Not Deleted' when (isnull(`a`.`del_by`) and (`a`.`del_dt` is not null)) then 'Admin' when ((`a`.`del_dt` is not null) and (`a`.`del_by` is not null)) then concat(`e`.`firstname`,' ',`e`.`lastname`) end) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`h`.`file_name` AS `archv_by_fnm`,(case when (isnull(`a`.`archv_dt`) and isnull(`a`.`archv_by`)) then 'Not Archived' when (isnull(`a`.`archv_by`) and (`a`.`archv_dt` is not null)) then 'Admin' when ((`a`.`archv_dt` is not null) and (`a`.`archv_by` is not null)) then concat(`g`.`firstname`,' ',`g`.`lastname`) end) AS `archv_by_nm` from (((((((`dev_audit` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `look_menu_pvt` `d` on((`a`.`idlook_menu_pvt_lvl2` = `d`.`idlook_menu_pvt`))) left join `emp` `e` on((`a`.`del_by` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `emp` `g` on((`a`.`archv_by` = `g`.`emp_id`))) left join `storages` `h` on((`g`.`idstorages` = `h`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_est` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_est`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_est` AS select `a`.`iddev_est` AS `iddev_est`,`a`.`attach` AS `attach`,`a`.`iddev_apps` AS `iddev_apps`,`b`.`app_name` AS `app_name`,`b`.`app_st_dt` AS `app_st_dt`,if(isnull(`b`.`app_st_dt`),'Not Started',date_format(`b`.`app_st_dt`,'%m-%d-%y %h:%i %p')) AS `app_st_dt_fmt`,`b`.`app_e_dt` AS `app_e_dt`,(case when (`b`.`app_e_dt` is not null) then date_format(`b`.`app_e_dt`,'%m-%d-%y %h:%i %p') when (isnull(`b`.`app_e_dt`) and isnull(`b`.`app_st_dt`)) then 'Not Started' when (isnull(`b`.`app_e_dt`) and (`b`.`app_st_dt` is not null)) then 'In Progress' end) AS `app_e_dt_fmt`,if(isnull(`b`.`app_e_dt`),'Open','Closed') AS `dev_apps_cur_stat`,`b`.`comp_id` AS `comp_id`,`d`.`file_name` AS `comp_logo`,ifnull(`c`.`companyname`,'No Company') AS `companyname`,concat((case when (`b`.`app_est_cnt` > 999) then concat((trim(round((`b`.`app_est_cnt` / 1000),2)) + 0),'K') when (`b`.`app_est_cnt` < 1000) then `b`.`app_est_cnt` end),' of ',(case when (`b`.`app_est_tol` > 999) then concat((trim(round((`b`.`app_est_tol` / 1000),2)) + 0),'K') when (`b`.`app_est_tol` < 1000) then `b`.`app_est_tol` end)) AS `app_est_cnt_tol`,ifnull(`b`.`app_est_pcnt`,'0%') AS `app_est_pcnt`,`b`.`app_bud_amt` AS `app_bud_amt`,`b`.`app_use_amt` AS `app_use_amt`,concat((case when ((`b`.`app_use_amt` > 999) and (`b`.`app_use_amt` < 1000000)) then convert(concat((trim(round((`b`.`app_use_amt` / 1000),2)) + 0),'K') using latin1) when (`b`.`app_use_amt` < 1000) then `b`.`app_use_amt` when ((`b`.`app_use_amt` > 999999) and (`b`.`app_use_amt` < 1000000000)) then convert(concat((trim(round((`b`.`app_use_amt` / 1000000),2)) + 0),'M') using latin1) when (`b`.`app_use_amt` > 999999999) then convert(concat((trim(round((`b`.`app_use_amt` / 1000000000),2)) + 0),'B') using latin1) end),' of ',(case when ((`b`.`app_bud_amt` > 999) and (`b`.`app_bud_amt` < 1000000)) then convert(concat((trim(round((`b`.`app_bud_amt` / 1000),2)) + 0),'K') using latin1) when (`b`.`app_bud_amt` < 1000) then `b`.`app_bud_amt` when ((`b`.`app_bud_amt` > 999999) and (`b`.`app_bud_amt` < 1000000000)) then convert(concat((trim(round((`b`.`app_bud_amt` / 1000000),2)) + 0),'M') using latin1) when (`b`.`app_bud_amt` > 999999999) then convert(concat((trim(round((`b`.`app_bud_amt` / 1000000000),2)) + 0),'B') using latin1) end)) AS `app_bud_use_amt`,`b`.`app_use_pcnt` AS `app_use_pcnt`,`b`.`app_bud_bal` AS `app_bud_bal`,`b`.`app_bud_pcnt` AS `app_bud_pcnt`,`b`.`app_pay_amt` AS `app_pay_amt`,concat((case when ((`b`.`app_pay_amt` > 999) and (`b`.`app_pay_amt` < 1000000)) then convert(concat((trim(round((`b`.`app_pay_amt` / 1000),2)) + 0),'K') using latin1) when (`b`.`app_pay_amt` < 1000) then `b`.`app_pay_amt` when ((`b`.`app_pay_amt` > 999999) and (`b`.`app_pay_amt` < 1000000000)) then convert(concat((trim(round((`b`.`app_pay_amt` / 1000000),2)) + 0),'M') using latin1) when (`b`.`app_pay_amt` > 999999999) then convert(concat((trim(round((`b`.`app_pay_amt` / 1000000000),2)) + 0),'B') using latin1) end),' of ',(case when ((`b`.`app_use_amt` > 999) and (`b`.`app_use_amt` < 1000000)) then convert(concat((trim(round((`b`.`app_use_amt` / 1000),2)) + 0),'K') using latin1) when (`b`.`app_use_amt` < 1000) then `b`.`app_use_amt` when ((`b`.`app_use_amt` > 999999) and (`b`.`app_use_amt` < 1000000000)) then convert(concat((trim(round((`b`.`app_use_amt` / 1000000),2)) + 0),'M') using latin1) when (`b`.`app_use_amt` > 999999999) then convert(concat((trim(round((`b`.`app_use_amt` / 1000000000),2)) + 0),'B') using latin1) end)) AS `app_pay_bal`,`b`.`app_pay_pcnt` AS `app_pay_pcnt`,`b`.`app_bal_amt` AS `app_bal_amt`,`b`.`app_bal_pcnt` AS `app_bal_pcnt`,`a`.`est_st_dt` AS `est_st_dt`,if(isnull(`a`.`est_st_dt`),'Not Started',date_format(`a`.`est_st_dt`,'%m-%d-%y %h:%i %p')) AS `est_st_dt_fmt`,ifnull(date_format(`a`.`est_st_dt`,'%Y'),'Not Started') AS `est_st_dt_yr`,ifnull(date_format(`a`.`est_st_dt`,'%M'),'Not Started') AS `est_st_dt_mon`,`a`.`dev_est_smry` AS `dev_est_smry`,`a`.`est_e_dt` AS `est_e_dt`,(case when (`a`.`est_e_dt` is not null) then date_format(`a`.`est_e_dt`,'%m-%d-%y %h:%i %p') when (isnull(`a`.`est_e_dt`) and isnull(`a`.`est_st_dt`)) then 'Not Started' when (isnull(`a`.`est_e_dt`) and (`a`.`est_st_dt` is not null)) then 'In Progress' end) AS `est_e_dt_fmt`,if(isnull(`a`.`est_e_dt`),'Open','Closed') AS `dev_est_cur_stat`,(case when (`a`.`est_e_dt` is not null) then date_format(`a`.`est_e_dt`,'%Y') when (isnull(`a`.`est_e_dt`) and isnull(`a`.`est_st_dt`)) then 'Not Started' when (isnull(`a`.`est_e_dt`) and (`a`.`est_st_dt` is not null)) then 'In Progress' end) AS `est_e_dt_yr`,(case when (`a`.`est_e_dt` is not null) then date_format(`a`.`est_e_dt`,'%M') when (isnull(`a`.`est_e_dt`) and isnull(`a`.`est_st_dt`)) then 'Not Started' when (isnull(`a`.`est_e_dt`) and (`a`.`est_st_dt` is not null)) then 'In Progress' end) AS `est_e_dt_mon`,`a`.`est_time` AS `est_time`,(case when isnull(`a`.`est_e_dt`) then round(((unix_timestamp(now()) - unix_timestamp(`a`.`est_st_dt`)) / 60),0) else round(((unix_timestamp(`a`.`est_e_dt`) - unix_timestamp(`a`.`est_st_dt`)) / 60),0) end) AS `est_time_vir`,`a`.`est_lag_tm` AS `est_lag_tm`,ifnull(`a`.`est_lag_tm`,'0') AS `est_lag_tm_vir`,`a`.`owner_ref_tab` AS `owner_ref_tab`,`a`.`owner_ref_id` AS `owner_ref_id`,(case when (`a`.`owner_ref_tab` like 'emp') then `f`.`file_name` when (`a`.`owner_ref_tab` like 'comp') then `h`.`file_name` end) AS `owner_fnm`,ifnull((case when (`a`.`owner_ref_tab` like 'emp') then concat(`e`.`firstname`,' ',`e`.`lastname`) when (`a`.`owner_ref_tab` like 'comp') then `g`.`companyname` end),'No Owner') AS `owner_ref_nm`,`a`.`est_ref_tab` AS `est_ref_tab`,`a`.`est_ref_id` AS `est_ref_id`,(case when (`a`.`est_ref_tab` like 'emp') then `j`.`file_name` when (`a`.`est_ref_id` like 'comp') then `l`.`file_name` end) AS `est_fnm`,ifnull((case when (`a`.`est_ref_tab` like 'emp') then concat(`i`.`firstname`,' ',`i`.`lastname`) when (`a`.`est_ref_tab` like 'comp') then `k`.`companyname` end),'No Estimater') AS `est_ref_nm`,`a`.`priority` AS `priority`,ifnull(`m`.`look_value`,'No Section') AS `priority_nm`,`a`.`category` AS `category`,ifnull(`n`.`look_value`,'No Category') AS `category_nm`,ifnull(`a`.`est_skill`,'0.0') AS `est_skill`,ifnull(`a`.`est_gap_lvl`,'0.0') AS `est_gap_lvl`,ifnull(`a`.`est_type`,'Flex') AS `est_type`,`a`.`est_req_cnt` AS `est_req_cnt`,`a`.`est_req_tol` AS `est_req_tol`,concat((case when (`a`.`est_req_cnt` > 999) then concat((trim(round((`a`.`est_req_cnt` / 1000),2)) + 0),'K') when (`a`.`est_req_cnt` < 1000) then `a`.`est_req_cnt` end),' of ',(case when (`a`.`est_req_tol` > 999) then concat((trim(round((`a`.`est_req_tol` / 1000),2)) + 0),'K') when (`a`.`est_req_tol` < 1000) then `a`.`est_req_tol` end)) AS `est_req_cnt_tol`,`a`.`est_req_pcnt` AS `est_req_pcnt`,`a`.`est_req_stat_cnt` AS `est_req_stat_cnt`,`a`.`est_req_stat_tol` AS `est_req_stat_tol`,concat((case when (`a`.`est_req_stat_cnt` > 999) then concat((trim(round((`a`.`est_req_stat_cnt` / 1000),2)) + 0),'K') when (`a`.`est_req_stat_cnt` < 1000) then `a`.`est_req_stat_cnt` end),' of ',(case when (`a`.`est_req_stat_tol` > 999) then concat((trim(round((`a`.`est_req_stat_tol` / 1000),2)) + 0),'K') when (`a`.`est_req_stat_tol` < 1000) then `a`.`est_req_stat_tol` end)) AS `est_req_stat_cnt_tol`,`a`.`est_req_stat_pcnt` AS `est_req_stat_pcnt`,`a`.`est_case_cnt` AS `est_case_cnt`,`a`.`est_case_tol` AS `est_case_tol`,concat((case when (`a`.`est_case_cnt` > 999) then concat((trim(round((`a`.`est_case_cnt` / 1000),2)) + 0),'K') when (`a`.`est_case_cnt` < 1000) then `a`.`est_case_cnt` end),' of ',(case when (`a`.`est_case_tol` > 999) then concat((trim(round((`a`.`est_case_tol` / 1000),2)) + 0),'K') when (`a`.`est_case_tol` < 1000) then `a`.`est_case_tol` end)) AS `est_case_cnt_tol`,`a`.`est_case_pcnt` AS `est_case_pcnt`,`a`.`est_case_atmpt` AS `est_case_atmpt`,`a`.`est_bud_amt` AS `est_bud_amt`,`a`.`est_use_amt` AS `est_use_amt`,concat((case when ((`a`.`est_use_amt` > 999) and (`a`.`est_use_amt` < 1000000)) then convert(concat((trim(round((`a`.`est_use_amt` / 1000),2)) + 0),'K') using latin1) when (`a`.`est_use_amt` < 1000) then `a`.`est_use_amt` when (`a`.`est_use_amt` > 999999) then convert(concat((trim(round((`a`.`est_use_amt` / 1000000),2)) + 0),'M') using latin1) end),' of ',(case when ((`a`.`est_bud_amt` > 999) and (`a`.`est_bud_amt` < 1000000)) then convert(concat((trim(round((`a`.`est_bud_amt` / 1000),2)) + 0),'K') using latin1) when (`a`.`est_bud_amt` < 1000) then `a`.`est_bud_amt` when (`a`.`est_bud_amt` > 999999) then convert(concat((trim(round((`a`.`est_bud_amt` / 1000000),2)) + 0),'M') using latin1) end)) AS `est_bud_use_amt`,`a`.`est_use_pcnt` AS `est_use_pcnt`,`a`.`est_bud_bal` AS `est_bud_bal`,`a`.`est_bud_pcnt` AS `est_bud_pcnt`,`a`.`est_pay_amt` AS `est_pay_amt`,concat((case when ((`a`.`est_pay_amt` > 999) and (`a`.`est_pay_amt` < 1000000)) then convert(concat((trim(round((`a`.`est_pay_amt` / 1000),2)) + 0),'K') using latin1) when (`a`.`est_pay_amt` < 1000) then `a`.`est_pay_amt` when (`a`.`est_pay_amt` > 999999) then convert(concat((trim(round((`a`.`est_pay_amt` / 1000000),2)) + 0),'M') using latin1) end),' of ',(case when ((`a`.`est_use_amt` > 999) and (`a`.`est_use_amt` < 1000000)) then convert(concat((trim(round((`a`.`est_use_amt` / 1000),2)) + 0),'K') using latin1) when (`a`.`est_use_amt` < 1000) then `a`.`est_use_amt` when (`a`.`est_use_amt` > 999999) then convert(concat((trim(round((`a`.`est_use_amt` / 1000000),2)) + 0),'M') using latin1) end)) AS `est_pay_bal`,`a`.`est_pay_pcnt` AS `est_pay_pcnt`,`a`.`est_bal_amt` AS `est_bal_amt`,`a`.`est_bal_pcnt` AS `est_bal_pcnt`,`a`.`updater` AS `updater`,`p`.`file_name` AS `updater_fnm`,ifnull(concat(`o`.`firstname`,' ',`o`.`lastname`),'Admin') AS `updater_nm`,`a`.`last_updated` AS `last_updated`,date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p') AS `last_updated_fmt`,ifnull(date_format(`a`.`last_updated`,'%Y'),'Never') AS `last_updated_yr`,ifnull(date_format(`a`.`last_updated`,'%M'),'Never') AS `last_updated_mon`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(date_format(`a`.`del_dt`,'%Y'),'Not Deleted') AS `del_dt_yr`,ifnull(date_format(`a`.`del_dt`,'%M'),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`r`.`file_name` AS `del_by_fnm`,ifnull(concat(`q`.`firstname`,' ',`q`.`lastname`),'Admin') AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,ifnull(date_format(`a`.`archv_dt`,'%Y'),'Not Archived') AS `archv_dt_yr`,ifnull(date_format(`a`.`archv_dt`,'%M'),'Not Archived') AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`t`.`file_name` AS `archv_by_fnm`,ifnull(concat(`s`.`firstname`,' ',`s`.`lastname`),'Admin') AS `archv_by_nm`,`a`.`old_est_dt` AS `old_est_dt`,`a`.`old_req_dt` AS `old_req_dt`,`a`.`run_func` AS `run_func` from (((((((((((((((((((`dev_est` `a` left join `dev_apps` `b` on((`a`.`iddev_apps` = `b`.`iddev_apps`))) left join `company` `c` on((`b`.`comp_id` = `c`.`comp_id`))) left join `storages` `d` on((`c`.`idstorages` = `d`.`idstorages`))) left join `emp` `e` on((`a`.`owner_ref_id` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `company` `g` on((`a`.`owner_ref_id` = `g`.`comp_id`))) left join `storages` `h` on((`g`.`idstorages` = `h`.`idstorages`))) left join `emp` `i` on((`a`.`est_ref_id` = `i`.`emp_id`))) left join `storages` `j` on((`i`.`idstorages` = `j`.`idstorages`))) left join `company` `k` on((`a`.`est_ref_id` = `k`.`comp_id`))) left join `storages` `l` on((`k`.`idstorages` = `l`.`idstorages`))) left join `dev_look_value` `m` on((`a`.`priority` = `m`.`iddev_look_value`))) left join `dev_look_value` `n` on((`a`.`category` = `n`.`iddev_look_value`))) left join `emp` `o` on((`a`.`updater` = `o`.`emp_id`))) left join `storages` `p` on((`o`.`idstorages` = `p`.`idstorages`))) left join `emp` `q` on((`a`.`del_by` = `q`.`emp_id`))) left join `storages` `r` on((`q`.`idstorages` = `r`.`idstorages`))) left join `emp` `s` on((`a`.`archv_by` = `s`.`emp_id`))) left join `storages` `t` on((`s`.`idstorages` = `t`.`idstorages`))) order by date_format(`a`.`last_updated`,'%Y-%m-%d %h:%i %p') desc */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_est_access` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_est_access`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8mb4 */; /*!50001 SET character_set_results = utf8mb4 */; /*!50001 SET collation_connection = utf8mb4_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_est_access` AS select `a`.`iddev_est_access` AS `iddev_est_access`,`b`.`iddev_apps` AS `iddev_apps`,`c`.`app_name` AS `app_name`,concat('ID: ',convert(ifnull(`b`.`iddev_apps`,'No App ID') using latin1),', ','App Name: ',ifnull(`c`.`app_name`,'No App Name')) AS `iddev_apps_name`,`c`.`app_st_dt` AS `app_st_dt`,if(isnull(`c`.`app_st_dt`),'Not Started',convert(date_format(`c`.`app_st_dt`,'%m-%d-%y %h:%i %p') using utf8mb4)) AS `app_st_dt_fmt`,`c`.`app_e_dt` AS `app_e_dt`,(case when (`c`.`app_e_dt` is not null) then convert(date_format(`c`.`app_e_dt`,'%m-%d-%y %h:%i %p') using utf8mb4) when (isnull(`c`.`app_e_dt`) and isnull(`c`.`app_st_dt`)) then 'Not Started' when (isnull(`c`.`app_e_dt`) and (`c`.`app_st_dt` is not null)) then 'In Progress' end) AS `app_e_dt_fmt`,`c`.`app_stat_tm` AS `app_stat_tm`,ifnull(`c`.`app_stat_tm`,timestampdiff(MINUTE,`c`.`app_st_dt`,now())) AS `app_stat_tm_vir`,`c`.`app_lag_tm` AS `app_lag_tm`,ifnull(`c`.`app_lag_tm`,'0') AS `app_lag_tm_vir`,if(isnull(`c`.`app_e_dt`),'Open','Closed') AS `app_cur_stat`,`d`.`companyname` AS `companyname`,`e`.`file_name` AS `comp_logo`,`c`.`app_description` AS `app_description`,`c`.`app_case_atmpt` AS `app_case_atmpt`,`a`.`iddev_est` AS `iddev_est`,`b`.`dev_est_smry` AS `dev_est_smry`,concat('ID: ',convert(ifnull(`a`.`iddev_est`,'No Glacier ID') using latin1),', ','Summary: ',ifnull(`b`.`dev_est_smry`,'No Glacier Summary')) AS `iddev_est_smry`,`b`.`est_st_dt` AS `est_st_dt`,if(isnull(`b`.`est_st_dt`),'Not Started',convert(date_format(`b`.`est_st_dt`,'%m-%d-%y %h:%i %p') using utf8mb4)) AS `est_st_dt_fmt`,`b`.`est_e_dt` AS `est_e_dt`,(case when (`b`.`est_e_dt` is not null) then convert(date_format(`b`.`est_e_dt`,'%m-%d-%y %h:%i %p') using utf8mb4) when (isnull(`b`.`est_e_dt`) and isnull(`b`.`est_st_dt`)) then 'Not Started' when (isnull(`b`.`est_e_dt`) and (`b`.`est_st_dt` is not null)) then 'In Progress' end) AS `est_e_dt_fmt`,if(isnull(`b`.`est_e_dt`),'Open','Closed') AS `est_cur_stat`,`b`.`est_time` AS `est_time`,ifnull(`b`.`est_time`,timestampdiff(MINUTE,`b`.`est_st_dt`,now())) AS `est_time_vir`,`b`.`est_lag_tm` AS `est_lag_tm`,`b`.`owner_ref_tab` AS `owner_ref_tab`,`b`.`owner_ref_id` AS `owner_ref_id`,(case when (`b`.`owner_ref_tab` like 'emp') then `i`.`file_name` when (`b`.`owner_ref_tab` like 'comp') then `g`.`file_name` end) AS `owner_fnm`,ifnull((case when (`b`.`owner_ref_tab` like 'emp') then concat(trim(ifnull(`h`.`firstname`,'')),' ',trim(ifnull(nullif(`h`.`middlename`,''),'')),convert((case when ((`h`.`middlename` is not null) and (`h`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`h`.`lastname`,''))) when (`b`.`owner_ref_tab` like 'comp') then `f`.`companyname` end),'No Owner') AS `owner_ref_nm`,`b`.`est_ref_tab` AS `est_ref_tab`,`b`.`est_ref_id` AS `est_ref_id`,(case when (`b`.`est_ref_tab` like 'emp') then `m`.`file_name` when (`b`.`est_ref_tab` like 'comp') then `k`.`file_name` end) AS `est_fnm`,ifnull((case when (`b`.`est_ref_tab` like 'emp') then concat(trim(ifnull(`l`.`firstname`,'')),' ',trim(ifnull(nullif(`l`.`middlename`,''),'')),convert((case when ((`l`.`middlename` is not null) and (`l`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`l`.`lastname`,''))) when (`b`.`est_ref_tab` like 'comp') then `j`.`companyname` end),'No Estimator') AS `est_ref_nm`,`a`.`dev_est_emp_id` AS `dev_est_emp_id`,`p`.`file_name` AS `access_to_fnm`,concat(`o`.`firstname`,' ',`o`.`lastname`) AS `dev_est_emp_id_nm`,`o`.`nickname` AS `nickname`,`a`.`dev_app_access` AS `dev_app_access`,`a`.`dev_est_access` AS `dev_est_access`,`a`.`dev_est_req_access` AS `dev_est_req_access`,`a`.`dev_est_reqs_case_access` AS `dev_est_reqs_case_access`,`a`.`updater` AS `updater`,`r`.`file_name` AS `updater_fnm`,ifnull(concat(`q`.`firstname`,' ',`q`.`lastname`),'Admin') AS `updater_nm`,`a`.`last_updated` AS `last_updated`,ifnull(convert(date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p') using utf8mb4),'Never') AS `last_updated_fmt`,`b`.`del_dt` AS `dev_est_del_dt`,date_format(`b`.`del_dt`,'%m-%d-%y %h:%i %p') AS `dev_est_del_dt_fmt`,`b`.`del_by` AS `dev_est_del_by`,`t`.`file_name` AS `dev_est_del_by_fnm`,(case when isnull(`b`.`del_dt`) then 'Not Deleted' when ((`b`.`del_dt` is not null) and isnull(`b`.`del_by`)) then 'Admin' when ((`b`.`del_dt` is not null) and (`b`.`del_by` is not null)) then concat(`s`.`firstname`,' ',`s`.`lastname`) end) AS `dev_est_del_by_nm`,if(isnull(`b`.`del_dt`),'No','Yes') AS `dev_est_del_stat`,`b`.`archv_dt` AS `dev_est_archv_dt`,date_format(`b`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `dev_est_archv_dt_fmt`,`b`.`archv_by` AS `dev_est_archv_by`,`v`.`file_name` AS `dev_est_archv_by_fnm`,(case when isnull(`b`.`archv_dt`) then 'Not Archived' when ((`b`.`archv_dt` is not null) and isnull(`b`.`archv_by`)) then 'Admin' when ((`b`.`archv_dt` is not null) and (`b`.`archv_by` is not null)) then concat(`u`.`firstname`,' ',`u`.`lastname`) end) AS `dev_est_archv_by_nm`,if(isnull(`b`.`archv_dt`),'No','Yes') AS `dev_est_archv_stat` from (((((((((((((((((((((`dev_est_access` `a` left join `dev_est` `b` on((`a`.`iddev_est` = `b`.`iddev_est`))) left join `dev_apps` `c` on((`b`.`iddev_apps` = `c`.`iddev_apps`))) left join `company` `d` on((`c`.`comp_id` = `d`.`comp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `company` `f` on((`b`.`owner_ref_id` = `f`.`comp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `emp` `h` on((`b`.`owner_ref_id` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) left join `company` `j` on((`b`.`est_ref_id` = `j`.`comp_id`))) left join `storages` `k` on((`j`.`idstorages` = `k`.`idstorages`))) left join `emp` `l` on((`b`.`est_ref_id` = `l`.`emp_id`))) left join `storages` `m` on((`l`.`idstorages` = `m`.`idstorages`))) left join `dev_look_value` `n` on((`b`.`category` = `n`.`iddev_look_value`))) left join `emp` `o` on((`a`.`dev_est_emp_id` = `o`.`emp_id`))) left join `storages` `p` on((`o`.`idstorages` = `p`.`idstorages`))) left join `emp` `q` on((`a`.`updater` = `q`.`emp_id`))) left join `storages` `r` on((`q`.`idstorages` = `r`.`idstorages`))) left join `emp` `s` on((`b`.`del_by` = `s`.`emp_id`))) left join `storages` `t` on((`s`.`idstorages` = `t`.`idstorages`))) left join `emp` `u` on((`b`.`archv_by` = `u`.`emp_id`))) left join `storages` `v` on((`u`.`idstorages` = `v`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_est_doc` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_est_doc`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_est_doc` AS select `a`.`iddev_est_doc` AS `iddev_est_doc`,`a`.`iddev_est` AS `iddev_est`,`a`.`idstorages` AS `idstorages`,`c`.`file_name` AS `file_name`,`c`.`sto_cloud` AS `sto_cloud`,ifnull(`k`.`lk_val`,'Local') AS `sto_cloud_nm`,`c`.`file_size` AS `file_size`,(case when (`c`.`file_size` < 1024) then concat(`c`.`file_size`,' B') when ((`c`.`file_size` > 1024) and (`c`.`file_size` < 1048576)) then concat(round((`c`.`file_size` / 1024),2),' KB') when ((`c`.`file_size` > 1048576) and (`c`.`file_size` < 1073741824)) then concat(round(((`c`.`file_size` / 1024) / 1024),2),' MB') when (`c`.`file_size` > 1073741824) then concat(round((((`c`.`file_size` / 1024) / 1024) / 1024),2),' GB') end) AS `file_size_fmt`,`c`.`owner_id` AS `owner_id`,`e`.`file_name` AS `owner_fnm`,ifnull(concat(`d`.`firstname`,' ',`d`.`lastname`),'Admin') AS `owner_nm`,`c`.`create_dt` AS `create_dt`,date_format(`c`.`create_dt`,'%m-%d-%y %h:%i %p') AS `create_dt_fmt`,`c`.`expire_dt` AS `expire_dt`,date_format(`c`.`expire_dt`,'%m-%d-%y %h:%i %p') AS `expire_dt_fmt`,`c`.`ext_type` AS `ext_type`,`c`.`public` AS `public`,`c`.`self_view` AS `self_view`,`c`.`smry` AS `smry`,`c`.`ref_emp_id` AS `ref_emp_id`,`g`.`file_name` AS `ref_emp_fnm`,ifnull(concat(`f`.`firstname`,' ',`f`.`lastname`),'Admin') AS `ref_emp_nm`,`c`.`usage` AS `usage`,`c`.`updater` AS `updater`,`i`.`file_name` AS `updater_fnm`,ifnull(concat(`h`.`firstname`,' ',`h`.`lastname`),'Admin') AS `updater_nm`,`c`.`updated` AS `updated`,date_format(`c`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((((((((`dev_est_doc` `a` left join `storages` `c` on((`a`.`idstorages` = `c`.`idstorages`))) left join `emp` `d` on((`c`.`owner_id` = `d`.`emp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `emp` `f` on((`c`.`ref_emp_id` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `feature_lk_val` `k` on((`a`.`idstorages` = `k`.`idfeature_lk_val`))) left join `emp` `h` on((`c`.`updater` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_est_reqs` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_est_reqs` AS select `a`.`iddev_est_reqs` AS `iddev_est_reqs`,`c`.`iddev_apps` AS `iddev_apps`,`c`.`app_name` AS `app_name`,`c`.`app_st_dt` AS `app_st_dt`,if(isnull(`c`.`app_st_dt`),'Not Started',date_format(`c`.`app_st_dt`,'%m-%d-%y %h:%i %p')) AS `app_st_dt_fmt`,`c`.`app_e_dt` AS `app_e_dt`,(case when (`c`.`app_e_dt` is not null) then date_format(`c`.`app_e_dt`,'%m-%d-%y %h:%i %p') when (isnull(`c`.`app_e_dt`) and isnull(`c`.`app_st_dt`)) then 'Not Started' when (isnull(`c`.`app_e_dt`) and (`c`.`app_st_dt` is not null)) then 'In Progress' end) AS `app_e_dt_fmt`,if(isnull(`c`.`app_e_dt`),'Open','Closed') AS `dev_apps_cur_stat`,`a`.`iddev_est` AS `iddev_est`,`b`.`dev_est_smry` AS `dev_est_smry`,`b`.`est_st_dt` AS `est_st_dt`,if(isnull(`b`.`est_st_dt`),'Not Started',date_format(`b`.`est_st_dt`,'%m-%d-%y %h:%i %p')) AS `est_st_dt_fmt`,`b`.`est_e_dt` AS `est_e_dt`,(case when (`b`.`est_e_dt` is not null) then date_format(`b`.`est_e_dt`,'%m-%d-%y %h:%i %p') when (isnull(`b`.`est_e_dt`) and isnull(`b`.`est_st_dt`)) then 'Not Started' when (isnull(`b`.`est_e_dt`) and (`b`.`est_st_dt` is not null)) then 'In Progress' end) AS `est_e_dt_fmt`,if(isnull(`b`.`est_e_dt`),'Open','Closed') AS `dev_est_cur_stat`,`b`.`est_time` AS `est_time`,(case when isnull(`b`.`est_e_dt`) then round(((unix_timestamp(now()) - unix_timestamp(`b`.`est_st_dt`)) / 60),0) else round(((unix_timestamp(`b`.`est_e_dt`) - unix_timestamp(`b`.`est_st_dt`)) / 60),0) end) AS `est_time_vir`,`b`.`owner_ref_tab` AS `owner_ref_tab`,`b`.`owner_ref_id` AS `owner_ref_id`,(case when (`b`.`owner_ref_tab` like 'emp') then `g`.`file_name` when (`b`.`owner_ref_tab` like 'comp') then `i`.`file_name` end) AS `owner_fnm`,ifnull((case when ((`b`.`owner_ref_tab` like 'comp') and (`b`.`owner_ref_id` is not null)) then `h`.`companyname` when (isnull(`b`.`owner_ref_tab`) or isnull(`b`.`owner_ref_id`)) then 'No Owner' when ((`b`.`owner_ref_tab` like 'emp') and (`b`.`owner_ref_id` is not null)) then concat(trim(ifnull(`f`.`firstname`,'')),' ',trim(ifnull(nullif(`f`.`middlename`,''),'')),convert((case when ((`f`.`middlename` is not null) and (`f`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`f`.`lastname`,''))) end),'No Estimater') AS `owner_ref_nm`,`b`.`est_ref_tab` AS `est_ref_tab`,`b`.`est_ref_id` AS `est_ref_id`,(case when (`b`.`est_ref_tab` like 'emp') then `k`.`file_name` when (`b`.`est_ref_tab` like 'comp') then `m`.`file_name` end) AS `est_fnm`,ifnull((case when ((`b`.`est_ref_tab` like 'comp') and (`b`.`est_ref_id` is not null)) then `l`.`companyname` when (isnull(`b`.`est_ref_tab`) or isnull(`b`.`est_ref_id`)) then 'No Estimater' when ((`b`.`est_ref_tab` like 'emp') and (`b`.`est_ref_id` is not null)) then concat(trim(ifnull(`j`.`firstname`,'')),' ',trim(ifnull(nullif(`j`.`middlename`,''),'')),convert((case when ((`j`.`middlename` is not null) and (`j`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`j`.`lastname`,''))) end),'No Estimater') AS `est_ref_nm`,`b`.`est_type` AS `est_type`,`b`.`priority` AS `priority`,ifnull(`n`.`look_value`,'No Section') AS `priority_nm`,`b`.`category` AS `category`,ifnull(`o`.`look_value`,'No Category') AS `category_nm`,`b`.`est_req_cnt` AS `est_req_cnt`,`b`.`est_req_tol` AS `est_req_tol`,concat((case when (`b`.`est_req_cnt` > 999) then concat((trim(round((`b`.`est_req_cnt` / 1000),2)) + 0),'K') when (`b`.`est_req_cnt` < 1000) then `b`.`est_req_cnt` end),' of ',(case when (`b`.`est_req_tol` > 999) then concat((trim(round((`b`.`est_req_tol` / 1000),2)) + 0),'K') when (`b`.`est_req_tol` < 1000) then `b`.`est_req_tol` end)) AS `est_req_cnt_tol`,`b`.`est_req_pcnt` AS `est_req_pcnt`,`a`.`req_st_dt` AS `req_st_dt`,if(isnull(`a`.`req_st_dt`),'Not Started',date_format(`a`.`req_st_dt`,'%m-%d-%y %h:%i %p')) AS `req_st_dt_fmt`,date_format(`a`.`req_st_dt`,'%Y') AS `req_st_dt_yr`,date_format(`a`.`req_st_dt`,'%M') AS `req_st_dt_mon`,`a`.`req_e_dt` AS `req_e_dt`,(case when (`a`.`req_e_dt` is not null) then date_format(`a`.`req_e_dt`,'%m-%d-%y %h:%i %p') when (isnull(`a`.`req_e_dt`) and isnull(`a`.`req_st_dt`)) then 'Not Started' when (isnull(`a`.`req_e_dt`) and (`a`.`req_st_dt` is not null)) then 'In Progress' end) AS `req_e_dt_fmt`,if(isnull(`a`.`req_e_dt`),'Open','Closed') AS `dev_est_reqs_cur_stat`,date_format(`a`.`req_e_dt`,'%Y') AS `req_e_dt_yr`,date_format(`a`.`req_e_dt`,'%M') AS `req_e_dt_mon`,`a`.`req_time` AS `req_time`,(case when (isnull(`a`.`req_time`) and (`a`.`req_st_dt` is not null)) then round(((unix_timestamp(now()) - unix_timestamp(`a`.`req_st_dt`)) / 60),0) else `a`.`req_time` end) AS `req_time_vir`,`a`.`req_lag_tm` AS `req_lag_tm`,ifnull(`a`.`req_lag_tm`,'0') AS `req_lag_tm_vir`,`a`.`disp_order` AS `disp_order`,`a`.`req_desc` AS `req_desc`,`a`.`skill_lvl` AS `skill_lvl`,ifnull(`a`.`skill_lvl`,'No Skill') AS `skill_lvl_nm`,`a`.`gap_lvl` AS `gap_lvl`,ifnull(`a`.`gap_lvl`,'No Gap') AS `gap_lvl_nm`,`a`.`req_type` AS `req_type`,ifnull(`p`.`look_value`,'None') AS `req_type_nm`,`a`.`iddev_lk_wrk_flow` AS `iddev_lk_wrk_flow`,ifnull(`q`.`wrk_flow_nm`,'No Workflow') AS `wrk_flow_nm`,`q`.`wrk_flow_desc` AS `wrk_flow_desc`,`a`.`req_status` AS `req_status`,ifnull(`r`.`look_value`,'No Status') AS `req_status_nm`,`a`.`idlook_stat_order` AS `idlook_stat_order`,`a`.`req_stat_st_dt` AS `req_stat_st_dt`,if(isnull(`a`.`req_stat_st_dt`),'Not Started',date_format(`a`.`req_stat_st_dt`,'%m-%d-%y %h:%i %p')) AS `req_stat_st_dt_fmt`,`a`.`req_stat_e_dt` AS `req_stat_e_dt`,(case when (`a`.`req_stat_e_dt` is not null) then date_format(`a`.`req_stat_e_dt`,'%m-%d-%y %h:%i %p') when (isnull(`a`.`req_stat_e_dt`) and isnull(`a`.`req_stat_st_dt`)) then 'Not Started' when (isnull(`a`.`req_stat_e_dt`) and (`a`.`req_stat_st_dt` is not null)) then 'In Progress' end) AS `req_stat_e_dt_fmt`,`a`.`req_stat_time` AS `req_stat_time`,(case when (isnull(`a`.`req_stat_time`) and (`a`.`req_stat_st_dt` is not null)) then round(((unix_timestamp(now()) - unix_timestamp(`a`.`req_stat_st_dt`)) / 60),0) else `a`.`req_stat_time` end) AS `req_stat_time_vir`,`a`.`req_stat_e_dt_pre` AS `req_stat_e_dt_pre`,date_format(`a`.`req_stat_e_dt_pre`,'%m-%d-%y %h:%i %p') AS `req_stat_e_dt_pre_fmt`,`a`.`req_stat_lag_tm` AS `req_stat_lag_tm`,ifnull(`a`.`req_stat_lag_tm`,'0') AS `req_stat_lag_tm_vir`,`a`.`assigned_to` AS `assigned_to`,`t`.`file_name` AS `assigned_to_fnm`,if(isnull(`a`.`assigned_to`),'No Assignee',concat(trim(ifnull(`s`.`firstname`,'')),' ',trim(ifnull(nullif(`s`.`middlename`,''),'')),convert((case when ((`s`.`middlename` is not null) and (`s`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`s`.`lastname`,'')))) AS `assigned_to_nm`,`a`.`req_stat_cnt` AS `req_stat_cnt`,`a`.`req_stat_tol` AS `req_stat_tol`,concat(`a`.`req_stat_cnt`,' of ',`a`.`req_stat_tol`) AS `req_stat_cnt_tol`,`a`.`req_stat_pcnt` AS `req_stat_pcnt`,`a`.`req_case_cnt` AS `req_case_cnt`,`a`.`req_case_tol` AS `req_case_tol`,concat(`a`.`req_case_cnt`,' of ',`a`.`req_case_tol`) AS `req_case_cnt_tol`,`a`.`req_case_pcnt` AS `req_case_pcnt`,`a`.`req_cases` AS `req_cases`,`a`.`req_case_atmpt` AS `req_case_atmpt`,`a`.`req_bud_amt` AS `req_bud_amt`,ifnull(`a`.`req_use_amt`,'0.00') AS `req_use_amt`,concat((case when isnull(`a`.`req_use_amt`) then '0.00' when (`a`.`req_use_amt` > 999) then convert(concat((trim(round((`a`.`req_use_amt` / 1000),2)) + 0),'K') using latin1) when (`a`.`req_use_amt` < 1000) then `a`.`req_use_amt` end),' of ',(case when isnull(`a`.`req_bud_amt`) then '0.00' when (`a`.`req_bud_amt` > 999) then convert(concat((trim(round((`a`.`req_bud_amt` / 1000),2)) + 0),'K') using latin1) when (`a`.`req_bud_amt` < 1000) then `a`.`req_bud_amt` end)) AS `req_bud_use_amt`,`a`.`req_use_pcnt` AS `req_use_pcnt`,`a`.`req_bud_bal` AS `req_bud_bal`,`a`.`req_bud_pcnt` AS `req_bud_pcnt`,`a`.`req_pay_amt` AS `req_pay_amt`,concat((case when (`a`.`req_pay_amt` > 999) then convert(concat((trim(round((`a`.`req_pay_amt` / 1000),2)) + 0),'K') using latin1) when (`a`.`req_pay_amt` < 1000) then `a`.`req_pay_amt` end),' of ',(case when (`a`.`req_use_amt` > 999) then convert(concat((trim(round((`a`.`req_use_amt` / 1000),2)) + 0),'K') using latin1) when (`a`.`req_use_amt` < 1000) then `a`.`req_use_amt` end)) AS `req_pay_bal`,`a`.`req_pay_pcnt` AS `req_pay_pcnt`,`a`.`req_bal_amt` AS `req_bal_amt`,`a`.`req_bal_pcnt` AS `req_bal_pcnt`,`a`.`updater` AS `updater`,`v`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(trim(ifnull(`u`.`firstname`,'')),' ',trim(ifnull(nullif(`u`.`middlename`,''),'')),convert((case when ((`u`.`middlename` is not null) and (`u`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`u`.`lastname`,'')))) AS `updater_nm`,`a`.`last_updated` AS `last_updated`,date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p') AS `last_updated_fmt`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(date_format(`a`.`del_dt`,'%Y'),'Not Deleted') AS `del_dt_yr`,ifnull(date_format(`a`.`del_dt`,'%M'),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`x`.`file_name` AS `del_by_fnm`,if(isnull(`a`.`del_by`),'Admin',concat(trim(ifnull(`w`.`firstname`,'')),' ',trim(ifnull(nullif(`w`.`middlename`,''),'')),convert((case when ((`w`.`middlename` is not null) and (`w`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`w`.`lastname`,'')))) AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,ifnull(date_format(`a`.`archv_dt`,'%Y'),'Not Archived') AS `archv_dt_yr`,ifnull(date_format(`a`.`archv_dt`,'%M'),'Not Archived') AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`z`.`file_name` AS `archv_by_fnm`,if(isnull(`a`.`archv_by`),'Admin',concat(trim(ifnull(`y`.`firstname`,'')),' ',trim(ifnull(nullif(`y`.`middlename`,''),'')),convert((case when ((`y`.`middlename` is not null) and (`y`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`y`.`lastname`,'')))) AS `archv_by_nm`,`a`.`rpt_req_stat_by` AS `rpt_req_stat_by`,`a`.`rpt_req_stat_by_nm` AS `rpt_req_stat_by_nm`,`a`.`rpt_req_stat_id` AS `rpt_req_stat_id`,`a`.`rpt_req_stat_id_nm` AS `rpt_req_stat_id_nm`,`a`.`rpt_req_stat_lag_tm` AS `rpt_req_stat_lag_tm`,`a`.`rpt_req_stat_time` AS `rpt_req_stat_time` from (((((((((((((((((((((((`dev_est_reqs` `a` left join `dev_est` `b` on((`a`.`iddev_est` = `b`.`iddev_est`))) left join `dev_apps` `c` on((`b`.`iddev_apps` = `c`.`iddev_apps`))) left join `emp` `f` on((`b`.`owner_ref_id` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `company` `h` on((`b`.`owner_ref_id` = `h`.`comp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) left join `emp` `j` on((`b`.`est_ref_id` = `j`.`emp_id`))) left join `storages` `k` on((`j`.`idstorages` = `k`.`idstorages`))) left join `company` `l` on((`b`.`est_ref_id` = `l`.`comp_id`))) left join `storages` `m` on((`l`.`idstorages` = `m`.`idstorages`))) left join `dev_look_value` `n` on((`b`.`priority` = `n`.`iddev_look_value`))) left join `dev_look_value` `o` on((`b`.`category` = `o`.`iddev_look_value`))) left join `dev_look_value` `p` on((`a`.`req_type` = `p`.`iddev_look_value`))) left join `dev_lk_wrk_flow` `q` on((`a`.`iddev_lk_wrk_flow` = `q`.`iddev_lk_wrk_flow`))) left join `dev_look_value` `r` on((`a`.`req_status` = `r`.`iddev_look_value`))) left join `emp` `s` on((`a`.`assigned_to` = `s`.`emp_id`))) left join `storages` `t` on((`t`.`idstorages` = `s`.`idstorages`))) left join `emp` `u` on((`a`.`updater` = `u`.`emp_id`))) left join `storages` `v` on((`u`.`idstorages` = `v`.`idstorages`))) left join `emp` `w` on((`a`.`del_by` = `w`.`emp_id`))) left join `storages` `x` on((`w`.`idstorages` = `x`.`idstorages`))) left join `emp` `y` on((`a`.`archv_by` = `y`.`emp_id`))) left join `storages` `z` on((`y`.`idstorages` = `z`.`idstorages`))) order by `a`.`last_updated` desc */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_est_reqs_case` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_case`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_est_reqs_case` AS select `a`.`iddev_est_reqs_case` AS `iddev_est_reqs_case`,`a`.`iddev_est_reqs` AS `iddev_est_reqs`,`b`.`iddev_est` AS `iddev_est`,`b`.`iddev_apps` AS `iddev_apps`,`b`.`app_name` AS `app_name`,`b`.`est_st_dt_fmt` AS `est_st_dt_fmt`,`b`.`est_e_dt_fmt` AS `est_e_dt_fmt`,`b`.`est_time_vir` AS `est_time_vir`,`b`.`req_st_dt` AS `req_st_dt`,`b`.`req_st_dt_fmt` AS `req_st_dt_fmt`,`b`.`req_e_dt` AS `req_e_dt`,`b`.`req_e_dt_fmt` AS `req_e_dt_fmt`,`b`.`req_time_vir` AS `req_time_vir`,`b`.`priority_nm` AS `priority_nm`,`b`.`category_nm` AS `category_nm`,`b`.`skill_lvl_nm` AS `skill_lvl_nm`,`b`.`gap_lvl_nm` AS `gap_lvl_nm`,`b`.`req_type_nm` AS `req_type_nm`,`b`.`req_status` AS `req_status`,`b`.`req_status_nm` AS `req_status_nm`,`b`.`req_desc` AS `req_desc`,`b`.`dev_est_smry` AS `dev_est_smry`,`z`.`file_name` AS `created_by_fnm`,`a`.`created_by` AS `created_by`,ifnull(concat(`c`.`firstname`,' ',`c`.`lastname`),'Admin') AS `created_by_nm`,`a`.`create_dt` AS `create_dt`,date_format(`a`.`create_dt`,'%m-%d-%y') AS `create_dt_fmt`,date_format(`a`.`create_dt`,'%Y') AS `create_dt_yr`,date_format(`a`.`create_dt`,'%M') AS `create_dt_mon`,`a`.`create_end_dt` AS `create_end_dt`,date_format(`a`.`create_end_dt`,'%m-%d-%y') AS `create_end_dt_fmt`,date_format(`a`.`create_end_dt`,'%Y') AS `create_end_dt_yr`,date_format(`a`.`create_end_dt`,'%M') AS `create_end_dt_mon`,`a`.`create_time` AS `create_time`,(case when ((`a`.`create_dt` is not null) and isnull(`a`.`create_end_dt`)) then round(((unix_timestamp(now()) - unix_timestamp(`a`.`create_dt`)) / 60),0) else round(((unix_timestamp(`a`.`create_end_dt`) - unix_timestamp(`a`.`create_dt`)) / 60),0) end) AS `create_time_vir`,`a`.`disp_order` AS `disp_order`,`a`.`reqs_cases` AS `reqs_cases`,`a`.`case_data` AS `case_data`,`a`.`case_result_desc` AS `case_result_desc`,`a`.`case_cnt` AS `case_cnt`,`a`.`case_status` AS `case_status`,if(isnull(`a`.`case_status`),'None',`lp`.`look_value`) AS `case_status_name`,`a`.`executed_by` AS `executed_by`,`w`.`file_name` AS `executed_by_fnm`,if(isnull(`a`.`executed_by`),'Admin',concat(`d`.`firstname`,'',`d`.`lastname`)) AS `executed_by_nm`,`a`.`execute_dt` AS `execute_dt`,date_format(`a`.`execute_dt`,'%m-%d-%y') AS `execute_dt_fmt`,`b`.`req_stat_cnt_tol` AS `req_stat_cnt_tol`,`b`.`req_stat_pcnt` AS `req_stat_pcnt`,`b`.`req_case_cnt_tol` AS `req_case_cnt_tol`,`b`.`req_case_pcnt` AS `req_case_pcnt`,`a`.`updated_by` AS `updated_by`,`v`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updated_by`),'Admin',concat(`e`.`firstname`,' ',`e`.`lastname`)) AS `updated_by_nm`,`a`.`last_updated` AS `last_updated`,concat(convert(date_format(`a`.`last_updated`,'%m-%d-%y %H:%i:%s %p') using latin1),' ') AS `last_updated_fmt`,`b`.`est_ref_nm` AS `est_ref_nm`,`b`.`est_fnm` AS `est_fnm`,`b`.`owner_ref_nm` AS `owner_ref_nm`,`b`.`owner_fnm` AS `owner_fnm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,`a`.`del_by` AS `del_by`,`y`.`file_name` AS `del_by_fnm`,if(isnull(`a`.`del_by`),'Admin',concat(`f`.`firstname`,' ',`f`.`lastname`)) AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,date_format(`a`.`archv_dt`,'%Y') AS `archv_dt_yr`,date_format(`a`.`archv_dt`,'%M') AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`x`.`file_name` AS `archv_by_fnm`,if(isnull(`a`.`archv_by`),'Admin',concat(`g`.`firstname`,' ',`g`.`lastname`)) AS `archv_by_nm` from ((((((((((((`dev_est_reqs_case` `a` left join `vw_dev_est_reqs` `b` on((`a`.`iddev_est_reqs` = `b`.`iddev_est_reqs`))) left join `emp` `c` on((`a`.`created_by` = `c`.`emp_id`))) left join `storages` `z` on((`z`.`idstorages` = `c`.`idstorages`))) left join `emp` `f` on((`a`.`del_by` = `f`.`emp_id`))) left join `storages` `y` on((`y`.`idstorages` = `f`.`idstorages`))) left join `emp` `g` on((`a`.`archv_by` = `g`.`emp_id`))) left join `storages` `x` on((`x`.`idstorages` = `g`.`idstorages`))) left join `emp` `d` on((`a`.`executed_by` = `d`.`emp_id`))) left join `storages` `w` on((`w`.`idstorages` = `d`.`idstorages`))) left join `emp` `e` on((`a`.`updated_by` = `e`.`emp_id`))) left join `storages` `v` on((`v`.`idstorages` = `e`.`idstorages`))) left join `dev_look_value` `lp` on((`a`.`case_status` = `lp`.`iddev_look_value`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_est_reqs_case_doc` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_case_doc`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_est_reqs_case_doc` AS select `a`.`iddev_est_reqs_case_doc` AS `iddev_est_reqs_case_doc`,`a`.`iddev_est_reqs_case` AS `iddev_est_reqs_case`,`a`.`idstorages` AS `idstorages`,`c`.`file_name` AS `file_name`,`c`.`sto_cloud` AS `sto_cloud`,ifnull(`k`.`lk_val`,'Local') AS `sto_cloud_nm`,`c`.`file_size` AS `file_size`,(case when (`c`.`file_size` < 1024) then concat(`c`.`file_size`,' B') when ((`c`.`file_size` > 1024) and (`c`.`file_size` < 1048576)) then concat(round((`c`.`file_size` / 1024),2),' KB') when ((`c`.`file_size` > 1048576) and (`c`.`file_size` < 1073741824)) then concat(round(((`c`.`file_size` / 1024) / 1024),2),' MB') when (`c`.`file_size` > 1073741824) then concat(round((((`c`.`file_size` / 1024) / 1024) / 1024),2),' GB') end) AS `file_size_fmt`,`c`.`owner_id` AS `owner_id`,`e`.`file_name` AS `owner_fnm`,ifnull(concat(`d`.`firstname`,' ',`d`.`lastname`),'Admin') AS `owner_nm`,`c`.`create_dt` AS `create_dt`,date_format(`c`.`create_dt`,'%m-%d-%y %h:%i %p') AS `create_dt_fmt`,`c`.`expire_dt` AS `expire_dt`,date_format(`c`.`expire_dt`,'%m-%d-%y %h:%i %p') AS `expire_dt_fmt`,`c`.`ext_type` AS `ext_type`,`c`.`public` AS `public`,`c`.`self_view` AS `self_view`,`c`.`smry` AS `smry`,`c`.`ref_emp_id` AS `ref_emp_id`,`g`.`file_name` AS `ref_emp_fnm`,ifnull(concat(`f`.`firstname`,' ',`f`.`lastname`),'Admin') AS `ref_emp_nm`,`c`.`usage` AS `usage`,`c`.`updater` AS `updater`,`i`.`file_name` AS `updater_fnm`,ifnull(concat(`h`.`firstname`,' ',`h`.`lastname`),'Admin') AS `updater_nm`,`c`.`updated` AS `updated`,date_format(`c`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((((((((`dev_est_reqs_case_doc` `a` left join `storages` `c` on((`a`.`idstorages` = `c`.`idstorages`))) left join `emp` `d` on((`c`.`owner_id` = `d`.`emp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `emp` `f` on((`c`.`ref_emp_id` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `feature_lk_val` `k` on((`a`.`idstorages` = `k`.`idfeature_lk_val`))) left join `emp` `h` on((`c`.`updater` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_est_reqs_case_result` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_case_result`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_est_reqs_case_result` AS select `a`.`iddev_est_reqs_case_result` AS `iddev_est_reqs_case_result`,`b`.`iddev_est_reqs_case` AS `iddev_est_reqs_case`,`b`.`iddev_est_reqs` AS `iddev_est_reqs`,`c`.`req_desc` AS `req_desc`,`c`.`iddev_est` AS `iddev_est`,`d`.`iddev_apps` AS `iddev_apps`,`b`.`case_result_desc` AS `case_result_desc_cases`,`a`.`case_data` AS `case_data`,`a`.`case_result_desc` AS `case_result_desc`,`a`.`case_status` AS `case_status`,`e`.`look_value` AS `case_status_nm`,`a`.`executed_by` AS `executed_by`,`g`.`file_name` AS `executed_by_fnm`,ifnull(concat(`f`.`firstname`,' ',`f`.`lastname`),'Admin') AS `executed_by_nm`,`a`.`execute_dt` AS `execute_dt`,date_format(`a`.`execute_dt`,'%m-%d-%y') AS `execute_dt_fmt`,`a`.`updated_by` AS `updated_by`,`i`.`file_name` AS `updated_by_fnm`,ifnull(concat(`h`.`firstname`,' ',`h`.`lastname`),'Admin') AS `updated_by_nm`,`a`.`last_updated` AS `last_updated`,date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p') AS `last_updated_fmt`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,`a`.`del_by` AS `del_by`,`k`.`file_name` AS `del_by_fnm`,ifnull(concat(`j`.`firstname`,' ',`j`.`lastname`),'Admin') AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,`a`.`archv_by` AS `archv_by`,`m`.`file_name` AS `archv_by_fnm`,ifnull(concat(`l`.`firstname`,' ',`l`.`lastname`),'Admin') AS `archv_by_nm` from ((((((((((((`dev_est_reqs_case_result` `a` left join `dev_est_reqs_case` `b` on((`a`.`iddev_est_reqs_case` = `b`.`iddev_est_reqs_case`))) left join `dev_est_reqs` `c` on((`b`.`iddev_est_reqs` = `c`.`iddev_est_reqs`))) left join `dev_est` `d` on((`c`.`iddev_est` = `d`.`iddev_est`))) left join `dev_look_value` `e` on((`a`.`case_status` = `e`.`iddev_look_value`))) left join `emp` `f` on((`a`.`executed_by` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `emp` `h` on((`a`.`updated_by` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) left join `emp` `j` on((`a`.`del_by` = `j`.`emp_id`))) left join `storages` `k` on((`j`.`idstorages` = `k`.`idstorages`))) left join `emp` `l` on((`a`.`archv_by` = `l`.`emp_id`))) left join `storages` `m` on((`l`.`idstorages` = `m`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_est_reqs_case_result_doc` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_case_result_doc`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_est_reqs_case_result_doc` AS select `a`.`iddev_est_reqs_case_result_doc` AS `iddev_est_reqs_case_result_doc`,`a`.`iddev_est_reqs_case_result` AS `iddev_est_reqs_case_result`,`a`.`idstorages` AS `idstorages`,`c`.`file_name` AS `file_name`,`c`.`sto_cloud` AS `sto_cloud`,ifnull(`k`.`lk_val`,'Local') AS `sto_cloud_nm`,`c`.`file_size` AS `file_size`,(case when (`c`.`file_size` < 1024) then concat(`c`.`file_size`,' B') when ((`c`.`file_size` > 1024) and (`c`.`file_size` < 1048576)) then concat(round((`c`.`file_size` / 1024),2),' KB') when ((`c`.`file_size` > 1048576) and (`c`.`file_size` < 1073741824)) then concat(round(((`c`.`file_size` / 1024) / 1024),2),' MB') when (`c`.`file_size` > 1073741824) then concat(round((((`c`.`file_size` / 1024) / 1024) / 1024),2),' GB') end) AS `file_size_fmt`,`c`.`owner_id` AS `owner_id`,`e`.`file_name` AS `owner_fnm`,ifnull(concat(`d`.`firstname`,' ',`d`.`lastname`),'Admin') AS `owner_nm`,`c`.`create_dt` AS `create_dt`,date_format(`c`.`create_dt`,'%m-%d-%y %h:%i %p') AS `create_dt_fmt`,`c`.`expire_dt` AS `expire_dt`,date_format(`c`.`expire_dt`,'%m-%d-%y %h:%i %p') AS `expire_dt_fmt`,`c`.`ext_type` AS `ext_type`,`c`.`public` AS `public`,`c`.`self_view` AS `self_view`,`c`.`smry` AS `smry`,`c`.`ref_emp_id` AS `ref_emp_id`,`g`.`file_name` AS `ref_emp_fnm`,ifnull(concat(`f`.`firstname`,' ',`f`.`lastname`),'Admin') AS `ref_emp_nm`,`c`.`usage` AS `usage`,`c`.`updater` AS `updater`,`i`.`file_name` AS `updater_fnm`,ifnull(concat(`h`.`firstname`,' ',`h`.`lastname`),'Admin') AS `updater_nm`,`c`.`updated` AS `updated`,date_format(`c`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((((((((`dev_est_reqs_case_result_doc` `a` left join `storages` `c` on((`a`.`idstorages` = `c`.`idstorages`))) left join `emp` `d` on((`c`.`owner_id` = `d`.`emp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `emp` `f` on((`c`.`ref_emp_id` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `feature_lk_val` `k` on((`a`.`idstorages` = `k`.`idfeature_lk_val`))) left join `emp` `h` on((`c`.`updater` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_est_reqs_doc` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_doc`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_est_reqs_doc` AS select `a`.`iddev_est_reqs_doc` AS `iddev_est_reqs_doc`,`a`.`iddev_est_reqs` AS `iddev_est_reqs`,`a`.`idstorages` AS `idstorages`,`c`.`file_name` AS `file_name`,`c`.`sto_cloud` AS `sto_cloud`,ifnull(`k`.`lk_val`,'Local') AS `sto_cloud_nm`,`c`.`file_size` AS `file_size`,(case when (`c`.`file_size` < 1024) then concat(`c`.`file_size`,' B') when ((`c`.`file_size` > 1024) and (`c`.`file_size` < 1048576)) then concat(round((`c`.`file_size` / 1024),2),' KB') when ((`c`.`file_size` > 1048576) and (`c`.`file_size` < 1073741824)) then concat(round(((`c`.`file_size` / 1024) / 1024),2),' MB') when (`c`.`file_size` > 1073741824) then concat(round((((`c`.`file_size` / 1024) / 1024) / 1024),2),' GB') end) AS `file_size_fmt`,`c`.`owner_id` AS `owner_id`,`e`.`file_name` AS `owner_fnm`,ifnull(concat(`d`.`firstname`,' ',`d`.`lastname`),'Admin') AS `owner_nm`,`c`.`create_dt` AS `create_dt`,date_format(`c`.`create_dt`,'%m-%d-%y %h:%i %p') AS `create_dt_fmt`,`c`.`expire_dt` AS `expire_dt`,date_format(`c`.`expire_dt`,'%m-%d-%y %h:%i %p') AS `expire_dt_fmt`,`c`.`ext_type` AS `ext_type`,`c`.`public` AS `public`,`c`.`self_view` AS `self_view`,`c`.`smry` AS `smry`,`c`.`ref_emp_id` AS `ref_emp_id`,`g`.`file_name` AS `ref_emp_fnm`,ifnull(concat(`f`.`firstname`,' ',`f`.`lastname`),'Admin') AS `ref_emp_nm`,`c`.`usage` AS `usage`,`c`.`updater` AS `updater`,`i`.`file_name` AS `updater_fnm`,ifnull(concat(`h`.`firstname`,' ',`h`.`lastname`),'Admin') AS `updater_nm`,`c`.`updated` AS `updated`,date_format(`c`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((((((((`dev_est_reqs_doc` `a` left join `storages` `c` on((`a`.`idstorages` = `c`.`idstorages`))) left join `emp` `d` on((`c`.`owner_id` = `d`.`emp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `emp` `f` on((`c`.`ref_emp_id` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `feature_lk_val` `k` on((`a`.`idstorages` = `k`.`idfeature_lk_val`))) left join `emp` `h` on((`c`.`updater` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_est_reqs_stat_amt` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_stat_amt`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_est_reqs_stat_amt` AS select `a`.`iddev_est_reqs_stat_amt` AS `iddev_est_reqs_stat_amt`,`i`.`iddev_apps` AS `iddev_apps`,`i`.`app_name` AS `app_name`,`c`.`iddev_est` AS `iddev_est`,`d`.`dev_est_smry` AS `dev_est_smry`,`d`.`owner_ref_tab` AS `owner_ref_tab`,`d`.`owner_ref_id` AS `owner_ref_id`,(case when (`d`.`owner_ref_tab` like 'comp') then `k`.`file_name` when (`d`.`owner_ref_tab` like 'emp') then `f`.`file_name` end) AS `owner_ref_fnm`,ifnull((case when (`d`.`owner_ref_tab` like 'comp') then `j`.`companyname` when (`d`.`owner_ref_tab` like 'emp') then concat(`e`.`firstname`,' ',`e`.`lastname`) end),'No Owner') AS `owner_ref_nm`,`d`.`est_ref_tab` AS `est_ref_tab`,`d`.`est_ref_id` AS `est_ref_id`,(case when (`d`.`est_ref_tab` like 'comp') then `m`.`file_name` when (`d`.`est_ref_tab` like 'emp') then `h`.`file_name` end) AS `est_ref_fnm`,ifnull((case when (`d`.`est_ref_tab` like 'comp') then `l`.`companyname` when (`d`.`est_ref_tab` like 'emp') then concat(`g`.`firstname`,' ',`g`.`lastname`) end),'No Estimater') AS `est_ref_nm`,`d`.`category` AS `category`,ifnull(`z`.`look_value`,'No Category') AS `category_nm`,`b`.`iddev_est_reqs` AS `iddev_est_reqs`,`c`.`req_st_dt` AS `req_st_dt`,if(isnull(`c`.`req_st_dt`),'Not Started',convert(date_format(`c`.`req_st_dt`,'%m-%d-%y %h:%i %p') using utf8mb4)) AS `req_st_dt_fmt`,`c`.`req_e_dt` AS `req_e_dt`,(case when (`c`.`req_e_dt` is not null) then convert(date_format(`c`.`req_e_dt`,'%m-%d-%y %h:%i %p') using utf8mb4) when (isnull(`c`.`req_e_dt`) and isnull(`c`.`req_st_dt`)) then 'Not Started' when (isnull(`c`.`req_e_dt`) and (`c`.`req_st_dt` is not null)) then 'In Progress' end) AS `req_e_dt_fmt`,`c`.`req_desc` AS `req_desc`,`c`.`iddev_lk_wrk_flow` AS `iddev_lk_wrk_flow`,ifnull(`aj`.`wrk_flow_nm`,'No Workflow') AS `wrk_flow_nm`,`a`.`iddev_est_reqs_status` AS `iddev_est_reqs_status`,`b`.`req_status` AS `req_status`,`n`.`look_value` AS `req_status_nm`,`b`.`stat_st_dt` AS `stat_st_dt`,if(isnull(`b`.`stat_st_dt`),'Not Started',convert(date_format(`b`.`stat_st_dt`,'%m-%d-%y %h:%i %p') using utf8mb4)) AS `stat_st_dt_fmt`,date_format(`b`.`stat_st_dt`,'%Y') AS `stat_st_yr`,date_format(`b`.`stat_st_dt`,'%M') AS `stat_st_mon`,`b`.`stat_e_dt` AS `stat_e_dt`,(case when (`b`.`stat_e_dt` is not null) then convert(date_format(`b`.`stat_e_dt`,'%m-%d-%y %h:%i %p') using utf8mb4) when (isnull(`b`.`stat_e_dt`) and isnull(`b`.`stat_st_dt`)) then 'Not Started' when (isnull(`b`.`stat_e_dt`) and (`b`.`stat_e_dt` is not null)) then 'In Progress' end) AS `stat_e_dt_fmt`,date_format(`b`.`stat_e_dt`,'%Y') AS `stat_e_yr`,date_format(`b`.`stat_e_dt`,'%M') AS `stat_e_mon`,`b`.`stat_time` AS `stat_time`,ifnull(`b`.`stat_time`,timestampdiff(MINUTE,`b`.`stat_st_dt`,now())) AS `stat_time_vir`,`b`.`stat_lag_time` AS `stat_lag_time`,ifnull(`b`.`stat_lag_time`,'0') AS `stat_lag_time_vir`,`b`.`stat_e_dt_pre` AS `stat_e_dt_pre`,date_format(`b`.`stat_e_dt_pre`,'%m-%d-%y %h:%i %p') AS `stat_e_dt_pre_fmt`,`b`.`assigned_to` AS `assigned_to`,`p`.`file_name` AS `assigned_to_fnm`,ifnull(concat(`o`.`firstname`,' ',`o`.`lastname`),'No Assignee') AS `assigned_to_nm`,`a`.`hist_cnt` AS `hist_cnt`,`a`.`reqs_quote_by` AS `reqs_quote_by`,`r`.`file_name` AS `reqs_quote_by_fnm`,ifnull(concat(`q`.`firstname`,' ',`q`.`lastname`),'Admin') AS `reqs_quote_by_nm`,`a`.`reqs_quote_dt` AS `reqs_quote_dt`,date_format(`a`.`reqs_quote_dt`,'%m-%d-%y') AS `reqs_quote_dt_fmt`,date_format(`a`.`reqs_quote_dt`,'%Y') AS `reqs_quote_dt_yr`,date_format(`a`.`reqs_quote_dt`,'%M') AS `reqs_quote_dt_mon`,`a`.`req_stat_amt` AS `req_stat_amt`,`a`.`req_action_by` AS `req_action_by`,`v`.`file_name` AS `req_action_by_fnm`,(case when ((`a`.`req_action` is not null) and isnull(`a`.`req_action_by`)) then 'Admin' when ((`a`.`req_action` is not null) and (`a`.`req_action_by` is not null)) then concat(`u`.`firstname`,' ',`u`.`lastname`) when (isnull(`a`.`req_action`) and isnull(`a`.`req_action_by`)) then 'Pending' end) AS `req_action_by_nm`,`a`.`req_action` AS `req_action`,ifnull(`t`.`look_value`,'No-Action') AS `req_action_nm`,`a`.`req_stat_paid` AS `req_stat_paid`,`a`.`req_stat_bal` AS `req_stat_bal`,`c`.`req_status` AS `cur_stat`,`w`.`look_value` AS `cur_stat_nm`,`c`.`assigned_to` AS `cur_assigned_to`,`y`.`file_name` AS `cur_assigned_to_fnm`,ifnull(concat(`x`.`firstname`,' ',`x`.`lastname`),'No Assignee') AS `cur_assigned_to_nm`,`c`.`req_st_dt` AS `cur_stat_st_dt`,if(isnull(`c`.`req_stat_st_dt`),'Not Started',convert(date_format(`c`.`req_stat_st_dt`,'%m-%d-%y %h:%i %p') using utf8mb4)) AS `cur_stat_st_dt_fmt`,`c`.`req_stat_e_dt` AS `cur_stat_e_dt`,(case when (`c`.`req_stat_e_dt` is not null) then convert(date_format(`c`.`req_stat_e_dt`,'%m-%d-%y %h:%i %p') using utf8mb4) when (isnull(`c`.`req_stat_e_dt`) and isnull(`c`.`req_stat_st_dt`)) then 'Not Started' when (isnull(`c`.`req_stat_e_dt`) and (`c`.`req_stat_st_dt` is not null)) then 'In Progress' end) AS `cur_stat_e_dt_fmt`,`c`.`req_stat_time` AS `cur_stat_tm`,(case when (isnull(`c`.`req_stat_time`) and (`c`.`req_stat_st_dt` is not null)) then round(((unix_timestamp(now()) - unix_timestamp(`c`.`req_stat_st_dt`)) / 60),0) else `c`.`req_stat_time` end) AS `cur_stat_tm_vir`,`c`.`req_stat_lag_tm` AS `cur_stat_lag_tm`,ifnull(`c`.`req_stat_lag_tm`,'0') AS `cur_stat_lag_tm_vir`,`c`.`req_type` AS `req_type`,ifnull(`aa`.`look_value`,'None') AS `req_type_nm`,`c`.`skill_lvl` AS `skill_lvl`,ifnull(`c`.`skill_lvl`,'No Skill') AS `skill_lvl_nm`,`c`.`gap_lvl` AS `gap_lvl`,ifnull(`c`.`gap_lvl`,'No Gap') AS `gap_lvl_nm`,`a`.`updater` AS `updater`,`ae`.`file_name` AS `updater_fnm`,ifnull(concat(`ad`.`firstname`,' ',`ad`.`lastname`),'Admin') AS `updater_nm`,`a`.`last_updated` AS `last_updated`,date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p') AS `last_updated_fmt`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`ag`.`file_name` AS `del_by_fnm`,ifnull(concat(`af`.`firstname`,' ',`af`.`lastname`),'Admin') AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,ifnull(convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4),'Not Archived') AS `archv_dt_yr`,ifnull(convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4),'Not Archived') AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`ai`.`file_name` AS `archv_by_fnm`,ifnull(concat(`ah`.`firstname`,' ',`ah`.`lastname`),'Admin') AS `archv_by_nm` from ((((((((((((((((((((((((((((((((`dev_est_reqs_stat_amt` `a` left join `dev_est_reqs_status` `b` on((`a`.`iddev_est_reqs_status` = `b`.`iddev_est_reqs_status`))) left join `dev_est_reqs` `c` on((`b`.`iddev_est_reqs` = `c`.`iddev_est_reqs`))) left join `dev_est` `d` on((`c`.`iddev_est` = `d`.`iddev_est`))) left join `emp` `e` on((`d`.`owner_ref_id` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `company` `j` on((`d`.`owner_ref_id` = `j`.`comp_id`))) left join `storages` `k` on((`j`.`idstorages` = `k`.`idstorages`))) left join `emp` `g` on((`d`.`est_ref_id` = `g`.`emp_id`))) left join `storages` `h` on((`g`.`idstorages` = `h`.`idstorages`))) left join `company` `l` on((`d`.`est_ref_id` = `l`.`comp_id`))) left join `storages` `m` on((`l`.`idstorages` = `m`.`idstorages`))) left join `dev_apps` `i` on((`d`.`iddev_apps` = `i`.`iddev_apps`))) left join `dev_look_value` `n` on((`b`.`req_status` = `n`.`iddev_look_value`))) left join `emp` `o` on((`b`.`assigned_to` = `o`.`emp_id`))) left join `storages` `p` on((`o`.`idstorages` = `p`.`idstorages`))) left join `emp` `q` on((`a`.`reqs_quote_by` = `q`.`emp_id`))) left join `storages` `r` on((`q`.`idstorages` = `r`.`idstorages`))) left join `dev_look_value` `t` on((`a`.`req_action` = `t`.`iddev_look_value`))) left join `emp` `u` on((`a`.`req_action_by` = `u`.`emp_id`))) left join `storages` `v` on((`u`.`idstorages` = `v`.`idstorages`))) left join `dev_look_value` `w` on((`c`.`req_status` = `w`.`iddev_look_value`))) left join `emp` `x` on((`c`.`assigned_to` = `x`.`emp_id`))) left join `storages` `y` on((`x`.`idstorages` = `y`.`idstorages`))) left join `dev_look_value` `z` on((`d`.`category` = `z`.`iddev_look_value`))) left join `dev_look_value` `aa` on((`c`.`req_type` = `aa`.`iddev_look_value`))) left join `emp` `ad` on((`a`.`updater` = `ad`.`emp_id`))) left join `storages` `ae` on((`ad`.`idstorages` = `ae`.`idstorages`))) left join `emp` `af` on((`a`.`del_by` = `af`.`emp_id`))) left join `storages` `ag` on((`af`.`idstorages` = `ag`.`idstorages`))) left join `emp` `ah` on((`a`.`archv_by` = `ah`.`emp_id`))) left join `storages` `ai` on((`ah`.`idstorages` = `ai`.`idstorages`))) left join `dev_lk_wrk_flow` `aj` on((`c`.`iddev_lk_wrk_flow` = `aj`.`iddev_lk_wrk_flow`))) order by `a`.`last_updated` desc */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_est_reqs_stat_amt_hist` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_stat_amt_hist`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_est_reqs_stat_amt_hist` AS select `a`.`iddev_est_reqs_stat_amt_hist` AS `iddev_est_reqs_stat_amt_hist`,`a`.`iddev_est_reqs_stat_amt` AS `iddev_est_reqs_stat_amt`,`a`.`req_amt_old` AS `req_amt_old`,`a`.`req_amt_smry` AS `req_amt_smry`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,concat(`b`.`firstname`,' ',`b`.`lastname`) AS `updater_nm`,`a`.`last_updated` AS `last_updated`,date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p') AS `last_updated_fmt` from ((`dev_est_reqs_stat_amt_hist` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_est_reqs_status` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_status`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_est_reqs_status` AS select `a`.`iddev_est_reqs_status` AS `iddev_est_reqs_status`,`c`.`iddev_apps` AS `iddev_apps`,`d`.`app_name` AS `app_name`,`d`.`app_st_dt` AS `app_st_dt`,if(isnull(`d`.`app_st_dt`),'Not Started',date_format(`d`.`app_st_dt`,'%m-%d-%y %h:%i %p')) AS `app_st_dt_fmt`,`d`.`app_e_dt` AS `app_e_dt`,(case when (`d`.`app_e_dt` is not null) then date_format(`d`.`app_e_dt`,'%m-%d-%y %h:%i %p') when (isnull(`d`.`app_e_dt`) and isnull(`d`.`app_st_dt`)) then 'Not Started' when (isnull(`d`.`app_e_dt`) and (`d`.`app_st_dt` is not null)) then 'In Progress' end) AS `app_e_dt_fmt`,if(isnull(`d`.`app_e_dt`),'Open','Closed') AS `dev_apps_cur_stat`,`b`.`iddev_est` AS `iddev_est`,`c`.`dev_est_smry` AS `dev_est_smry`,`c`.`est_st_dt` AS `est_st_dt`,if(isnull(`c`.`est_st_dt`),'Not Started',convert(date_format(`c`.`est_st_dt`,'%m-%d-%y %h:%i %p') using utf8mb4)) AS `est_st_dt_fmt`,`c`.`est_e_dt` AS `est_e_dt`,(case when (`c`.`est_e_dt` is not null) then convert(date_format(`c`.`est_e_dt`,'%m-%d-%y %h:%i %p') using utf8mb4) when (isnull(`c`.`est_e_dt`) and isnull(`c`.`est_st_dt`)) then 'Not Started' when (isnull(`c`.`est_e_dt`) and (`c`.`est_st_dt` is not null)) then 'In Progress' end) AS `est_e_dt_fmt`,if(isnull(`c`.`est_e_dt`),'Open','Closed') AS `dev_est_cur_stat`,`c`.`owner_ref_tab` AS `owner_ref_tab`,`c`.`owner_ref_id` AS `owner_ref_id`,(case when (`c`.`owner_ref_tab` like 'emp') then `h`.`file_name` when (`c`.`owner_ref_tab` like 'comp') then `j`.`file_name` end) AS `owner_fnm`,ifnull((case when (`c`.`owner_ref_tab` like 'comp') then `i`.`companyname` when (`c`.`owner_ref_tab` like 'emp') then concat(`g`.`firstname`,' ',`g`.`lastname`) end),'No Owner') AS `owner_ref_nm`,`c`.`est_ref_tab` AS `est_ref_tab`,`c`.`est_ref_id` AS `est_ref_id`,(case when (`c`.`est_ref_tab` like 'emp') then `l`.`file_name` when (`c`.`est_ref_tab` like 'comp') then `n`.`file_name` end) AS `est_fnm`,ifnull((case when (`c`.`est_ref_tab` like 'emp') then concat(`k`.`firstname`,' ',`k`.`lastname`) when (`c`.`est_ref_tab` like 'comp') then `m`.`companyname` end),'No Estimater') AS `est_ref_nm`,`c`.`category` AS `category`,ifnull(`p`.`look_value`,'No Category') AS `category_nm`,`c`.`est_type` AS `est_type`,`b`.`iddev_est_reqs` AS `iddev_est_reqs`,`b`.`req_st_dt` AS `req_st_dt`,if(isnull(`b`.`req_st_dt`),'Not Started',convert(date_format(`b`.`req_st_dt`,'%m-%d-%y %h:%i %p') using utf8mb4)) AS `req_st_dt_fmt`,date_format(`b`.`req_st_dt`,'%Y') AS `req_st_dt_yr`,date_format(`b`.`req_st_dt`,'%M') AS `req_st_dt_mon`,`b`.`req_e_dt` AS `req_e_dt`,(case when (`b`.`req_e_dt` is not null) then convert(date_format(`b`.`req_e_dt`,'%m-%d-%y %h:%i %p') using utf8mb4) when (isnull(`b`.`req_e_dt`) and isnull(`b`.`req_st_dt`)) then 'Not Started' when (isnull(`b`.`req_e_dt`) and (`b`.`req_st_dt` is not null)) then 'In Progress' end) AS `req_e_dt_fmt`,if(isnull(`b`.`req_e_dt`),'Open','Closed') AS `dev_est_reqs_cur_stat`,`b`.`iddev_lk_wrk_flow` AS `iddev_lk_wrk_flow`,ifnull(`ae`.`wrk_flow_nm`,'No Workflow') AS `wrk_flow_nm`,date_format(`b`.`req_e_dt`,'%Y') AS `req_e_dt_yr`,date_format(`b`.`req_e_dt`,'%M') AS `req_e_dt_mon`,`b`.`req_time` AS `req_time`,(case when (isnull(`b`.`req_time`) and (`b`.`req_st_dt` is not null)) then round(((unix_timestamp(now()) - unix_timestamp(`b`.`req_st_dt`)) / 60),0) else `b`.`req_time` end) AS `req_time_vir`,`b`.`req_desc` AS `req_desc`,`b`.`skill_lvl` AS `skill_lvl`,ifnull(`b`.`skill_lvl`,'No Skill') AS `skill_lvl_nm`,`a`.`gap_lvl` AS `gap_lvl`,ifnull(`a`.`gap_lvl`,'No Gap') AS `gap_lvl_nm`,`b`.`req_type` AS `req_type`,ifnull(`q`.`look_value`,'None') AS `req_type_nm`,`a`.`req_status` AS `req_status`,`s`.`look_value` AS `req_status_nm`,`a`.`idlook_stat_order` AS `idlook_stat_order`,`a`.`stat_e_dt_pre` AS `stat_e_dt_pre`,date_format(`a`.`stat_e_dt_pre`,'%m-%d-%y %h:%i %p') AS `stat_e_dt_pre_fmt`,`a`.`stat_lag_time` AS `stat_lag_time`,ifnull(`a`.`stat_lag_time`,'0') AS `stat_lag_time_vir`,`a`.`stat_st_dt` AS `stat_st_dt`,if(isnull(`a`.`stat_st_dt`),'Not Started',convert(date_format(`a`.`stat_st_dt`,'%m-%d-%y %h:%i %p') using utf8mb4)) AS `stat_st_dt_fmt`,date_format(`a`.`stat_st_dt`,'%Y') AS `stat_st_dt_yr`,date_format(`a`.`stat_st_dt`,'%M') AS `stat_st_dt_mon`,`a`.`stat_e_dt` AS `stat_e_dt`,(case when (`a`.`stat_e_dt` is not null) then convert(date_format(`a`.`stat_e_dt`,'%m-%d-%y %h:%i %p') using utf8mb4) when (isnull(`a`.`stat_e_dt`) and isnull(`a`.`stat_st_dt`)) then 'Not Started' when (isnull(`a`.`stat_e_dt`) and (`a`.`stat_st_dt` is not null)) then 'In Progress' end) AS `stat_e_dt_fmt`,`a`.`stat_time` AS `stat_time`,ifnull(`a`.`stat_time`,timestampdiff(MINUTE,`a`.`stat_st_dt`,now())) AS `stat_time_vir`,if(isnull(`a`.`stat_e_dt`),'Open','Closed') AS `dev_est_reqs_status_cur_stat`,`a`.`assigned_to` AS `assigned_to`,`u`.`file_name` AS `assigned_to_fnm`,ifnull(concat(`t`.`firstname`,' ',`t`.`lastname`),'No Assignee') AS `assigned_to_nm`,`a`.`req_stat_amt` AS `req_stat_amt`,`a`.`req_stat_paid` AS `req_stat_paid`,concat((case when ((`a`.`req_stat_paid` > 999) and (`a`.`req_stat_paid` < 1000000)) then convert(concat((trim(round((`a`.`req_stat_paid` / 1000),2)) + 0),'K') using latin1) when (`a`.`req_stat_paid` < 1000) then `a`.`req_stat_paid` when ((`a`.`req_stat_paid` > 999999) and (`a`.`req_stat_paid` < 1000000000)) then convert(concat((trim(round((`a`.`req_stat_paid` / 1000000),2)) + 0),'M') using latin1) when (`a`.`req_stat_paid` > 999999999) then convert(concat((trim(round((`a`.`req_stat_paid` / 1000000000),2)) + 0),'B') using latin1) end),' of ',(case when ((`a`.`req_stat_amt` > 999) and (`a`.`req_stat_amt` < 1000000)) then convert(concat((trim(round((`a`.`req_stat_amt` / 1000),2)) + 0),'K') using latin1) when (`a`.`req_stat_amt` < 1000) then `a`.`req_stat_amt` when ((`a`.`req_stat_amt` > 999999) and (`a`.`req_stat_amt` < 1000000000)) then convert(concat((trim(round((`a`.`req_stat_amt` / 1000000),2)) + 0),'M') using latin1) when (`a`.`req_stat_amt` > 999999999) then convert(concat((trim(round((`a`.`req_stat_amt` / 1000000000),2)) + 0),'B') using latin1) end)) AS `req_stat_paid_amt`,`a`.`req_stat_paid_pcnt` AS `req_stat_paid_pcnt`,`a`.`req_stat_bal` AS `req_stat_bal`,concat((case when ((`a`.`req_stat_bal` > 999) and (`a`.`req_stat_bal` < 1000000)) then convert(concat((trim(round((`a`.`req_stat_bal` / 1000),2)) + 0),'K') using latin1) when (`a`.`req_stat_bal` < 1000) then `a`.`req_stat_bal` when ((`a`.`req_stat_bal` > 999999) and (`a`.`req_stat_bal` < 1000000000)) then convert(concat((trim(round((`a`.`req_stat_bal` / 1000000),2)) + 0),'M') using latin1) when (`a`.`req_stat_bal` > 999999999) then convert(concat((trim(round((`a`.`req_stat_bal` / 1000000000),2)) + 0),'B') using latin1) end),' of ',(case when ((`a`.`req_stat_amt` > 999) and (`a`.`req_stat_amt` < 1000000)) then convert(concat((trim(round((`a`.`req_stat_amt` / 1000),2)) + 0),'K') using latin1) when (`a`.`req_stat_amt` < 1000) then `a`.`req_stat_amt` when ((`a`.`req_stat_amt` > 999999) and (`a`.`req_stat_amt` < 1000000000)) then convert(concat((trim(round((`a`.`req_stat_amt` / 1000000),2)) + 0),'M') using latin1) when (`a`.`req_stat_amt` > 999999999) then convert(concat((trim(round((`a`.`req_stat_amt` / 1000000000),2)) + 0),'B') using latin1) end)) AS `req_stat_bal_amt`,`a`.`req_stat_bal_pcnt` AS `req_stat_bal_pcnt`,`t`.`nickname` AS `nickname`,`b`.`req_status` AS `cur_stat`,`v`.`look_value` AS `cur_stat_nm`,`b`.`req_stat_e_dt_pre` AS `cur_req_stat_e_dt_pre`,date_format(`b`.`req_stat_e_dt_pre`,'%m-%d-%y %h:%i %p') AS `cur_req_stat_e_dt_pre_fmt`,`b`.`req_stat_lag_tm` AS `cur_stat_lag_tm`,ifnull(`b`.`req_stat_lag_tm`,'0') AS `cur_stat_lag_tm_vir`,`b`.`req_stat_st_dt` AS `cur_req_stat_st_dt`,if(isnull(`b`.`req_stat_st_dt`),'Not Started',convert(date_format(`b`.`req_stat_st_dt`,'%m-%d-%y %h:%i %p') using utf8mb4)) AS `cur_stat_st_dt_fmt`,`b`.`req_stat_e_dt` AS `cur_req_stat_e_dt`,(case when (`b`.`req_stat_e_dt` is not null) then convert(date_format(`b`.`req_stat_e_dt`,'%m-%d-%y %h:%i %p') using utf8mb4) when (isnull(`b`.`req_stat_e_dt`) and isnull(`b`.`req_stat_st_dt`)) then 'Not Started' when (isnull(`b`.`req_stat_e_dt`) and (`b`.`req_stat_st_dt` is not null)) then 'In Progress' end) AS `cur_stat_e_dt_fmt`,`b`.`req_stat_time` AS `cur_stat_tm`,(case when (isnull(`b`.`req_stat_time`) and (`b`.`req_stat_st_dt` is not null)) then round(((unix_timestamp(now()) - unix_timestamp(`b`.`req_stat_st_dt`)) / 60),0) else `b`.`req_stat_time` end) AS `cur_stat_tm_vir`,`b`.`req_stat_cnt` AS `req_stat_cnt`,`b`.`req_stat_tol` AS `req_stat_tol`,concat(`b`.`req_stat_cnt`,' of ',`b`.`req_stat_tol`) AS `req_stat_cnt_tol`,`b`.`req_stat_pcnt` AS `req_stat_pcnt`,`b`.`req_case_cnt` AS `req_case_cnt`,`b`.`req_case_tol` AS `req_case_tol`,concat(`b`.`req_case_cnt`,' of ',`b`.`req_case_tol`) AS `req_case_cnt_tol`,`b`.`req_case_pcnt` AS `req_case_pcnt`,`b`.`req_cases` AS `req_cases`,`b`.`req_case_atmpt` AS `req_case_atmpt`,`b`.`assigned_to` AS `cur_assigned_to`,`x`.`file_name` AS `cur_assigned_to_fnm`,ifnull(concat(`w`.`firstname`,' ',`w`.`lastname`),'No Assignee') AS `cur_assigned_to_nm`,`a`.`updater` AS `updater`,`z`.`file_name` AS `updater_fnm`,ifnull(concat(`y`.`firstname`,' ',`y`.`lastname`),'Admin') AS `updater_nm`,`a`.`last_updated` AS `last_updated`,date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p') AS `last_updated_fmt`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`ab`.`file_name` AS `del_by_fnm`,ifnull(concat(`aa`.`firstname`,' ',`aa`.`lastname`),'Admin') AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,ifnull(convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4),'Not Archived') AS `archv_dt_yr`,ifnull(convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4),'Not Archived') AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`ad`.`file_name` AS `archv_by_fnm`,ifnull(concat(`ac`.`firstname`,' ',`ac`.`lastname`),'Admin') AS `archv_by_nm` from (((((((((((((((((((((((((((`dev_est_reqs_status` `a` left join `dev_est_reqs` `b` on((`a`.`iddev_est_reqs` = `b`.`iddev_est_reqs`))) left join `dev_est` `c` on((`b`.`iddev_est` = `c`.`iddev_est`))) left join `dev_apps` `d` on((`c`.`iddev_apps` = `d`.`iddev_apps`))) left join `emp` `g` on((`c`.`owner_ref_id` = `g`.`emp_id`))) left join `storages` `h` on((`g`.`idstorages` = `h`.`idstorages`))) left join `company` `i` on((`c`.`owner_ref_id` = `i`.`comp_id`))) left join `storages` `j` on((`i`.`idstorages` = `j`.`idstorages`))) left join `emp` `k` on((`c`.`est_ref_id` = `k`.`emp_id`))) left join `storages` `l` on((`k`.`idstorages` = `l`.`idstorages`))) left join `company` `m` on((`c`.`est_ref_id` = `m`.`comp_id`))) left join `storages` `n` on((`m`.`idstorages` = `n`.`idstorages`))) left join `dev_look_value` `o` on((`c`.`priority` = `o`.`iddev_look_value`))) left join `dev_look_value` `p` on((`c`.`category` = `p`.`iddev_look_value`))) left join `dev_look_value` `q` on((`b`.`req_type` = `q`.`iddev_look_value`))) left join `dev_look_value` `s` on((`a`.`req_status` = `s`.`iddev_look_value`))) left join `emp` `t` on((`a`.`assigned_to` = `t`.`emp_id`))) left join `storages` `u` on((`t`.`idstorages` = `u`.`idstorages`))) left join `dev_look_value` `v` on((`b`.`req_status` = `v`.`iddev_look_value`))) left join `emp` `w` on((`b`.`assigned_to` = `w`.`emp_id`))) left join `storages` `x` on((`w`.`idstorages` = `x`.`idstorages`))) left join `emp` `y` on((`a`.`updater` = `y`.`emp_id`))) left join `storages` `z` on((`y`.`idstorages` = `z`.`idstorages`))) left join `emp` `aa` on((`a`.`del_by` = `aa`.`emp_id`))) left join `storages` `ab` on((`aa`.`idstorages` = `ab`.`idstorages`))) left join `emp` `ac` on((`a`.`archv_by` = `ac`.`emp_id`))) left join `storages` `ad` on((`ac`.`idstorages` = `ad`.`idstorages`))) left join `dev_lk_wrk_flow` `ae` on((`b`.`iddev_lk_wrk_flow` = `ae`.`iddev_lk_wrk_flow`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_est_reqs_status_forcast` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_status_forcast`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_est_reqs_status_forcast` AS select `a`.`iddev_est_reqs_status_forcast` AS `iddev_est_reqs_status_forcast`,`c`.`iddev_apps` AS `iddev_apps`,`d`.`app_name` AS `app_name`,`d`.`app_st_dt` AS `app_st_dt`,if(isnull(`d`.`app_st_dt`),'Not Started',date_format(`d`.`app_st_dt`,'%m-%d-%y %h:%i %p')) AS `app_st_dt_fmt`,`d`.`app_e_dt` AS `app_e_dt`,(case when (`d`.`app_e_dt` is not null) then date_format(`d`.`app_e_dt`,'%m-%d-%y %h:%i %p') when (isnull(`d`.`app_e_dt`) and isnull(`d`.`app_st_dt`)) then 'Not Started' when (isnull(`d`.`app_e_dt`) and (`d`.`app_st_dt` is not null)) then 'In Progress' end) AS `app_e_dt_fmt`,if(isnull(`d`.`app_e_dt`),'Open','Closed') AS `dev_apps_cur_stat`,`b`.`iddev_est` AS `iddev_est`,`c`.`est_st_dt` AS `est_st_dt`,if(isnull(`c`.`est_st_dt`),'Not Started',date_format(`c`.`est_st_dt`,'%m-%d-%y %h:%i %p')) AS `est_st_dt_fmt`,`c`.`est_e_dt` AS `est_e_dt`,(case when (`c`.`est_e_dt` is not null) then date_format(`c`.`est_e_dt`,'%m-%d-%y %h:%i %p') when (isnull(`c`.`est_e_dt`) and isnull(`c`.`est_st_dt`)) then 'Not Started' when (isnull(`c`.`est_e_dt`) and (`c`.`est_st_dt` is not null)) then 'In Progress' end) AS `est_e_dt_fmt`,if(isnull(`c`.`est_e_dt`),'Open','Closed') AS `dev_est_cur_stat`,`c`.`est_type` AS `est_type`,`c`.`category` AS `category`,ifnull(`m`.`look_value`,'No Category') AS `category_nm`,`c`.`est_ref_id` AS `est_ref_id`,`c`.`est_ref_tab` AS `est_ref_tab`,(case when (`c`.`est_ref_tab` like 'emp') then `f`.`file_name` when (`c`.`est_ref_tab` like 'comp') then `h`.`file_name` end) AS `est_fnm`,ifnull((case when (`c`.`est_ref_tab` like 'emp') then concat(`e`.`firstname`,' ',`e`.`lastname`) when (`c`.`est_ref_tab` like 'comp') then `g`.`companyname` end),'No Estimater') AS `est_ref_nm`,`c`.`owner_ref_id` AS `owner_ref_id`,`c`.`owner_ref_tab` AS `owner_ref_tab`,(case when (`c`.`owner_ref_tab` like 'emp') then `j`.`file_name` when (`c`.`owner_ref_tab` like 'comp') then `l`.`file_name` end) AS `owner_fnm`,ifnull((case when (`c`.`owner_ref_tab` like 'emp') then concat(`i`.`firstname`,' ',`i`.`lastname`) when (`c`.`owner_ref_tab` like 'comp') then `k`.`companyname` end),'No Owner') AS `owner_ref_nm`,`c`.`dev_est_smry` AS `dev_est_smry`,`a`.`iddev_est_reqs` AS `iddev_est_reqs`,`b`.`req_desc` AS `req_desc`,`b`.`req_st_dt` AS `req_st_dt`,if(isnull(`b`.`req_st_dt`),'Not Started',date_format(`b`.`req_st_dt`,'%m-%d-%y %h:%i %p')) AS `req_st_dt_fmt`,`b`.`req_e_dt` AS `req_e_dt`,(case when (`b`.`req_e_dt` is not null) then date_format(`b`.`req_e_dt`,'%m-%d-%y %h:%i %p') when (isnull(`b`.`req_e_dt`) and isnull(`b`.`req_st_dt`)) then 'Not Started' when (isnull(`b`.`req_e_dt`) and (`b`.`req_st_dt` is not null)) then 'In Progress' end) AS `req_e_dt_fmt`,if(isnull(`b`.`req_e_dt`),'Open','Closed') AS `dev_est_reqs_cur_stat`,`b`.`iddev_lk_wrk_flow` AS `iddev_lk_wrk_flow`,ifnull(`ac`.`wrk_flow_nm`,'No Workflow') AS `wrk_flow_nm`,`b`.`req_time` AS `req_time`,(case when (isnull(`b`.`req_time`) and (`b`.`req_st_dt` is not null)) then round(((unix_timestamp(now()) - unix_timestamp(`b`.`req_st_dt`)) / 60),0) else `b`.`req_time` end) AS `req_time_vir`,`b`.`req_type` AS `req_type`,ifnull(`n`.`look_value`,'None') AS `req_type_nm`,`b`.`skill_lvl` AS `skill_lvl`,ifnull(`b`.`skill_lvl`,'No Skill') AS `skill_lvl_nm`,`b`.`gap_lvl` AS `gap_lvl`,ifnull(`b`.`gap_lvl`,'None') AS `gap_lvl_nm`,`a`.`iddev_est_reqs_status` AS `iddev_est_reqs_status`,`x`.`stat_e_dt_pre` AS `stat_e_dt_act_pre`,date_format(`x`.`stat_e_dt_pre`,'%m-%d-%y %h:%i %p') AS `stat_e_dt_act_pre_fmt`,`x`.`stat_lag_time` AS `stat_lag_time`,ifnull(`x`.`stat_lag_time`,'0') AS `stat_lag_time_vir`,`x`.`stat_st_dt` AS `stat_st_dt_act`,if(isnull(`x`.`stat_st_dt`),'Not Started',date_format(`x`.`stat_st_dt`,'%m-%d-%y %h:%i %p')) AS `stat_st_dt_act_fmt`,`x`.`stat_e_dt` AS `stat_e_dt_act`,(case when (`x`.`stat_e_dt` is not null) then date_format(`x`.`stat_e_dt`,'%m-%d-%y %h:%i %p') when (isnull(`x`.`stat_e_dt`) and isnull(`x`.`stat_st_dt`)) then 'Not Started' when (isnull(`x`.`stat_e_dt`) and (`x`.`stat_st_dt` is not null)) then 'In Progress' end) AS `stat_e_dt_act_fmt`,`x`.`stat_time` AS `req_stat_time`,ifnull(`x`.`stat_time`,timestampdiff(MINUTE,`x`.`stat_st_dt`,now())) AS `req_stat_time_vir`,`x`.`assigned_to` AS `assigned_to_act`,`ab`.`file_name` AS `assigned_to_act_fnm`,if(isnull(`x`.`assigned_to`),'No Assignee',concat(`aa`.`firstname`,' ',`aa`.`lastname`)) AS `assigned_to_act_nm`,(case when (`x`.`stat_e_dt` is not null) then 'Done' when (isnull(`x`.`stat_e_dt`) and isnull(`x`.`stat_st_dt`)) then 'Pending' when (isnull(`x`.`stat_e_dt`) and (`x`.`stat_st_dt` is not null)) then 'Started' end) AS `iddev_est_reqs_status_nm`,`a`.`req_status` AS `req_status`,ifnull(`o`.`look_value`,'No Status') AS `req_status_nm`,`a`.`idlook_stat_order` AS `idlook_stat_order`,`a`.`for_stat_e_dt_pre` AS `for_stat_e_dt_pre`,date_format(`a`.`for_stat_e_dt_pre`,'%m-%d-%y %h:%i %p') AS `for_stat_e_dt_pre_fmt`,`a`.`for_stat_lag_time` AS `for_lag_time`,ifnull(`a`.`for_stat_lag_time`,'0') AS `for_lag_time_vir`,`a`.`for_stat_st_dt` AS `for_stat_st_dt`,if(isnull(`a`.`for_stat_st_dt`),'Not Started',date_format(`a`.`for_stat_st_dt`,'%m-%d-%y %h:%i %p')) AS `for_stat_st_dt_fmt`,if(isnull(`a`.`for_stat_st_dt`),'Not Started',date_format(`a`.`for_stat_st_dt`,'%Y')) AS `for_stat_st_yr`,if(isnull(`a`.`for_stat_st_dt`),'Not Started',date_format(`a`.`for_stat_st_dt`,'%b')) AS `for_stat_st_mon`,`a`.`for_stat_e_dt` AS `for_stat_e_dt`,(case when (`a`.`for_stat_e_dt` is not null) then date_format(`a`.`for_stat_e_dt`,'%m-%d-%y %h:%i %p') when (isnull(`a`.`for_stat_e_dt`) and isnull(`a`.`for_stat_st_dt`)) then 'Not Started' when (isnull(`a`.`for_stat_e_dt`) and (`a`.`for_stat_st_dt` is not null)) then 'In Progress' end) AS `for_stat_e_dt_fmt`,if(isnull(`a`.`for_stat_e_dt`),'Open','Closed') AS `dev_est_reqs_status_forcast_cur_stat`,(case when (`a`.`for_stat_e_dt` is not null) then date_format(`a`.`for_stat_e_dt`,'%Y') when (isnull(`a`.`for_stat_e_dt`) and isnull(`a`.`for_stat_st_dt`)) then 'Not Started' when (isnull(`a`.`for_stat_e_dt`) and (`a`.`for_stat_st_dt` is not null)) then 'In Progress' end) AS `for_stat_e_yr`,(case when (`a`.`for_stat_e_dt` is not null) then date_format(`a`.`for_stat_e_dt`,'%b') when (isnull(`a`.`for_stat_e_dt`) and isnull(`a`.`for_stat_st_dt`)) then 'Not Started' when (isnull(`a`.`for_stat_e_dt`) and (`a`.`for_stat_st_dt` is not null)) then 'In Progress' end) AS `for_stat_e_mon`,`a`.`for_stat_time` AS `for_stat_time`,ifnull(`a`.`for_stat_time`,timestampdiff(MINUTE,`a`.`for_stat_st_dt`,now())) AS `for_stat_time_vir`,`a`.`for_req_bud_amt` AS `for_req_bud_amt`,if(isnull(`a`.`for_req_bud_amt`),'No','Yes') AS `for_req_bud_amt_nm`,`a`.`for_amt_dt` AS `for_amt_dt`,date_format(`a`.`for_amt_dt`,'%m-%d-%y %h:%i %p') AS `for_amt_dt_fmt`,`a`.`for_amt_temp_dt` AS `for_amt_temp_dt`,`x`.`req_stat_amt` AS `req_stat_amt`,if(isnull(`x`.`req_stat_amt`),'No','Yes') AS `req_stat_amt_nm`,concat(if(isnull(`x`.`req_stat_amt`),'0.00',(case when ((`x`.`req_stat_amt` > 999) and (`x`.`req_stat_amt` < 1000000)) then convert(concat((trim(round((`x`.`req_stat_amt` / 1000),2)) + 0),'K') using latin1) when (`x`.`req_stat_amt` < 1000) then `x`.`req_stat_amt` when ((`x`.`req_stat_amt` > 999999) and (`x`.`req_stat_amt` < 1000000000)) then convert(concat((trim(round((`x`.`req_stat_amt` / 1000000),2)) + 0),'M') using latin1) when (`x`.`req_stat_amt` > 999999999) then convert(concat((trim(round((`x`.`req_stat_amt` / 1000000000),2)) + 0),'B') using latin1) end)),' of ',if(isnull(`a`.`for_req_bud_amt`),'0.00',(case when ((`a`.`for_req_bud_amt` > 999) and (`a`.`for_req_bud_amt` < 1000000)) then convert(concat((trim(round((`a`.`for_req_bud_amt` / 1000),2)) + 0),'K') using latin1) when (`a`.`for_req_bud_amt` < 1000) then `a`.`for_req_bud_amt` when ((`a`.`for_req_bud_amt` > 999999) and (`a`.`for_req_bud_amt` < 1000000000)) then convert(concat((trim(round((`a`.`for_req_bud_amt` / 1000000),2)) + 0),'M') using latin1) when (`a`.`for_req_bud_amt` > 999999999) then convert(concat((trim(round((`a`.`for_req_bud_amt` / 1000000000),2)) + 0),'B') using latin1) end))) AS `for_req_bud_stat_amt`,ifnull(concat(round(((`x`.`req_stat_amt` * 100) / `a`.`for_req_bud_amt`),2),' ','%'),'0%') AS `for_req_bud_stat_amt_pcnt`,`x`.`req_stat_paid` AS `req_stat_paid`,if(isnull(`x`.`req_stat_paid`),'No','Yes') AS `req_stat_paid_nm`,concat(if(isnull(`x`.`req_stat_paid`),'0.00',(case when ((`x`.`req_stat_paid` > 999) and (`x`.`req_stat_paid` < 1000000)) then convert(concat((trim(round((`x`.`req_stat_paid` / 1000),2)) + 0),'K') using latin1) when (`x`.`req_stat_paid` < 1000) then `x`.`req_stat_paid` when ((`x`.`req_stat_paid` > 999999) and (`x`.`req_stat_paid` < 1000000000)) then convert(concat((trim(round((`x`.`req_stat_paid` / 1000000),2)) + 0),'M') using latin1) when (`x`.`req_stat_paid` > 999999999) then convert(concat((trim(round((`x`.`req_stat_paid` / 1000000000),2)) + 0),'B') using latin1) end)),' of ',if(isnull(`x`.`req_stat_amt`),'0.00',(case when ((`x`.`req_stat_amt` > 999) and (`x`.`req_stat_amt` < 1000000)) then convert(concat((trim(round((`x`.`req_stat_amt` / 1000),2)) + 0),'K') using latin1) when (`x`.`req_stat_amt` < 1000) then `x`.`req_stat_amt` when ((`x`.`req_stat_amt` > 999999) and (`x`.`req_stat_amt` < 1000000000)) then convert(concat((trim(round((`x`.`req_stat_amt` / 1000000),2)) + 0),'M') using latin1) when (`x`.`req_stat_amt` > 999999999) then convert(concat((trim(round((`x`.`req_stat_amt` / 1000000000),2)) + 0),'B') using latin1) end))) AS `req_stat_paid_amt`,ifnull(concat(round(((`x`.`req_stat_paid` * 100) / `x`.`req_stat_amt`),2),' ','%'),'0%') AS `req_stat_paid_amt_pcnt`,`x`.`req_stat_bal` AS `req_stat_bal`,if(isnull(`x`.`req_stat_bal`),'No','Yes') AS `req_stat_bal_nm`,concat(if(isnull(`x`.`req_stat_bal`),'0.00',(case when ((`x`.`req_stat_bal` > 999) and (`x`.`req_stat_bal` < 1000000)) then convert(concat((trim(round((`x`.`req_stat_bal` / 1000),2)) + 0),'K') using latin1) when (`x`.`req_stat_bal` < 1000) then `x`.`req_stat_bal` when ((`x`.`req_stat_bal` > 999999) and (`x`.`req_stat_bal` < 1000000000)) then convert(concat((trim(round((`x`.`req_stat_bal` / 1000000),2)) + 0),'M') using latin1) when (`x`.`req_stat_bal` > 999999999) then convert(concat((trim(round((`x`.`req_stat_bal` / 1000000000),2)) + 0),'B') using latin1) end)),' of ',if(isnull(`x`.`req_stat_amt`),'0.00',(case when ((`x`.`req_stat_amt` > 999) and (`x`.`req_stat_amt` < 1000000)) then convert(concat((trim(round((`x`.`req_stat_amt` / 1000),2)) + 0),'K') using latin1) when (`x`.`req_stat_amt` < 1000) then `x`.`req_stat_amt` when ((`x`.`req_stat_amt` > 999999) and (`x`.`req_stat_amt` < 1000000000)) then convert(concat((trim(round((`x`.`req_stat_amt` / 1000000),2)) + 0),'M') using latin1) when (`x`.`req_stat_amt` > 999999999) then convert(concat((trim(round((`x`.`req_stat_amt` / 1000000000),2)) + 0),'B') using latin1) end))) AS `req_stat_bal_amt`,ifnull(concat(round(((`x`.`req_stat_bal` * 100) / `x`.`req_stat_amt`),2),' ','%'),'0%') AS `req_stat_bal_amt_pcnt`,`a`.`hist_cnt` AS `hist_cnt`,`a`.`for_req_bud_amt_updater` AS `for_req_bud_amt_updater`,`z`.`file_name` AS `for_req_bud_amt_updater_fnm`,(case when (isnull(`a`.`for_req_bud_amt_updated`) and isnull(`a`.`for_req_bud_amt_updater`)) then 'Never Updated' when ((`a`.`for_req_bud_amt_updated` is not null) and isnull(`a`.`for_req_bud_amt_updater`)) then 'Admin' when ((`a`.`for_req_bud_amt_updated` is not null) and (`a`.`for_req_bud_amt_updater` is not null)) then concat(`y`.`firstname`,' ',`y`.`lastname`) end) AS `for_req_bud_amt_updater_nm`,`a`.`for_req_bud_amt_updated` AS `for_req_bud_amt_updated`,date_format(`a`.`for_req_bud_amt_updated`,'%m-%d-%y %h:%i %p') AS `for_req_bud_amt_updated_fmt`,`a`.`assigned_to` AS `assigned_to`,`q`.`file_name` AS `assigned_to_fnm`,ifnull(concat(`p`.`firstname`,' ',`p`.`lastname`),'No Assignee') AS `assigned_to_nm`,`a`.`forecast_smry` AS `forecast_smry`,`a`.`last_updated` AS `last_updated`,date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p') AS `last_updated_fmt`,`a`.`updater` AS `updater`,`s`.`file_name` AS `updater_fnm`,(case when (isnull(`a`.`last_updated`) and isnull(`a`.`updater`)) then 'Never Updated' when ((`a`.`last_updated` is not null) and isnull(`a`.`updater`)) then 'Admin' when ((`a`.`last_updated` is not null) and (`a`.`updater` is not null)) then concat(`r`.`firstname`,' ',`r`.`lastname`) end) AS `updater_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(date_format(`a`.`del_dt`,'%Y'),'Not Deleted') AS `del_dt_yr`,ifnull(date_format(`a`.`del_dt`,'%M'),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`u`.`file_name` AS `del_by_fnm`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`del_by`)) then 'Not Deleted' when (isnull(`a`.`del_by`) and (`a`.`del_dt` is not null)) then 'Admin' when ((`a`.`del_dt` is not null) and (`a`.`del_by` is not null)) then concat(`t`.`firstname`,' ',`t`.`lastname`) end) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,ifnull(date_format(`a`.`archv_dt`,'%Y'),'Archived') AS `archv_dt_yr`,ifnull(date_format(`a`.`archv_dt`,'%M'),'Not Archived') AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`w`.`file_name` AS `archv_by_fnm`,(case when (isnull(`a`.`archv_dt`) and isnull(`a`.`archv_by`)) then 'Not Archived' when (isnull(`a`.`archv_by`) and (`a`.`archv_dt` is not null)) then 'Admin' when ((`a`.`archv_dt` is not null) and (`a`.`archv_by` is not null)) then concat(`v`.`firstname`,' ',`v`.`lastname`) end) AS `archv_by_nm` from ((((((((((((((((((((((((((((`dev_est_reqs_status_forcast` `a` left join `dev_est_reqs` `b` on((`a`.`iddev_est_reqs` = `b`.`iddev_est_reqs`))) left join `dev_est` `c` on((`b`.`iddev_est` = `c`.`iddev_est`))) left join `dev_apps` `d` on((`c`.`iddev_apps` = `d`.`iddev_apps`))) left join `emp` `e` on((`c`.`est_ref_id` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `company` `g` on((`c`.`est_ref_id` = `g`.`comp_id`))) left join `storages` `h` on((`g`.`idstorages` = `h`.`idstorages`))) left join `emp` `i` on((`c`.`owner_ref_id` = `i`.`emp_id`))) left join `storages` `j` on((`i`.`idstorages` = `j`.`idstorages`))) left join `company` `k` on((`c`.`owner_ref_id` = `k`.`comp_id`))) left join `storages` `l` on((`k`.`idstorages` = `l`.`idstorages`))) left join `dev_look_value` `m` on((`c`.`category` = `m`.`iddev_look_value`))) left join `dev_look_value` `n` on((`b`.`req_type` = `n`.`iddev_look_value`))) left join `dev_look_value` `o` on((`a`.`req_status` = `o`.`iddev_look_value`))) left join `emp` `p` on((`a`.`assigned_to` = `p`.`emp_id`))) left join `storages` `q` on((`p`.`idstorages` = `q`.`idstorages`))) left join `emp` `r` on((`a`.`updater` = `r`.`emp_id`))) left join `storages` `s` on((`r`.`idstorages` = `s`.`idstorages`))) left join `emp` `t` on((`a`.`del_by` = `t`.`emp_id`))) left join `storages` `u` on((`t`.`idstorages` = `u`.`idstorages`))) left join `emp` `v` on((`a`.`archv_by` = `v`.`emp_id`))) left join `storages` `w` on((`v`.`idstorages` = `w`.`idstorages`))) left join `dev_est_reqs_status` `x` on((`a`.`iddev_est_reqs_status` = `x`.`iddev_est_reqs_status`))) left join `emp` `y` on((`a`.`for_req_bud_amt_updater` = `y`.`emp_id`))) left join `storages` `z` on((`y`.`idstorages` = `z`.`idstorages`))) left join `emp` `aa` on((`x`.`assigned_to` = `aa`.`emp_id`))) left join `storages` `ab` on((`aa`.`idstorages` = `ab`.`idstorages`))) left join `dev_lk_wrk_flow` `ac` on((`b`.`iddev_lk_wrk_flow` = `ac`.`iddev_lk_wrk_flow`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_est_reqs_status_forcast_hist` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_status_forcast_hist`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_est_reqs_status_forcast_hist` AS select `a`.`iddev_est_reqs_status_forcast_hist` AS `iddev_est_reqs_status_forcast_hist`,`a`.`iddev_est_reqs_status_forcast` AS `iddev_est_reqs_status_forcast`,`a`.`forecast_req_bud_amt_old` AS `forecast_req_bud_amt_old`,`a`.`forecast_smry_old` AS `forecast_smry_old`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`b`.`firstname`,' ',`b`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((`dev_est_reqs_status_forcast_hist` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_est_reqs_status_forcast_steps` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_status_forcast_steps`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_est_reqs_status_forcast_steps` AS select `a`.`iddev_est_reqs_status_forcast_steps` AS `iddev_est_reqs_status_forcast_steps`,`a`.`iddev_est_reqs` AS `iddev_est_reqs`,`a`.`dev_steps_details` AS `dev_steps_details`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,ifnull(concat(`b`.`firstname`,' ',`b`.`lastname`),'Admin') AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((`dev_est_reqs_status_forcast_steps` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_est_reqs_status_steps` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_est_reqs_status_steps`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_est_reqs_status_steps` AS select `a`.`iddev_est_req_status_steps` AS `iddev_est_req_status_steps`,`a`.`iddev_est_reqs_status` AS `iddev_est_reqs_status`,`b`.`iddev_est_reqs` AS `iddev_est_reqs`,`b`.`req_status` AS `req_status`,`b`.`req_status_nm` AS `req_status_nm`,`a`.`dev_steps_details` AS `dev_steps_details`,`a`.`last_updated` AS `last_updated`,date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p') AS `last_updated_fmt`,`a`.`updater` AS `updater`,`e`.`file_name` AS `updater_fnm`,ifnull(concat(`d`.`firstname`,'',`d`.`lastname`),'Admin') AS `updater_nm` from (((`dev_est_reqs_status_steps` `a` left join `vw_dev_est_reqs_status` `b` on((`a`.`iddev_est_reqs_status` = `b`.`iddev_est_reqs_status`))) left join `emp` `d` on((`a`.`updater` = `d`.`emp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_lk_label` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_lk_label`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_lk_label` AS select `a`.`iddev_lk_label` AS `iddev_lk_label`,`a`.`display_size` AS `display_size`,`a`.`dev_label_nm` AS `dev_label_nm`,`a`.`hover_fields` AS `hover_fields`,`a`.`disp_order` AS `disp_order`,`a`.`lk_parent_val_id` AS `lk_parent_val_id`,`a`.`updater` AS `updater_id`,if(isnull(`a`.`updater`),'Admin',concat(`e`.`firstname`,' ',`e`.`lastname`)) AS `updater`,`s`.`file_name` AS `updater_file_name`,if(isnull(`a`.`last_updated`),'Never',date_format(`a`.`last_updated`,'%m-%d-%y')) AS `last_updated` from ((`dev_lk_label` `a` left join `emp` `e` on((`a`.`updater` = `e`.`emp_id`))) left join `storages` `s` on((`e`.`idstorages` = `s`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_lk_wrk_flow` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_lk_wrk_flow`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_lk_wrk_flow` AS select `a`.`iddev_lk_wrk_flow` AS `iddev_lk_wrk_flow`,`a`.`wrk_flow_nm` AS `wrk_flow_nm`,`a`.`id_wrk_flow` AS `id_wrk_flow`,`a`.`wrk_flow_desc` AS `wrk_flow_desc`,`a`.`id_wrk_flow_parent` AS `id_wrk_flow_parent`,`a`.`look_initial` AS `look_initial`,`a`.`look_restart` AS `look_restart`,`a`.`disp_order` AS `disp_order`,`a`.`updater` AS `updater`,ifnull(concat(`c`.`firstname`,' ',`c`.`lastname`),'Admin') AS `updater_fmt`,`a`.`last_updated` AS `last_updated`,if(isnull(`a`.`last_updated`),'Never',date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p')) AS `last_updated_fmt`,concat(ifnull(concat(`c`.`firstname`,' ',`c`.`lastname`),'Admin'),' ',convert(if(isnull(`a`.`last_updated`),'Never',date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p')) using latin1)) AS `last_updated_by`,`b`.`look_value` AS `look_value` from ((`dev_lk_wrk_flow` `a` left join `dev_look_value` `b` on((`a`.`id_wrk_flow` = `b`.`iddev_look_value`))) left join `emp` `c` on((`a`.`updater` = `c`.`emp_id`))) order by `a`.`disp_order` */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_look_value` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_look_value`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_look_value` AS select `a`.`iddev_look_value` AS `iddev_look_value`,NULL AS `iddev_look`,`a`.`lk_val_par` AS `lk_val_par`,`a`.`look_value` AS `look_value`,NULL AS `child_lvl`,`a`.`look_value_desc` AS `look_value_desc`,`a`.`disp_order` AS `disp_order`,`a`.`iddev_look` AS `parent_id`,`a`.`updater` AS `updater`,`e`.`emp_fnm` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`e`.`firstname`,' ',`e`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) AS `updated_fmt`,concat(convert(if(isnull(`a`.`updater`),'Admin',concat(`e`.`firstname`,' ',`e`.`lastname`)) using latin1),' ',convert(if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) using latin1)) AS `updated_by` from (`dev_look_value` `a` left join `vw_emp` `e` on((`a`.`updater` = `e`.`emp_id`))) union all select NULL AS `iddev_look_value`,`a`.`iddev_look` AS `iddev_look`,NULL AS `lk_val_par`,`a`.`look_name` AS `look_name`,if((`a`.`child_lvl` = 0),1,ifnull(`a`.`child_lvl`,1)) AS `child_lvl`,`a`.`look_name_desc` AS `look_name_desc`,`a`.`disp_order` AS `disp_order`,NULL AS `parent_id`,`a`.`updater` AS `updater`,`f`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`e`.`firstname`,' ',`e`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) AS `updated_fmt`,concat(convert(if(isnull(`a`.`updater`),'Admin',concat(`e`.`firstname`,' ',`e`.`lastname`)) using latin1),' ',convert(if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) using latin1)) AS `updated_by` from ((`dev_look` `a` left join `emp` `e` on((`a`.`updater` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_trng` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_trng`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_trng` AS select `a`.`iddev_trng` AS `iddev_trng`,`a`.`disp_order` AS `disp_order`,`a`.`train_nm` AS `train_nm`,`a`.`train_desc` AS `train_desc`,`a`.`duration` AS `duration`,`a`.`cnt` AS `cnt`,`a`.`practical` AS `practical`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,ifnull(concat(trim(ifnull(`b`.`firstname`,'')),' ',trim(ifnull(nullif(`b`.`middlename`,''),'')),convert((case when ((`b`.`middlename` is not null) and (`b`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`b`.`lastname`,''))),'Admin') AS `updater_nm`,`a`.`updated` AS `updated`,ifnull(date_format(`a`.`updated`,'%m-%d-%y %h:%i %p'),'System') AS `updated_fmt` from ((`dev_trng` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) order by `a`.`disp_order` */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_dev_trng_doc` -- /*!50001 DROP VIEW IF EXISTS `vw_dev_trng_doc`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_dev_trng_doc` AS select `a`.`iddev_trng_doc` AS `iddev_trng_doc`,`a`.`iddev_trng` AS `iddev_trng`,`a`.`disp_order` AS `disp_order`,`a`.`trng_desc` AS `trng_desc`,`a`.`duration` AS `duration`,`a`.`idstorages` AS `idstorages`,`a`.`cloud_link` AS `cloud_link`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,ifnull(concat(trim(ifnull(`b`.`firstname`,'')),' ',trim(ifnull(nullif(`b`.`middlename`,''),'')),convert((case when ((`b`.`middlename` is not null) and (`b`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`b`.`lastname`,''))),'Admin') AS `updater_nm`,`a`.`updated` AS `updated`,ifnull(date_format(`a`.`updated`,'%m-%d-%y %h:%i %p'),'System') AS `updated_fmt` from ((`dev_trng_doc` `a` left join `vw_emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_emp` -- /*!50001 DROP VIEW IF EXISTS `vw_emp`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_emp` AS select `a`.`emp_id` AS `emp_id`,`a`.`idstorages` AS `idstorages`,`e`.`file_name` AS `emp_fnm`,`e`.`file_ser_name` AS `emp_fnm_ser`,if(isnull(`a`.`idstorages`),'No','Yes') AS `idstorages_stat`,`a`.`firstname` AS `firstname`,`a`.`middlename` AS `middlename`,`a`.`lastname` AS `lastname`,concat(trim(ifnull(`a`.`firstname`,'')),' ',trim(ifnull(nullif(`a`.`middlename`,''),'')),convert((case when ((`a`.`middlename` is not null) and (`a`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`a`.`lastname`,''))) AS `fullname`,`a`.`nickname` AS `nickname`,`b`.`user_name` AS `user_name`,ifnull(`b`.`user_name`,'No Login') AS `user_name_nm`,if(isnull(`b`.`user_name`),'No','Yes') AS `user_name_cur_stat`,`b`.`status` AS `status`,`b`.`expire_tm` AS `expire_tm`,`b`.`last_clicked` AS `last_clicked`,timestampdiff(MINUTE,`f`.`lastlogin`,`b`.`last_clicked`) AS `last_clicked_tm`,`a`.`all_contacts` AS `all_contacts`,if(isnull(`a`.`all_contacts`),'No','Yes') AS `all_contacts_nm`,concat(trim(ifnull(`a`.`firstname`,'')),' ',trim(ifnull(nullif(`a`.`middlename`,''),'')),convert((case when ((`a`.`middlename` is not null) and (`a`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`a`.`lastname`,'')),' Contacts: ',ifnull(`a`.`all_contacts`,'No Contacts')) AS `emp_nm_all_contacts`,`a`.`unique_id_type` AS `unique_id_type`,ifnull(`c`.`lk_val`,'NA') AS `unique_id_nm`,`a`.`ssn` AS `ssn`,ifnull(`a`.`ssn`,'No SSN') AS `ssn_nm`,`a`.`dob` AS `dob`,ifnull(date_format(`a`.`dob`,'%m-%d-%y'),'No DOB') AS `dob_fmt`,ifnull(timestampdiff(YEAR,`a`.`dob`,curdate()),'No DOB') AS `age`,`a`.`gender` AS `gender_id`,ifnull(`d`.`lk_val`,'NA') AS `gender_nm`,`a`.`all_features` AS `all_features`,`a`.`cnt_feature` AS `cnt_feature`,`a`.`all_education` AS `all_education`,if(isnull(`a`.`all_education`),'No','Yes') AS `all_education_nm`,`a`.`education_cnt` AS `education_cnt`,`a`.`education_yrs` AS `education_yrs`,if(isnull(`a`.`education_yrs`),'NA',concat(floor((`a`.`education_yrs` / 365)),'Y ',floor(((`a`.`education_yrs` % 365) / 30)),'M ')) AS `education_yrs_nm`,concat(ifnull(`a`.`all_education`,'NA'),' Total: ',convert(if(isnull(`a`.`education_yrs`),'NA',concat(floor((`a`.`education_yrs` / 365)),'Y ',floor(((`a`.`education_yrs` % 365) / 30)),'M ')) using latin1)) AS `all_education_yrs_nm`,`a`.`all_emp_org` AS `all_emp_org`,if(isnull(`a`.`all_emp_org`),'No','Yes') AS `all_emp_org_nm`,`a`.`all_addresses` AS `all_addresses`,`a`.`sto_limit` AS `sto_limit`,(case when (`a`.`sto_limit` < 1024) then concat(`a`.`sto_limit`,' B') when ((`a`.`sto_limit` >= 1024) and (`a`.`sto_limit` < 1048576)) then convert(concat(round((`a`.`sto_limit` / 1024),2),' KB') using latin1) when ((`a`.`sto_limit` >= 1048576) and (`a`.`sto_limit` < 1073741824)) then convert(concat(round(((`a`.`sto_limit` / 1024) / 1024),2),' MB') using latin1) when (`a`.`sto_limit` >= 1073741824) then convert(concat(round((((`a`.`sto_limit` / 1024) / 1024) / 1024),2),' GB') using latin1) end) AS `sto_limit_fmt`,`a`.`sto_usage` AS `sto_usage`,(case when (`a`.`sto_usage` < 1024) then concat(`a`.`sto_usage`,' B') when ((`a`.`sto_usage` >= 1024) and (`a`.`sto_usage` < 1048576)) then convert(concat(round((`a`.`sto_usage` / 1024),2),' KB') using latin1) when ((`a`.`sto_usage` >= 1048576) and (`a`.`sto_usage` < 1073741824)) then convert(concat(round(((`a`.`sto_usage` / 1024) / 1024),2),' MB') using latin1) when (`a`.`sto_usage` >= 1073741824) then convert(concat(round((((`a`.`sto_usage` / 1024) / 1024) / 1024),2),' GB') using latin1) end) AS `sto_usage_fmt`,`a`.`sto_remain` AS `sto_remain`,(case when (`a`.`sto_remain` < 1024) then concat(`a`.`sto_remain`,' B') when ((`a`.`sto_remain` >= 1024) and (`a`.`sto_remain` < 1048576)) then convert(concat(round((`a`.`sto_remain` / 1024),2),' KB') using latin1) when ((`a`.`sto_remain` >= 1048576) and (`a`.`sto_remain` < 1073741824)) then convert(concat(round(((`a`.`sto_remain` / 1024) / 1024),2),' MB') using latin1) when (`a`.`sto_remain` >= 1073741824) then convert(concat(round((((`a`.`sto_remain` / 1024) / 1024) / 1024),2),' GB') using latin1) end) AS `sto_remain_fmt`,concat((case when (`a`.`sto_usage` < 1024) then concat(`a`.`sto_usage`,' B') when ((`a`.`sto_usage` >= 1024) and (`a`.`sto_usage` < 1048576)) then convert(concat(round((`a`.`sto_usage` / 1024),2),' KB') using latin1) when ((`a`.`sto_usage` >= 1048576) and (`a`.`sto_usage` < 1073741824)) then convert(concat(round(((`a`.`sto_usage` / 1024) / 1024),2),' MB') using latin1) when (`a`.`sto_usage` >= 1073741824) then convert(concat(round((((`a`.`sto_usage` / 1024) / 1024) / 1024),2),' GB') using latin1) end),' of ',(case when (`a`.`sto_limit` < 1024) then concat(`a`.`sto_limit`,' B') when ((`a`.`sto_limit` >= 1024) and (`a`.`sto_limit` < 1048576)) then convert(concat(round((`a`.`sto_limit` / 1024),2),' KB') using latin1) when ((`a`.`sto_limit` >= 1048576) and (`a`.`sto_limit` < 1073741824)) then convert(concat(round(((`a`.`sto_limit` / 1024) / 1024),2),' MB') using latin1) when (`a`.`sto_limit` >= 1073741824) then convert(concat(round((((`a`.`sto_limit` / 1024) / 1024) / 1024),2),' GB') using latin1) end)) AS `sto_usage_nm`,concat((case when (`a`.`sto_remain` < 1024) then concat(`a`.`sto_remain`,' B') when ((`a`.`sto_remain` >= 1024) and (`a`.`sto_remain` < 1048576)) then convert(concat(round((`a`.`sto_remain` / 1024),2),' KB') using latin1) when ((`a`.`sto_remain` >= 1048576) and (`a`.`sto_remain` < 1073741824)) then convert(concat(round(((`a`.`sto_remain` / 1024) / 1024),2),' MB') using latin1) when (`a`.`sto_remain` >= 1073741824) then convert(concat(round((((`a`.`sto_remain` / 1024) / 1024) / 1024),2),' GB') using latin1) end),' of ',(case when (`a`.`sto_limit` < 1024) then concat(`a`.`sto_limit`,' B') when ((`a`.`sto_limit` >= 1024) and (`a`.`sto_limit` < 1048576)) then convert(concat(round((`a`.`sto_limit` / 1024),2),' KB') using latin1) when ((`a`.`sto_limit` >= 1048576) and (`a`.`sto_limit` < 1073741824)) then convert(concat(round(((`a`.`sto_limit` / 1024) / 1024),2),' MB') using latin1) when (`a`.`sto_limit` >= 1073741824) then convert(concat(round((((`a`.`sto_limit` / 1024) / 1024) / 1024),2),' GB') using latin1) end)) AS `sto_remaining`,concat(round(((`a`.`sto_usage` / `a`.`sto_limit`) * 100),2),'%') AS `sto_usage_nm_pcnt`,concat(round(((`a`.`sto_remain` / `a`.`sto_limit`) * 100),2),'%') AS `sto_remain_nm_pcnt`,`a`.`taxid` AS `taxid`,ifnull(`a`.`taxid`,'No TAXID') AS `taxid_nm`,ifnull(`a`.`hrs_forecast`,'0.00') AS `hrs_forecast`,ifnull(`a`.`hrs_actual`,'0.00') AS `hrs_actual`,concat((case when isnull(`a`.`hrs_actual`) then '0.00' when (`a`.`hrs_actual` > 999) then convert(concat((trim(round((`a`.`hrs_actual` / 1000),2)) + 0),'K') using latin1) when (`a`.`hrs_actual` < 1000) then `a`.`hrs_actual` end),' of ',(case when isnull(`a`.`hrs_forecast`) then '0.00' when (`a`.`hrs_forecast` > 999) then convert(concat((trim(round((`a`.`hrs_forecast` / 1000),2)) + 0),'K') using latin1) when (`a`.`hrs_forecast` < 1000) then `a`.`hrs_forecast` end)) AS `hrs_actual_forecast`,ifnull(`a`.`fore_act_pcnt`,'0.00') AS `fore_act_pcnt`,ifnull(`a`.`amt_forcast`,'0.00') AS `amt_forcast`,ifnull(`a`.`amt_actual`,'0.00') AS `amt_actual`,concat((case when isnull(`a`.`amt_actual`) then '0.00' when (`a`.`amt_actual` > 999) then convert(concat((trim(round((`a`.`amt_actual` / 1000),2)) + 0),'K') using latin1) when (`a`.`amt_actual` < 1000) then `a`.`amt_actual` end),' of ',(case when isnull(`a`.`amt_forcast`) then '0.00' when (`a`.`amt_forcast` > 999) then convert(concat((trim(round((`a`.`amt_forcast` / 1000),2)) + 0),'K') using latin1) when (`a`.`amt_forcast` < 1000) then `a`.`amt_forcast` end)) AS `amt_actual_forcast`,ifnull(`a`.`amt_pcnt`,'0.00') AS `amt_pcnt`,ifnull(`a`.`vac_earn`,'0.00') AS `vac_earned`,ifnull(`a`.`vac_use`,'0.00') AS `vac_used`,concat((case when isnull(`a`.`vac_use`) then '0.00' when (`a`.`vac_use` > 999) then convert(concat((trim(round((`a`.`vac_use` / 1000),2)) + 0),'K') using latin1) when (`a`.`vac_use` < 1000) then `a`.`vac_use` end),' of ',(case when isnull(`a`.`vac_earn`) then '0.00' when (`a`.`vac_earn` > 999) then convert(concat((trim(round((`a`.`vac_earn` / 1000),2)) + 0),'K') using latin1) when (`a`.`vac_earn` < 1000) then `a`.`vac_earn` end)) AS `vac_used_earned`,ifnull(`a`.`vac_pcnt`,'0.00') AS `vac_pcnt`,ifnull(`a`.`vac_bal`,'0.00') AS `vac_bal`,`a`.`login_id` AS `login_id`,`g`.`domain_nm` AS `domain_name`,`g`.`ip_contry` AS `contry`,`g`.`ip_state` AS `ip_state`,`g`.`ip_city` AS `ip_city`,`g`.`ip_post_code` AS `ip_post_code`,`f`.`lastlogin` AS `lastlogin`,date_format(`f`.`lastlogin`,'%m-%d-%y %h:%i %p') AS `lastlogin_fmt`,`f`.`lastlogout` AS `lastlogout`,date_format(`f`.`lastlogout`,'%m-%d-%y %h:%i %p') AS `lastlogout_fmt`,concat(ifnull(`g`.`ip_address`,''),' ',ifnull(`g`.`domain_nm`,''),' ',ifnull(`g`.`ip_contry`,''),' ',ifnull(`g`.`ip_state`,''),' ',ifnull(`g`.`ip_city`,''),' ',ifnull(`g`.`ip_post_code`,'')) AS `from_fmt`,ifnull(concat(round(((unix_timestamp(now()) - unix_timestamp(`f`.`lastlogout`)) / 3600),0),':',round((round(((unix_timestamp(now()) - unix_timestamp(`f`.`lastlogout`)) % 3600),0) / 60),0)),'Live') AS `loggged_out`,`f`.`logged_in` AS `logged_in`,timestampdiff(MINUTE,`f`.`lastlogin`,`f`.`lastlogout`) AS `logged_in_tm`,`h`.`idlook_menu_pvt_lvl1` AS `idlook_menu_pvt_lvl1`,`i`.`lk_values` AS `main_menu`,`h`.`idlook_menu_pvt_lvl2` AS `idlook_menu_pvt_lvl2`,`j`.`lk_values` AS `sub_menu`,`a`.`last_updated` AS `last_updated`,date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p') AS `last_updated_fmt`,`a`.`updater` AS `updater`,`l`.`file_name` AS `updater_fnm`,`l`.`file_ser_name` AS `updater_fnm_ser`,ifnull(concat(`k`.`firstname`,' ',`k`.`lastname`),'Admin') AS `updater_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,`a`.`del_by` AS `del_by`,`n`.`file_name` AS `del_by_fnm`,`n`.`file_ser_name` AS `del_by_fnm_ser`,ifnull(concat(`m`.`firstname`,' ',`m`.`lastname`),'Admin') AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,`a`.`archv_by` AS `archv_by`,`p`.`file_name` AS `archv_by_fnm`,`p`.`file_ser_name` AS `archv_by_fnm_ser`,ifnull(concat(`o`.`firstname`,' ',`o`.`lastname`),'Admin') AS `archv_by_nm` from (((((((((((((((`emp` `a` left join `all_users` `b` on((`a`.`emp_id` = `b`.`emp_id`))) left join `emp_lk_val` `c` on((`a`.`unique_id_type` = `c`.`idemp_lk_value`))) left join `emp_lk_val` `d` on((`a`.`gender` = `d`.`idemp_lk_value`))) left join `storages` `e` on((`a`.`idstorages` = `e`.`idstorages`))) left join `all_usr_login` `f` on((`a`.`login_id` = `f`.`idall_usr_login`))) left join `look_ip_addr` `g` on((`f`.`idlook_ip_addr` = `g`.`idlook_ip_addr`))) left join `all_usr_login` `h` on((`a`.`login_id` = `h`.`idall_usr_login`))) left join `look_menu_pvt` `i` on((`h`.`idlook_menu_pvt_lvl1` = `i`.`idlook_menu_pvt`))) left join `look_menu_pvt` `j` on((`h`.`idlook_menu_pvt_lvl2` = `j`.`idlook_menu_pvt`))) left join `emp` `k` on((`a`.`updater` = `k`.`emp_id`))) left join `storages` `l` on((`k`.`idstorages` = `l`.`idstorages`))) left join `emp` `m` on((`a`.`del_by` = `m`.`emp_id`))) left join `storages` `n` on((`m`.`idstorages` = `n`.`idstorages`))) left join `emp` `o` on((`a`.`archv_by` = `o`.`emp_id`))) left join `storages` `p` on((`o`.`idstorages` = `p`.`idstorages`))) order by `a`.`last_updated` */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_emp_access` -- /*!50001 DROP VIEW IF EXISTS `vw_emp_access`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_emp_access` AS select `a`.`access_id` AS `access_id`,`a`.`emp_id` AS `emp_id`,`g`.`file_name` AS `emp_fnm`,ifnull(concat(`b`.`firstname`,' ',`b`.`lastname`),'Admin') AS `emp_name`,`d`.`user_name` AS `user_name`,`a`.`feature_id` AS `feature_id`,`c`.`feature_name` AS `feature_name`,`c`.`feature_desc` AS `feature_desc`,`c`.`disp_order` AS `disp_order`,`a`.`updated_by` AS `updated_by`,`f`.`file_name` AS `updated_by_fnm`,ifnull(concat(`e`.`firstname`,' ',`e`.`lastname`),'Admin') AS `updated_by_nm`,`a`.`last_updated` AS `last_updated`,ifnull(date_format(`a`.`last_updated`,'%m/%d/%y %h:%i %p'),'Back End') AS `last_updated_fmt` from ((((((`emp_access` `a` left join `emp` `b` on((`a`.`emp_id` = `b`.`emp_id`))) left join `storages` `g` on((`b`.`idstorages` = `g`.`idstorages`))) left join `feature` `c` on((`c`.`feature_id` = `a`.`feature_id`))) left join `all_users` `d` on((`a`.`emp_id` = `d`.`emp_id`))) left join `emp` `e` on((`a`.`updated_by` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) order by date_format(`a`.`last_updated`,_utf8'%Y-%m-%d %h:%i %p') desc */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_emp_activity` -- /*!50001 DROP VIEW IF EXISTS `vw_emp_activity`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_emp_activity` AS select `a`.`idemp_activity` AS `idemp_activity`,`a`.`emp_id` AS `empd_id`,date_format(`a`.`call_recv_dt`,_utf8'%m.%d.%y') AS `call_recv_dt`,`a`.`emp_id` AS `emp_id`,(case when (`a`.`emp_id` <> 0) then concat_ws(_latin1' ',`b`.`firstname`,`b`.`lastname`) else 'Admin' end) AS `updater`,date_format(`a`.`next_call_dt`,_utf8'%m.%d.%y') AS `next_call_dt`,`a`.`call_note` AS `call_note`,date_format(`a`.`last_updated`,_utf8'%m.%d.%y %T') AS `last_updated` from (`emp_activity` `a` left join `emp` `b` on((`a`.`emp_id` = `b`.`emp_id`))) order by date_format(`a`.`next_call_dt`,_utf8'%m.%d.%y') desc */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_emp_address` -- /*!50001 DROP VIEW IF EXISTS `vw_emp_address`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8mb4 */; /*!50001 SET character_set_results = utf8mb4 */; /*!50001 SET collation_connection = utf8mb4_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_emp_address` AS select `a`.`emp_add_id` AS `emp_add_id`,`a`.`emp_id` AS `emp_id`,`c`.`file_name` AS `emp_fnm`,concat(trim(ifnull(`b`.`firstname`,'')),' ',trim(ifnull(nullif(`b`.`middlename`,''),'')),convert((case when ((`b`.`middlename` is not null) and (`b`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`b`.`lastname`,''))) AS `emp_nm`,`a`.`look_street_no_id` AS `look_street_no_id`,`d`.`look_street_id` AS `look_street_id`,ifnull(`d`.`look_street_no`,'No Street') AS `look_street_no`,ifnull(`e`.`street_name`,'No Street Name') AS `street_name`,ifnull(`e`.`street_type`,'No Street Type') AS `street_type`,ifnull(`f`.`lk_val`,'No Street Type') AS `street_type_name`,concat(ifnull(`e`.`street_name`,'No Street Name'),' ',ifnull(`f`.`lk_val`,'No Street Type')) AS `street_name_type`,ifnull(`e`.`postal_id`,'No Postal Id') AS `postal_id`,ifnull(`g`.`zip_code`,'No Zip Code') AS `zip_code`,`g`.`city_id` AS `city_id`,ifnull(`h`.`city_name`,'No City') AS `city_name`,`h`.`idlook_county_district` AS `idlook_county_district`,ifnull(`s`.`county_district_city_nm`,'No County / District') AS `county_district_city_nm`,ifnull(`s`.`state_id`,'No State') AS `state_id`,ifnull(`i`.`state_name`,'No State') AS `state_name`,ifnull(`i`.`state_full_name`,'No State Full Name') AS `state_full_name`,`i`.`country_id` AS `country_id`,ifnull(`j`.`con_name`,'No Country Name') AS `con_name`,ifnull(`j`.`con_full_name`,'No Country Full Name') AS `con_full_name`,ifnull(`j`.`lk_design`,' - ') AS `lk_design`,ifnull(`j`.`con_code`,' - ') AS `con_code`,ifnull(`j`.`con_digit`,' - ') AS `con_digit`,`a`.`house_apt_no` AS `house_apt_no`,`a`.`house_apt_type` AS `house_apt_type`,`k`.`lk_val` AS `house_apt_type_nm`,concat(ifnull(`d`.`look_street_no`,'No Street'),' ',ifnull(`e`.`street_name`,'No Street Name'),' ',ifnull(`f`.`lk_val`,'No Street Type'),' ',ifnull(`a`.`house_apt_no`,''),' ',if(isnull(`a`.`house_apt_type`),'',`k`.`lk_val`),', ',ifnull(`h`.`city_name`,'No City'),' ',ifnull(`s`.`county_district_city_nm`,'No County / District'),', ',ifnull(`i`.`state_name`,'No State'),' ',ifnull(`g`.`zip_code`,'No Zip Code'),' ','(',ifnull(`j`.`con_name`,'No Country'),')') AS `addresses`,`a`.`from_dt` AS `from_dt`,date_format(`a`.`from_dt`,'%m-%d-%y') AS `from_dt_fmt`,date_format(`a`.`from_dt`,'%Y') AS `from_dt_yr`,date_format(`a`.`from_dt`,'%M') AS `from_dt_mon`,`a`.`to_dt` AS `to_dt`,date_format(`a`.`to_dt`,'%m-%d-%y') AS `to_dt_fmt`,date_format(`a`.`to_dt`,'%Y') AS `to_dt_yr`,date_format(`a`.`to_dt`,'%M') AS `to_dt_mon`,`a`.`no_of_days` AS `no_of_days`,ifnull(`a`.`no_of_days`,timestampdiff(DAY,`a`.`from_dt`,now())) AS `no_of_days_vir`,`a`.`add_type` AS `add_type`,`l`.`lk_val` AS `add_type_nm`,`a`.`last_updated` AS `last_updated`,date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p') AS `last_updated_fmt`,`a`.`updater` AS `updater`,`n`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(trim(ifnull(`m`.`firstname`,'')),' ',trim(ifnull(nullif(`m`.`middlename`,''),'')),convert((case when ((`m`.`middlename` is not null) and (`m`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`m`.`lastname`,'')))) AS `updater_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`p`.`file_name` AS `del_by_fnm`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`del_by`)) then 'Not Deleted' when (isnull(`a`.`del_by`) and (`a`.`del_dt` is not null)) then 'Admin' when ((`a`.`del_dt` is not null) and (`a`.`del_by` is not null)) then concat(trim(ifnull(`o`.`firstname`,'')),' ',trim(ifnull(nullif(`o`.`middlename`,''),'')),convert((case when ((`o`.`middlename` is not null) and (`o`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`o`.`lastname`,''))) end) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`r`.`file_name` AS `archv_by_fnm`,(case when (isnull(`a`.`archv_dt`) and isnull(`a`.`archv_by`)) then 'Not Archived' when (isnull(`a`.`archv_by`) and (`a`.`archv_dt` is not null)) then 'Admin' when ((`a`.`archv_dt` is not null) and (`a`.`archv_by` is not null)) then concat(trim(ifnull(`q`.`firstname`,'')),' ',trim(ifnull(nullif(`q`.`middlename`,''),'')),convert((case when ((`q`.`middlename` is not null) and (`q`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`q`.`lastname`,''))) end) AS `archv_by_nm` from ((((((((((((((((((`emp_address` `a` left join `emp` `b` on((`a`.`emp_id` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `look_street_no` `d` on((`a`.`look_street_no_id` = `d`.`look_street_no_id`))) left join `look_street` `e` on((`d`.`look_street_id` = `e`.`look_street_id`))) left join `feature_lk_val` `f` on((`e`.`street_type` = `f`.`idfeature_lk_val`))) left join `look_postal` `g` on((`e`.`postal_id` = `g`.`postal_id`))) left join `look_city` `h` on((`g`.`city_id` = `h`.`city_id`))) left join `look_county_district` `s` on((`h`.`idlook_county_district` = `s`.`idlook_county_district`))) left join `look_state` `i` on((`s`.`state_id` = `i`.`state_id`))) left join `look_country` `j` on((`i`.`country_id` = `j`.`country_id`))) left join `feature_lk_val` `k` on((`a`.`house_apt_type` = `k`.`idfeature_lk_val`))) left join `emp_lk_val` `l` on((`a`.`add_type` = `l`.`idemp_lk_value`))) left join `emp` `m` on((`a`.`updater` = `m`.`emp_id`))) left join `storages` `n` on((`m`.`idstorages` = `n`.`idstorages`))) left join `emp` `o` on((`a`.`del_by` = `o`.`emp_id`))) left join `storages` `p` on((`o`.`idstorages` = `p`.`idstorages`))) left join `emp` `q` on((`a`.`archv_by` = `q`.`emp_id`))) left join `storages` `r` on((`q`.`idstorages` = `r`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_emp_audit` -- /*!50001 DROP VIEW IF EXISTS `vw_emp_audit`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_emp_audit` AS select `a`.`idemp_audit` AS `idemp_audit`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,date_format(`a`.`updated`,'%Y') AS `updated_fmt_yr`,date_format(`a`.`updated`,'%M') AS `updated_fmt_mon`,dayname(`a`.`updated`) AS `updated_fmt_day`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,(case when (isnull(`a`.`updated`) and isnull(`a`.`updater`)) then 'Not Updated' when (isnull(`a`.`updater`) and (`a`.`updated` is not null)) then 'Admin' when ((`a`.`updated` is not null) and (`a`.`updater` is not null)) then concat(`b`.`firstname`,' ',`b`.`lastname`) end) AS `updater_nm`,`a`.`table_update` AS `table_update`,`a`.`action` AS `action`,`a`.`table_id` AS `table_id`,`a`.`col1` AS `col1`,`a`.`idlook_menu_pvt_lvl2` AS `idlook_menu_pvt_lvl2`,`d`.`lk_values` AS `idlook_menu_pvt_lvl2_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`f`.`file_name` AS `del_by_fnm`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`del_by`)) then 'Not Deleted' when (isnull(`a`.`del_by`) and (`a`.`del_dt` is not null)) then 'Admin' when ((`a`.`del_dt` is not null) and (`a`.`del_by` is not null)) then concat(`e`.`firstname`,' ',`e`.`lastname`) end) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`h`.`file_name` AS `archv_by_fnm`,(case when (isnull(`a`.`archv_dt`) and isnull(`a`.`archv_by`)) then 'Not Archived' when (isnull(`a`.`archv_by`) and (`a`.`archv_dt` is not null)) then 'Admin' when ((`a`.`archv_dt` is not null) and (`a`.`archv_by` is not null)) then concat(`g`.`firstname`,' ',`g`.`lastname`) end) AS `archv_by_nm` from (((((((`emp_audit` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `look_menu_pvt` `d` on((`a`.`idlook_menu_pvt_lvl2` = `d`.`idlook_menu_pvt`))) left join `emp` `e` on((`a`.`del_by` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `emp` `g` on((`a`.`archv_by` = `g`.`emp_id`))) left join `storages` `h` on((`g`.`idstorages` = `h`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_emp_bench` -- /*!50001 DROP VIEW IF EXISTS `vw_emp_bench`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_emp_bench` AS select 'Employee' AS `value`,`a`.`emp_org_id` AS `emp_org_id`,`a`.`emp_fnm` AS `emp_fnm`,`a`.`emp_nm` AS `emp_nm`,`a`.`companyname` AS `companyname`,`a`.`comp_fnm` AS `comp_fnm`,`a`.`org_start_dt` AS `start_dt`,`a`.`org_start_dt_fmt` AS `start_dt_fmt`,NULL AS `bill_cycle`,`a`.`org_end_dt` AS `end_dt`,`a`.`org_end_dt_fmt` AS `end_dt_fmt`,`a`.`no_of_days` AS `no_of_days`,`a`.`no_of_days_fmt` AS `no_of_days_fmt` from `vw_emp_org` `a` union all select 'Consultant' AS `Consultant`,`a`.`idengage_entity` AS `idengage_entity`,`a`.`engage_ref_fnm` AS `engage_ref_fnm`,`a`.`engage_ref_nm` AS `engage_ref_nm`,NULL AS `NULL`,NULL AS `NULL`,`a`.`bill_start_dt` AS `bill_start_dt`,`a`.`bill_start_dt_fmt` AS `bill_start_dt_fmt`,`a`.`bill_cycle` AS `bill_cycle`,`a`.`bill_end_dt` AS `bill_end_dt`,`a`.`bill_end_dt_fmt` AS `bill_end_dt_fmt`,`a`.`bill_st_e_dt` AS `bill_st_e_dt`,`a`.`bill_st_e_dt_vir` AS `bill_st_e_dt_vir` from `vw_engage_entity` `a` */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_emp_contact` -- /*!50001 DROP VIEW IF EXISTS `vw_emp_contact`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_emp_contact` AS select `a`.`emp_contact_id` AS `emp_contact_id`,`a`.`emp_id` AS `emp_id`,`f`.`file_name` AS `emp_fnm`,if(isnull(`a`.`emp_id`),'Admin',concat(trim(ifnull(`d`.`firstname`,'')),' ',trim(ifnull(nullif(`d`.`middlename`,''),'')),convert((case when ((`d`.`middlename` is not null) and (`d`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`d`.`lastname`,'')))) AS `emp_nm`,`a`.`contact_id` AS `contact_id`,`b`.`country_id` AS `country_id`,`g`.`con_name` AS `con_name`,`g`.`con_code` AS `con_code`,concat(ifnull(`g`.`con_name`,'No Country '),convert(if(isnull(`g`.`con_code`),' ',concat(' (+',`g`.`con_code`,')')) using latin1)) AS `con_name_code`,`b`.`contact_type` AS `contact_type`,`a`.`emp_contact_type` AS `emp_contact_type`,ifnull(`a`.`emp_contact_type`,'No Contact Type') AS `emp_contact_type_nm`,`b`.`contact_detail` AS `contact_detail`,concat(`a`.`emp_contact_type`,' ',`b`.`contact_detail`) AS `emp_contact_type_detail`,`a`.`contact_vrifed` AS `contact_vrifed`,`a`.`summary` AS `summary`,`a`.`contact_cnt` AS `contact_cnt`,`a`.`updater` AS `updater`,`s`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(trim(ifnull(`e`.`firstname`,'')),' ',trim(ifnull(nullif(`e`.`middlename`,''),'')),convert((case when ((`e`.`middlename` is not null) and (`e`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`e`.`lastname`,'')))) AS `updater_nm`,`a`.`last_updated` AS `last_updated`,concat(convert(date_format(`a`.`last_updated`,'%m-%d-%y %H:%i:%s %p') using latin1),' ') AS `last_updated_fmt` from ((((((`emp_contact` `a` left join `contact_no` `b` on((`a`.`contact_id` = `b`.`contact_id`))) left join `emp` `e` on((`a`.`updater` = `e`.`emp_id`))) left join `storages` `s` on((`e`.`idstorages` = `s`.`idstorages`))) left join `emp` `d` on((`a`.`emp_id` = `d`.`emp_id`))) left join `storages` `f` on((`d`.`idstorages` = `f`.`idstorages`))) left join `look_country` `g` on((`b`.`country_id` = `g`.`country_id`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_emp_doc` -- /*!50001 DROP VIEW IF EXISTS `vw_emp_doc`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8mb4 */; /*!50001 SET character_set_results = utf8mb4 */; /*!50001 SET collation_connection = utf8mb4_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_emp_doc` AS select `a`.`idemp_doc` AS `idemp_doc`,`a`.`emp_id` AS `emp_id`,`m`.`file_name` AS `emp_fnm`,if(isnull(`a`.`emp_id`),'Admin',concat(trim(ifnull(`l`.`firstname`,'')),' ',trim(ifnull(nullif(`l`.`middlename`,''),'')),convert((case when ((`l`.`middlename` is not null) and (`l`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`l`.`lastname`,'')))) AS `emp_nm`,`a`.`idstorages` AS `idstorages`,`c`.`file_name` AS `file_name`,`c`.`file_ser_name` AS `file_ser_name`,`c`.`sto_cloud_link` AS `sto_cloud_link`,`c`.`sto_cloud` AS `sto_cloud`,ifnull(`k`.`lk_val`,'Local') AS `sto_cloud_nm`,`c`.`file_size` AS `file_size`,`c`.`file_cnv_size` AS `file_cnv_size`,`c`.`owner_id` AS `owner_id`,`e`.`file_name` AS `owner_fnm`,if(isnull(`c`.`owner_id`),'Admin',concat(trim(ifnull(`d`.`firstname`,'')),' ',trim(ifnull(nullif(`d`.`middlename`,''),'')),convert((case when ((`d`.`middlename` is not null) and (`d`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`d`.`lastname`,'')))) AS `owner_nm`,`c`.`create_dt` AS `create_dt`,date_format(`c`.`create_dt`,'%m-%d-%y %h:%i %p') AS `create_dt_fmt`,`c`.`expire_dt` AS `expire_dt`,if(isnull(`c`.`expire_dt`),'Never',convert(date_format(`c`.`expire_dt`,'%m-%d-%y') using utf8mb4)) AS `expire_dt_fmt`,if(isnull(`c`.`expire_dt`),'Never',convert(date_format(`c`.`expire_dt`,'%M-%Y') using utf8mb4)) AS `expire_dt_fmt2`,(case when (`c`.`expire_dt` < now()) then convert(date_format(`c`.`expire_dt`,'%m-%d-%y') using utf8mb4) when (`c`.`expire_dt` > now()) then timestampdiff(DAY,now(),`c`.`expire_dt`) when isnull(`c`.`expire_dt`) then 'None' end) AS `expire_dt_no_days`,if((isnull(`c`.`expire_dt`) or (`c`.`expire_dt` > now())),'No','Yes') AS `expire_dt_cur_stat`,`c`.`ext_type` AS `ext_type`,`c`.`public` AS `public`,`c`.`self_view` AS `self_view`,`c`.`smry` AS `smry`,`c`.`ref_emp_id` AS `ref_emp_id`,`g`.`file_name` AS `ref_emp_fnm`,if(isnull(`c`.`ref_emp_id`),'Admin',concat(trim(ifnull(`f`.`firstname`,'')),' ',trim(ifnull(nullif(`f`.`middlename`,''),'')),convert((case when ((`f`.`middlename` is not null) and (`f`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`f`.`lastname`,'')))) AS `ref_emp_nm`,`c`.`usage` AS `usage`,`c`.`updater` AS `updater`,`i`.`file_name` AS `updater_fnm`,if(isnull(`c`.`updater`),'Admin',concat(trim(ifnull(`h`.`firstname`,'')),' ',trim(ifnull(nullif(`h`.`middlename`,''),'')),convert((case when ((`h`.`middlename` is not null) and (`h`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`h`.`lastname`,'')))) AS `updater_nm`,`c`.`updated` AS `updated`,date_format(`c`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`emp_doc_type` AS `emp_doc_type`,`j`.`lk_val` AS `emp_doc_type_nm` from (((((((((((`emp_doc` `a` left join `storages` `c` on((`a`.`idstorages` = `c`.`idstorages`))) left join `emp` `d` on((`c`.`owner_id` = `d`.`emp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `emp` `f` on((`c`.`ref_emp_id` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `feature_lk_val` `k` on((`a`.`idstorages` = `k`.`idfeature_lk_val`))) left join `emp` `h` on((`c`.`updater` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) left join `emp_lk_val` `j` on((`j`.`idemp_lk_value` = `a`.`emp_doc_type`))) left join `emp` `l` on((`a`.`emp_id` = `l`.`emp_id`))) left join `storages` `m` on((`l`.`idstorages` = `m`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_emp_education` -- /*!50001 DROP VIEW IF EXISTS `vw_emp_education`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_emp_education` AS select `a`.`idemp_education` AS `idemp_education`,`a`.`emp_id` AS `emp_id`,`c`.`file_name` AS `emp_fnm`,concat(trim(ifnull(`b`.`firstname`,'')),' ',trim(ifnull(nullif(`b`.`middlename`,''),'')),convert((case when ((`b`.`middlename` is not null) and (`b`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`b`.`lastname`,''))) AS `emp_nm`,`a`.`edu_name` AS `edu_name`,`d`.`lk_val` AS `edu_nm`,`a`.`edu_name_sub` AS `edu_name_sub`,if(isnull(`a`.`edu_name_sub`),'Not Entered',`m`.`lk_val`) AS `edu_name_sub_nm`,`a`.`edu_frm_dt` AS `edu_frm_dt`,date_format(`a`.`edu_frm_dt`,'%m-%d-%y') AS `edu_frm_dt_fmt`,date_format(`a`.`edu_frm_dt`,'%Y') AS `edu_frm_dt_yr`,date_format(`a`.`edu_frm_dt`,'%M') AS `edu_frm_dt_mon`,`a`.`edu_to_dt` AS `edu_to_dt`,if(isnull(`a`.`edu_to_dt`),'Studying',date_format(`a`.`edu_to_dt`,'%m-%d-%y')) AS `edu_to_dt_fmt`,date_format(`a`.`edu_to_dt`,'%Y') AS `edu_to_dt_yr`,date_format(`a`.`edu_to_dt`,'%M') AS `edu_to_dt_mon`,`a`.`edu_frm_to_dt` AS `edu_frm_to_dt`,ifnull(`a`.`edu_frm_to_dt`,timestampdiff(DAY,`a`.`edu_frm_dt`,now())) AS `edu_frm_to_dt_vir`,if(isnull(`a`.`edu_to_dt`),'Y','N') AS `edu_cur_stat`,`a`.`edu_subject` AS `edu_subject`,`e`.`lk_val` AS `edu_subject_nm`,`a`.`edu_level` AS `edu_level`,`f`.`lk_val` AS `edu_level_nm`,`a`.`edu_smry` AS `edu_smry`,concat(ifnull(`d`.`lk_val`,'NA'),' ',convert(ifnull(date_format(`a`.`edu_frm_dt`,'%m-%d-%y'),'NA') using latin1),' - ',convert(ifnull(date_format(`a`.`edu_to_dt`,'%m-%d-%y'),'Continue') using latin1),' - ',convert(if(isnull(`a`.`edu_frm_to_dt`),concat(floor(((to_days(curdate()) - to_days(`a`.`edu_frm_dt`)) / 365)),'Y ',floor((((to_days(curdate()) - to_days(`a`.`edu_frm_dt`)) % 365) / 30)),'M '),concat(floor((`a`.`edu_frm_to_dt` / 365)),'Y ',floor(((`a`.`edu_frm_to_dt` % 365) / 30)),'M ')) using latin1),ifnull(`e`.`lk_val`,'NA'),' ',ifnull(`f`.`lk_val`,'NA')) AS `edu_smry_vir`,`a`.`updater` AS `updater`,`h`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(trim(ifnull(`g`.`firstname`,'')),' ',trim(ifnull(nullif(`g`.`middlename`,''),'')),convert((case when ((`g`.`middlename` is not null) and (`g`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`g`.`lastname`,'')))) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(date_format(`a`.`del_dt`,'%Y'),'Not Deleted') AS `del_dt_yr`,ifnull(date_format(`a`.`del_dt`,'%M'),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`j`.`file_name` AS `del_by_fnm`,if(isnull(`a`.`del_by`),'Admin',concat(trim(ifnull(`i`.`firstname`,'')),' ',trim(ifnull(nullif(`i`.`middlename`,''),'')),convert((case when ((`i`.`middlename` is not null) and (`i`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`i`.`lastname`,'')))) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then date_format(`a`.`archv_dt`,'%Y') when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then date_format(`a`.`archv_dt`,'%M') when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`l`.`file_name` AS `archv_by_fnm`,if(isnull(`a`.`archv_by`),'Admin',concat(trim(ifnull(`k`.`firstname`,'')),' ',trim(ifnull(nullif(`k`.`middlename`,''),'')),convert((case when ((`k`.`middlename` is not null) and (`k`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`k`.`lastname`,'')))) AS `archv_by_nm` from ((((((((((((`emp_education` `a` left join `emp` `b` on((`a`.`emp_id` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `emp_lk_val` `d` on((`a`.`edu_name` = `d`.`idemp_lk_value`))) left join `emp_lk_val` `e` on((`a`.`edu_subject` = `e`.`idemp_lk_value`))) left join `emp_lk_val` `f` on((`a`.`edu_level` = `f`.`idemp_lk_value`))) left join `emp` `g` on((`a`.`updater` = `g`.`emp_id`))) left join `storages` `h` on((`g`.`idstorages` = `h`.`idstorages`))) left join `emp` `i` on((`a`.`del_by` = `i`.`emp_id`))) left join `storages` `j` on((`i`.`idstorages` = `j`.`idstorages`))) left join `emp` `k` on((`a`.`archv_by` = `k`.`emp_id`))) left join `storages` `l` on((`k`.`idstorages` = `l`.`idstorages`))) left join `emp_lk_val` `m` on((`a`.`edu_name_sub` = `m`.`idemp_lk_value`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_emp_lk_val` -- /*!50001 DROP VIEW IF EXISTS `vw_emp_lk_val`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_emp_lk_val` AS select `a`.`idemp_lk_value` AS `idemp_lk_value`,NULL AS `idemp_lk`,`a`.`lk_val_par` AS `lk_val_par`,`a`.`lk_val` AS `lk_val`,NULL AS `child_lvl`,`a`.`lk_val_desc` AS `lk_val_desc`,`a`.`disp_order` AS `disp_order`,`a`.`idemp_lk` AS `parent_id`,`a`.`updater` AS `updater`,`d`.`file_name` AS `updater_fnm`,ifnull(concat(`b`.`firstname`,' ',`b`.`lastname`),'Admin') AS `updater_fmt`,`a`.`updated` AS `updated`,if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) AS `updated_fmt`,concat(ifnull(concat(`b`.`firstname`,' ',`b`.`lastname`),'Admin'),' ',convert(if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) using latin1)) AS `updated_by` from (((`emp_lk_val` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `d` on((`d`.`idstorages` = `b`.`idstorages`))) left join `emp_lk` `c` on((`a`.`idemp_lk` = `c`.`idemp_lk`))) union all select NULL AS `NULL`,`a`.`idemp_lk` AS `idemp_lk`,NULL AS `lk_val_par`,`a`.`lk_nm` AS `lk_nm`,if((`a`.`child_lvl` = 0),1,ifnull(`a`.`child_lvl`,1)) AS `child_lvl`,`a`.`lk_nm_desc` AS `lk_nm_desc`,`a`.`disp_order` AS `disp_order`,NULL AS `NULL`,`a`.`updater` AS `updater`,`d`.`file_name` AS `updater_fnm`,ifnull(concat(`b`.`firstname`,' ',`b`.`lastname`),'Admin') AS `updater_fmt`,`a`.`updated` AS `updated`,if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) AS `updated_fmt`,concat(ifnull(concat(`b`.`firstname`,' ',`b`.`lastname`),'Admin'),' ',convert(if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) using latin1)) AS `updated_by` from ((`emp_lk` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `d` on((`d`.`idstorages` = `b`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_emp_org` -- /*!50001 DROP VIEW IF EXISTS `vw_emp_org`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_emp_org` AS select `a`.`emp_org_id` AS `emp_org_id`,`a`.`emp_id` AS `emp_id`,`g`.`file_name` AS `emp_fnm`,concat(trim(ifnull(`f`.`firstname`,'')),' ',trim(ifnull(nullif(`f`.`middlename`,''),'')),convert((case when ((`f`.`middlename` is not null) and (`f`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`f`.`lastname`,''))) AS `emp_nm`,`a`.`comp_id` AS `comp_id`,`b`.`companyname` AS `companyname`,`d`.`file_name` AS `comp_fnm`,`a`.`org_start_dt` AS `org_start_dt`,date_format(`a`.`org_start_dt`,'%Y') AS `org_start_dt_yr`,date_format(`a`.`org_start_dt`,'%M') AS `org_start_dt_mon`,if(isnull(`a`.`org_start_dt`),'No Started',concat(convert(date_format(`a`.`org_start_dt`,'%m-%d-%y') using latin1),' ')) AS `org_start_dt_fmt`,`a`.`org_end_dt` AS `org_end_dt`,date_format(`a`.`org_end_dt`,'%Y') AS `org_end_dt_yr`,date_format(`a`.`org_end_dt`,'%M') AS `org_end_dt_mon`,if(isnull(`a`.`org_end_dt`),'Active',concat(convert(date_format(`a`.`org_end_dt`,'%m-%d-%y') using latin1),' ')) AS `org_end_dt_fmt`,if(isnull(`a`.`org_end_dt`),'Y','N') AS `org_start_end_dt_cur_stat`,`a`.`no_of_days` AS `no_of_days`,timestampdiff(DAY,`a`.`org_start_dt`,ifnull(`a`.`org_end_dt`,now())) AS `no_of_days_fmt`,`a`.`emp_type` AS `emp_type`,if(isnull(`a`.`emp_type`),'No Type',`c`.`lk_val`) AS `emp_type_nm`,ifnull(`a`.`org_forecast`,'0.00') AS `org_forecast`,ifnull(`a`.`org_actual`,'0.00') AS `org_actual`,concat((case when isnull(`a`.`org_actual`) then '0.00' when (`a`.`org_actual` > 999) then convert(concat((trim(round((`a`.`org_actual` / 1000),2)) + 0),'K') using latin1) when (`a`.`org_actual` < 1000) then `a`.`org_actual` end),' of ',(case when isnull(`a`.`org_forecast`) then '0.00' when (`a`.`org_forecast` > 999) then convert(concat((trim(round((`a`.`org_forecast` / 1000),2)) + 0),'K') using latin1) when (`a`.`org_forecast` < 1000) then `a`.`org_forecast` end)) AS `org_actual_forecast`,ifnull(`a`.`org_pcnt`,'0.00') AS `org_pcnt`,ifnull(`a`.`org_amt_forcast`,'0.00') AS `org_amt_forcast`,ifnull(`a`.`org_amt_actual`,'0.00') AS `org_amt_actual`,concat((case when isnull(`a`.`org_amt_actual`) then '0.00' when (`a`.`org_amt_actual` > 999) then convert(concat((trim(round((`a`.`org_amt_actual` / 1000),2)) + 0),'K') using latin1) when (`a`.`org_amt_actual` < 1000) then `a`.`org_amt_actual` end),' of ',(case when isnull(`a`.`org_amt_forcast`) then '0.00' when (`a`.`org_amt_forcast` > 999) then convert(concat((trim(round((`a`.`org_amt_forcast` / 1000),2)) + 0),'K') using latin1) when (`a`.`org_amt_forcast` < 1000) then `a`.`org_amt_forcast` end)) AS `org_amt_actual_forcast`,ifnull(`a`.`org_amt_pcnt`,'0.00') AS `org_amt_pcnt`,ifnull(`a`.`org_vac_use`,'0.00') AS `org_vac_used`,ifnull(`a`.`org_vac_earn`,'0.00') AS `org_vac_earned`,concat((case when isnull(`a`.`org_vac_use`) then '0.00' when (`a`.`org_vac_use` > 999) then convert(concat((trim(round((`a`.`org_vac_use` / 1000),2)) + 0),'K') using latin1) when (`a`.`org_vac_use` < 1000) then `a`.`org_vac_use` end),' of ',(case when isnull(`a`.`org_vac_earn`) then '0.00' when (`a`.`org_vac_earn` > 999) then convert(concat((trim(round((`a`.`org_vac_earn` / 1000),2)) + 0),'K') using latin1) when (`a`.`org_vac_earn` < 1000) then `a`.`org_vac_earn` end)) AS `org_vac_used_earned`,ifnull(`a`.`org_vac_pcnt`,'0.00') AS `org_vac_pcnt`,ifnull(`a`.`org_vac_bal`,'0.00') AS `org_vac_bal`,`a`.`updater` AS `updater`,`s`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(trim(ifnull(`e`.`firstname`,'')),' ',trim(ifnull(nullif(`e`.`middlename`,''),'')),convert((case when ((`e`.`middlename` is not null) and (`e`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`e`.`lastname`,'')))) AS `updater_nm`,`a`.`old_org_hrs_dt` AS `old_org_hrs_dt`,`a`.`last_updated` AS `last_updated`,concat(convert(date_format(`a`.`last_updated`,'%m-%d-%y %H:%i %p') using latin1),' ') AS `last_updated_fmt`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,`a`.`del_by` AS `del_by`,`k`.`file_name` AS `del_by_fnm`,if(isnull(`a`.`del_by`),'Admin',concat(`j`.`firstname`,' ',`j`.`lastname`)) AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,`a`.`archv_by` AS `archv_by`,`h`.`file_name` AS `archv_by_fnm`,if(isnull(`a`.`archv_by`),'Admin',concat(`i`.`firstname`,' ',`i`.`lastname`)) AS `archv_by_nm` from (((((((((((`emp_org` `a` left join `company` `b` on((`a`.`comp_id` = `b`.`comp_id`))) left join `storages` `d` on((`d`.`idstorages` = `b`.`idstorages`))) left join `emp_lk_val` `c` on((`a`.`emp_type` = `c`.`idemp_lk_value`))) left join `emp` `e` on((`a`.`updater` = `e`.`emp_id`))) left join `storages` `s` on((`e`.`idstorages` = `s`.`idstorages`))) left join `emp` `f` on((`f`.`emp_id` = `a`.`emp_id`))) left join `storages` `g` on((`g`.`idstorages` = `f`.`idstorages`))) left join `emp` `j` on((`a`.`del_by` = `j`.`emp_id`))) left join `storages` `k` on((`k`.`idstorages` = `j`.`idstorages`))) left join `emp` `i` on((`a`.`archv_by` = `i`.`emp_id`))) left join `storages` `h` on((`h`.`idstorages` = `e`.`idstorages`))) order by `a`.`emp_id` */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_emp_org_access` -- /*!50001 DROP VIEW IF EXISTS `vw_emp_org_access`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_emp_org_access` AS select `a`.`idemp_org_access` AS `idemp_org_access`,`a`.`emp_access_to` AS `emp_access_to`,`c`.`file_name` AS `emp_access_to_fnm`,concat(`b`.`firstname`,' ',`b`.`lastname`) AS `emp_access_to_nm`,`a`.`emp_access_of` AS `emp_access_of`,`e`.`file_name` AS `emp_access_of_fnm`,concat(`d`.`firstname`,' ',`d`.`lastname`) AS `emp_access_of_nm`,`a`.`acc_from_dt` AS `acc_from_dt`,date_format(`a`.`acc_from_dt`,'%m-%d-%y') AS `acc_from_dt_fmt`,date_format(`a`.`acc_from_dt`,'%Y') AS `acc_from_dt_yr`,date_format(`a`.`acc_from_dt`,'%M') AS `acc_from_dt_mon`,`a`.`acc_to_dt` AS `acc_to_dt`,date_format(`a`.`acc_to_dt`,'%m-%d-%y') AS `acc_to_dt_fmt`,date_format(`a`.`acc_to_dt`,'%Y') AS `acc_to_dt_yr`,date_format(`a`.`acc_to_dt`,'%M') AS `acc_to_dt_mon`,`a`.`acc_type` AS `acc_type`,`a`.`updater` AS `updater`,`g`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`f`.`firstname`,' ',`f`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((((((`emp_org_access` `a` left join `emp` `b` on((`a`.`emp_access_to` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `emp` `d` on((`a`.`emp_access_of` = `d`.`emp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `emp` `f` on((`a`.`updater` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_emp_org_hrs` -- /*!50001 DROP VIEW IF EXISTS `vw_emp_org_hrs`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_emp_org_hrs` AS select `a`.`idemp_org_hrs` AS `idemp_org_hrs`,`a`.`emp_org_id` AS `emp_org_id`,`b`.`emp_id` AS `emp_id`,`d`.`file_name` AS `emp_fnm`,concat(`c`.`firstname`,' ',`c`.`lastname`) AS `emp_nm`,`b`.`comp_id` AS `comp_id`,`f`.`file_name` AS `comp_fnm`,`e`.`companyname` AS `comp_nm`,`b`.`org_start_dt` AS `org_start_dt`,if(isnull(`b`.`org_start_dt`),'Not Started',date_format(`b`.`org_start_dt`,'%m-%d-%y')) AS `org_start_dt_fmt`,date_format(`b`.`org_start_dt`,'%Y') AS `org_start_dt_yr`,date_format(`b`.`org_start_dt`,'%M') AS `org_start_dt_mon`,`b`.`org_end_dt` AS `org_end_dt`,if(isnull(`b`.`org_end_dt`),'Full Time',date_format(`b`.`org_end_dt`,'%m-%d-%y')) AS `org_end_dt_fmt`,date_format(`b`.`org_end_dt`,'%Y') AS `org_end_dt_yr`,date_format(`b`.`org_end_dt`,'%M') AS `org_end_dt_mon`,if(isnull(`b`.`org_end_dt`),'Y','N') AS `org_start_end_dt_cur_stat`,`b`.`emp_type` AS `emp_type`,if(isnull(`b`.`emp_type`),'No Type',`g`.`lk_val`) AS `emp_type_nm`,`a`.`from_dt` AS `from_dt`,date_format(`a`.`from_dt`,'%m-%d-%y') AS `from_dt_fmt`,date_format(`a`.`from_dt`,'%Y') AS `from_yr`,date_format(`a`.`from_dt`,'%M') AS `from_mon`,`a`.`to_dt` AS `to_dt`,date_format(`a`.`to_dt`,'%m-%d-%y') AS `to_dt_fmt`,date_format(`a`.`to_dt`,'%Y') AS `to_yr`,date_format(`a`.`to_dt`,'%M') AS `to_mon`,if(isnull(`a`.`to_dt`),concat(date_format(`a`.`from_dt`,'%m-%d-%y'),' - ','Active'),concat(date_format(`a`.`from_dt`,'%m-%d-%y'),' - ',date_format(`a`.`to_dt`,'%m-%d-%y'))) AS `duration`,concat(ifnull(`f`.`file_name`,''),' ',ifnull(`e`.`companyname`,'No Company'),' - ',ifnull(`n`.`lk_val`,'No Title'),' - ','( ',convert(ifnull(if(isnull(`a`.`to_dt`),concat(date_format(`a`.`from_dt`,'%m-%d-%y'),' - ','Active'),concat(date_format(`a`.`from_dt`,'%m-%d-%y'),' - ',date_format(`a`.`to_dt`,'%m-%d-%y'))),'No Duration ') using latin1),' ) ') AS `comp_fnm_nm_title_duration`,if(isnull(`a`.`to_dt`),'Y','N') AS `from_to_dt_cur_stat`,`a`.`frm_to_org_hrs_days` AS `frm_to_org_hrs_days`,ifnull(`a`.`frm_to_org_hrs_days`,(to_days(`a`.`tentative_en_dt`) - to_days(`a`.`from_dt`))) AS `frm_to_org_hrs_days_fmt`,`a`.`tentative_en_dt` AS `tentative_en_dt`,if(isnull(`a`.`tentative_en_dt`),'Ended',date_format(`a`.`tentative_en_dt`,'%m-%d-%y')) AS `tentative_en_dt_fmt`,if(isnull(`a`.`tentative_en_dt`),'Ended',timestampdiff(DAY,`a`.`tentative_en_dt`,now())) AS `tentative_en_dt_fmt_no`,if(isnull(`a`.`tentative_en_dt`),'Ended',date_format(`a`.`tentative_en_dt`,'%b-%Y')) AS `tentative_en_dt_fmt2`,ifnull(`a`.`org_hrs_forecast`,'0.00') AS `org_hrs_forecast`,ifnull(`a`.`org_hrs_actual`,'0.00') AS `org_hrs_actual`,concat((case when isnull(`a`.`org_hrs_actual`) then '0.00' when (`a`.`org_hrs_actual` > 999) then convert(concat((trim(round((`a`.`org_hrs_actual` / 1000),2)) + 0),'K') using latin1) when (`a`.`org_hrs_actual` < 1000) then `a`.`org_hrs_actual` end),' of ',(case when isnull(`a`.`org_hrs_forecast`) then '0.00' when (`a`.`org_hrs_forecast` > 999) then convert(concat((trim(round((`a`.`org_hrs_forecast` / 1000),2)) + 0),'K') using latin1) when (`a`.`org_hrs_forecast` < 1000) then `a`.`org_hrs_forecast` end)) AS `org_hrs_actual_forecast`,ifnull(`a`.`org_hrs_pcnt`,'0.00') AS `org_hrs_pcnt`,ifnull(`a`.`org_hrs_amt_forcast`,'0.00') AS `org_hrs_amt_forcast`,ifnull(`a`.`org_hrs_amt_actual`,'0.00') AS `org_hrs_amt_actual`,concat((case when isnull(`a`.`org_hrs_amt_actual`) then '0.00' when (`a`.`org_hrs_amt_actual` > 999) then convert(concat((trim(round((`a`.`org_hrs_amt_actual` / 1000),2)) + 0),'K') using latin1) when (`a`.`org_hrs_amt_actual` < 1000) then `a`.`org_hrs_amt_actual` end),' of ',(case when isnull(`a`.`org_hrs_amt_forcast`) then '0.00' when (`a`.`org_hrs_amt_forcast` > 999) then convert(concat((trim(round((`a`.`org_hrs_amt_forcast` / 1000),2)) + 0),'K') using latin1) when (`a`.`org_hrs_amt_forcast` < 1000) then `a`.`org_hrs_amt_forcast` end)) AS `org_hrs_amt_actual_forcast`,ifnull(`a`.`org_hrs_amt_pcnt`,'0.00') AS `org_hrs_amt_pcnt`,`a`.`emp_hrs_title` AS `emp_hrs_title`,if(isnull(`a`.`emp_hrs_title`),'No Title',`n`.`lk_val`) AS `emp_hrs_title_nm`,ifnull(`a`.`org_hrs_vac_earn`,'0.00') AS `org_hrs_vac_earn`,ifnull(`a`.`org_hrs_vac_use`,'0.00') AS `org_hrs_vac_use`,concat((case when isnull(`a`.`org_hrs_vac_use`) then '0.00' when (`a`.`org_hrs_vac_use` > 999) then convert(concat((trim(round((`a`.`org_hrs_vac_use` / 1000),2)) + 0),'K') using latin1) when (`a`.`org_hrs_vac_use` < 1000) then `a`.`org_hrs_vac_use` end),' of ',(case when isnull(`a`.`org_hrs_vac_earn`) then '0.00' when (`a`.`org_hrs_vac_earn` > 999) then convert(concat((trim(round((`a`.`org_hrs_vac_earn` / 1000),2)) + 0),'K') using latin1) when (`a`.`org_hrs_vac_earn` < 1000) then `a`.`org_hrs_vac_earn` end)) AS `org_hrs_vac_use_earn`,ifnull(`a`.`org_hrs_vac_bal`,'0.00') AS `org_hrs_vac_bal`,ifnull(`a`.`org_hrs_vac_pcnt`,'0.00') AS `org_hrs_vac_pcnt`,`a`.`idstorages` AS `idstorages`,`a`.`hrs_cy_run` AS `hrs_cy_run`,(case when (`a`.`hrs_cy_run` = 'N') then 'New' when (`a`.`hrs_cy_run` = 'P') then 'Altered' when (`a`.`hrs_cy_run` = 'Y') then 'Present' end) AS `hrs_cy_run_nm`,`a`.`updater` AS `updater`,`i`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`h`.`firstname`,' ',`h`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(date_format(`a`.`del_dt`,'%Y'),'Not Deleted') AS `del_dt_yr`,ifnull(date_format(`a`.`del_dt`,'%M'),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`k`.`file_name` AS `del_by_fnm`,if(isnull(`a`.`del_by`),'Admin',concat(`j`.`firstname`,' ',`j`.`lastname`)) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then date_format(`a`.`archv_dt`,'%Y') when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then date_format(`a`.`archv_dt`,'%M') when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`m`.`file_name` AS `archv_by_fnm`,if(isnull(`a`.`archv_by`),'Admin',concat(`l`.`firstname`,' ',`l`.`lastname`)) AS `archv_by_nm`,`a`.`old_hrs_dt` AS `old_hrs_dt`,`a`.`cy_st_date` AS `cy_st_date` from (((((((((((((`emp_org_hrs` `a` left join `emp_org` `b` on((`a`.`emp_org_id` = `b`.`emp_org_id`))) left join `emp` `c` on((`b`.`emp_id` = `c`.`emp_id`))) left join `storages` `d` on((`c`.`idstorages` = `d`.`idstorages`))) left join `company` `e` on((`b`.`comp_id` = `e`.`comp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `emp_lk_val` `g` on((`b`.`emp_type` = `g`.`idemp_lk_value`))) left join `emp` `h` on((`a`.`updater` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) left join `emp` `j` on((`a`.`del_by` = `j`.`emp_id`))) left join `storages` `k` on((`j`.`idstorages` = `k`.`idstorages`))) left join `emp` `l` on((`a`.`archv_by` = `l`.`emp_id`))) left join `storages` `m` on((`l`.`idstorages` = `m`.`idstorages`))) left join `emp_lk_val` `n` on((`a`.`emp_hrs_title` = `n`.`idemp_lk_value`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_emp_org_hrs_days` -- /*!50001 DROP VIEW IF EXISTS `vw_emp_org_hrs_days`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_emp_org_hrs_days` AS select `a`.`idemp_org_hrs_days` AS `idemp_org_hrs_days`,`b`.`emp_org_id` AS `emp_org_id`,`c`.`emp_id` AS `emp_id`,`e`.`file_name` AS `emp_fnm`,concat(`d`.`firstname`,' ',`d`.`lastname`) AS `emp_nm`,`c`.`comp_id` AS `comp_id`,`g`.`file_name` AS `comp_fnm`,`f`.`companyname` AS `comp_nm`,`c`.`org_start_dt` AS `org_start_dt`,if(isnull(`c`.`org_start_dt`),'Not Started',date_format(`c`.`org_start_dt`,'%m-%d-%y')) AS `org_start_dt_fmt`,date_format(`c`.`org_start_dt`,'%Y') AS `org_start_dt_yr`,date_format(`c`.`org_start_dt`,'%M') AS `org_start_dt_mon`,`c`.`org_end_dt` AS `org_end_dt`,if(isnull(`c`.`org_end_dt`),'Full Time',date_format(`c`.`org_end_dt`,'%m-%d-%y')) AS `org_end_dt_fmt`,date_format(`c`.`org_end_dt`,'%Y') AS `org_end_dt_yr`,date_format(`c`.`org_end_dt`,'%M') AS `org_end_dt_mon`,`c`.`no_of_days` AS `no_of_days`,ifnull(`c`.`no_of_days`,(to_days(`c`.`tentative_en_dt`) - to_days(`c`.`org_start_dt`))) AS `no_of_days_vir`,`c`.`emp_type` AS `emp_type`,`h`.`lk_val` AS `emp_type_nm`,`c`.`run_script` AS `run_script`,`a`.`idemp_org_hrs` AS `idemp_org_hrs`,`b`.`from_dt` AS `from_dt`,date_format(`b`.`from_dt`,'%m-%d-%y') AS `from_dt_fmt`,date_format(`b`.`from_dt`,'%Y') AS `from_yr`,date_format(`b`.`from_dt`,'%M') AS `from_mon`,`b`.`to_dt` AS `to_dt`,date_format(`b`.`to_dt`,'%m-%d-%y') AS `to_dt_fmt`,date_format(`b`.`to_dt`,'%Y') AS `to_yr`,date_format(`b`.`to_dt`,'%M') AS `to_mon`,`b`.`frm_to_org_hrs_days` AS `frm_to_org_hrs_days`,ifnull(`b`.`frm_to_org_hrs_days`,(to_days(`b`.`tentative_en_dt`) - to_days(`b`.`from_dt`))) AS `frm_to_org_hrs_days_fmt`,`b`.`tentative_en_dt` AS `tentative_en_dt`,date_format(`b`.`tentative_en_dt`,'%m-%d-%y') AS `tentative_en_dt_fmt`,`b`.`org_hrs_forecast` AS `org_hrs_forecast`,`b`.`org_hrs_actual` AS `org_hrs_actual`,`b`.`org_hrs_pcnt` AS `org_hrs_pcnt`,`b`.`emp_hrs_title` AS `emp_hrs_title`,`r`.`lk_val` AS `emp_hrs_title_nm`,`a`.`tm_zn` AS `tm_zn`,`a`.`start_tm` AS `start_tm`,time_format(`a`.`start_tm`,'%h:%i %p') AS `start_tm_fmt`,`a`.`end_tm` AS `end_tm`,time_format(`a`.`end_tm`,'%h:%i %p') AS `end_tm_fmt`,`a`.`hrs_tm` AS `hrs_tm`,`a`.`hrs_tm_nm` AS `hrs_tm_nm`,`a`.`off_time` AS `off_time`,`a`.`off_time_nm` AS `off_time_nm`,`a`.`days` AS `days`,(case when (`a`.`days` = 1) then 'Sunday' when (`a`.`days` = 2) then 'Monday' when (`a`.`days` = 3) then 'Tuesday' when (`a`.`days` = 4) then 'Wednesday' when (`a`.`days` = 5) then 'Thursday' when (`a`.`days` = 6) then 'Friday' when (`a`.`days` = 7) then 'Saturday' when (`a`.`days` = 8) then 'Mon To Fri' when (`a`.`days` = 9) then 'Mon To Sat' when (`a`.`days` = 10) then 'All Days' end) AS `days_nm`,`a`.`pay_amt` AS `pay_amt`,`a`.`look_street_no_id` AS `look_street_no_id`,`n`.`country_id` AS `country_id`,`n`.`con_name` AS `con_name`,`m`.`state_id` AS `state_id`,`m`.`state_name` AS `state_name`,`t`.`idlook_county_district` AS `idlook_county_district`,`t`.`county_district_city_nm` AS `county_district_city_nm`,`l`.`city_id` AS `city_id`,`l`.`city_name` AS `city_name`,`j`.`postal_id` AS `postal_id`,`k`.`zip_code` AS `zip_code`,`i`.`look_street_id` AS `look_street_id`,`i`.`look_street_no` AS `look_street_no`,`j`.`street_name` AS `street_name`,`j`.`street_type` AS `street_type`,`o`.`lk_val` AS `street_type_nm`,`a`.`house_apt_type` AS `house_apt_type`,`s`.`lk_val` AS `house_apt_type_nm`,`a`.`house_apt_no` AS `house_apt_no`,if(isnull(`a`.`look_street_no_id`),'No Address',concat(`i`.`look_street_no`,' ',ifnull(`j`.`street_name`,'No Streeet'),' ',ifnull(`o`.`lk_val`,'No Street Type'),', ',if(isnull(`a`.`house_apt_type`),'',`s`.`lk_val`),' ',ifnull(`a`.`house_apt_no`,''),', ',ifnull(`l`.`city_name`,'No City'),', ',ifnull(`t`.`county_district_city_nm`,'No County / District'),', ',ifnull(`m`.`state_name`,'No State'),' ',`k`.`zip_code`,' ','(',ifnull(`n`.`con_name`,'No Country'),')')) AS `addresses`,`a`.`updater` AS `updater`,`q`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`p`.`firstname`,' ',`p`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`cy_days_st_dt` AS `cy_days_st_dt`,`a`.`hrs_day_cy_run` AS `hrs_day_cy_run` from (((((((((((((((((((`emp_org_hrs_days` `a` left join `emp_org_hrs` `b` on((`a`.`idemp_org_hrs` = `b`.`idemp_org_hrs`))) left join `emp_org` `c` on((`b`.`emp_org_id` = `c`.`emp_org_id`))) left join `emp` `d` on((`c`.`emp_id` = `d`.`emp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `company` `f` on((`c`.`comp_id` = `f`.`comp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `emp_lk_val` `h` on((`c`.`emp_type` = `h`.`idemp_lk_value`))) left join `look_street_no` `i` on((`a`.`look_street_no_id` = `i`.`look_street_no_id`))) left join `look_street` `j` on((`i`.`look_street_id` = `j`.`look_street_id`))) left join `look_postal` `k` on((`j`.`postal_id` = `k`.`postal_id`))) left join `look_city` `l` on((`k`.`city_id` = `l`.`city_id`))) left join `look_county_district` `t` on((`l`.`idlook_county_district` = `t`.`idlook_county_district`))) left join `look_state` `m` on((`t`.`state_id` = `m`.`state_id`))) left join `look_country` `n` on((`m`.`country_id` = `n`.`country_id`))) left join `feature_lk_val` `o` on((`j`.`street_type` = `o`.`idfeature_lk_val`))) left join `emp` `p` on((`a`.`updater` = `p`.`emp_id`))) left join `storages` `q` on((`p`.`idstorages` = `q`.`idstorages`))) left join `emp_lk_val` `r` on((`b`.`emp_hrs_title` = `r`.`idemp_lk_value`))) left join `feature_lk_val` `s` on((`a`.`house_apt_type` = `s`.`idfeature_lk_val`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_emp_org_hrs_days_cy` -- /*!50001 DROP VIEW IF EXISTS `vw_emp_org_hrs_days_cy`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8mb4 */; /*!50001 SET character_set_results = utf8mb4 */; /*!50001 SET collation_connection = utf8mb4_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_emp_org_hrs_days_cy` AS select `a`.`idemp_org_hrs_days_cy` AS `idemp_org_hrs_days_cy`,`c`.`emp_org_id` AS `emp_org_id`,`d`.`emp_id` AS `emp_id`,`f`.`file_name` AS `emp_fnm`,concat(`e`.`firstname`,' ',`e`.`lastname`) AS `emp_nm`,`d`.`comp_id` AS `comp_id`,`h`.`file_name` AS `comp_fnm`,`g`.`companyname` AS `comp_nm`,`d`.`org_start_dt` AS `org_start_dt`,if(isnull(`d`.`org_start_dt`),'Not Started',convert(date_format(`d`.`org_start_dt`,'%m-%d-%y') using utf8mb4)) AS `org_start_dt_fmt`,`d`.`org_end_dt` AS `org_end_dt`,if(isnull(`d`.`org_end_dt`),'Full Time',convert(date_format(`d`.`org_end_dt`,'%m-%d-%y') using utf8mb4)) AS `org_end_dt_fmt`,`d`.`no_of_days` AS `no_of_days`,ifnull(`d`.`no_of_days`,(to_days(`d`.`tentative_en_dt`) - to_days(`d`.`org_start_dt`))) AS `no_of_days_fmt`,`d`.`emp_type` AS `emp_type`,if(isnull(`d`.`emp_type`),'No Type',`i`.`lk_val`) AS `emp_type_nm`,`b`.`idemp_org_hrs` AS `idemp_org_hrs`,`c`.`from_dt` AS `from_dt`,date_format(`c`.`from_dt`,'%m-%d-%y') AS `from_dt_fmt`,`c`.`to_dt` AS `to_dt`,date_format(`c`.`to_dt`,'%m-%d-%y') AS `to_dt_fmt`,`c`.`frm_to_org_hrs_days` AS `frm_to_org_hrs_days`,ifnull(`c`.`frm_to_org_hrs_days`,(to_days(`c`.`tentative_en_dt`) - to_days(`c`.`from_dt`))) AS `frm_to_org_hrs_days_fmt`,`c`.`tentative_en_dt` AS `tentative_en_dt`,if(isnull(`c`.`tentative_en_dt`),'Ended',convert(date_format(`c`.`tentative_en_dt`,'%m-%d-%y') using utf8mb4)) AS `tentative_en_dt_fmt`,`c`.`org_hrs_forecast` AS `org_hrs_forecast`,`c`.`org_hrs_actual` AS `org_hrs_actual`,`c`.`org_hrs_pcnt` AS `org_hrs_pcnt`,`c`.`emp_hrs_title` AS `emp_hrs_title`,if(isnull(`c`.`emp_hrs_title`),'No Title',`q`.`lk_val`) AS `emp_hrs_title_nm`,`a`.`idemp_org_hrs_days` AS `idemp_org_hrs_days`,`b`.`start_tm` AS `start_tm`,time_format(`b`.`start_tm`,'%h:%i %p') AS `start_tm_fmt`,`b`.`end_tm` AS `end_tm`,time_format(`b`.`end_tm`,'%h:%i %p') AS `end_tm_fmt`,`b`.`hrs_tm` AS `hrs_tm`,`b`.`off_time` AS `off_time`,`b`.`off_time_nm` AS `off_time_nm`,`b`.`days` AS `days`,`b`.`pay_amt` AS `pay_amt`,`b`.`look_street_no_id` AS `look_street_no_id`,`p`.`country_id` AS `country_id`,`p`.`con_name` AS `con_name`,`o`.`state_id` AS `state_id`,`o`.`state_name` AS `state_name`,`y`.`idlook_county_district` AS `idlook_county_district`,`y`.`county_district_city_nm` AS `county_district_city_nm`,`n`.`city_id` AS `city_id`,`n`.`city_name` AS `city_name`,`m`.`postal_id` AS `postal_id`,`m`.`zip_code` AS `zip_code`,`k`.`look_street_id` AS `look_street_id`,`j`.`look_street_no` AS `look_street_no`,`k`.`street_name` AS `street_name`,`k`.`street_type` AS `street_type`,`l`.`lk_val` AS `street_type_nm`,`b`.`house_apt_type` AS `house_apt_type`,`v`.`lk_val` AS `house_apt_type_nm`,`b`.`house_apt_no` AS `house_apt_no`,if(isnull(`b`.`look_street_no_id`),'No Address',concat(`j`.`look_street_no`,' ',`k`.`street_name`,' ',`l`.`lk_val`,', ',if(isnull(`b`.`house_apt_type`),'',`v`.`lk_val`),' ',ifnull(`b`.`house_apt_no`,''),', ',ifnull(`n`.`city_name`,'No City'),', ',ifnull(`y`.`county_district_city_nm`,'No County'),', ',ifnull(`o`.`state_name`,'No State'),' ',ifnull(`m`.`zip_code`,'No Zip Code'),' ','(',ifnull(`p`.`con_name`,'No Country'),')')) AS `addresses`,`a`.`day_start_tm` AS `day_start_tm`,date_format(`a`.`day_start_tm`,'%m-%d-%y %h:%i %p') AS `day_start_tm_fmt`,date_format(`a`.`day_start_tm`,'%m-%d-%y') AS `day_start_tm_dt`,date_format(`a`.`day_start_tm`,'%h:%i %p') AS `day_start_tm_dt_tm`,dayname(`a`.`day_start_tm`) AS `day_start_tm_day`,(case when isnull(`a`.`day_start_tm`) then 'Unused' when (date_format(`a`.`day_start_tm`,'%y-%m-%d') < date_format(now(),'%y-%m-%d')) then 'Past' when (date_format(`a`.`day_start_tm`,'%y-%m-%d') > date_format(now(),'%y-%m-%d')) then 'Future' else 'Today' end) AS `day_start_tm_vir`,date_format(`a`.`day_start_tm`,'%Y') AS `day_start_tm_yr`,date_format(`a`.`day_start_tm`,'%M') AS `day_start_tm_mon`,`a`.`day_end_tm` AS `day_end_tm`,date_format(`a`.`day_end_tm`,'%m-%d-%y %h:%i %p') AS `day_end_tm_fmt`,date_format(`a`.`day_end_tm`,'%h:%i %p') AS `day_end_tm_fmt_tm`,dayname(`a`.`day_end_tm`) AS `day_end_tm_day`,date_format(`a`.`day_end_tm`,'%Y') AS `day_end_tm_yr`,date_format(`a`.`day_end_tm`,'%M') AS `day_end_tm_mon`,`a`.`day_hrs_forcast_tm` AS `day_hrs_forcast_tm`,`a`.`day_hrs_forcast_tm_nm` AS `day_hrs_forcast_tm_nm`,ifnull(`a`.`day_off_forcast`,'0:00') AS `day_off_forcast`,ifnull(`a`.`day_off_forcast_nm`,'0.00') AS `day_off_forcast_nm`,round(`a`.`day_pay_forcast_amt`,2) AS `day_pay_forcast_amt`,`a`.`day_hrs_actual_tm` AS `day_hrs_actual_tm`,`a`.`day_hrs_actual_tm_nm` AS `day_hrs_actual_tm_nm`,`a`.`day_off_actual` AS `day_off_actual`,`a`.`day_off_actual_nm` AS `day_off_actual_nm`,`a`.`day_pay_actual_amt` AS `day_pay_actual_amt`,concat(convert(if(isnull(`a`.`day_start_tm`),'Not Start Date',convert(date_format(`a`.`day_start_tm`,'%m-%d-%y') using utf8mb4)) using utf8),' ',convert(if(isnull(`a`.`day_start_tm`),'Not Start Day',convert(dayname(`a`.`day_start_tm`) using utf8mb4)) using utf8),' ',convert(if(isnull(`a`.`day_start_tm`),'Not Start Time',convert(date_format(`a`.`day_start_tm`,'%h:%i %p') using utf8mb4)) using utf8),' To ',convert(if(isnull(`a`.`day_end_tm`),'No End Time',convert(date_format(`a`.`day_end_tm`,'%h:%i %p') using utf8mb4)) using utf8),' ',convert(ifnull(`b`.`tm_zn`,'No Time Zone') using utf8),' ',' - Break - ',ifnull(cast(`b`.`off_time_nm` as char charset utf8),' None'),' : Hours : ',ifnull(cast(`a`.`day_hrs_forcast_tm_nm` as char charset utf8),' No Forecast Hours')) AS `days_schedule`,concat('Break : ',ifnull(`a`.`day_off_actual_nm`,'None'),' ','Worked :',ifnull(`a`.`day_hrs_actual_tm_nm`,'No Hours')) AS `days_actual`,if(isnull(`a`.`day_start_tm`),'Not Started',convert(date_format(`a`.`day_start_tm`,'%Y - %b') using utf8mb4)) AS `day_start_yr_mon`,`b`.`updater` AS `hrs_days_updater`,`x`.`file_name` AS `hrs_days_updater_fnm`,if(isnull(`b`.`updater`),'Admin',concat(`w`.`firstname`,' ',`w`.`lastname`)) AS `hrs_days_updater_nm`,`b`.`updated` AS `hrs_days_updated`,date_format(`b`.`updated`,'%m-%d-%y %h:%i %p') AS `hrs_days_updated_fmt`,`c`.`del_dt` AS `hrs_del_dt`,date_format(`c`.`del_dt`,'%m-%d-%y %h:%i %p') AS `hrs_del_dt_fmt`,`c`.`del_by` AS `hrs_del_by`,`s`.`file_name` AS `hrs_del_by_fnm`,if(isnull(`c`.`del_by`),'Admin',concat(`r`.`firstname`,' ',`r`.`lastname`)) AS `hrs_del_by_nm`,`c`.`del_day` AS `hrs_del_day`,(to_days((date_format(`c`.`del_dt`,'%y-%m-%d') + interval `c`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `hrs_del_day_vir`,`c`.`archv_dt` AS `hrs_archv_dt`,date_format(`c`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `hrs_archv_dt_fmt`,`c`.`archv_by` AS `hrs_archv_by`,`u`.`file_name` AS `hrs_archv_by_fnm`,if(isnull(`c`.`archv_by`),'Admin',concat(`t`.`firstname`,' ',`t`.`lastname`)) AS `hrs_archv_by_nm`,`b`.`hrs_day_cy_run` AS `hrs_day_cy_run` from ((((((((((((((((((((((((`emp_org_hrs_days_cy` `a` left join `emp_org_hrs_days` `b` on((`a`.`idemp_org_hrs_days` = `b`.`idemp_org_hrs_days`))) left join `emp_org_hrs` `c` on((`b`.`idemp_org_hrs` = `c`.`idemp_org_hrs`))) left join `emp_org` `d` on((`c`.`emp_org_id` = `d`.`emp_org_id`))) left join `emp` `e` on((`d`.`emp_id` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `company` `g` on((`d`.`comp_id` = `g`.`comp_id`))) left join `storages` `h` on((`g`.`idstorages` = `h`.`idstorages`))) left join `emp_lk_val` `i` on((`d`.`emp_type` = `i`.`idemp_lk_value`))) left join `look_street_no` `j` on((`b`.`look_street_no_id` = `j`.`look_street_no_id`))) left join `look_street` `k` on((`j`.`look_street_id` = `k`.`look_street_id`))) left join `feature_lk_val` `l` on((`k`.`street_type` = `l`.`idfeature_lk_val`))) left join `look_postal` `m` on((`k`.`postal_id` = `m`.`postal_id`))) left join `look_city` `n` on((`m`.`city_id` = `n`.`city_id`))) left join `look_county_district` `y` on((`n`.`idlook_county_district` = `y`.`idlook_county_district`))) left join `look_state` `o` on((`y`.`state_id` = `o`.`state_id`))) left join `look_country` `p` on((`o`.`country_id` = `p`.`country_id`))) left join `emp_lk_val` `q` on((`c`.`emp_hrs_title` = `q`.`idemp_lk_value`))) left join `emp` `r` on((`c`.`del_by` = `r`.`emp_id`))) left join `storages` `s` on((`r`.`idstorages` = `s`.`idstorages`))) left join `emp` `t` on((`c`.`archv_by` = `t`.`emp_id`))) left join `storages` `u` on((`t`.`idstorages` = `u`.`idstorages`))) left join `feature_lk_val` `v` on((`b`.`house_apt_type` = `v`.`idfeature_lk_val`))) left join `emp` `w` on((`b`.`updater` = `w`.`emp_id`))) left join `storages` `x` on((`w`.`idstorages` = `x`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_emp_org_vac` -- /*!50001 DROP VIEW IF EXISTS `vw_emp_org_vac`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_emp_org_vac` AS select `a`.`idemp_org_vac` AS `idemp_org_vac`,`c`.`emp_org_id` AS `emp_org_id`,`c`.`emp_id` AS `emp_id`,`e`.`file_name` AS `emp_fnm`,concat(`d`.`firstname`,' ',`d`.`lastname`) AS `emp_nm`,`c`.`comp_id` AS `comp_id`,`g`.`file_name` AS `comp_fnm`,`f`.`companyname` AS `comp_nm`,`c`.`org_start_dt` AS `org_start_dt`,if(isnull(`c`.`org_start_dt`),'Not Started',date_format(`c`.`org_start_dt`,'%m-%d-%y')) AS `org_start_dt_fmt`,`c`.`org_end_dt` AS `org_end_dt`,if(isnull(`c`.`org_end_dt`),'Full Time',date_format(`c`.`org_end_dt`,'%m-%d-%y')) AS `org_end_dt_fmt`,(case when (`c`.`org_start_dt` and (`c`.`org_end_dt` is not null)) then concat(date_format(`c`.`org_start_dt`,'%m-%d-%y'),' ',date_format(`c`.`org_end_dt`,'%m-%d-%y')) when (isnull(`c`.`org_end_dt`) and isnull(`c`.`org_start_dt`)) then 'Not Started' when (isnull(`c`.`org_end_dt`) and (`c`.`org_start_dt` is not null)) then concat(date_format(`c`.`org_start_dt`,'%m-%d-%y'),' - ','Full Time') end) AS `org_st_e_dt_fmt`,`c`.`no_of_days` AS `no_of_days`,ifnull(`c`.`no_of_days`,(to_days(`c`.`tentative_en_dt`) - to_days(`c`.`org_start_dt`))) AS `no_of_days_vir`,`c`.`tentative_en_dt` AS `org_tentative_en_dt`,date_format(`c`.`tentative_en_dt`,'%m-%d-%y') AS `org_tentative_en_dt_fmt`,`c`.`emp_type` AS `emp_type`,`h`.`lk_val` AS `emp_type_fmt`,`a`.`idemp_org_hrs` AS `idemp_org_hrs`,`b`.`from_dt` AS `from_dt`,date_format(`b`.`from_dt`,'%m-%d-%y') AS `from_dt_fmt`,`b`.`to_dt` AS `to_dt`,date_format(`b`.`to_dt`,'%m-%d-%y') AS `to_dt_fmt`,(case when (`b`.`from_dt` and (`b`.`to_dt` is not null)) then concat(date_format(`b`.`from_dt`,'%m-%d-%y'),' ',date_format(`b`.`to_dt`,'%m-%d-%y')) when (isnull(`b`.`to_dt`) and isnull(`b`.`from_dt`)) then 'To Be Scheduled' when (isnull(`b`.`to_dt`) and (`b`.`from_dt` is not null)) then concat(date_format(`b`.`from_dt`,'%m-%d-%y'),' - ','') end) AS `from_to_dt_fmt`,concat(ifnull(`g`.`file_name`,''),' ',ifnull(`f`.`companyname`,'No Company '),' - ',ifnull(`i`.`lk_val`,'No Title'),' - ','( ',convert(ifnull(if(isnull(`b`.`to_dt`),concat(date_format(`b`.`from_dt`,'%m-%d-%y'),' - ','Active'),concat(date_format(`b`.`from_dt`,'%m-%d-%y'),' - ',date_format(`b`.`to_dt`,'%m-%d-%y'))),'No Duration ') using latin1),' ) ') AS `comp_fnm_nm_title_duration`,`b`.`frm_to_org_hrs_days` AS `frm_to_org_hrs_days`,ifnull(`b`.`frm_to_org_hrs_days`,(to_days(`b`.`tentative_en_dt`) - to_days(`b`.`from_dt`))) AS `frm_to_org_hrs_days_vir`,`b`.`tentative_en_dt` AS `tentative_en_dt`,date_format(`b`.`tentative_en_dt`,'%m-%d-%y') AS `tentative_en_dt_fmt`,`b`.`emp_hrs_title` AS `emp_hrs_title`,`i`.`lk_val` AS `emp_hrs_title_nm`,`a`.`vac_type` AS `vac_type`,`a`.`off_tm_days` AS `off_tm_days`,`a`.`off_tm_calc` AS `off_tm_calc`,`a`.`hrs_earn` AS `hrs_earn`,`a`.`hrs_use` AS `hrs_use`,concat(`a`.`hrs_use`,' of ',`a`.`hrs_earn`) AS `hrs_use_earn`,`a`.`hrs_bal` AS `hrs_bal`,`a`.`hrs_pcnt` AS `hrs_pcnt`,`a`.`updater` AS `updater`,`k`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`j`.`firstname`,' ',`j`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`del_dt` AS `del_dt`,if(isnull(`a`.`del_dt`),'Not Deleted',date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p')) AS `del_dt_fmt`,if(isnull(`a`.`del_dt`),'Not Deleted',date_format(`a`.`del_dt`,'%Y')) AS `del_dt_yr`,if(isnull(`a`.`del_dt`),'Not Deleted',date_format(`a`.`del_dt`,'%M')) AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`m`.`file_name` AS `del_by_fnm`,if(isnull(`a`.`del_by`),'Admin',concat(`l`.`firstname`,' ',`l`.`lastname`)) AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,if(isnull(`a`.`archv_dt`),'Not Archive',date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p')) AS `archv_dt_fmt`,if(isnull(`a`.`archv_dt`),'Not Archive',date_format(`a`.`archv_dt`,'%Y')) AS `archv_dt_yr`,if(isnull(`a`.`archv_dt`),'Not Deleted',date_format(`a`.`archv_dt`,'%M')) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`o`.`file_name` AS `archv_by_fnm`,if(isnull(`a`.`archv_by`),'Admin',concat(`n`.`firstname`,' ',`n`.`lastname`)) AS `archv_by_nm` from ((((((((((((((`emp_org_vac` `a` left join `emp_org_hrs` `b` on((`a`.`idemp_org_hrs` = `b`.`idemp_org_hrs`))) left join `emp_org` `c` on((`b`.`emp_org_id` = `c`.`emp_org_id`))) left join `emp` `d` on((`c`.`emp_id` = `d`.`emp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `company` `f` on((`c`.`comp_id` = `f`.`comp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `emp_lk_val` `h` on((`c`.`emp_type` = `h`.`idemp_lk_value`))) left join `emp_lk_val` `i` on((`b`.`emp_hrs_title` = `i`.`idemp_lk_value`))) left join `emp` `j` on((`a`.`updater` = `j`.`emp_id`))) left join `storages` `k` on((`j`.`idstorages` = `k`.`idstorages`))) left join `emp` `l` on((`a`.`del_by` = `l`.`emp_id`))) left join `storages` `m` on((`l`.`idstorages` = `m`.`idstorages`))) left join `emp` `n` on((`a`.`archv_by` = `n`.`emp_id`))) left join `storages` `o` on((`n`.`idstorages` = `o`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_engage` -- /*!50001 DROP VIEW IF EXISTS `vw_engage`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_engage` AS select `a`.`engage_id` AS `engage_id`,`a`.`srv_client` AS `srv_client`,`c`.`file_name` AS `srv_client_fnm`,`b`.`companyname` AS `srv_client_nm`,`a`.`srv_client_add` AS `srv_client_add`,`a`.`srv_client_con` AS `srv_client_con`,`a`.`srv_vendor` AS `srv_vendor`,`e`.`file_name` AS `srv_vendor_fnm`,`d`.`companyname` AS `srv_vendor_nm`,`a`.`srv_ven_add` AS `srv_ven_add`,`a`.`srv_ven_con` AS `srv_ven_con`,`a`.`srv_st_dt` AS `srv_st_dt`,date_format(`a`.`srv_st_dt`,'%m-%d-%y') AS `srv_st_dt_fmt`,date_format(`a`.`srv_st_dt`,'%Y') AS `srv_st_yr`,date_format(`a`.`srv_st_dt`,'%M') AS `srv_st_mon`,`a`.`srv_e_dt` AS `srv_e_dt`,if(isnull(`a`.`srv_e_dt`),'Active',date_format(`a`.`srv_e_dt`,'%m-%d-%y')) AS `srv_e_dt_fmt`,if(isnull(`a`.`srv_e_dt`),'Active',date_format(`a`.`srv_e_dt`,'%Y')) AS `srv_e_yr`,if(isnull(`a`.`srv_e_dt`),'Active',date_format(`a`.`srv_e_dt`,'%M')) AS `srv_e_mon`,if(isnull(`a`.`srv_e_dt`),'Open','Ended') AS `engage_cur_stat`,`a`.`eng_tentive_en_dt` AS `eng_tentive_en_dt`,date_format(`a`.`eng_tentive_en_dt`,'%m-%d-%y ') AS `eng_tentive_en_dt_fmt`,date_format(`a`.`eng_tentive_en_dt`,'%Y %b') AS `eng_tentive_en_yr_mon`,`a`.`srv_st_e_dt` AS `srv_st_e_dt`,timestampdiff(DAY,`a`.`srv_st_dt`,ifnull(`a`.`srv_e_dt`,`a`.`eng_tentive_en_dt`)) AS `srv_st_e_dt_fmt`,`a`.`eng_cnt` AS `eng_cnt`,`a`.`eng_tol` AS `eng_tol`,concat(`a`.`eng_cnt`,' of ',`a`.`eng_tol`) AS `eng_cnt_tol`,`a`.`eng_cnt_pcnt` AS `eng_cnt_pcnt`,`a`.`eg_sumry` AS `eg_sumry`,`a`.`cloud_drive` AS `cloud_drive`,`a`.`last_updated` AS `last_updated`,date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p') AS `last_updated_fmt`,`f`.`emp_id` AS `updated_by`,`g`.`file_name` AS `updated_by_fnm`,ifnull(concat(`f`.`firstname`,' ',`f`.`lastname`),'Admin') AS `updated_by_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(date_format(`a`.`del_dt`,'%Y'),'Not Deleted') AS `del_dt_yr`,ifnull(date_format(`a`.`del_dt`,'%M'),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`i`.`file_name` AS `del_by_fnm`,ifnull(concat(`h`.`firstname`,' ',`h`.`lastname`),'Admin') AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then date_format(`a`.`archv_dt`,'%Y') when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then date_format(`a`.`archv_dt`,'%M') when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`l`.`file_name` AS `archv_by_fnm`,ifnull(concat(`k`.`firstname`,' ',`k`.`lastname`),'Admin') AS `archv_by_nm` from ((((((((((`engage` `a` left join `company` `b` on((`a`.`srv_client` = `b`.`comp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `company` `d` on((`a`.`srv_vendor` = `d`.`comp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `emp` `f` on((`a`.`updated_by` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `emp` `h` on((`a`.`del_by` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) left join `emp` `k` on((`a`.`archv_by` = `k`.`emp_id`))) left join `storages` `l` on((`k`.`idstorages` = `l`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_engage_comp_add` -- /*!50001 DROP VIEW IF EXISTS `vw_engage_comp_add`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8mb4 */; /*!50001 SET character_set_results = utf8mb4 */; /*!50001 SET collation_connection = utf8mb4_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_engage_comp_add` AS select `a`.`idengage_comp_add` AS `idengage_comp_add`,`a`.`idengage_comp` AS `idengage_comp`,`a`.`comp_add_id` AS `comp_add_id`,`o`.`engage_id` AS `engage_id`,`b`.`comp_id` AS `comp_id`,`d`.`file_name` AS `comp_fnm`,`c`.`companyname` AS `comp_nm`,`b`.`look_street_no_id` AS `look_street_no_id`,`e`.`look_street_no` AS `look_street_no`,`f`.`street_name` AS `street_name`,`k`.`lk_val` AS `street_type`,`l`.`lk_val` AS `house_apt_type_nm`,`b`.`suite_no` AS `suite_no`,`h`.`city_name` AS `city_name`,`i`.`state_name` AS `state_name`,`p`.`county_district_city_nm` AS `county_district_city_nm`,`g`.`zip_code` AS `zip_code`,`j`.`con_name` AS `con_name`,if(isnull(`b`.`look_street_no_id`),'No Address',concat(ifnull(`e`.`look_street_no`,''),' ',ifnull(`f`.`street_name`,''),' ',ifnull(`k`.`lk_val`,''),' ',ifnull(`l`.`lk_val`,''),', ',ifnull(`h`.`city_name`,''),', ',ifnull(`p`.`county_district_city_nm`,''),', ',ifnull(`i`.`state_name`,''),' ',ifnull(`g`.`zip_code`,''),' ','(',ifnull(`j`.`con_name`,''),')')) AS `comp_address_full`,`a`.`add_type` AS `add_type`,`a`.`updater` AS `updater`,`n`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`m`.`firstname`,' ',`m`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from (((((((((((((((`engage_comp_add` `a` left join `comp_address` `b` on((`a`.`comp_add_id` = `b`.`comp_add_id`))) left join `company` `c` on((`b`.`comp_id` = `c`.`comp_id`))) left join `storages` `d` on((`c`.`idstorages` = `d`.`idstorages`))) left join `look_street_no` `e` on((`b`.`look_street_no_id` = `e`.`look_street_no_id`))) left join `look_street` `f` on((`e`.`look_street_id` = `f`.`look_street_id`))) left join `feature_lk_val` `k` on((`f`.`street_type` = `k`.`idfeature_lk_val`))) left join `look_postal` `g` on((`f`.`postal_id` = `g`.`postal_id`))) left join `look_city` `h` on((`g`.`city_id` = `h`.`city_id`))) left join `look_county_district` `p` on((`h`.`idlook_county_district` = `p`.`idlook_county_district`))) left join `look_state` `i` on((`p`.`state_id` = `i`.`state_id`))) left join `look_country` `j` on((`i`.`country_id` = `j`.`country_id`))) left join `feature_lk_val` `l` on((`b`.`house_apt_type` = `l`.`idfeature_lk_val`))) left join `emp` `m` on((`a`.`updater` = `m`.`emp_id`))) left join `storages` `n` on((`m`.`idstorages` = `n`.`idstorages`))) left join `engage_comp` `o` on((`a`.`idengage_comp` = `o`.`idengage_comp`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_engage_comp_con` -- /*!50001 DROP VIEW IF EXISTS `vw_engage_comp_con`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_engage_comp_con` AS select `a`.`idengage_comp_con` AS `idengage_comp_con`,`a`.`idengage_comp` AS `idengage_comp`,`b`.`engage_id` AS `engage_id`,`b`.`comp_id` AS `comp_id`,`e`.`file_name` AS `comp_fnm`,`d`.`companyname` AS `companyname`,`a`.`comp_contact_id` AS `comp_contact_id`,`c`.`emp_id` AS `emp_id`,`g`.`file_name` AS `emp_fnm`,concat(`f`.`firstname`,' ',`f`.`lastname`) AS `emp_nm`,`c`.`title` AS `title`,`c`.`all_contacts` AS `all_contacts`,concat(ifnull(`g`.`file_name`,' '),' ',if(isnull(`c`.`emp_id`),'No Emp.',concat(`f`.`firstname`,' ',`f`.`lastname`)),' ','Title: ',ifnull(`c`.`title`,'No Title '),' ','Contacts: ',ifnull(`c`.`all_contacts`,'No Contacts')) AS `comp_contact_all_details`,`a`.`contact_notes` AS `contact_notes`,`a`.`updater` AS `updater`,`i`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`h`.`firstname`,' ',`h`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %H:%i:%s %p') AS `updated_fmt` from ((((((((`engage_comp_con` `a` left join `engage_comp` `b` on((`a`.`idengage_comp` = `b`.`idengage_comp`))) left join `comp_contact` `c` on((`a`.`comp_contact_id` = `c`.`comp_contact_id`))) left join `company` `d` on((`b`.`comp_id` = `d`.`comp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `emp` `f` on((`c`.`emp_id` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `emp` `h` on((`a`.`updater` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_engage_doc` -- /*!50001 DROP VIEW IF EXISTS `vw_engage_doc`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_engage_doc` AS select `a`.`idengage_doc` AS `idengage_doc`,`a`.`engage_id` AS `engage_id`,`a`.`idstorages` AS `idstorages`,`b`.`file_name` AS `file_name`,`b`.`sto_cloud` AS `sto_cloud`,ifnull(`c`.`lk_val`,'Local') AS `sto_cloud_nm`,`b`.`file_size` AS `file_size`,(case when (`b`.`file_size` < 1024) then concat(`b`.`file_size`,' B') when ((`b`.`file_size` > 1024) and (`b`.`file_size` < 1048576)) then concat(round((`b`.`file_size` / 1024),2),' KB') when ((`b`.`file_size` > 1048576) and (`b`.`file_size` < 1073741824)) then concat(round(((`b`.`file_size` / 1024) / 1024),2),' MB') when (`b`.`file_size` > 1073741824) then concat(round((((`b`.`file_size` / 1024) / 1024) / 1024),2),' GB') end) AS `file_size_fmt`,`b`.`owner_id` AS `owner_id`,`e`.`file_name` AS `owner_fnm`,ifnull(concat(`d`.`firstname`,' ',`d`.`lastname`),'Admin') AS `owner_nm`,`b`.`create_dt` AS `create_dt`,date_format(`b`.`create_dt`,'%m-%d-%y %h:%i %p') AS `create_dt_fmt`,`b`.`expire_dt` AS `expire_dt`,date_format(`b`.`expire_dt`,'%m-%d-%y %h:%i %p') AS `expire_dt_fmt`,`b`.`ext_type` AS `ext_type`,`b`.`public` AS `public`,`b`.`self_view` AS `self_view`,`b`.`smry` AS `smry`,`b`.`ref_emp_id` AS `ref_emp_id`,`g`.`file_name` AS `ref_emp_fnm`,ifnull(concat(`f`.`firstname`,' ',`f`.`lastname`),'Admin') AS `ref_emp_nm`,`b`.`usage` AS `usage`,`b`.`updater` AS `updater`,`i`.`file_name` AS `updater_fnm`,ifnull(concat(`h`.`firstname`,' ',`h`.`lastname`),'Admin') AS `updater_nm`,`b`.`updated` AS `updated`,date_format(`b`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((((((((`engage_doc` `a` left join `storages` `b` on((`a`.`idstorages` = `b`.`idstorages`))) left join `feature_lk_val` `c` on((`a`.`idstorages` = `c`.`idfeature_lk_val`))) left join `emp` `d` on((`b`.`owner_id` = `d`.`emp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `emp` `f` on((`b`.`ref_emp_id` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `emp` `h` on((`b`.`updater` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_engage_entity` -- /*!50001 DROP VIEW IF EXISTS `vw_engage_entity`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_engage_entity` AS select `a`.`idengage_entity` AS `idengage_entity`,`a`.`engage_id` AS `engage_id`,`c`.`srv_client` AS `srv_client`,`cc`.`file_name` AS `srv_client_fnm`,`ca`.`companyname` AS `srv_client_nm`,`c`.`srv_client_add` AS `srv_client_add`,`c`.`srv_client_con` AS `srv_client_con`,`c`.`srv_vendor` AS `srv_vendor`,`cd`.`file_name` AS `srv_vendor_fnm`,`cb`.`companyname` AS `srv_vendor_nm`,`c`.`srv_ven_add` AS `srv_ven_add`,`c`.`srv_ven_con` AS `srv_ven_con`,`c`.`srv_st_dt` AS `srv_st_dt`,`c`.`srv_e_dt` AS `srv_e_dt`,if(isnull(`c`.`srv_e_dt`),'Open','Ended') AS `engage_cur_stat`,`c`.`srv_st_e_dt` AS `srv_st_e_dt`,`c`.`eng_cnt` AS `eng_cnt`,`c`.`eng_tol` AS `eng_tol`,concat(`c`.`eng_cnt`,' of ',`c`.`eng_tol`) AS `eng_cnt_tol`,concat(round(((`c`.`eng_cnt` / `c`.`eng_tol`) * 100),2),'%') AS `eng_cnt_tol_pcnt`,`a`.`engage_ref_tab` AS `engage_ref_tab`,`a`.`engage_ref_id` AS `engage_ref_id`,(case when (`a`.`engage_ref_tab` like 'Company') then `q`.`file_name` when (`a`.`engage_ref_tab` like 'Employee') then `n`.`file_name` end) AS `engage_ref_fnm`,(case when (`a`.`engage_ref_tab` like 'Company') then `b`.`companyname` when (`a`.`engage_ref_tab` like 'Employee') then concat(`d`.`firstname`,' ',`d`.`lastname`) end) AS `engage_ref_nm`,concat(convert((case when (`a`.`engage_ref_tab` = 'Company') then 'Comp' when (`a`.`engage_ref_tab` = 'Employee') then 'Emp' end) using latin1),': ',if(isnull((case when (`a`.`engage_ref_tab` like 'Company') then `q`.`file_name` when (`a`.`engage_ref_tab` like 'Employee') then `n`.`file_name` end)),'No Engage Ref Fnm',(case when (`a`.`engage_ref_tab` like 'Company') then `q`.`file_name` when (`a`.`engage_ref_tab` like 'Employee') then `n`.`file_name` end)),': ',(case when (`a`.`engage_ref_tab` = 'Company') then concat(`b`.`companyname`) when (`a`.`engage_ref_tab` = 'Employee') then (case when (`a`.`engage_ref_id` = '') then 'Admin' else concat(`d`.`firstname`,_latin1' ',`d`.`lastname`) end) end)) AS `engage_ref_tab_fnm_nm`,`a`.`bill_start_dt` AS `bill_start_dt`,date_format(`a`.`bill_start_dt`,_utf8'%m-%d-%y ') AS `bill_start_dt_fmt`,date_format(`a`.`bill_start_dt`,'%Y') AS `bill_start_yr`,date_format(`a`.`bill_start_dt`,'%M') AS `bill_start_mon`,`a`.`bill_cycle` AS `bill_cycle`,`a`.`bill_end_dt` AS `bill_end_dt`,ifnull(convert(date_format(`a`.`bill_end_dt`,_utf8'%m-%d-%y ') using utf8mb4),'Billable') AS `bill_end_dt_fmt`,date_format(`a`.`bill_end_dt`,'%Y') AS `bill_end_yr`,date_format(`a`.`bill_end_dt`,'%M') AS `bill_end_mon`,if(isnull(`a`.`bill_end_dt`),'Open','Ended') AS `engage_entity_cur_stat`,`a`.`bill_st_e_dt` AS `bill_st_e_dt`,ifnull(`a`.`bill_st_e_dt`,timestampdiff(DAY,`a`.`bill_start_dt`,now())) AS `bill_st_e_dt_vir`,`a`.`bill_fst_dt` AS `bill_fst_dt`,date_format(`a`.`bill_fst_dt`,_utf8'%m-%d-%y ') AS `bill_fst_dt_fmt`,`a`.`bill_day` AS `bill_day`,`a`.`bill_pay_type` AS `bill_pay_type`,`db`.`lk_val` AS `bill_pay_type_nm`,`a`.`bill_pay_cy` AS `bill_pay_cy`,`a`.`bill_pay_rate` AS `bill_pay_rate`,`a`.`bill_title` AS `bill_title`,`da`.`lk_val` AS `bill_title_nm`,`a`.`bill_hrs_mon` AS `bill_hrs_mon`,`a`.`bill_pay_rate_xtra` AS `bill_pay_rate_xtra`,`a`.`ts_cycle` AS `ts_cycle`,`a`.`ts_fst_dt` AS `ts_fst_dt`,date_format(`a`.`ts_fst_dt`,_utf8'%m-%d-%y ') AS `ts_fst_dt_fmt`,`a`.`netpay` AS `netpay`,`a`.`tentative_e_dt` AS `tentative_e_dt`,date_format(`a`.`tentative_e_dt`,_utf8'%m-%d-%y ') AS `tentative_e_dt_fmt`,date_format(`a`.`tentative_e_dt`,'%Y - %M') AS `tentative_e_mon_yr`,`a`.`access_name` AS `access_name`,`a`.`remind` AS `remind`,`a`.`summary` AS `summary`,`a`.`cloud_drive` AS `cloud_drive`,`a`.`allow_inv` AS `allow_inv`,`a`.`show_emp` AS `show_emp`,`a`.`bill_cycle_run_dt` AS `bill_cycle_run_dt`,date_format(`a`.`bill_cycle_run_dt`,_utf8'%m-%d-%y ') AS `bill_cycle_run_dt_fmt`,if((isnull(`a`.`bill_cycle_run_dt`) = 1),'N','Y') AS `bill_cycle_ran`,`a`.`ts_cycle_run_dt` AS `ts_cycle_run_dt`,date_format(`a`.`ts_cycle_run_dt`,_utf8'%m-%d-%y ') AS `ts_cycle_run_dt_fmt`,if((isnull(`a`.`ts_cycle_run_dt`) = 1),'N','Y') AS `ts_cycle_ran`,`a`.`updater` AS `updater`,`o`.`file_name` AS `updater_fnm`,ifnull(concat(`e`.`firstname`,' ',`e`.`lastname`),'Admin') AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,_utf8'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`old_bc_dt` AS `old_bc_dt`,`a`.`old_tc_dt` AS `old_tc_dt` from (((((((((((((`engage_entity` `a` left join `company` `b` on((`b`.`comp_id` = `a`.`engage_ref_id`))) left join `emp` `e` on((`e`.`emp_id` = `a`.`updater`))) left join `storages` `o` on((`o`.`idstorages` = `e`.`idstorages`))) left join `storages` `q` on((`q`.`idstorages` = `b`.`idstorages`))) left join `emp` `d` on((`d`.`emp_id` = `a`.`engage_ref_id`))) left join `storages` `n` on((`n`.`idstorages` = `d`.`idstorages`))) left join `engage` `c` on((`a`.`engage_id` = `c`.`engage_id`))) left join `company` `ca` on((`c`.`srv_client` = `ca`.`comp_id`))) left join `storages` `cc` on((`ca`.`idstorages` = `cc`.`idstorages`))) left join `company` `cb` on((`c`.`srv_vendor` = `cb`.`comp_id`))) left join `storages` `cd` on((`cb`.`idstorages` = `cd`.`idstorages`))) left join `comp_lk_val` `da` on((`da`.`idcomp_lk_val` = `a`.`bill_title`))) left join `comp_lk_val` `db` on((`a`.`bill_pay_type` = `db`.`idcomp_lk_val`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_engage_entity_bud` -- /*!50001 DROP VIEW IF EXISTS `vw_engage_entity_bud`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_engage_entity_bud` AS select `a`.`idengage_entity_bud` AS `idengage_entity_bud`,`b`.`engage_id` AS `engage_id`,`c`.`srv_client` AS `srv_client`,`e`.`file_name` AS `srv_client_fnm`,`d`.`companyname` AS `srv_client_nm`,`c`.`srv_client_add` AS `srv_client_add`,`c`.`srv_client_con` AS `srv_client_con`,`c`.`srv_vendor` AS `srv_vendor`,`g`.`file_name` AS `srv_vendor_fnm`,`f`.`companyname` AS `srv_vendor_nm`,`c`.`srv_ven_add` AS `srv_ven_add`,`c`.`srv_ven_con` AS `srv_ven_con`,`c`.`srv_st_dt` AS `srv_st_dt`,date_format(`c`.`srv_st_dt`,'%m-%d-%y %h:%i %p') AS `srv_st_dt_fmt`,`c`.`srv_e_dt` AS `srv_e_dt`,date_format(`c`.`srv_e_dt`,'%m-%d-%y %h:%i %p') AS `srv_e_dt_fmt`,`c`.`srv_st_e_dt` AS `srv_st_e_dt`,timestampdiff(DAY,`c`.`srv_st_dt`,ifnull(`c`.`srv_e_dt`,now())) AS `srv_st_e_dt_fmt`,`c`.`eng_tentive_en_dt` AS `eng_tentive_en_dt`,date_format(`c`.`eng_tentive_en_dt`,'%m-%d-%y %h:%i %p') AS `eng_tentive_en_dt_fmt`,`c`.`eng_cnt` AS `eng_cnt`,`c`.`eng_tol` AS `eng_tol`,concat(`c`.`eng_cnt`,' of ',`c`.`eng_tol`) AS `eng_cnt_tol`,concat(round(((`c`.`eng_cnt` / `c`.`eng_tol`) * 100),2),'%') AS `eng_cnt_tol_pcnt`,`c`.`eg_sumry` AS `eg_sumry`,`c`.`cloud_drive` AS `cloud_drive`,`a`.`idengage_entity` AS `idengage_entity`,`b`.`engage_ref_tab` AS `engage_ref_tab`,`b`.`engage_ref_id` AS `engage_ref_id`,(case when (`b`.`engage_ref_tab` like 'Company') then `i`.`file_name` when (`b`.`engage_ref_tab` like 'Employee') then `k`.`file_name` end) AS `engage_ref_fnm`,(case when (`b`.`engage_ref_tab` like 'Company') then `h`.`companyname` when (`b`.`engage_ref_tab` like 'Employee') then concat(`j`.`firstname`,' ',`j`.`lastname`) end) AS `engage_ref_nm`,concat(convert((case when (`b`.`engage_ref_tab` like 'Company') then 'Comp' when (`b`.`engage_ref_tab` like 'Employee') then 'Emp' end) using latin1),': ',(case when (`b`.`engage_ref_tab` like 'Company') then `i`.`file_name` when (`b`.`engage_ref_tab` like 'Employee') then `k`.`file_name` end),': ',(case when (`b`.`engage_ref_tab` like 'Company') then `h`.`companyname` when (`b`.`engage_ref_tab` like 'Employee') then concat(`j`.`firstname`,' ',`j`.`lastname`) end)) AS `engage_ref_tab_fnm_nm`,`b`.`bill_start_dt` AS `bill_start_dt`,date_format(`b`.`bill_start_dt`,'%m-%d-%y ') AS `bill_start_dt_fmt`,`b`.`bill_cycle` AS `bill_cycle`,`b`.`bill_end_dt` AS `bill_end_dt`,ifnull(date_format(`b`.`bill_end_dt`,'%m-%d-%y '),'Billable') AS `bill_end_dt_fmt`,`b`.`bill_st_e_dt` AS `bill_st_e_dt`,ifnull(`b`.`bill_st_e_dt`,timestampdiff(MINUTE,`b`.`bill_start_dt`,ifnull(`b`.`bill_end_dt`,now()))) AS `bill_st_e_dt_vir`,`b`.`bill_fst_dt` AS `bill_fst_dt`,date_format(`b`.`bill_fst_dt`,'%m-%d-%y ') AS `bill_fst_dt_fmt`,`b`.`bill_day` AS `bill_day`,`b`.`bill_pay_type` AS `bill_pay_type`,`l`.`lk_val` AS `bill_pay_type_nm`,`b`.`eng_ent_cnt` AS `eng_ent_cnt`,`b`.`eng_ent_tol` AS `eng_ent_tol`,`b`.`eng_bud_pcnt` AS `eng_bud_pcnt`,`b`.`bill_pay_rate` AS `bill_pay_rate`,`b`.`bill_title` AS `bill_title`,`m`.`lk_val` AS `bill_title_nm`,`b`.`bill_hrs_mon` AS `bill_hrs_mon`,`b`.`bill_pay_rate_xtra` AS `bill_pay_rate_xtra`,`b`.`ts_cycle` AS `ts_cycle`,`b`.`ts_fst_dt` AS `ts_fst_dt`,date_format(`b`.`ts_fst_dt`,'%m-%d-%y ') AS `ts_fst_dt_fmt`,`b`.`ts_fst_day` AS `ts_fst_day`,`b`.`netpay` AS `netpay`,`b`.`tentative_e_dt` AS `tentative_e_dt`,date_format(`b`.`tentative_e_dt`,'%m-%d-%y ') AS `tentative_e_dt_fmt`,`a`.`engage_bud_ref_id` AS `engage_bud_ref_id`,`a`.`engage_bud_ref_tab` AS `engage_bud_ref_tab`,(case when (`a`.`engage_bud_ref_tab` like 'comp') then `o`.`file_name` when (`a`.`engage_bud_ref_tab` like 'emp') then `q`.`file_name` end) AS `engage_bud_ref_tab_fnm`,(case when (`a`.`engage_bud_ref_tab` like 'comp') then `n`.`companyname` when (`a`.`engage_bud_ref_tab` like 'emp') then concat(`p`.`firstname`,' ',`p`.`lastname`) end) AS `engage_bud_ref_tab_nm`,concat(convert((case when isnull(`a`.`engage_bud_ref_tab`) then '' else (case when (`a`.`engage_bud_ref_tab` = 'comp') then 'Comp' when (`a`.`engage_bud_ref_tab` = 'emp') then 'Emp' end) end) using latin1),': ',(case when (`a`.`engage_bud_ref_tab` like 'comp') then `o`.`file_name` when (`a`.`engage_bud_ref_tab` like 'emp') then `q`.`file_name` end),': ',(case when (`a`.`engage_bud_ref_tab` = 'comp') then concat(`n`.`companyname`) when (`a`.`engage_bud_ref_tab` = 'emp') then (case when (`a`.`engage_bud_ref_tab` = '') then 'Admin' else concat(`p`.`firstname`,' ',`p`.`lastname`) end) end)) AS `engage_bud_ref_tab_fnm_nm`,`a`.`engage_calc` AS `engage_calc`,`a`.`engage_amt` AS `engage_amt`,`a`.`show_emp` AS `show_emp`,`a`.`engage_st_dt` AS `engage_st_dt`,date_format(`a`.`engage_st_dt`,'%m-%d-%y ') AS `engage_st_dt_fmt`,date_format(`a`.`engage_st_dt`,'%Y') AS `engage_st_dt_yr`,date_format(`a`.`engage_st_dt`,'%M') AS `engage_st_dt_mon`,`a`.`engage_e_dt` AS `engage_e_dt`,date_format(`a`.`engage_e_dt`,'%m-%d-%y ') AS `engage_e_dt_fmt`,date_format(`a`.`engage_e_dt`,'%Y') AS `engage_e_dt_yr`,date_format(`a`.`engage_e_dt`,'%M') AS `engage_e_dt_mon`,`a`.`engage_st_e_dt` AS `engage_st_e_dt`,ifnull(`a`.`engage_st_e_dt`,timestampdiff(MINUTE,`a`.`engage_st_dt`,ifnull(`a`.`engage_e_dt`,now()))) AS `engage_st_e_dt_vir`,`a`.`limit_amt` AS `limit_amt`,`a`.`engage_smry` AS `engage_smry`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`updater` AS `updater`,`s`.`file_name` AS `updater_fnm`,ifnull(concat(`r`.`firstname`,' ',`r`.`lastname`),'Admin') AS `updater_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(date_format(`a`.`del_dt`,'%Y'),'Not Deleted') AS `del_dt_yr`,ifnull(date_format(`a`.`del_dt`,'%M'),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`u`.`file_name` AS `del_by_fnm`,ifnull(concat(`t`.`firstname`,' ',`t`.`lastname`),'Admin') AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,ifnull(date_format(`a`.`archv_dt`,'%Y'),'Not Archived') AS `archv_dt_yr`,ifnull(date_format(`a`.`archv_dt`,'%M'),'Not Archived') AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`w`.`file_name` AS `archv_by_fnm`,ifnull(concat(`v`.`firstname`,' ',`v`.`lastname`),'Admin') AS `archv_by_nm` from ((((((((((((((((((((((`engage_entity_bud` `a` left join `engage_entity` `b` on((`a`.`idengage_entity` = `b`.`idengage_entity`))) left join `engage` `c` on((`b`.`engage_id` = `c`.`engage_id`))) left join `company` `d` on((`c`.`srv_client` = `d`.`comp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `company` `f` on((`c`.`srv_vendor` = `f`.`comp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `company` `h` on((`b`.`engage_ref_id` = `h`.`comp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) left join `emp` `j` on((`b`.`engage_ref_id` = `j`.`emp_id`))) left join `storages` `k` on((`j`.`idstorages` = `k`.`idstorages`))) left join `comp_lk_val` `l` on((`b`.`bill_pay_type` = `l`.`idcomp_lk_val`))) left join `comp_lk_val` `m` on((`b`.`bill_title` = `m`.`idcomp_lk_val`))) left join `company` `n` on((`a`.`engage_bud_ref_id` = `n`.`comp_id`))) left join `storages` `o` on((`n`.`idstorages` = `o`.`idstorages`))) left join `emp` `p` on((`a`.`engage_bud_ref_id` = `p`.`emp_id`))) left join `storages` `q` on((`p`.`idstorages` = `q`.`idstorages`))) left join `emp` `r` on((`a`.`updater` = `r`.`emp_id`))) left join `storages` `s` on((`r`.`idstorages` = `s`.`idstorages`))) left join `emp` `t` on((`a`.`del_by` = `t`.`emp_id`))) left join `storages` `u` on((`t`.`idstorages` = `u`.`idstorages`))) left join `emp` `v` on((`a`.`archv_by` = `v`.`emp_id`))) left join `storages` `w` on((`v`.`idstorages` = `w`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_engage_entity_doc` -- /*!50001 DROP VIEW IF EXISTS `vw_engage_entity_doc`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_engage_entity_doc` AS select `a`.`idengage_entity_doc` AS `idengage_entity_doc`,`a`.`idengage_entity` AS `idengage_entity`,`a`.`idstorages` AS `idstorages`,`c`.`file_name` AS `file_name`,`c`.`sto_cloud` AS `sto_cloud`,ifnull(`k`.`lk_val`,'Local') AS `sto_cloud_nm`,`c`.`file_size` AS `file_size`,(case when (`c`.`file_size` < 1024) then concat(`c`.`file_size`,' B') when ((`c`.`file_size` > 1024) and (`c`.`file_size` < 1048576)) then concat(round((`c`.`file_size` / 1024),2),' KB') when ((`c`.`file_size` > 1048576) and (`c`.`file_size` < 1073741824)) then concat(round(((`c`.`file_size` / 1024) / 1024),2),' MB') when (`c`.`file_size` > 1073741824) then concat(round((((`c`.`file_size` / 1024) / 1024) / 1024),2),' GB') end) AS `file_size_fmt`,`c`.`owner_id` AS `owner_id`,`e`.`file_name` AS `owner_fnm`,ifnull(concat(`d`.`firstname`,' ',`d`.`lastname`),'Admin') AS `owner_nm`,`c`.`create_dt` AS `create_dt`,date_format(`c`.`create_dt`,'%m-%d-%y %h:%i %p') AS `create_dt_fmt`,`c`.`expire_dt` AS `expire_dt`,date_format(`c`.`expire_dt`,'%m-%d-%y %h:%i %p') AS `expire_dt_fmt`,`c`.`ext_type` AS `ext_type`,`c`.`public` AS `public`,`c`.`self_view` AS `self_view`,`c`.`smry` AS `smry`,`c`.`ref_emp_id` AS `ref_emp_id`,`g`.`file_name` AS `ref_emp_fnm`,ifnull(concat(`f`.`firstname`,' ',`f`.`lastname`),'Admin') AS `ref_emp_nm`,`c`.`usage` AS `usage`,`c`.`updater` AS `updater`,`i`.`file_name` AS `updater_fnm`,ifnull(concat(`h`.`firstname`,' ',`h`.`lastname`),'Admin') AS `updater_nm`,`c`.`updated` AS `updated`,date_format(`c`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((((((((`engage_entity_doc` `a` left join `storages` `c` on((`a`.`idstorages` = `c`.`idstorages`))) left join `emp` `d` on((`c`.`owner_id` = `d`.`emp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `emp` `f` on((`c`.`ref_emp_id` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `feature_lk_val` `k` on((`a`.`idstorages` = `k`.`idfeature_lk_val`))) left join `emp` `h` on((`c`.`updater` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_feature` -- /*!50001 DROP VIEW IF EXISTS `vw_feature`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_feature` AS select `a`.`feature_no` AS `feature_no`,`a`.`feature_id` AS `feature_id`,`a`.`feature_name` AS `feature_name`,`a`.`feature_desc` AS `feature_desc`,`a`.`disp_order` AS `disp_order`,(select count(0) from `emp_access` where (`emp_access`.`feature_id` = `a`.`feature_id`)) AS `assigned`,(select count(0) from `feature_grp_list` where (`feature_grp_list`.`feature_id` = `a`.`feature_id`)) AS `groups`,(select count(0) from `feature_menu` where (`feature_menu`.`feature_id` = `a`.`feature_id`)) AS `menus` from `feature` `a` order by `a`.`disp_order` */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_feature_grp` -- /*!50001 DROP VIEW IF EXISTS `vw_feature_grp`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_feature_grp` AS select `a`.`idfeature_grp` AS `idfeature_grp`,`a`.`group_name` AS `group_name`,`a`.`feature_cnt` AS `feature_cnt`,`a`.`group_desc` AS `group_desc`,`a`.`feature_ids` AS `feature_ids`,`a`.`feature_nm` AS `feature_nm`,`a`.`updater` AS `updater`,`b`.`emp_fnm` AS `emp_fnm`,ifnull(`b`.`fullname`,'Admin') AS `fullname`,`a`.`last_updated` AS `last_updated`,ifnull(date_format(`a`.`last_updated`,'%m/%d/%y %h:%i %p'),'Back End') AS `last_updated_fmt` from (`feature_grp` `a` left join `vw_emp` `b` on((`a`.`updater` = `b`.`emp_id`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_feature_grp_list` -- /*!50001 DROP VIEW IF EXISTS `vw_feature_grp_list`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_feature_grp_list` AS select `a`.`idfeature_grp_list` AS `idfeature_grp_list`,`a`.`idfeature_grp` AS `idfeature_grp`,`b`.`group_name` AS `group_name`,`b`.`group_desc` AS `group_desc`,`b`.`updater` AS `updater`,`b`.`emp_fnm` AS `emp_fnm`,`b`.`fullname` AS `fullname`,`b`.`last_updated_fmt` AS `last_updated_fmt`,`a`.`feature_id` AS `feature_id`,`c`.`feature_name` AS `feature_name`,`c`.`feature_desc` AS `feature_desc`,`c`.`disp_order` AS `disp_order` from ((`feature_grp_list` `a` left join `vw_feature_grp` `b` on((`a`.`idfeature_grp` = `b`.`idfeature_grp`))) left join `feature` `c` on((`a`.`feature_id` = `c`.`feature_id`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_feature_lk_val` -- /*!50001 DROP VIEW IF EXISTS `vw_feature_lk_val`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_feature_lk_val` AS select `a`.`idfeature_lk_val` AS `idfeature_lk_val`,NULL AS `idfeature_lk`,`a`.`lk_val_par` AS `lk_val_par`,`a`.`lk_val` AS `lk_val`,NULL AS `child_lvl`,`a`.`lk_val_desc` AS `lk_val_desc`,`a`.`disp_order` AS `disp_order`,`a`.`idfeature_lk` AS `parent_id`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,ifnull(concat(`b`.`firstname`,' ',`b`.`lastname`),'Admin') AS `updater_nm`,`a`.`updated` AS `updated`,if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) AS `updated_fmt` from ((`feature_lk_val` `a` left join `emp` `b` on((`b`.`emp_id` = `a`.`updater`))) left join `storages` `c` on((`c`.`idstorages` = `b`.`idstorages`))) union all select NULL AS `NULL`,`a`.`idfeature_lk` AS `idfeature_lk`,NULL AS `lk_val_par`,`a`.`lk_nm` AS `lk_nm`,if((`a`.`child_lvl` = 0),1,ifnull(`a`.`child_lvl`,1)) AS `child_lvl`,`a`.`lk_nm_desc` AS `lk_nm_desc`,`a`.`disp_order` AS `disp_order`,NULL AS `NULL`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,concat(`b`.`firstname`,' ',`b`.`lastname`) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((`feature_lk` `a` left join `emp` `b` on((`b`.`emp_id` = `a`.`updater`))) left join `storages` `c` on((`c`.`idstorages` = `b`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_festival` -- /*!50001 DROP VIEW IF EXISTS `vw_festival`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_festival` AS select `a`.`idfestival` AS `idfestival`,`a`.`look_values_id` AS `look_values_id`,`a`.`comp_id` AS `comp_id`,`a`.`festival_yr` AS `festival_yr`,date_format(`a`.`festival_day`,_utf8'%m-%d-%y') AS `festival_day`,dayname(`a`.`festival_day`) AS `day`,`a`.`festival_name` AS `festival_name`,`a`.`festival_type` AS `festival_type`,`a`.`last_updated` AS `last_updated`,`a`.`updated_by` AS `updated_by`,concat(convert(date_format(`a`.`last_updated`,_utf8'%m-%d-%y %H:%i:%s') using latin1),_latin1' ',(case when (`a`.`updated_by` = _utf8'0') then 'Admin' else concat(`e`.`firstname`,_latin1' ',`e`.`lastname`) end)) AS `mod_last_updated` from (`festival` `a` left join `emp` `e` on((`e`.`emp_id` = `a`.`updated_by`))) order by `a`.`festival_yr`,`a`.`festival_day` */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_festival_company` -- /*!50001 DROP VIEW IF EXISTS `vw_festival_company`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_festival_company` AS select `a`.`idfestival` AS `idfestival`,`a`.`look_values_id` AS `look_values_id`,`c`.`comp_id` AS `comp_id`,`c`.`companyname` AS `companyname`,`a`.`festival_yr` AS `festival_yr`,date_format(`a`.`festival_day`,_utf8'%m-%d-%y') AS `festival_day`,dayname(`a`.`festival_day`) AS `day`,`a`.`festival_name` AS `festival_name`,`a`.`festival_type` AS `festival_type`,`a`.`last_updated` AS `last_updated`,`a`.`updated_by` AS `updated_by`,concat(convert(date_format(`a`.`last_updated`,_utf8'%m-%d-%y %H:%i:%s') using latin1),_latin1' ',(case when (`a`.`updated_by` = _utf8'0') then 'Admin' else concat(`e`.`firstname`,_latin1' ',`e`.`lastname`) end)) AS `mod_last_updated` from ((`festival` `a` left join `emp` `e` on((`e`.`emp_id` = `a`.`updated_by`))) left join `company` `c` on((`c`.`comp_id` = `a`.`comp_id`))) order by `a`.`festival_yr`,`a`.`festival_day` */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_hours` -- /*!50001 DROP VIEW IF EXISTS `vw_hours`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_hours` AS select `a`.`hour_id` AS `hour_id`,`a`.`idemp_org_hrs_days_cy` AS `idemp_org_hrs_days_cy`,if(isnull(`a`.`idemp_org_hrs_days_cy`),'No','Yes') AS `idemp_org_hrs_days_cy_nm`,`a`.`emp_id` AS `emp_id`,`c`.`file_name` AS `emp_fnm`,concat(`b`.`firstname`,' ',`b`.`lastname`) AS `emp_nm`,`a`.`idemp_org_hrs` AS `idemp_org_hrs`,`e`.`comp_id` AS `emp_org_hrs_comp_id`,`g`.`file_name` AS `emp_org_hrs_comp_fnm`,`f`.`companyname` AS `emp_org_hrs_comp_nm`,`a`.`engage_ref_tab` AS `engage_ref_tab`,`a`.`engage_ref_id` AS `engage_ref_id`,(case when (`a`.`engage_ref_tab` like 'comp') then `ab`.`file_name` when (`a`.`engage_ref_tab` like 'engage') then `af`.`file_name` end) AS `engage_ref_fnm`,if(isnull(`a`.`engage_ref_id`),'Not Engaged',(case when (`a`.`engage_ref_tab` like 'comp') then `aa`.`companyname` when (`a`.`engage_ref_tab` like 'engage') then `ae`.`companyname` end)) AS `engage_ref_nm`,if(isnull(`a`.`engage_ref_id`),'Not Engaged',(case when (`a`.`engage_ref_tab` like 'comp') then concat('Company: ',`aa`.`companyname`) when (`a`.`engage_ref_tab` like 'engage') then concat('Engage: ',`ae`.`companyname`) end)) AS `engage_ref_nm2`,`ai`.`comp_id` AS `comp_id`,`ai`.`companyname` AS `companyname`,`aj`.`file_name` AS `comp_fnm`,`a`.`idhours_cy_bc` AS `idhours_cy_bc`,if(isnull(`a`.`idhours_cy_bc`),'No','Yes') AS `idhours_cy_bc_nm`,`a`.`idinv` AS `idinv`,if(isnull(`a`.`idinv`),'No','Yes') AS `idinv_nm`,`a`.`idemp_pay` AS `idemp_pay`,if(isnull(`a`.`idemp_pay`),'No','Yes') AS `idemp_pay_nm`,`a`.`hr_st_dt` AS `hr_st_dt`,date_format(`a`.`hr_st_dt`,'%m-%d-%y') AS `hr_st_dt_fmt`,dayname(`a`.`hr_st_dt`) AS `hr_st_day`,date_format(`a`.`hr_st_dt`,'%Y') AS `hr_st_dt_yr`,date_format(`a`.`hr_st_dt`,'%M') AS `hr_st_dt_mon`,date_format(`a`.`hr_st_dt`,'%Y %M') AS `hr_st_dt_yr_mon`,time_format(`a`.`hr_st_dt`,'%h:%i %p') AS `hr_st_dt_tm_fmt`,`a`.`hr_e_dt` AS `hr_e_dt`,date_format(`a`.`hr_e_dt`,'%m-%d-%y') AS `hr_e_dt_fmt`,dayname(`a`.`hr_e_dt`) AS `hr_e_day`,dayofweek(`a`.`hr_e_dt`) AS `hr_e_day_no`,date_format(`a`.`hr_e_dt`,'%Y') AS `hr_e_dt_yr`,date_format(`a`.`hr_e_dt`,'%M') AS `hr_e_dt_mon`,date_format(`a`.`hr_e_dt`,'%Y %M') AS `hr_e_dt_yr_mon`,date_format(`a`.`hr_e_dt`,'%Y %m') AS `hr_e_dt_yr_mon_no`,time_format(`a`.`hr_e_dt`,'%h:%i %p') AS `hr_e_dt_tm_fmt`,concat(date_format(`a`.`hr_st_dt`,'%b-%d-%y %a'),' ',time_format(`a`.`hr_st_dt`,'%h:%i %p'),' To',' ',time_format(`a`.`hr_e_dt`,'%h:%i %p')) AS `hr_st_e_dt_tm_fmt`,`a`.`off_time` AS `off_time`,`a`.`off_tm_nm` AS `off_tm_nm`,`a`.`hr_tol` AS `hr_tol`,`a`.`hr_tol_nm` AS `hr_tol_nm`,`a`.`iddev_apps` AS `iddev_apps`,ifnull(`j`.`app_name`,'No Apex') AS `app_nm`,`a`.`dev_est` AS `dev_est`,ifnull(`a`.`dev_est`,'No Glacier') AS `dev_est_nm`,ifnull(`m`.`dev_est_smry`,'No Glacier Summary') AS `dev_est_smry`,`a`.`dev_est_reqs` AS `dev_est_reqs`,ifnull(`a`.`dev_est_reqs`,'No Cubes') AS `dev_est_reqs_nm`,ifnull(`n`.`req_desc`,'No Cube Description') AS `req_desc`,`a`.`updater` AS `updater`,`p`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`o`.`firstname`,' ',`o`.`lastname`)) AS `updater_nm`,`a`.`hrs_type` AS `hrs_type`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`iplook_ip_addr` AS `iplook_ip_addr`,`r`.`ip_address` AS `ip_address`,`r`.`domain_nm` AS `domain_nm`,ifnull(`r`.`ip_contry`,'No Country') AS `ip_contry`,ifnull(`r`.`ip_state`,'No State') AS `ip_state`,`r`.`ip_city` AS `ip_city`,`r`.`ip_post_code` AS `ip_post_code`,`a`.`approver` AS `approver`,`t`.`file_name` AS `approver_fnm`,if(isnull(`a`.`approver`),'No Approver',concat(`s`.`firstname`,' ',`s`.`lastname`)) AS `approver_nm`,`a`.`approve_by` AS `approve_by`,`v`.`file_name` AS `approve_by_fnm`,if(isnull(`a`.`approve_by`),'Not Approve',concat(`u`.`firstname`,' ',`u`.`lastname`)) AS `approve_by_nm`,`a`.`approve_dt` AS `approve_dt`,if(isnull(`a`.`approve_dt`),'Pending',date_format(`a`.`approve_dt`,'%m-%d-%y')) AS `approve_dt_fmt_up`,`a`.`approve_temp_dt` AS `approve_temp_dt`,`a`.`timecard_id` AS `timecard_id`,`a`.`summary` AS `summary`,`a`.`hours_cnt` AS `hours_cnt`,if(isnull(`a`.`hours_cnt`),'N','Y') AS `hours_cnt_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(date_format(`a`.`del_dt`,'%Y'),'Not Deleted') AS `del_dt_yr`,ifnull(date_format(`a`.`del_dt`,'%M'),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`x`.`file_name` AS `del_by_fnm`,if(isnull(`a`.`del_by`),'Admin',concat(`w`.`firstname`,' ',`w`.`lastname`)) AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,ifnull(date_format(`a`.`archv_dt`,'%Y'),'Not Archived') AS `archv_dt_yr`,ifnull(date_format(`a`.`archv_dt`,'%M'),'Not Archived') AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`z`.`file_name` AS `archv_by_fnm`,if(isnull(`a`.`archv_by`),'Admin',concat(`y`.`firstname`,' ',`y`.`lastname`)) AS `archv_by_nm` from ((((((((((((((((((((((((((((((`hours` `a` left join `emp` `b` on((`a`.`emp_id` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `emp_org_hrs` `d` on((`a`.`idemp_org_hrs` = `d`.`idemp_org_hrs`))) left join `emp_org` `e` on((`d`.`emp_org_id` = `e`.`emp_org_id`))) left join `company` `f` on((`e`.`comp_id` = `f`.`comp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `dev_apps` `j` on((`a`.`iddev_apps` = `j`.`iddev_apps`))) left join `dev_est` `m` on((`a`.`dev_est` = `m`.`iddev_est`))) left join `dev_est_reqs` `n` on((`a`.`dev_est_reqs` = `n`.`iddev_est_reqs`))) left join `emp` `o` on((`a`.`updater` = `o`.`emp_id`))) left join `storages` `p` on((`o`.`idstorages` = `p`.`idstorages`))) left join `look_ip_addr` `r` on((`a`.`iplook_ip_addr` = `r`.`idlook_ip_addr`))) left join `emp` `s` on((`a`.`approver` = `s`.`emp_id`))) left join `storages` `t` on((`s`.`idstorages` = `t`.`idstorages`))) left join `emp` `u` on((`a`.`approve_by` = `u`.`emp_id`))) left join `storages` `v` on((`u`.`idstorages` = `v`.`idstorages`))) left join `emp` `w` on((`a`.`del_by` = `w`.`emp_id`))) left join `storages` `x` on((`w`.`idstorages` = `x`.`idstorages`))) left join `emp` `y` on((`a`.`archv_by` = `y`.`emp_id`))) left join `storages` `z` on((`y`.`idstorages` = `z`.`idstorages`))) left join `company` `aa` on((`a`.`engage_ref_id` = `aa`.`comp_id`))) left join `storages` `ab` on((`aa`.`idstorages` = `ab`.`idstorages`))) left join `engage_entity` `ac` on((`a`.`engage_ref_id` = `ac`.`idengage_entity`))) left join `engage` `ad` on((`ac`.`engage_id` = `ad`.`engage_id`))) left join `company` `ae` on((`ad`.`srv_client` = `ae`.`comp_id`))) left join `storages` `af` on((`ae`.`idstorages` = `af`.`idstorages`))) left join `engage_entity` `ag` on((`a`.`engage_ref_id` = `ag`.`idengage_entity`))) left join `engage` `ah` on((`ag`.`engage_id` = `ah`.`engage_id`))) left join `company` `ai` on((`ah`.`srv_client` = `ai`.`comp_id`))) left join `storages` `aj` on((`ai`.`idstorages` = `aj`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_hours_access` -- /*!50001 DROP VIEW IF EXISTS `vw_hours_access`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_hours_access` AS select `a`.`idhours_access` AS `idhours_access`,`a`.`hrs_access_to` AS `hrs_access_to`,`c`.`file_name` AS `hrs_access_to_fnm`,concat(`b`.`firstname`,' ',`b`.`lastname`) AS `hrs_access_to_nm`,`a`.`hrs_access_of` AS `hrs_access_of`,`e`.`file_name` AS `hrs_access_fnm`,concat(`d`.`firstname`,' ',`d`.`lastname`) AS `hrs_access_of_nm`,`a`.`acc_from_dt` AS `acc_from_dt`,if(isnull(`a`.`acc_from_dt`),'ALL',date_format(`a`.`acc_from_dt`,'%m-%d-%y')) AS `acc_from_dt_fmt`,date_format(`a`.`acc_from_dt`,'%Y') AS `acc_from_yr`,date_format(`a`.`acc_from_dt`,'%M') AS `acc_from_mon`,`a`.`acc_to_dt` AS `acc_to_dt`,(case when (isnull(`a`.`acc_from_dt`) and isnull(`a`.`acc_to_dt`)) then 'ALL' when ((`a`.`acc_from_dt` is not null) and isnull(`a`.`acc_to_dt`)) then 'Today' when ((`a`.`acc_from_dt` is not null) and (`a`.`acc_to_dt` is not null)) then date_format(`a`.`acc_to_dt`,'%m-%d-%y') end) AS `acc_to_dt_fmt`,if(isnull(`a`.`acc_to_dt`),year(curdate()),date_format(`a`.`acc_to_dt`,'%Y')) AS `acc_to_yr`,if(isnull(`a`.`acc_to_dt`),monthname(curdate()),date_format(`a`.`acc_to_dt`,'%M')) AS `acc_to_mon`,`a`.`acc_type` AS `acc_type`,`a`.`updater` AS `updater`,`g`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`f`.`firstname`,' ',`f`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((((((`hours_access` `a` left join `emp` `b` on((`a`.`hrs_access_to` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `emp` `d` on((`a`.`hrs_access_of` = `d`.`emp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `emp` `f` on((`a`.`updater` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_hours_cy_bc` -- /*!50001 DROP VIEW IF EXISTS `vw_hours_cy_bc`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_hours_cy_bc` AS select `a`.`idhours_cy_bc` AS `idhours_cy_bc`,`a`.`idengage_entity` AS `idengage_entity`,`b`.`engage_id` AS `engage_id`,`c`.`srv_client` AS `srv_client`,`e`.`file_name` AS `srv_client_fnm`,`d`.`companyname` AS `srv_client_nm`,`c`.`srv_client_add` AS `srv_client_add`,`c`.`srv_client_con` AS `srv_client_con`,`c`.`srv_vendor` AS `srv_vendor`,`g`.`file_name` AS `srv_vendor_fnm`,`f`.`companyname` AS `srv_vendor_nm`,`c`.`srv_ven_add` AS `srv_ven_add`,`c`.`srv_ven_con` AS `srv_ven_con`,`c`.`srv_st_dt` AS `srv_st_dt`,date_format(`c`.`srv_st_dt`,'%m-%d-%y') AS `srv_st_dt_fmt`,`c`.`srv_e_dt` AS `srv_e_dt`,date_format(`c`.`srv_e_dt`,'%m-%d-%y') AS `srv_e_dt_fmt`,`b`.`engage_ref_tab` AS `engage_ref_tab`,`b`.`engage_ref_id` AS `engage_ref_id`,(case when (`b`.`engage_ref_tab` like 'Employee') then `i`.`file_name` when (`b`.`engage_ref_tab` like 'Company') then `k`.`file_name` end) AS `engage_ref_fnm`,(case when (`b`.`engage_ref_tab` like 'Employee') then concat(`h`.`firstname`,' ',`h`.`lastname`) when (`b`.`engage_ref_tab` like 'Company') then `j`.`companyname` end) AS `engage_ref_nm`,`b`.`bill_start_dt` AS `bill_start_dt`,date_format(`b`.`bill_start_dt`,'%m-%d-%y') AS `bill_start_dt_fmt`,`b`.`bill_cycle` AS `bill_cycle`,`b`.`bill_end_dt` AS `bill_end_dt`,ifnull(date_format(`b`.`bill_end_dt`,'%m-%d-%y'),'Billable') AS `bill_end_dt_fmt`,`b`.`bill_st_e_dt` AS `bill_st_e_dt`,ifnull(`b`.`bill_st_e_dt`,timestampdiff(DAY,`b`.`bill_start_dt`,ifnull(`b`.`bill_end_dt`,now()))) AS `bill_st_e_dt_vir`,`b`.`tentative_e_dt` AS `tentative_e_dt`,ifnull(date_format(`b`.`tentative_e_dt`,'%m-%d-%y'),date_format(`b`.`bill_end_dt`,'%m-%d-%y')) AS `tentative_e_dt_fmt`,`b`.`bill_pay_type` AS `bill_pay_type`,`b`.`bill_pay_cy` AS `bill_pay_cy`,`b`.`bill_pay_rate` AS `bill_pay_rate`,`b`.`bill_title` AS `bill_title`,`m`.`lk_val` AS `bill_title_nm`,`b`.`bill_hrs_mon` AS `bill_hrs_mon`,`b`.`bill_pay_rate_xtra` AS `bill_pay_rate_xtra`,`b`.`ts_cycle` AS `ts_cycle`,`b`.`netpay` AS `netpay`,`b`.`allow_inv` AS `allow_inv`,`b`.`show_emp` AS `show_emp`,`a`.`bc_st_dt` AS `bc_st_dt`,date_format(`a`.`bc_st_dt`,'%m-%d-%y') AS `bc_st_dt_fmt`,`a`.`bc_e_dt` AS `bc_e_dt`,date_format(`a`.`bc_e_dt`,'%m-%d-%y') AS `bc_e_dt_fmt`,`a`.`bc_due_dt` AS `bc_due_dt`,date_format(`a`.`bc_due_dt`,'%m-%d-%y') AS `bc_due_dt_fmt`,`a`.`bc_forcast_hr` AS `bc_forcast_hr`,`a`.`bc_actual_hr` AS `bc_actual_hr`,concat(ifnull(`a`.`bc_actual_hr`,'0'),' of ',ifnull(`a`.`bc_forcast_hr`,'0')) AS `bc_actual_hr_forcast_hr`,ifnull(`a`.`bc_hrs_pcnt`,'0.00%') AS `bc_hrs_pcnt`,`a`.`hr_approved` AS `hr_approved`,`a`.`hr_inv` AS `hr_inv`,`a`.`bc_forcast_inv` AS `bc_forcast_inv`,`a`.`bc_actual_inv` AS `bc_actual_inv`,concat(ifnull((case when ((`a`.`bc_actual_inv` > 999) and (`a`.`bc_actual_inv` < 1000000)) then convert(concat((trim(round((`a`.`bc_actual_inv` / 1000),2)) + 0),'K') using latin1) when (`a`.`bc_actual_inv` < 1000) then `a`.`bc_actual_inv` when ((`a`.`bc_actual_inv` > 999999) and (`a`.`bc_actual_inv` < 1000000000)) then convert(concat((trim(round((`a`.`bc_actual_inv` / 1000000),2)) + 0),'M') using latin1) when (`a`.`bc_actual_inv` > 999999999) then convert(concat((trim(round((`a`.`bc_actual_inv` / 1000000000),2)) + 0),'B') using latin1) end),'0.00'),' of ',ifnull((case when ((`a`.`bc_forcast_inv` > 999) and (`a`.`bc_forcast_inv` < 1000000)) then convert(concat((trim(round((`a`.`bc_forcast_inv` / 1000),2)) + 0),'K') using latin1) when (`a`.`bc_forcast_inv` < 1000) then `a`.`bc_forcast_inv` when ((`a`.`bc_forcast_inv` > 999999) and (`a`.`bc_forcast_inv` < 1000000000)) then convert(concat((trim(round((`a`.`bc_forcast_inv` / 1000000),2)) + 0),'M') using latin1) when (`a`.`bc_forcast_inv` > 999999999) then convert(concat((trim(round((`a`.`bc_forcast_inv` / 1000000000),2)) + 0),'B') using latin1) end),'0.00')) AS `bc_actual_inv_forcast_inv`,ifnull(`a`.`bc_inv_pcnt`,'0.00%') AS `bc_inv_pcnt`,`a`.`show_hide` AS `show_hide`,`a`.`updater` AS `updater`,`o`.`file_name` AS `updater_fnm`,ifnull(concat(`n`.`firstname`,' ',`n`.`lastname`),'Admin') AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((((((((((((((`hours_cy_bc` `a` left join `engage_entity` `b` on((`a`.`idengage_entity` = `b`.`idengage_entity`))) left join `engage` `c` on((`b`.`engage_id` = `c`.`engage_id`))) left join `company` `d` on((`c`.`srv_client` = `d`.`comp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `company` `f` on((`c`.`srv_vendor` = `f`.`comp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `emp` `h` on((`b`.`engage_ref_id` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) left join `company` `j` on((`b`.`engage_ref_id` = `j`.`comp_id`))) left join `storages` `k` on((`j`.`idstorages` = `k`.`idstorages`))) left join `comp_lk_val` `l` on((`b`.`bill_pay_type` = `l`.`idcomp_lk_val`))) left join `comp_lk_val` `m` on((`b`.`bill_title` = `m`.`idcomp_lk_val`))) left join `emp` `n` on((`a`.`updater` = `n`.`emp_id`))) left join `storages` `o` on((`n`.`idstorages` = `o`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_hours_cy_tc` -- /*!50001 DROP VIEW IF EXISTS `vw_hours_cy_tc`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_hours_cy_tc` AS select `a`.`idhours_cy_tc` AS `idhours_cy_tc`,`a`.`idengage_entity` AS `idengage_entity`,`b`.`engage_id` AS `engage_id`,`c`.`srv_client` AS `srv_client`,`e`.`file_name` AS `srv_client_fnm`,`d`.`companyname` AS `srv_client_nm`,`c`.`srv_client_add` AS `srv_client_add`,`c`.`srv_client_con` AS `srv_client_con`,`c`.`srv_vendor` AS `srv_vendor`,`g`.`file_name` AS `srv_vendor_fnm`,`f`.`companyname` AS `srv_vendor_nm`,`c`.`srv_ven_add` AS `srv_ven_add`,`c`.`srv_ven_con` AS `srv_ven_con`,`c`.`srv_st_dt` AS `srv_st_dt`,date_format(`c`.`srv_st_dt`,'%m-%d-%y') AS `srv_st_dt_fmt`,`c`.`srv_e_dt` AS `srv_e_dt`,date_format(`c`.`srv_e_dt`,'%m-%d-%y') AS `srv_e_dt_fmt`,`b`.`engage_ref_tab` AS `engage_ref_tab`,`b`.`engage_ref_id` AS `engage_ref_id`,(case when (`b`.`engage_ref_tab` like 'Employee') then `i`.`file_name` when (`b`.`engage_ref_tab` like 'Company') then `k`.`file_name` end) AS `engage_ref_fnm`,(case when (`b`.`engage_ref_tab` like 'Employee') then concat(`h`.`firstname`,' ',`h`.`lastname`) when (`b`.`engage_ref_tab` like 'Company') then `j`.`companyname` end) AS `engage_ref_nm`,`b`.`bill_start_dt` AS `bill_start_dt`,date_format(`b`.`bill_start_dt`,'%m-%d-%y') AS `bill_start_dt_fmt`,`b`.`bill_cycle` AS `bill_cycle`,`b`.`bill_end_dt` AS `bill_end_dt`,ifnull(date_format(`b`.`bill_end_dt`,'%m-%d-%y'),'Billable') AS `bill_end_dt_fmt`,`b`.`bill_st_e_dt` AS `bill_st_e_dt`,ifnull(`b`.`bill_st_e_dt`,timestampdiff(DAY,`b`.`bill_start_dt`,ifnull(`b`.`bill_end_dt`,now()))) AS `bill_st_e_dt_vir`,`b`.`tentative_e_dt` AS `tentative_e_dt`,ifnull(date_format(`b`.`tentative_e_dt`,'%m-%d-%y'),date_format(`b`.`bill_end_dt`,'%m-%d-%y')) AS `tentative_e_dt_fmt`,`b`.`bill_pay_type` AS `bill_pay_type`,`b`.`bill_pay_cy` AS `bill_pay_cy`,`b`.`bill_pay_rate` AS `bill_pay_rate`,`b`.`bill_title` AS `bill_title`,`m`.`lk_val` AS `bill_title_nm`,`b`.`bill_hrs_mon` AS `bill_hrs_mon`,`b`.`bill_pay_rate_xtra` AS `bill_pay_rate_xtra`,`b`.`ts_cycle` AS `ts_cycle`,`b`.`netpay` AS `netpay`,`b`.`allow_inv` AS `allow_inv`,`b`.`show_emp` AS `show_emp`,`a`.`tc_st_dt` AS `tc_st_dt`,date_format(`a`.`tc_st_dt`,'%m-%d-%y') AS `tc_st_dt_fmt`,`a`.`tc_e_dt` AS `tc_e_dt`,date_format(`a`.`tc_e_dt`,'%m-%d-%y') AS `tc_e_dt_fmt`,`a`.`tc_due_dt` AS `tc_due_dt`,date_format(`a`.`tc_due_dt`,'%m-%d-%y') AS `tc_due_dt_fmt`,`a`.`tc_forcast_hr` AS `tc_forcast_hr`,`a`.`tc_actual_hr` AS `tc_actual_hr`,concat(ifnull(`a`.`tc_actual_hr`,'0'),' of ',ifnull(`a`.`tc_forcast_hr`,'0')) AS `tc_actual_hr_forcast_hr`,ifnull(`a`.`tc_hrs_pcnt`,'0.00%') AS `tc_hrs_pcnt`,`a`.`hr_approved` AS `hr_approved`,`a`.`show_hide` AS `show_hide`,`a`.`updater` AS `updater`,`o`.`file_name` AS `updater_fnm`,ifnull(concat(`n`.`firstname`,' ',`n`.`lastname`),'Admin') AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((((((((((((((`hours_cy_tc` `a` left join `engage_entity` `b` on((`a`.`idengage_entity` = `b`.`idengage_entity`))) left join `engage` `c` on((`b`.`engage_id` = `c`.`engage_id`))) left join `company` `d` on((`c`.`srv_client` = `d`.`comp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `company` `f` on((`c`.`srv_vendor` = `f`.`comp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `emp` `h` on((`b`.`engage_ref_id` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) left join `company` `j` on((`b`.`engage_ref_id` = `j`.`comp_id`))) left join `storages` `k` on((`j`.`idstorages` = `k`.`idstorages`))) left join `comp_lk_val` `l` on((`b`.`bill_pay_type` = `l`.`idcomp_lk_val`))) left join `comp_lk_val` `m` on((`b`.`bill_title` = `m`.`idcomp_lk_val`))) left join `emp` `n` on((`a`.`updater` = `n`.`emp_id`))) left join `storages` `o` on((`n`.`idstorages` = `o`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_hours_hist` -- /*!50001 DROP VIEW IF EXISTS `vw_hours_hist`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_hours_hist` AS select `a`.`idhour_hist` AS `idhour_hist`,`a`.`hour_id` AS `hour_id`,`a`.`hr_st_dt` AS `hr_st_dt`,date_format(`a`.`hr_st_dt`,'%m-%d-%y') AS `hr_st_dt_fmt`,dayname(`a`.`hr_st_dt`) AS `hr_st_day`,time_format(`a`.`hr_st_dt`,'%h:%i %p') AS `hr_st_dt_tm_fmt`,`a`.`hr_e_dt` AS `hr_e_dt`,date_format(`a`.`hr_e_dt`,'%m-%d-%y') AS `hr_e_dt_fmt`,dayname(`a`.`hr_e_dt`) AS `hr_e_day`,time_format(`a`.`hr_e_dt`,'%h:%i %p') AS `hr_e_dt_tm_fmt`,concat(date_format(`a`.`hr_st_dt`,'%b-%d %a'),' ',time_format(`a`.`hr_st_dt`,'%h:%i %p'),' To',' ',time_format(`a`.`hr_e_dt`,'%h:%i %p')) AS `hr_st_e_dt_tm_fmt`,`a`.`off_time` AS `off_time`,concat(time_format(`a`.`off_time`,'%H'),':',format((time_format(`a`.`off_time`,'%i') * 1.67),0)) AS `off_tm_nm`,`a`.`hr_tol` AS `hr_tol`,concat(time_format(`a`.`hr_tol`,'%H'),':',format((time_format(`a`.`hr_tol`,'%i') * 1.67),0)) AS `hr_tol_nm`,`a`.`iddev_apps` AS `iddev_apps`,ifnull(`b`.`app_name`,'No Apex') AS `app_nm`,`a`.`dev_est` AS `dev_est`,ifnull(`a`.`dev_est`,'No Glacier') AS `dev_est_nm`,ifnull(`c`.`dev_est_smry`,'No Glacier Summary') AS `dev_est_smry`,`a`.`dev_est_reqs` AS `dev_est_reqs`,ifnull(`a`.`dev_est_reqs`,'No Cubes') AS `dev_est_reqs_nm`,ifnull(`d`.`req_desc`,'No Cube Description') AS `req_desc`,concat('Apex: ',ifnull(`b`.`app_name`,'No Apex'),', ','Glacier ID: ',convert(ifnull(`a`.`dev_est`,'No Glacier') using latin1),', ','Cube Id: ',convert(ifnull(`a`.`dev_est_reqs`,'No Cubes') using latin1),', ','Cube Desc: ',ifnull(`d`.`req_desc`,'No Cube Description')) AS `agile_details`,`a`.`hrs_type` AS `hrs_type`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`updater` AS `updater`,`f`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`e`.`firstname`,' ',`e`.`lastname`)) AS `updater_nm`,`a`.`iplook_ip_addr` AS `iplook_ip_addr`,`g`.`ip_address` AS `ip_address`,`g`.`domain_nm` AS `domain_nm`,ifnull(`g`.`ip_contry`,'No Country') AS `ip_contry`,ifnull(`g`.`ip_state`,'No State') AS `ip_state`,`g`.`ip_city` AS `ip_city`,`g`.`ip_post_code` AS `ip_post_code`,`a`.`approver` AS `approver`,`i`.`file_name` AS `approver_fnm`,if(isnull(`a`.`approver`),'Admin',concat(`h`.`firstname`,' ',`h`.`lastname`)) AS `approver_nm`,`a`.`summary` AS `summary` from ((((((((`hours_hist` `a` left join `dev_apps` `b` on((`a`.`iddev_apps` = `b`.`iddev_apps`))) left join `dev_est` `c` on((`a`.`dev_est` = `c`.`iddev_est`))) left join `dev_est_reqs` `d` on((`a`.`dev_est_reqs` = `d`.`iddev_est_reqs`))) left join `emp` `e` on((`a`.`updater` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `look_ip_addr` `g` on((`a`.`iplook_ip_addr` = `g`.`idlook_ip_addr`))) left join `emp` `h` on((`a`.`approver` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_hours_time` -- /*!50001 DROP VIEW IF EXISTS `vw_hours_time`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_hours_time` AS select `a`.`timecard_id` AS `timecard_id`,`a`.`emp_id` AS `emp_id`,`c`.`file_name` AS `emp_fnm`,concat(`b`.`firstname`,' ',`b`.`lastname`) AS `emp_nm`,`a`.`comp_id` AS `comp_id`,`e`.`file_name` AS `comp_fnm`,`d`.`companyname` AS `comp_nm`,`a`.`timefrom_dt` AS `timefrom_dt`,date_format(`a`.`timefrom_dt`,'%m-%d-%y') AS `timefrom_dt_fmt`,date_format(`a`.`timefrom_dt`,'%Y') AS `timefrom_dt_yr`,date_format(`a`.`timefrom_dt`,'%M') AS `timefrom_dt_mon`,`a`.`timeto_dt` AS `timeto_dt`,date_format(`a`.`timeto_dt`,'%m-%d-%y') AS `timeto_dt_fmt`,`a`.`timefrom_to_day` AS `timefrom_to_day`,`a`.`bill_hrs` AS `bill_hrs`,`a`.`unbill_hrs` AS `unbill_hrs`,`a`.`total_hrs` AS `total_hrs`,`a`.`validate_dt` AS `validate_dt`,if(isnull(`a`.`validate_dt`),'Pending',convert(date_format(`a`.`validate_dt`,'%m-%d-%y') using utf8mb4)) AS `validate_dt_fmt`,if(isnull(`a`.`validate_dt`),'No','Yes') AS `validate_dt_cur_stat`,`a`.`validate_by` AS `validate_by`,`g`.`file_name` AS `validate_by_fnm`,if(isnull(`a`.`validate_by`),'Not Validated',concat(`f`.`firstname`,' ',`f`.`lastname`)) AS `validate_by_nm`,`a`.`summary` AS `summary`,`a`.`idstorages` AS `idstorages`,if(isnull(`a`.`idstorages`),'N','Y') AS `idstorages_cur_stat`,`n`.`file_name` AS `file_name`,`n`.`file_ser_name` AS `file_ser_name`,`n`.`file_size` AS `file_size`,`n`.`owner_id` AS `owner_id`,`p`.`file_name` AS `owner_fnm`,if(isnull(`n`.`owner_id`),'No Owner',concat(trim(ifnull(`o`.`firstname`,'')),' ',trim(ifnull(nullif(`o`.`middlename`,''),'')),convert((case when ((`o`.`middlename` is not null) and (`o`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`o`.`lastname`,'')))) AS `owner_nm`,`n`.`ext_type` AS `ext_type`,`n`.`public` AS `public`,`n`.`self_view` AS `self_view`,`n`.`smry` AS `smry`,`a`.`last_updated` AS `last_updated`,date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p') AS `last_updated_fmt`,`a`.`updated_by` AS `updated_by`,`i`.`file_name` AS `updated_by_fnm`,ifnull(concat(`h`.`firstname`,' ',`h`.`lastname`),'Admin') AS `updated_by_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(date_format(`a`.`del_dt`,'%Y'),'Not Deleted') AS `del_dt_yr`,ifnull(date_format(`a`.`del_dt`,'%M'),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`k`.`file_name` AS `del_by_fnm`,if(isnull(`a`.`del_by`),'Admin',concat(`j`.`firstname`,' ',`j`.`lastname`)) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then date_format(`a`.`archv_dt`,'%Y') when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then date_format(`a`.`archv_dt`,'%M') when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`m`.`file_name` AS `archv_by_fnm`,if(isnull(`a`.`archv_by`),'Admin',concat(`l`.`firstname`,' ',`l`.`lastname`)) AS `archv_by_nm` from (((((((((((((((`hours_time` `a` left join `emp` `b` on((`a`.`emp_id` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `company` `d` on((`a`.`comp_id` = `d`.`comp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `emp` `f` on((`a`.`validate_by` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `emp` `h` on((`a`.`updated_by` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) left join `emp` `j` on((`a`.`del_by` = `j`.`emp_id`))) left join `storages` `k` on((`j`.`idstorages` = `k`.`idstorages`))) left join `emp` `l` on((`a`.`archv_by` = `l`.`emp_id`))) left join `storages` `m` on((`l`.`idstorages` = `m`.`idstorages`))) left join `storages` `n` on((`a`.`idstorages` = `n`.`idstorages`))) left join `emp` `o` on((`n`.`owner_id` = `o`.`emp_id`))) left join `storages` `p` on((`o`.`idstorages` = `p`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_hr_audit` -- /*!50001 DROP VIEW IF EXISTS `vw_hr_audit`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_hr_audit` AS select `a`.`idhr_audit` AS `idhr_audit`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,date_format(`a`.`updated`,'%Y') AS `updated_fmt_yr`,date_format(`a`.`updated`,'%M') AS `updated_fmt_mon`,dayname(`a`.`updated`) AS `updated_fmt_day`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,(case when (isnull(`a`.`updated`) and isnull(`a`.`updater`)) then 'Not Updated' when (isnull(`a`.`updater`) and (`a`.`updated` is not null)) then 'Admin' when ((`a`.`updated` is not null) and (`a`.`updater` is not null)) then concat(`b`.`firstname`,' ',`b`.`lastname`) end) AS `updater_nm`,`a`.`table_update` AS `table_update`,`a`.`action` AS `action`,`a`.`table_id` AS `table_id`,`a`.`col1` AS `col1`,`a`.`idlook_menu_pvt_lvl2` AS `idlook_menu_pvt_lvl2`,`d`.`lk_values` AS `idlook_menu_pvt_lvl2_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`f`.`file_name` AS `del_by_fnm`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`del_by`)) then 'Not Deleted' when (isnull(`a`.`del_by`) and (`a`.`del_dt` is not null)) then 'Admin' when ((`a`.`del_dt` is not null) and (`a`.`del_by` is not null)) then concat(`e`.`firstname`,' ',`e`.`lastname`) end) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`h`.`file_name` AS `archv_by_fnm`,(case when (isnull(`a`.`archv_dt`) and isnull(`a`.`archv_by`)) then 'Not Archived' when (isnull(`a`.`archv_by`) and (`a`.`archv_dt` is not null)) then 'Admin' when ((`a`.`archv_dt` is not null) and (`a`.`archv_by` is not null)) then concat(`g`.`firstname`,' ',`g`.`lastname`) end) AS `archv_by_nm` from (((((((`hr_audit` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `look_menu_pvt` `d` on((`a`.`idlook_menu_pvt_lvl2` = `d`.`idlook_menu_pvt`))) left join `emp` `e` on((`a`.`del_by` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `emp` `g` on((`a`.`archv_by` = `g`.`emp_id`))) left join `storages` `h` on((`g`.`idstorages` = `h`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_hr_meeting` -- /*!50001 DROP VIEW IF EXISTS `vw_hr_meeting`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_hr_meeting` AS select `a`.`idhr_meeting` AS `idhr_meeting`,`a`.`st_tm_est` AS `st_tm_est`,`a`.`e_tm_est` AS `e_tm_est`,ifnull(concat('From',' ',time_format(`a`.`st_tm_est`,'%h:%i %p'),' ','To',' ',time_format(`a`.`e_tm_est`,'%h:%i %p')),'None') AS `est_meeting_time`,`a`.`st_tm_ist` AS `st_tm_ist`,`a`.`e_tm_ist` AS `e_tm_ist`,ifnull(concat('From',' ',time_format(`a`.`st_tm_ist`,'%h:%i %p'),' ','To',' ',time_format(`a`.`e_tm_ist`,'%h:%i %p')),'None') AS `ist_meeting_time`,`a`.`description` AS `description`,`a`.`attendances` AS `attendants`,`a`.`scrum_master` AS `scrum_master`,ifnull(time_format(`a`.`last_updated`,'%h:%i %p'),'Never') AS `last_updated`,ifnull(concat(`c`.`firstname`,' ',`c`.`lastname`),'Admin') AS `updater` from (`hr_meeting` `a` left join `emp` `c` on((`a`.`updater` = `c`.`emp_id`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_hr_policy` -- /*!50001 DROP VIEW IF EXISTS `vw_hr_policy`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_hr_policy` AS select `a`.`idhr_policy` AS `idhr_policy`,`a`.`lk_policy` AS `lk_policy`,`a`.`lk_policy_desc` AS `lk_policy_desc`,`a`.`lk_disp_id` AS `lk_disp_id`,`a`.`lk_paren_tag_id` AS `lk_paren_tag_id`,`a`.`updater` AS `updater`,ifnull(`b`.`fullname`,'Admin') AS `updater_nm`,`a`.`last_updated` AS `last_updated`,ifnull(date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p'),'Never') AS `last_updated_fmt`,concat(ifnull(`b`.`fullname`,'Admin'),convert(ifnull(date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p'),'Never') using latin1)) AS `last_updated_by`,`a`.`lk_policy_text` AS `lk_policy_text` from (`hr_policy` `a` left join `vw_emp` `b` on((`a`.`updater` = `b`.`emp_id`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_hr_recruit_lk` -- /*!50001 DROP VIEW IF EXISTS `vw_hr_recruit_lk`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_hr_recruit_lk` AS select `a`.`idhr_recruit_lk_val` AS `idhr_recruit_lk_val`,`a`.`idhr_recruit_lk` AS `idhr_recruit_lk`,`a`.`lk_val` AS `hr_val`,`a`.`lk_val_desc` AS `lk_val_desc`,`a`.`disp_order` AS `disp_order`,`a`.`idhr_recruit_lk` AS `parent_id`,`a`.`updater` AS `updater`,`d`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`b`.`firstname`,' ',`b`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) AS `updated_fmt`,concat(ifnull(concat(`b`.`firstname`,' ',`b`.`lastname`),'Admin'),' ',convert(if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) using latin1)) AS `updated_by` from ((`hr_recruit_lk_val` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `d` on((`d`.`idstorages` = `b`.`idstorages`))) union all select NULL AS `idhr_recruit_lk_val`,`a`.`idhr_recruit_lk` AS `idhr_recruit_lk`,`a`.`lk_nm` AS `lk_nm`,`a`.`lk_nm_desc` AS `lk_nm_desc`,`a`.`disp_order` AS `disp_order`,NULL AS `parent_id`,`a`.`updater` AS `updater`,`d`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`b`.`firstname`,' ',`b`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) AS `updated_fmt`,concat(ifnull(concat(`b`.`firstname`,' ',`b`.`lastname`),'Admin'),' ',convert(if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) using latin1)) AS `updated_by` from ((`hr_recruit_lk` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `d` on((`d`.`idstorages` = `b`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_hr_recruit_lk_tag` -- /*!50001 DROP VIEW IF EXISTS `vw_hr_recruit_lk_tag`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_hr_recruit_lk_tag` AS select `a`.`idhr_recruit_lk_tag` AS `idhr_recruit_lk_tag`,`a`.`lk_tag` AS `lk_tag`,`a`.`lk_tag_desc` AS `lk_tag_desc`,`a`.`lk_disp_id` AS `lk_disp_id`,`a`.`lk_parent_tag_id` AS `lk_parent_tag_id`,`a`.`updater` AS `updater`,if(isnull(`a`.`updater`),'Admin',concat(`e`.`firstname`,' ',`e`.`lastname`)) AS `updater_fmt`,`s`.`file_name` AS `updater_file_name`,`a`.`last_updated` AS `last_updated`,if(isnull(`a`.`last_updated`),'Never',date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p')) AS `last_updated_fmt`,concat(if(isnull(`a`.`updater`),'Admin',concat(`e`.`firstname`,' ',`e`.`lastname`)),' ',convert(if(isnull(`a`.`last_updated`),'Never',date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p')) using latin1)) AS `last_updated_by` from ((`hr_recruit_lk_tag` `a` left join `emp` `e` on((`a`.`updater` = `e`.`emp_id`))) left join `storages` `s` on((`e`.`idstorages` = `s`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_hr_recruit_lk_val` -- /*!50001 DROP VIEW IF EXISTS `vw_hr_recruit_lk_val`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_hr_recruit_lk_val` AS select `a`.`idhr_recruit_lk_val` AS `idhr_recruit_lk_val`,NULL AS `idhr_recruit_lk`,`a`.`lk_val_par` AS `lk_val_par`,`a`.`lk_val` AS `hr_val`,`a`.`lk_val_desc` AS `lk_val_desc`,`a`.`disp_order` AS `disp_order`,`a`.`idhr_recruit_lk` AS `parent_id`,`a`.`updater` AS `updater`,`d`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`b`.`firstname`,' ',`b`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) AS `updated_fmt`,concat(ifnull(concat(`b`.`firstname`,' ',`b`.`lastname`),'Admin'),' ',convert(if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) using latin1)) AS `updated_by` from ((`hr_recruit_lk_val` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `d` on((`d`.`idstorages` = `b`.`idstorages`))) union all select NULL AS `NULL`,`a`.`idhr_recruit_lk` AS `idhr_recruit_lk`,NULL AS `lk_val_par`,`a`.`lk_nm` AS `lk_nm`,`a`.`lk_nm_desc` AS `lk_nm_desc`,`a`.`disp_order` AS `disp_order`,NULL AS `NULL`,`a`.`updater` AS `updater`,`d`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`b`.`firstname`,' ',`b`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) AS `updated_fmt`,concat(ifnull(concat(`b`.`firstname`,' ',`b`.`lastname`),'Admin'),' ',convert(if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) using latin1)) AS `updated_by` from ((`hr_recruit_lk` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `d` on((`d`.`idstorages` = `b`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_immi_audit` -- /*!50001 DROP VIEW IF EXISTS `vw_immi_audit`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_immi_audit` AS select `a`.`idimmi_audit` AS `idimmi_audit`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,date_format(`a`.`updated`,'%Y') AS `updated_fmt_yr`,date_format(`a`.`updated`,'%M') AS `updated_fmt_mon`,dayname(`a`.`updated`) AS `updated_fmt_day`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,(case when (isnull(`a`.`updated`) and isnull(`a`.`updater`)) then 'Not Updated' when (isnull(`a`.`updater`) and (`a`.`updated` is not null)) then 'Admin' when ((`a`.`updated` is not null) and (`a`.`updater` is not null)) then concat(`b`.`firstname`,' ',`b`.`lastname`) end) AS `updater_nm`,`a`.`table_update` AS `table_update`,`a`.`action` AS `action`,`a`.`table_id` AS `table_id`,`a`.`col1` AS `col1`,`a`.`idlook_menu_pvt_lvl2` AS `idlook_menu_pvt_lvl2`,`d`.`lk_values` AS `idlook_menu_pvt_lvl2_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`f`.`file_name` AS `del_by_fnm`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`del_by`)) then 'Not Deleted' when (isnull(`a`.`del_by`) and (`a`.`del_dt` is not null)) then 'Admin' when ((`a`.`del_dt` is not null) and (`a`.`del_by` is not null)) then concat(`e`.`firstname`,' ',`e`.`lastname`) end) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`h`.`file_name` AS `archv_by_fnm`,(case when (isnull(`a`.`archv_dt`) and isnull(`a`.`archv_by`)) then 'Not Archived' when (isnull(`a`.`archv_by`) and (`a`.`archv_dt` is not null)) then 'Admin' when ((`a`.`archv_dt` is not null) and (`a`.`archv_by` is not null)) then concat(`g`.`firstname`,' ',`g`.`lastname`) end) AS `archv_by_nm` from (((((((`immi_audit` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `look_menu_pvt` `d` on((`a`.`idlook_menu_pvt_lvl2` = `d`.`idlook_menu_pvt`))) left join `emp` `e` on((`a`.`del_by` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `emp` `g` on((`a`.`archv_by` = `g`.`emp_id`))) left join `storages` `h` on((`g`.`idstorages` = `h`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_immi_lk_val` -- /*!50001 DROP VIEW IF EXISTS `vw_immi_lk_val`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_immi_lk_val` AS select `a`.`idimmi_lk_val` AS `idimmi_lk_val`,NULL AS `idimmi_lk`,`a`.`lk_val` AS `lk_val`,`a`.`lk_val_desc` AS `lk_val_desc`,`a`.`immi_form` AS `immi_form`,`a`.`disp_order` AS `disp_order`,`a`.`idimmi_lk` AS `parent_id`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,concat(`b`.`firstname`,' ',`b`.`lastname`) AS `updater_nm`,`a`.`lk_parent_val_id` AS `lk_parent_val_id`,`d`.`lk_val` AS `parent_lk_val`,`d`.`lk_val_desc` AS `parent_lk_val_desc`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from (((`immi_lk_val` `a` left join `emp` `b` on((`b`.`emp_id` = `a`.`updater`))) left join `storages` `c` on((`c`.`idstorages` = `b`.`idstorages`))) left join `immi_lk_val` `d` on((`d`.`idimmi_lk_val` = `a`.`lk_parent_val_id`))) union all select NULL AS `NULL`,`a`.`idimmi_lk` AS `idimmi_lk`,`a`.`lk_nm` AS `lk_nm`,`a`.`lk_nm_desc` AS `lk_nm_desc`,NULL AS `NULL`,`a`.`disp_order` AS `disp_order`,NULL AS `NULL`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,concat(`b`.`firstname`,' ',`b`.`lastname`) AS `updater_nm`,NULL AS `NULL`,NULL AS `NULL`,NULL AS `NULL`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((`immi_lk` `a` left join `emp` `b` on((`b`.`emp_id` = `a`.`updater`))) left join `storages` `c` on((`c`.`idstorages` = `b`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_immi_lk_wrk_flow` -- /*!50001 DROP VIEW IF EXISTS `vw_immi_lk_wrk_flow`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_immi_lk_wrk_flow` AS select `a`.`idimmi_lk_wrk_flow` AS `idimmi_lk_wrk_flow`,`a`.`wrk_flow_nm` AS `wrk_flow_nm`,`a`.`id_wrk_flow` AS `id_wrk_flow`,`a`.`wrk_flow_desc` AS `wrk_flow_desc`,`a`.`id_wrk_flow_parent` AS `id_wrk_flow_parent`,`a`.`look_restart` AS `look_restart`,`a`.`look_initial` AS `look_initial`,`a`.`disp_order` AS `disp_order`,`a`.`updater` AS `updater`,ifnull(concat(`c`.`firstname`,' ',`c`.`lastname`),'Admin') AS `updater_fmt`,`a`.`updated` AS `updated`,if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) AS `updated_fmt`,concat(ifnull(concat(`c`.`firstname`,' ',`c`.`lastname`),'Admin'),' ',convert(if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) using latin1)) AS `last_updated_by`,`b`.`lk_val` AS `lk_val` from ((`immi_lk_wrk_flow` `a` left join `immi_lk_val` `b` on((`a`.`id_wrk_flow` = `b`.`idimmi_lk_val`))) left join `emp` `c` on((`a`.`updater` = `c`.`emp_id`))) order by `a`.`disp_order` */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_immi_qry` -- /*!50001 DROP VIEW IF EXISTS `vw_immi_qry`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_immi_qry` AS select `a`.`idimmi_qry` AS `idimmi_qry`,`a`.`disp_order` AS `disp_order`,`a`.`immi_desc` AS `immi_desc`,`a`.`immi_desc_detail` AS `immi_desc_detail`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,ifnull(concat(`b`.`firstname`,' ',`b`.`lastname`),'Admin') AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`del_by` AS `del_by`,`e`.`file_name` AS `del_by_fnm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(concat(`d`.`firstname`,' ',`d`.`lastname`),'Admin') AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_by` AS `archv_by`,`g`.`file_name` AS `archv_by_fnm`,ifnull(concat(`f`.`firstname`,' ',`f`.`lastname`),'Admin') AS `archv_by_nm`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt` from ((((((`immi_qry` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`c`.`idstorages` = `b`.`idstorages`))) left join `emp` `d` on((`a`.`del_by` = `d`.`emp_id`))) left join `storages` `e` on((`e`.`idstorages` = `d`.`idstorages`))) left join `emp` `f` on((`a`.`archv_by` = `f`.`emp_id`))) left join `storages` `g` on((`g`.`idstorages` = `f`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_immi_rcpt` -- /*!50001 DROP VIEW IF EXISTS `vw_immi_rcpt`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_immi_rcpt` AS select `a`.`idimmi_rcpt` AS `idimmi_rcpt`,`a`.`comp_id` AS `comp_id`,`i`.`file_name` AS `comp_fnm`,`h`.`companyname` AS `comp_nm`,`a`.`rcpt_no` AS `rcpt_no`,`a`.`rcpt_par_cnt` AS `rcpt_par_cnt`,ifnull(`a`.`rcpt_par_cnt`,'None') AS `rcpt_par_cnt_nm`,`a`.`rcpt_ch_cnt` AS `rcpt_ch_cnt`,ifnull(`a`.`rcpt_ch_cnt`,'None') AS `rcpt_ch_cnt_nm`,`a`.`rcpt_type` AS `rcpt_type`,`m`.`lk_val` AS `rcpt_type_nm`,`a`.`rcpt_type_sub` AS `rcpt_type_sub`,ifnull(`v`.`lk_val`,'No Category') AS `rcpt_type_sub_nm`,`a`.`rcpt_loc_cnt` AS `rcpt_loc_cnt`,ifnull(`a`.`rcpt_loc_cnt`,'None') AS `rcpt_loc_cnt_nm`,`a`.`rcpt_address` AS `rcpt_address`,ifnull(`a`.`rcpt_address`,'No Address') AS `rcpt_address_nm`,`a`.`emp_id` AS `emp_id`,`c`.`file_name` AS `emp_fnm`,ifnull(concat(`b`.`firstname`,' ',`b`.`lastname`),'Admin') AS `emp_nm`,`a`.`filed_dt` AS `filed_dt`,date_format(`a`.`filed_dt`,'%m-%d-%y') AS `filed_dt_fmt`,date_format(`a`.`filed_dt`,'%Y') AS `filed_dt_yr`,date_format(`a`.`filed_dt`,'%M') AS `filed_dt_mon`,`a`.`ad_title` AS `ad_title`,ifnull(`n`.`lk_val`,'No Title') AS `ad_title_nm`,`a`.`occ_code` AS `occ_code`,ifnull(`p`.`lk_val`,'No Occ Code') AS `occ_code_nm`,`a`.`skill_level` AS `skill_level`,ifnull(`q`.`lk_val`,'None') AS `skill_level_nm`,`a`.`from_dt` AS `from_dt`,date_format(`a`.`from_dt`,'%m-%d-%y') AS `from_dt_fmt`,date_format(`a`.`from_dt`,'%Y') AS `from_dt_yr`,date_format(`a`.`from_dt`,'%M') AS `from_dt_mon`,`a`.`to_dt` AS `to_dt`,date_format(`a`.`to_dt`,'%m-%d-%y') AS `to_dt_fmt`,date_format(`a`.`to_dt`,'%Y') AS `to_dt_yr`,date_format(`a`.`to_dt`,'%M') AS `to_dt_mon`,`a`.`from_to_dt_days` AS `from_to_dt_days`,ifnull(`a`.`from_to_dt_days`,timestampdiff(DAY,`a`.`from_dt`,now())) AS `from_to_dt_days_vir`,concat('From: ',if(isnull(`a`.`from_dt`),'No From',date_format(`a`.`from_dt`,'%m-%d-%y')),', To: ',if(isnull(`a`.`to_dt`),'No To',date_format(`a`.`to_dt`,'%m-%d-%y')),', Days: ',ifnull(`a`.`from_to_dt_days`,timestampdiff(DAY,`a`.`from_dt`,now()))) AS `from_to_dt_days_combo`,`a`.`valid_days` AS `valid_days`,ifnull(`a`.`valid_days`,'No Grace') AS `valid_days_nm`,`a`.`expire_dt` AS `expire_dt`,date_format(`a`.`expire_dt`,'%m-%d-%y') AS `expire_dt_fmt`,date_format(`a`.`expire_dt`,'%Y-%M') AS `expire_dt_fmt2`,(case when (`a`.`expire_dt` < now()) then date_format(`a`.`expire_dt`,'%m-%d-%y') when (`a`.`expire_dt` > now()) then timestampdiff(DAY,now(),`a`.`expire_dt`) end) AS `expire_dt_no_days`,(case when isnull(`a`.`expire_dt`) then 'No Expiry' when (`a`.`expire_dt` < now()) then 'Yes' when (`a`.`expire_dt` > now()) then 'No' end) AS `expire_dt_cur_stat`,`a`.`education` AS `education`,ifnull(`r`.`lk_val`,'Not Entered') AS `education_nm`,`a`.`exp_yr` AS `exp_yr`,ifnull(`a`.`exp_yr`,'No Experience') AS `exp_yr_nm`,`a`.`sal_type` AS `sal_type`,ifnull(`a`.`sal_type`,'Not Mentioned') AS `sal_type_nm`,`a`.`sal_amt` AS `sal_amt`,`j`.`lk_val` AS `sal_amt_nm`,`a`.`assigned_to` AS `assigned_to`,`y`.`file_name` AS `assigned_to_fnm`,if(isnull(`a`.`assigned_to`),'Admin',concat(`x`.`firstname`,' ',`x`.`lastname`)) AS `assigned_to_nm`,`a`.`idimmi_lk_wrk_flow` AS `idimmi_lk_wrk_flow`,ifnull(`w`.`wrk_flow_nm`,'No Workflow') AS `idimmi_lk_wrk_flow_nm`,`a`.`immi_stat_st_dt` AS `immi_stat_st_dt`,date_format(`a`.`immi_stat_st_dt`,'%m-%d-%y') AS `immi_stat_st_dt_fmt`,`a`.`immi_stat_e_est_dt` AS `immi_stat_e_est_dt`,date_format(`a`.`immi_stat_e_est_dt`,'%m-%d-%y') AS `immi_stat_e_est_dt_fmt`,`a`.`immi_stat_st_e_est_dt` AS `immi_stat_st_e_est_dt`,ifnull(`a`.`immi_stat_st_e_est_dt`,timestampdiff(DAY,`a`.`immi_stat_st_dt`,now())) AS `immi_stat_st_e_est_dt_vir`,`a`.`immi_stat_e_real_dt` AS `immi_stat_e_real_dt`,date_format(`a`.`immi_stat_e_real_dt`,'%m-%d-%y') AS `immi_stat_e_real_dt_fmt`,`a`.`immi_stat_st_e_real_dt` AS `immi_stat_st_e_real_dt`,timestampdiff(MINUTE,`a`.`immi_stat_st_dt`,`a`.`immi_stat_e_real_dt`) AS `immi_stat_st_e_real_dt_vir`,if(isnull(`a`.`immi_stat_e_real_dt`),'Yes','No') AS `immi_stat_st_e_real_dt_cur_stat`,(case when (`a`.`immi_stat_e_est_dt` = `a`.`immi_stat_e_real_dt`) then 'On Time' when (`a`.`immi_stat_e_est_dt` > `a`.`immi_stat_e_real_dt`) then 'Early' when (`a`.`immi_stat_e_est_dt` < `a`.`immi_stat_e_real_dt`) then 'Due' end) AS `immi_stat_st_e_dt_cur_est`,`a`.`rcpt_status` AS `rcpt_status`,ifnull(`s`.`lk_val`,'No Status') AS `rcpt_status_nm`,`a`.`immi_stat_cnt` AS `immi_stat_cnt`,`a`.`immi_summary` AS `immi_summary`,`a`.`idlook_stat_order` AS `idlook_stat_order`,`a`.`updater` AS `updater`,`u`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`t`.`firstname`,' ',`t`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`del_by` AS `del_by`,`e`.`file_name` AS `del_by_fnm`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`del_by`)) then 'Not Deleted' when (isnull(`a`.`del_by`) and (`a`.`del_dt` is not null)) then 'Admin' when ((`a`.`del_dt` is not null) and (`a`.`del_by` is not null)) then concat(`d`.`firstname`,' ',`d`.`lastname`) end) AS `del_by_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_by` AS `archv_by`,`g`.`file_name` AS `archv_by_fnm`,(case when (isnull(`a`.`archv_dt`) and isnull(`a`.`archv_by`)) then 'Not Archived' when (isnull(`a`.`archv_by`) and (`a`.`archv_dt` is not null)) then 'Admin' when ((`a`.`archv_dt` is not null) and (`a`.`archv_by` is not null)) then concat(`f`.`firstname`,' ',`f`.`lastname`) end) AS `archv_by_nm`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon` from (((((((((((((((((((((`immi_rcpt` `a` left join `emp` `b` on((`a`.`emp_id` = `b`.`emp_id`))) left join `storages` `c` on((`c`.`idstorages` = `b`.`idstorages`))) left join `emp` `d` on((`a`.`del_by` = `d`.`emp_id`))) left join `storages` `e` on((`e`.`idstorages` = `d`.`idstorages`))) left join `emp` `f` on((`a`.`archv_by` = `f`.`emp_id`))) left join `storages` `g` on((`g`.`idstorages` = `f`.`idstorages`))) left join `company` `h` on((`h`.`comp_id` = `a`.`comp_id`))) left join `storages` `i` on((`i`.`idstorages` = `h`.`idstorages`))) left join `immi_lk_val` `j` on((`j`.`idimmi_lk_val` = `a`.`sal_amt`))) left join `immi_lk_val` `m` on((`m`.`idimmi_lk_val` = `a`.`rcpt_type`))) left join `immi_lk_val` `n` on((`n`.`idimmi_lk_val` = `a`.`ad_title`))) left join `immi_lk_val` `p` on((`p`.`idimmi_lk_val` = `a`.`occ_code`))) left join `immi_lk_val` `q` on((`q`.`idimmi_lk_val` = `a`.`skill_level`))) left join `immi_lk_val` `r` on((`r`.`idimmi_lk_val` = `a`.`education`))) left join `immi_lk_val` `s` on((`s`.`idimmi_lk_val` = `a`.`rcpt_status`))) left join `emp` `t` on((`t`.`emp_id` = `a`.`updater`))) left join `storages` `u` on((`u`.`idstorages` = `t`.`idstorages`))) left join `immi_lk_val` `v` on((`a`.`rcpt_type_sub` = `v`.`idimmi_lk_val`))) left join `immi_lk_wrk_flow` `w` on((`a`.`idimmi_lk_wrk_flow` = `w`.`idimmi_lk_wrk_flow`))) left join `emp` `x` on((`a`.`assigned_to` = `x`.`emp_id`))) left join `storages` `y` on((`x`.`idstorages` = `y`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_immi_rcpt_addr` -- /*!50001 DROP VIEW IF EXISTS `vw_immi_rcpt_addr`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8mb4 */; /*!50001 SET character_set_results = utf8mb4 */; /*!50001 SET collation_connection = utf8mb4_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_immi_rcpt_addr` AS select `a`.`idimmi_rcpt_addr` AS `idimmi_rcpt_addr`,`a`.`idimmi_rcpt` AS `idimmi_rcpt`,`a`.`look_street_no_id` AS `look_street_no_id`,`b`.`look_street_id` AS `look_street_id`,`b`.`look_street_no` AS `look_street_no`,`c`.`postal_id` AS `postal_id`,`c`.`street_name` AS `street_name`,`c`.`street_type` AS `street_type`,`d`.`lk_val` AS `street_type_nm`,`e`.`city_id` AS `city_id`,`e`.`zip_code` AS `zip_code`,`g`.`state_id` AS `state_id`,`f`.`city_name` AS `city_name`,`j`.`county_district_city_nm` AS `county_district_city_nm`,`g`.`country_id` AS `country_id`,`g`.`state_name` AS `state_name`,`h`.`con_name` AS `con_name`,`a`.`property_type` AS `property_type`,`i`.`lk_val` AS `property_type_nm`,`a`.`suite_no` AS `suite_no`,if(isnull(`a`.`look_street_no_id`),'No Address',concat(`b`.`look_street_no`,' ',`c`.`street_name`,' ',`d`.`lk_val`,', ',if(isnull(`a`.`property_type`),'',`i`.`lk_val`),' ',ifnull(`a`.`suite_no`,''),' ',`f`.`city_name`,' ',`j`.`county_district_city_nm`,' ',`g`.`state_name`,' ',`e`.`zip_code`,' ','(',`h`.`con_name`,')')) AS `addresses`,`a`.`tm_zn` AS `tm_zn`,`a`.`start_tm` AS `start_tm`,time_format(`a`.`start_tm`,' %h:%i %p') AS `start_tm_fmt`,`a`.`end_tm` AS `end_tm`,time_format(`a`.`end_tm`,' %h:%i %p') AS `end_tm_fmt`,`a`.`hrs_tm` AS `hrs_tm`,concat(convert(time_format(`a`.`hrs_tm`,'%H') using utf8mb4),':',convert(format((time_format(`a`.`hrs_tm`,'%i') * 1.67),0) using utf8mb4)) AS `hrs_tm_nm`,`a`.`off_time` AS `off_time`,concat(convert(time_format(`a`.`off_time`,'%H') using utf8mb4),':',convert(format((time_format(`a`.`off_time`,'%i') * 1.67),0) using utf8mb4)) AS `off_time_nm`,concat(convert(if(isnull(`a`.`start_tm`),'Not Started',convert(date_format(`a`.`start_tm`,'%h:%i %p') using utf8mb4)) using utf8),' ',' To ',convert(if(isnull(`a`.`end_tm`),'Not Ended',convert(date_format(`a`.`end_tm`,'%h:%i %p') using utf8mb4)) using utf8),' ',convert(ifnull(`a`.`tm_zn`,'No Time Zone') using utf8),' ',' - Break - ',convert(if(isnull(`a`.`off_time`),'No Break',concat(convert(time_format(`a`.`off_time`,'%H') using utf8mb4),':',convert(format((time_format(`a`.`off_time`,'%i') * 1.67),0) using utf8mb4))) using utf8),' ',' - Hours - ',' ',convert(if(isnull(`a`.`hrs_tm`),'Not Worked',concat(convert(time_format(`a`.`hrs_tm`,'%H') using utf8mb4),':',convert(format((time_format(`a`.`hrs_tm`,'%i') * 1.67),0) using utf8mb4))) using utf8)) AS `days_schedule`,`a`.`days` AS `days`,`a`.`day_cy` AS `day_cy`,concat(convert(ifnull(`a`.`days`,'-') using latin1),' Per ',ifnull(`a`.`day_cy`,'-')) AS `day_cy_nm`,`a`.`day_pcnt` AS `day_pcnt` from (((((((((`immi_rcpt_addr` `a` left join `look_street_no` `b` on((`a`.`look_street_no_id` = `b`.`look_street_no_id`))) left join `look_street` `c` on((`b`.`look_street_id` = `c`.`look_street_id`))) left join `feature_lk_val` `d` on((`c`.`street_type` = `d`.`idfeature_lk_val`))) left join `look_postal` `e` on((`c`.`postal_id` = `e`.`postal_id`))) left join `look_city` `f` on((`e`.`city_id` = `f`.`city_id`))) left join `look_county_district` `j` on((`f`.`idlook_county_district` = `j`.`idlook_county_district`))) left join `look_state` `g` on((`j`.`state_id` = `g`.`state_id`))) left join `look_country` `h` on((`g`.`country_id` = `h`.`country_id`))) left join `feature_lk_val` `i` on((`a`.`property_type` = `i`.`idfeature_lk_val`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_immi_rcpt_doc` -- /*!50001 DROP VIEW IF EXISTS `vw_immi_rcpt_doc`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_immi_rcpt_doc` AS select `a`.`idimmi_rcpt_doc` AS `idimmi_rcpt_doc`,`a`.`idimmi_rcpt` AS `idimmi_rcpt`,`b`.`comp_id` AS `comp_id`,`b`.`comp_fnm` AS `comp_fnm`,`b`.`comp_nm` AS `comp_nm`,`b`.`rcpt_type` AS `rcpt_type`,`b`.`rcpt_type_nm` AS `rcpt_type_nm`,`b`.`rcpt_no` AS `rcpt_no`,`a`.`idstorages` AS `idstorages`,`c`.`file_name` AS `file_name`,`c`.`sto_cloud` AS `sto_cloud`,ifnull(`k`.`lk_val`,'Local') AS `sto_cloud_nm`,`c`.`file_size` AS `file_size`,(case when (`c`.`file_size` < 1024) then concat(`c`.`file_size`,' B') when ((`c`.`file_size` > 1024) and (`c`.`file_size` < 1048576)) then concat(round((`c`.`file_size` / 1024),2),' KB') when ((`c`.`file_size` > 1048576) and (`c`.`file_size` < 1073741824)) then concat(round(((`c`.`file_size` / 1024) / 1024),2),' MB') when (`c`.`file_size` > 1073741824) then concat(round((((`c`.`file_size` / 1024) / 1024) / 1024),2),' GB') end) AS `file_size_fmt`,`c`.`owner_id` AS `owner_id`,`e`.`file_name` AS `owner_fnm`,ifnull(concat(`d`.`firstname`,' ',`d`.`lastname`),'Admin') AS `owner_nm`,`c`.`create_dt` AS `create_dt`,date_format(`c`.`create_dt`,'%m-%d-%y %h:%i %p') AS `create_dt_fmt`,`c`.`expire_dt` AS `expire_dt`,date_format(`c`.`expire_dt`,'%m-%d-%y %h:%i %p') AS `expire_dt_fmt`,`c`.`ext_type` AS `ext_type`,`c`.`public` AS `public`,`c`.`self_view` AS `self_view`,`c`.`smry` AS `smry`,`c`.`ref_emp_id` AS `ref_emp_id`,`g`.`file_name` AS `ref_emp_fnm`,ifnull(concat(`f`.`firstname`,' ',`f`.`lastname`),'Admin') AS `ref_emp_nm`,`c`.`usage` AS `usage`,`c`.`updater` AS `updater`,`i`.`file_name` AS `updater_fnm`,ifnull(concat(`h`.`firstname`,' ',`h`.`lastname`),'Admin') AS `updater_nm`,`c`.`updated` AS `updated`,date_format(`c`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from (((((((((`immi_rcpt_doc` `a` left join `vw_immi_rcpt` `b` on((`b`.`idimmi_rcpt` = `a`.`idimmi_rcpt`))) left join `storages` `c` on((`a`.`idstorages` = `c`.`idstorages`))) left join `emp` `d` on((`c`.`owner_id` = `d`.`emp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `emp` `f` on((`c`.`ref_emp_id` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `feature_lk_val` `k` on((`a`.`idstorages` = `k`.`idfeature_lk_val`))) left join `emp` `h` on((`c`.`updater` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_immi_rcpt_parent` -- /*!50001 DROP VIEW IF EXISTS `vw_immi_rcpt_parent`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_immi_rcpt_parent` AS select `a`.`idimmi_rcpt_parent` AS `idimmi_rcpt_parent`,`a`.`rcpt_parent_id` AS `rcpt_parent_id`,`b`.`comp_id` AS `comp_id_par`,`b`.`comp_fnm` AS `comp_fnm_par`,`b`.`comp_nm` AS `comp_nm_par`,`b`.`rcpt_loc_cnt` AS `rcpt_loc_cnt_par`,`b`.`rcpt_loc_cnt_nm` AS `rcpt_loc_cnt_nm_par`,`b`.`rcpt_address` AS `rcpt_address_par`,`b`.`rcpt_address_nm` AS `rcpt_address_nm_par`,`b`.`rcpt_type` AS `rcpt_type_par`,`b`.`rcpt_type_nm` AS `rcpt_type_nm_par`,`b`.`rcpt_type_sub` AS `rcpt_type_sub_par`,`b`.`rcpt_type_sub_nm` AS `rcpt_type_sub_nm_par`,`b`.`rcpt_no` AS `rcpt_no_par`,`b`.`emp_id` AS `emp_id_par`,`b`.`emp_fnm` AS `emp_fnm_par`,`b`.`emp_nm` AS `emp_nm_par`,`b`.`filed_dt` AS `filled_dt_par`,`b`.`filed_dt_fmt` AS `filled_dt_fmt_par`,`b`.`ad_title` AS `ad_title_par`,`b`.`ad_title_nm` AS `ad_title_nm_par`,`b`.`occ_code` AS `occ_code_par`,`b`.`occ_code_nm` AS `occ_code_nm_par`,`b`.`skill_level` AS `skill_level_par`,`b`.`skill_level_nm` AS `skill_level_nm_par`,`b`.`from_dt` AS `from_dt_par`,`b`.`from_dt_fmt` AS `from_dt_fmt_par`,`b`.`to_dt` AS `to_dt_par`,`b`.`to_dt_fmt` AS `to_dt_fmt_par`,`b`.`from_to_dt_days` AS `from_to_dt_days_par`,ifnull(`b`.`from_to_dt_days`,timestampdiff(DAY,`b`.`from_dt`,now())) AS `from_to_dt_days_vir_par`,`b`.`valid_days` AS `valid_days_par`,ifnull(`b`.`valid_days`,'No Grace') AS `valid_days_nm_par`,`b`.`expire_dt` AS `expire_dt_par`,`b`.`expire_dt_fmt` AS `expire_dt_fmt_par`,`b`.`education` AS `education_par`,`b`.`education_nm` AS `education_nm_par`,`b`.`exp_yr` AS `exp_yr_par`,`b`.`exp_yr_nm` AS `exp_yr_nm_par`,`b`.`sal_type` AS `sal_type_par`,`b`.`sal_type_nm` AS `sal_type_nm_par`,`b`.`sal_amt` AS `sal_amt_par`,`b`.`sal_amt_nm` AS `sal_amt_nm_par`,`a`.`rcpt_child_id` AS `rcpt_child_id`,`c`.`comp_id` AS `comp_id_ch`,`c`.`comp_fnm` AS `comp_fnm_ch`,`c`.`comp_nm` AS `comp_nm_ch`,`c`.`rcpt_type` AS `rcpt_type_ch`,`c`.`rcpt_type_nm` AS `rcpt_type_nm_ch`,`c`.`rcpt_type_sub` AS `rcpt_type_sub_ch`,`c`.`rcpt_type_sub_nm` AS `rcpt_type_sub_nm_ch`,`c`.`rcpt_loc_cnt` AS `rcpt_loc_cnt_ch`,`c`.`rcpt_loc_cnt_nm` AS `rcpt_loc_cnt_nm_ch`,`c`.`rcpt_address` AS `rcpt_address_ch`,`c`.`rcpt_address_nm` AS `rcpt_address_nm_ch`,`c`.`rcpt_no` AS `rcpt_no_ch`,`c`.`emp_id` AS `emp_id_ch`,`c`.`emp_fnm` AS `emp_fnm_ch`,`c`.`emp_nm` AS `emp_nm_ch`,`c`.`filed_dt` AS `filled_dt_ch`,`c`.`filed_dt_fmt` AS `filled_dt_fmt_ch`,`c`.`ad_title` AS `ad_title_ch`,`c`.`ad_title_nm` AS `ad_title_nm_ch`,`c`.`occ_code` AS `occ_code_ch`,`c`.`occ_code_nm` AS `occ_code_nm_ch`,`c`.`skill_level` AS `skill_level_ch`,`c`.`skill_level_nm` AS `skill_level_nm_ch`,`c`.`from_dt` AS `from_dt_ch`,`c`.`from_dt_fmt` AS `from_dt_fmt_ch`,`c`.`to_dt` AS `to_dt_ch`,`c`.`to_dt_fmt` AS `to_dt_fmt_ch`,`c`.`from_to_dt_days` AS `from_to_dt_days_ch`,ifnull(`c`.`from_to_dt_days`,timestampdiff(DAY,`c`.`from_dt`,now())) AS `from_to_dt_days_vir_ch`,`c`.`valid_days` AS `valid_days_ch`,`c`.`valid_days_nm` AS `valid_days_nm_ch`,`c`.`expire_dt` AS `expire_dt_ch`,`c`.`expire_dt_fmt` AS `expire_dt_fmt_ch`,`c`.`education` AS `education_ch`,`c`.`education_nm` AS `education_nm_ch`,`c`.`exp_yr` AS `exp_yr_ch`,`c`.`exp_yr_nm` AS `exp_yr_nm_ch`,`c`.`sal_type` AS `sal_type_ch`,`c`.`sal_type_nm` AS `sal_type_nm_ch`,`c`.`sal_amt` AS `sal_amt_ch`,`c`.`sal_amt_nm` AS `sal_amt_nm_ch` from ((`immi_rcpt_parent` `a` left join `vw_immi_rcpt` `b` on((`b`.`idimmi_rcpt` = `a`.`rcpt_parent_id`))) left join `vw_immi_rcpt` `c` on((`c`.`idimmi_rcpt` = `a`.`rcpt_child_id`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_immi_rcpt_stat` -- /*!50001 DROP VIEW IF EXISTS `vw_immi_rcpt_stat`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_immi_rcpt_stat` AS select `a`.`idimmi_rcpt_stat` AS `idimmi_rcpt_stat`,`a`.`idimmi_rcpt` AS `idimmi_rcpt`,`h`.`comp_id` AS `comp_id`,`h`.`comp_fnm` AS `comp_fnm`,`h`.`comp_nm` AS `comp_nm`,`h`.`rcpt_type` AS `rcpt_type`,`h`.`rcpt_type_nm` AS `rcpt_type_nm`,`h`.`rcpt_no` AS `rcpt_no`,`a`.`rcpt_status` AS `rcpt_status`,`i`.`lk_val` AS `rcpt_status_nm`,`a`.`stat_st_dt` AS `stat_st_dt`,if(isnull(`a`.`stat_st_dt`),'Not Started',date_format(`a`.`stat_st_dt`,'%m-%d-%y %h:%i %p')) AS `stat_st_dt_fmt`,date_format(`a`.`stat_st_dt`,'%Y') AS `stat_st_dt_yr`,date_format(`a`.`stat_st_dt`,'%M') AS `stat_st_dt_mon`,`a`.`stat_e_dt` AS `stat_e_dt`,(case when (`a`.`stat_e_dt` is not null) then date_format(`a`.`stat_e_dt`,'%m-%d-%y %h:%i %p') when (isnull(`a`.`stat_e_dt`) and isnull(`a`.`stat_st_dt`)) then 'Not Started' when (isnull(`a`.`stat_e_dt`) and (`a`.`stat_st_dt` is not null)) then 'In Progress' end) AS `stat_e_dt_fmt`,(case when (`a`.`stat_e_dt` is not null) then date_format(`a`.`stat_e_dt`,'%Y') when (isnull(`a`.`stat_e_dt`) and isnull(`a`.`stat_st_dt`)) then 'Not Started' when (isnull(`a`.`stat_e_dt`) and (`a`.`stat_st_dt` is not null)) then 'In Progress' end) AS `stat_e_dt_yr`,(case when (`a`.`stat_e_dt` is not null) then date_format(`a`.`stat_e_dt`,'%M') when (isnull(`a`.`stat_e_dt`) and isnull(`a`.`stat_st_dt`)) then 'Not Started' when (isnull(`a`.`stat_e_dt`) and (`a`.`stat_st_dt` is not null)) then 'In Progress' end) AS `stat_e_dt_mon`,`a`.`stat_st_e_dt` AS `stat_st_e_dt`,timestampdiff(MINUTE,`a`.`stat_st_dt`,`a`.`stat_e_dt`) AS `stat_st_e_dt_vir`,`h`.`rcpt_status` AS `cur_stat`,`h`.`rcpt_status_nm` AS `cur_stat_nm`,`h`.`immi_stat_st_dt` AS `cur_stat_st_dt`,`h`.`immi_stat_st_dt_fmt` AS `cur_stat_st_dt_fmt`,`h`.`immi_stat_e_real_dt` AS `cur_stat_e_real_dt`,`h`.`immi_stat_e_real_dt_fmt` AS `cur_stat_e_real_dt_fmt`,`h`.`immi_stat_st_e_real_dt` AS `cur_stat_st_e_real_dt`,`h`.`immi_stat_st_e_real_dt_vir` AS `cur_stat_st_e_real_dt_vir`,`a`.`stat_smry` AS `stat_smry`,`a`.`idlook_stat_order` AS `idlook_stat_order`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,ifnull(concat(`b`.`firstname`,' ',`b`.`lastname`),'Admin') AS `updater_nm`,`a`.`del_by` AS `del_by`,`e`.`file_name` AS `del_by_fnm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(concat(`d`.`firstname`,' ',`d`.`lastname`),'Admin') AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_by` AS `archv_by`,`g`.`file_name` AS `archv_by_fnm`,ifnull(concat(`f`.`firstname`,' ',`f`.`lastname`),'Admin') AS `archv_by_nm`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt` from ((((((((`immi_rcpt_stat` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`c`.`idstorages` = `b`.`idstorages`))) left join `emp` `d` on((`a`.`del_by` = `d`.`emp_id`))) left join `storages` `e` on((`e`.`idstorages` = `d`.`idstorages`))) left join `emp` `f` on((`a`.`archv_by` = `f`.`emp_id`))) left join `storages` `g` on((`g`.`idstorages` = `f`.`idstorages`))) left join `vw_immi_rcpt` `h` on((`h`.`idimmi_rcpt` = `a`.`idimmi_rcpt`))) left join `immi_lk_val` `i` on((`i`.`idimmi_lk_val` = `a`.`rcpt_status`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_immi_rcpt_stat_doc` -- /*!50001 DROP VIEW IF EXISTS `vw_immi_rcpt_stat_doc`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_immi_rcpt_stat_doc` AS select `a`.`idimmi_rcpt_stat_doc` AS `idimmi_rcpt_stat_doc`,`a`.`idimmi_rcpt_stat` AS `idimmi_rcpt_stat`,`a`.`idstorages` AS `idstorages`,`c`.`file_name` AS `file_name`,`c`.`sto_cloud` AS `sto_cloud`,ifnull(`k`.`lk_val`,'Local') AS `sto_cloud_nm`,`c`.`file_size` AS `file_size`,(case when (`c`.`file_size` < 1024) then concat(`c`.`file_size`,' B') when ((`c`.`file_size` > 1024) and (`c`.`file_size` < 1048576)) then concat(round((`c`.`file_size` / 1024),2),' KB') when ((`c`.`file_size` > 1048576) and (`c`.`file_size` < 1073741824)) then concat(round(((`c`.`file_size` / 1024) / 1024),2),' MB') when (`c`.`file_size` > 1073741824) then concat(round((((`c`.`file_size` / 1024) / 1024) / 1024),2),' GB') end) AS `file_size_fmt`,`c`.`owner_id` AS `owner_id`,`e`.`file_name` AS `owner_fnm`,ifnull(concat(`d`.`firstname`,' ',`d`.`lastname`),'Admin') AS `owner_nm`,`c`.`create_dt` AS `create_dt`,date_format(`c`.`create_dt`,'%m-%d-%y %h:%i %p') AS `create_dt_fmt`,`c`.`expire_dt` AS `expire_dt`,date_format(`c`.`expire_dt`,'%m-%d-%y %h:%i %p') AS `expire_dt_fmt`,`c`.`ext_type` AS `ext_type`,`c`.`public` AS `public`,`c`.`self_view` AS `self_view`,`c`.`smry` AS `smry`,`c`.`ref_emp_id` AS `ref_emp_id`,`g`.`file_name` AS `ref_emp_fnm`,ifnull(concat(`f`.`firstname`,' ',`f`.`lastname`),'Admin') AS `ref_emp_nm`,`c`.`usage` AS `usage`,`c`.`updater` AS `updater`,`i`.`file_name` AS `updater_fnm`,ifnull(concat(`h`.`firstname`,' ',`h`.`lastname`),'Admin') AS `updater_nm`,`c`.`updated` AS `updated`,date_format(`c`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((((((((`immi_rcpt_stat_doc` `a` left join `storages` `c` on((`a`.`idstorages` = `c`.`idstorages`))) left join `emp` `d` on((`c`.`owner_id` = `d`.`emp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `emp` `f` on((`c`.`ref_emp_id` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `feature_lk_val` `k` on((`a`.`idstorages` = `k`.`idfeature_lk_val`))) left join `emp` `h` on((`c`.`updater` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_inv` -- /*!50001 DROP VIEW IF EXISTS `vw_inv`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8mb4 */; /*!50001 SET character_set_results = utf8mb4 */; /*!50001 SET collation_connection = utf8mb4_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_inv` AS select `a`.`idinv` AS `idinv`,`a`.`from_ref_tab` AS `from_ref_tab`,`a`.`from_ref_id` AS `from_ref_id`,(case when (`a`.`from_ref_tab` like 'comp') then `c`.`companyname` when (`a`.`from_ref_tab` like 'emp') then concat(`b`.`firstname`,' ',`b`.`lastname`) end) AS `from_nm`,(case when (`a`.`from_ref_tab` like 'comp') then `n`.`file_name` when (`a`.`from_ref_tab` like 'emp') then `m`.`file_name` end) AS `from_fnm`,`a`.`all_contacts` AS `all_contacts`,`a`.`from_look_street_no_id` AS `from_look_street_no_id`,`f`.`addresses` AS `from_address`,`a`.`from_suite_no` AS `from_suite_no`,`a`.`from_address_type` AS `from_address_type`,`h`.`lk_val` AS `from_address_type_nm`,`a`.`inv_phone` AS `inv_phone`,`a`.`inv_email` AS `inv_email`,`a`.`inv_pre_no` AS `inv_pre_no`,`a`.`invoice_no` AS `invoice_no`,`a`.`inv_post_no` AS `inv_post_no`,`a`.`to_ref_tab` AS `to_ref_tab`,`a`.`to_ref_id` AS `to_ref_id`,(case when (`a`.`to_ref_tab` like 'comp') then `e`.`companyname` when (`a`.`to_ref_tab` like 'emp') then concat(`d`.`firstname`,' ',`d`.`lastname`) end) AS `to_nm`,(case when (`a`.`to_ref_tab` like 'comp') then `p`.`file_name` when (`a`.`to_ref_tab` like 'emp') then `o`.`file_name` end) AS `to_fnm`,`a`.`to_look_street_no_id` AS `to_look_street_no_id`,`g`.`addresses` AS `to_address`,`a`.`to_suite_no` AS `to_suite_no`,`a`.`to_address_type` AS `to_address_type`,`i`.`lk_val` AS `to_address_type_nm`,`a`.`from_dt` AS `from_dt`,date_format(`a`.`from_dt`,'%m-%d-%y ') AS `from_dt_fmt`,`a`.`to_dt` AS `to_dt`,date_format(`a`.`to_dt`,'%m-%d-%y ') AS `to_dt_fmt`,`a`.`billed_dt` AS `billed_dt`,date_format(`a`.`billed_dt`,'%m-%d-%y ') AS `billed_dt_fmt`,`a`.`due_dt` AS `due_dt`,date_format(`a`.`due_dt`,'%m-%d-%y ') AS `due_dt_fmt`,`a`.`summary` AS `summary`,`a`.`amt_sub` AS `amt_sub`,`a`.`amt_tax` AS `amt_tax`,`a`.`amt_tol` AS `amt_tol`,`a`.`amt_paid` AS `amt_paid`,`a`.`amt_bal` AS `amt_bal`,`a`.`visible` AS `visible`,`a`.`updater` AS `updater`,`q`.`file_name` AS `updater_fnm`,concat(`j`.`firstname`,' ',`j`.`lastname`) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y ') AS `del_dt_fmt`,`a`.`del_by` AS `del_by`,`r`.`file_name` AS `del_by_fnm`,concat(`k`.`firstname`,' ',`k`.`lastname`) AS `del_by_nm`,`a`.`del_day` AS `del_day`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y ') AS `archv_dt_fmt`,`a`.`archv_by` AS `archv_by`,`s`.`file_name` AS `archv_by_fnm`,concat(`l`.`firstname`,' ',`l`.`lastname`) AS `archv_by_nm` from ((((((((((((((((((`inv` `a` left join `emp` `b` on((`b`.`emp_id` = `a`.`from_ref_id`))) left join `storages` `m` on((`m`.`idstorages` = `b`.`idstorages`))) left join `company` `c` on((`c`.`comp_id` = `a`.`from_ref_id`))) left join `storages` `n` on((`n`.`idstorages` = `c`.`idstorages`))) left join `emp` `d` on((`d`.`emp_id` = `a`.`to_ref_id`))) left join `storages` `o` on((`o`.`idstorages` = `d`.`idstorages`))) left join `company` `e` on((`e`.`comp_id` = `a`.`to_ref_id`))) left join `storages` `p` on((`p`.`idstorages` = `e`.`idstorages`))) left join `vw_addresses` `f` on((`f`.`look_street_no_id` = `a`.`from_look_street_no_id`))) left join `vw_addresses` `g` on((`g`.`look_street_no_id` = `a`.`to_look_street_no_id`))) left join `feature_lk_val` `h` on((`h`.`idfeature_lk_val` = `a`.`from_address_type`))) left join `feature_lk_val` `i` on((`i`.`idfeature_lk_val` = `a`.`to_address_type`))) left join `emp` `j` on((`j`.`emp_id` = `a`.`updater`))) left join `storages` `q` on((`q`.`idstorages` = `j`.`idstorages`))) left join `emp` `k` on((`k`.`emp_id` = `a`.`del_by`))) left join `storages` `r` on((`r`.`idstorages` = `k`.`idstorages`))) left join `emp` `l` on((`l`.`emp_id` = `a`.`archv_by`))) left join `storages` `s` on((`s`.`idstorages` = `l`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_inv_audit` -- /*!50001 DROP VIEW IF EXISTS `vw_inv_audit`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_inv_audit` AS select `a`.`idinv_audit` AS `idinv_audit`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,date_format(`a`.`updated`,'%Y') AS `updated_fmt_yr`,date_format(`a`.`updated`,'%M') AS `updated_fmt_mon`,dayname(`a`.`updated`) AS `updated_fmt_day`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,(case when (isnull(`a`.`updated`) and isnull(`a`.`updater`)) then 'Not Updated' when (isnull(`a`.`updater`) and (`a`.`updated` is not null)) then 'Admin' when ((`a`.`updated` is not null) and (`a`.`updater` is not null)) then concat(`b`.`firstname`,' ',`b`.`lastname`) end) AS `updater_nm`,`a`.`table_update` AS `table_update`,`a`.`action` AS `action`,`a`.`table_id` AS `table_id`,`a`.`col1` AS `col1`,`a`.`idlook_menu_pvt_lvl2` AS `idlook_menu_pvt_lvl2`,`d`.`lk_values` AS `idlook_menu_pvt_lvl2_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`f`.`file_name` AS `del_by_fnm`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`del_by`)) then 'Not Deleted' when (isnull(`a`.`del_by`) and (`a`.`del_dt` is not null)) then 'Admin' when ((`a`.`del_dt` is not null) and (`a`.`del_by` is not null)) then concat(`e`.`firstname`,' ',`e`.`lastname`) end) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`h`.`file_name` AS `archv_by_fnm`,(case when (isnull(`a`.`archv_dt`) and isnull(`a`.`archv_by`)) then 'Not Archived' when (isnull(`a`.`archv_by`) and (`a`.`archv_dt` is not null)) then 'Admin' when ((`a`.`archv_dt` is not null) and (`a`.`archv_by` is not null)) then concat(`g`.`firstname`,' ',`g`.`lastname`) end) AS `archv_by_nm` from (((((((`inv_audit` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `look_menu_pvt` `d` on((`a`.`idlook_menu_pvt_lvl2` = `d`.`idlook_menu_pvt`))) left join `emp` `e` on((`a`.`del_by` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `emp` `g` on((`a`.`archv_by` = `g`.`emp_id`))) left join `storages` `h` on((`g`.`idstorages` = `h`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_inv_doc` -- /*!50001 DROP VIEW IF EXISTS `vw_inv_doc`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_inv_doc` AS select `a`.`idinv_doc` AS `idinv_doc`,`a`.`idinv` AS `idinv`,`a`.`idstorages` AS `idstorages`,`c`.`file_name` AS `file_name`,`c`.`sto_cloud` AS `sto_cloud`,ifnull(`k`.`lk_val`,'Local') AS `sto_cloud_nm`,`c`.`file_size` AS `file_size`,(case when (`c`.`file_size` < 1024) then concat(`c`.`file_size`,' B') when ((`c`.`file_size` > 1024) and (`c`.`file_size` < 1048576)) then concat(round((`c`.`file_size` / 1024),2),' KB') when ((`c`.`file_size` > 1048576) and (`c`.`file_size` < 1073741824)) then concat(round(((`c`.`file_size` / 1024) / 1024),2),' MB') when (`c`.`file_size` > 1073741824) then concat(round((((`c`.`file_size` / 1024) / 1024) / 1024),2),' GB') end) AS `file_size_fmt`,`c`.`owner_id` AS `owner_id`,`e`.`file_name` AS `owner_fnm`,ifnull(concat(`d`.`firstname`,' ',`d`.`lastname`),'Admin') AS `owner_nm`,`c`.`create_dt` AS `create_dt`,date_format(`c`.`create_dt`,'%m-%d-%y %h:%i %p') AS `create_dt_fmt`,`c`.`expire_dt` AS `expire_dt`,date_format(`c`.`expire_dt`,'%m-%d-%y %h:%i %p') AS `expire_dt_fmt`,`c`.`ext_type` AS `ext_type`,`c`.`public` AS `public`,`c`.`self_view` AS `self_view`,`c`.`smry` AS `smry`,`c`.`ref_emp_id` AS `ref_emp_id`,`g`.`file_name` AS `ref_emp_fnm`,ifnull(concat(`f`.`firstname`,' ',`f`.`lastname`),'Admin') AS `ref_emp_nm`,`c`.`usage` AS `usage`,`c`.`updater` AS `updater`,`i`.`file_name` AS `updater_fnm`,ifnull(concat(`h`.`firstname`,' ',`h`.`lastname`),'Admin') AS `updater_nm`,`c`.`updated` AS `updated`,date_format(`c`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((((((((`inv_doc` `a` left join `storages` `c` on((`a`.`idstorages` = `c`.`idstorages`))) left join `emp` `d` on((`c`.`owner_id` = `d`.`emp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `emp` `f` on((`c`.`ref_emp_id` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `feature_lk_val` `k` on((`a`.`idstorages` = `k`.`idfeature_lk_val`))) left join `emp` `h` on((`c`.`updater` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_log_global` -- /*!50001 DROP VIEW IF EXISTS `vw_log_global`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_log_global` AS select `a`.`idglb_log` AS `idglb_log`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,date_format(`a`.`updated`,'%Y') AS `updated_yr`,date_format(`a`.`updated`,'%M') AS `updated_mon`,dayname(`a`.`updated`) AS `updated_day`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,(case when (isnull(`a`.`updated`) and isnull(`a`.`updater`)) then 'Not Updated' when (isnull(`a`.`updater`) and (`a`.`updated` is not null)) then 'Admin' when ((`a`.`updated` is not null) and (`a`.`updater` is not null)) then concat(`b`.`firstname`,' ',`b`.`lastname`) end) AS `updater_nm`,`a`.`table_update` AS `table_update`,`a`.`action` AS `action`,`a`.`table_id` AS `table_id`,concat('Table: ',`a`.`table_update`,' ID: ',`a`.`table_id`) AS `tab_nm_id`,`a`.`col1` AS `col1`,`a`.`idlook_menu_pvt_lvl1` AS `idlook_menu_pvt_lvl1`,`d`.`lk_values` AS `idlook_menu_pvt_lvl1_fmt`,`a`.`idlook_menu_pvt_lvl2` AS `idlook_menu_pvt_lvl2`,`e`.`lk_values` AS `idlook_menu_pvt_lvl2_fmt`,concat(`d`.`lk_values`,' > ',`e`.`lk_values`) AS `menu_main_sub`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(date_format(`a`.`del_dt`,'%Y'),'Not Deleted') AS `del_dt_yr`,ifnull(date_format(`a`.`del_dt`,'%M'),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`g`.`file_name` AS `del_by_fnm`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`del_by`)) then 'Not Deleted' when (isnull(`a`.`del_by`) and (`a`.`del_dt` is not null)) then 'Admin' when ((`a`.`del_dt` is not null) and (`a`.`del_by` is not null)) then concat(`f`.`firstname`,' ',`f`.`lastname`) end) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then date_format(`a`.`archv_dt`,'%Y') when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then date_format(`a`.`archv_dt`,'%M') when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`i`.`file_name` AS `archv_by_fnm`,(case when (isnull(`a`.`archv_dt`) and isnull(`a`.`archv_by`)) then 'Not Archived' when (isnull(`a`.`archv_by`) and (`a`.`archv_dt` is not null)) then 'Admin' when ((`a`.`archv_dt` is not null) and (`a`.`archv_by` is not null)) then concat(`h`.`firstname`,' ',`h`.`lastname`) end) AS `archv_by_nm` from ((((((((`log_global` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `look_menu_pvt` `d` on((`a`.`idlook_menu_pvt_lvl1` = `d`.`idlook_menu_pvt`))) left join `look_menu_pvt` `e` on((`a`.`idlook_menu_pvt_lvl2` = `e`.`idlook_menu_pvt`))) left join `emp` `f` on((`a`.`del_by` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `emp` `h` on((`a`.`archv_by` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_look_address2` -- /*!50001 DROP VIEW IF EXISTS `vw_look_address2`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_look_address2` AS select 'comp' AS `comp_emp`,`a`.`comp_add_id` AS `comp_emp_add_id`,`a`.`comp_id` AS `comp_emp_id`,`a`.`comp_logo` AS `comp_logo_emp_fnm`,`a`.`companyname` AS `companyname_emp_nm`,`a`.`look_street_no_id` AS `look_street_no_id`,`a`.`addresses` AS `addresses`,`a`.`house_apt_type` AS `house_apt_type`,`a`.`house_apt_nm` AS `house_apt_nm`,`a`.`add_type` AS `add_type`,`a`.`from_dt` AS `from_dt`,`a`.`from_dt_yr` AS `from_dt_yr`,`a`.`from_dt_mon` AS `from_dt_mon`,`a`.`from_dt_fmt` AS `from_dt_fmt`,`a`.`to_dt` AS `to_dt`,`a`.`to_dt_yr` AS `to_dt_yr`,`a`.`to_dt_mon` AS `to_dt_mon`,`a`.`to_dt_fmt` AS `to_dt_fmt`,`a`.`from_to_dt` AS `from_to_dt`,`a`.`from_to_dt_vir` AS `from_to_dt_vir`,`a`.`updater` AS `updater`,`a`.`updater_fnm` AS `updater_fnm`,`a`.`updater_nm` AS `updater_nm`,`a`.`last_updated` AS `last_updated`,`a`.`last_updated_fmt` AS `last_updated_fmt`,`a`.`del_dt` AS `del_dt`,`a`.`del_dt_fmt` AS `del_dt_fmt`,`a`.`del_by` AS `del_by`,`a`.`del_by_fnm` AS `del_by_fnm`,`a`.`del_by_nm` AS `del_by_nm`,`a`.`del_day` AS `del_day`,`a`.`del_day_vir` AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,`a`.`archv_dt_fmt` AS `archv_dt_fmt`,`a`.`archv_by` AS `archv_by`,`a`.`archv_by_fnm` AS `archv_by_fnm`,`a`.`archv_by_nm` AS `archv_by_nm` from `vw_comp_address` `a` union all select 'emp' AS `emp`,`a`.`emp_add_id` AS `emp_add_id`,`a`.`emp_id` AS `emp_id`,`a`.`emp_fnm` AS `emp_fnm`,`a`.`emp_nm` AS `emp_nm`,`a`.`look_street_no_id` AS `look_street_no_id`,`a`.`addresses` AS `addresses`,`a`.`house_apt_type` AS `house_apt_type`,`a`.`house_apt_type_nm` AS `house_apt_type_nm`,`a`.`add_type` AS `add_type`,`a`.`from_dt` AS `from_dt`,`a`.`from_dt_yr` AS `from_dt_yr`,`a`.`from_dt_mon` AS `from_dt_mon`,`a`.`from_dt_fmt` AS `from_dt_fmt`,`a`.`to_dt` AS `to_dt`,`a`.`to_dt_yr` AS `to_dt_yr`,`a`.`to_dt_mon` AS `to_dt_mon`,`a`.`to_dt_fmt` AS `to_dt_fmt`,`a`.`no_of_days` AS `no_of_days`,`a`.`no_of_days_vir` AS `no_of_days_vir`,`a`.`updater` AS `updater`,`a`.`updater_fnm` AS `updater_fnm`,`a`.`updater_nm` AS `updater_nm`,`a`.`last_updated` AS `last_updated`,`a`.`last_updated_fmt` AS `last_updated_fmt`,`a`.`del_dt` AS `del_dt`,`a`.`del_dt_fmt` AS `del_dt_fmt`,`a`.`del_by` AS `del_by`,`a`.`del_by_fnm` AS `del_by_fnm`,`a`.`del_by_nm` AS `del_by_nm`,`a`.`del_day` AS `del_day`,`a`.`del_day_vir` AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,`a`.`archv_dt_fmt` AS `archv_dt_fmt`,`a`.`archv_by` AS `archv_by`,`a`.`archv_by_fnm` AS `archv_by_fnm`,`a`.`archv_by_nm` AS `archv_by_nm` from `vw_emp_address` `a` */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_look_menu_pvt` -- /*!50001 DROP VIEW IF EXISTS `vw_look_menu_pvt`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_look_menu_pvt` AS select `a`.`idlook_menu_pvt` AS `idlook_menu_pvt`,`a`.`lk_values` AS `lk_values`,`a`.`lk_design` AS `lk_design`,`a`.`lk_value_desc` AS `lk_value_desc`,`a`.`lk_value_code` AS `lk_value_code`,`a`.`lk_admin` AS `lk_admin`,`a`.`lk_display_id` AS `lk_display_id`,`a`.`lk_sub_value_id` AS `lk_sub_value_id`,`a`.`updater` AS `updater`,ifnull(concat(trim(ifnull(`b`.`firstname`,'')),' ',trim(ifnull(nullif(`b`.`middlename`,''),'')),convert((case when ((`b`.`middlename` is not null) and (`b`.`middlename` <> '')) then ' ' else '' end) using latin1),trim(ifnull(`b`.`lastname`,''))),'Admin') AS `updater_nm`,`c`.`file_name` AS `updater_file_name`,`a`.`updated` AS `updated`,ifnull(date_format(`a`.`updated`,'%m-%d-%y %h:%i %p'),'Never') AS `updated_fmt` from ((`look_menu_pvt` `a` left join `emp` `b` on((`b`.`emp_id` = `a`.`updater`))) left join `storages` `c` on((`c`.`idstorages` = `b`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_look_street` -- /*!50001 DROP VIEW IF EXISTS `vw_look_street`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_look_street` AS select `a`.`look_street_id` AS `look_street_id`,`a`.`postal_id` AS `postal_id`,`a`.`street_name` AS `street_name`,`a`.`street_type` AS `street_type`,`b`.`lk_val` AS `street_type_nm` from (`look_street` `a` left join `feature_lk_val` `b` on((`a`.`street_type` = `b`.`idfeature_lk_val`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_mk_lk_val` -- /*!50001 DROP VIEW IF EXISTS `vw_mk_lk_val`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_mk_lk_val` AS select `a`.`idmkt_lk_val` AS `idmkt_lk_val`,NULL AS `idmkt_lk`,`a`.`lk_val_par` AS `lk_val_par`,`a`.`mkt_value` AS `mkt_value`,NULL AS `child_lvl`,`a`.`mkt_value_desc` AS `mkt_value_desc`,`a`.`disp_order` AS `disp_order`,`a`.`idmkt_lk` AS `parent_id`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,ifnull(concat(`b`.`firstname`,' ',`b`.`lastname`),'Admin') AS `updater_nm`,`a`.`updated` AS `updated`,if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) AS `updated_fmt` from ((`mkt_lk_val` `a` left join `emp` `b` on((`b`.`emp_id` = `a`.`updater`))) left join `storages` `c` on((`c`.`idstorages` = `b`.`idstorages`))) union all select NULL AS `NULL`,`a`.`idmkt_lk` AS `idmkt_lk`,NULL AS `lk_val_par`,`a`.`mkt_name` AS `mkt_name`,if((`a`.`child_lvl` = 0),1,ifnull(`a`.`child_lvl`,1)) AS `child_lvl`,`a`.`mkt_name_desc` AS `mkt_name_desc`,`a`.`disp_order` AS `disp_order`,NULL AS `NULL`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,concat(`b`.`firstname`,' ',`b`.`lastname`) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((`mkt_lk` `a` left join `emp` `b` on((`b`.`emp_id` = `a`.`updater`))) left join `storages` `c` on((`c`.`idstorages` = `b`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_mkt_audit` -- /*!50001 DROP VIEW IF EXISTS `vw_mkt_audit`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_mkt_audit` AS select `a`.`idmkt_audit` AS `idmkt_audit`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,date_format(`a`.`updated`,'%Y') AS `updated_fmt_yr`,date_format(`a`.`updated`,'%M') AS `updated_fmt_mon`,dayname(`a`.`updated`) AS `updated_fmt_day`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,(case when (isnull(`a`.`updated`) and isnull(`a`.`updater`)) then 'Not Updated' when (isnull(`a`.`updater`) and (`a`.`updated` is not null)) then 'Admin' when ((`a`.`updated` is not null) and (`a`.`updater` is not null)) then concat(`b`.`firstname`,' ',`b`.`lastname`) end) AS `updater_nm`,`a`.`table_update` AS `table_update`,`a`.`action` AS `action`,`a`.`table_id` AS `table_id`,`a`.`col1` AS `col1`,`a`.`idlook_menu_pvt_lvl2` AS `idlook_menu_pvt_lvl2`,`d`.`lk_values` AS `idlook_menu_pvt_lvl2_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`f`.`file_name` AS `del_by_fnm`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`del_by`)) then 'Not Deleted' when (isnull(`a`.`del_by`) and (`a`.`del_dt` is not null)) then 'Admin' when ((`a`.`del_dt` is not null) and (`a`.`del_by` is not null)) then concat(`e`.`firstname`,' ',`e`.`lastname`) end) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`h`.`file_name` AS `archv_by_fnm`,(case when (isnull(`a`.`archv_dt`) and isnull(`a`.`archv_by`)) then 'Not Archived' when (isnull(`a`.`archv_by`) and (`a`.`archv_dt` is not null)) then 'Admin' when ((`a`.`archv_dt` is not null) and (`a`.`archv_by` is not null)) then concat(`g`.`firstname`,' ',`g`.`lastname`) end) AS `archv_by_nm` from (((((((`mkt_audit` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `look_menu_pvt` `d` on((`a`.`idlook_menu_pvt_lvl2` = `d`.`idlook_menu_pvt`))) left join `emp` `e` on((`a`.`del_by` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `emp` `g` on((`a`.`archv_by` = `g`.`emp_id`))) left join `storages` `h` on((`g`.`idstorages` = `h`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_mkt_comp` -- /*!50001 DROP VIEW IF EXISTS `vw_mkt_comp`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_mkt_comp` AS select `a`.`idmkt_comp` AS `idmkt_comp`,`a`.`companyname` AS `companyname`,`a`.`company_info` AS `company_info`,`a`.`comp_website` AS `comp_website`,`a`.`comp_phone` AS `comp_phone`,`a`.`comp_email` AS `comp_email`,concat('URL: ',ifnull(`a`.`comp_website`,'No Website '),' ','P: ',ifnull(`a`.`comp_phone`,'No Phone '),' ','@: ',ifnull(`a`.`comp_email`,'No Email ')) AS `comp_all_detail`,`a`.`acc_mgr` AS `acc_mgr`,`c`.`file_name` AS `acc_mgr_fnm`,concat(`b`.`firstname`,' ',`b`.`lastname`) AS `acc_mgr_nm`,`a`.`req_type` AS `req_type`,if(isnull(`a`.`req_type`),'No Req Type',`d`.`mkt_value`) AS `req_type_nm`,`a`.`track` AS `track`,`a`.`block` AS `block`,`a`.`block_dt` AS `block_dt`,if(isnull(`a`.`block_dt`),'NB',date_format(`a`.`block_dt`,'%m-%d-%y')) AS `block_dt_fmt`,date_format(`a`.`block_dt`,'%Y') AS `block_dt_yr`,date_format(`a`.`block_dt`,'%M') AS `block_dt_mon`,date_format(`a`.`block_dt`,'%Y %M') AS `block_dt_yr_mon`,`a`.`updater` AS `updater`,`f`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`e`.`firstname`,' ',`e`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from (((((`mkt_comp` `a` left join `emp` `b` on((`a`.`acc_mgr` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `mkt_lk_val` `d` on((`a`.`req_type` = `d`.`idmkt_lk_val`))) left join `emp` `e` on((`a`.`updater` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) order by `a`.`companyname` */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_mkt_comp_open` -- /*!50001 DROP VIEW IF EXISTS `vw_mkt_comp_open`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_mkt_comp_open` AS select `a`.`idmkt_comp_open` AS `idmkt_comp_open`,`a`.`idmkt_comp_ven` AS `idmkt_comp_ven`,`b`.`companyname` AS `mkt_comp_ven_nm`,concat('Vendor ',`b`.`companyname`,' Contacts ',`a`.`contact_info`) AS `mkt_comp_ven_nm_contact`,`b`.`acc_mgr` AS `ven_acc_mgr`,`q`.`file_name` AS `ven_acc_mgr_fnm`,concat(`p`.`firstname`,' ',`p`.`lastname`) AS `ven_acc_mgr_nm`,`b`.`req_type` AS `ven_req_type`,ifnull(`t`.`mkt_value`,'No Req Type') AS `ven_req_type_nm`,`b`.`track` AS `ven_track`,`b`.`block` AS `ven_block`,`b`.`block_dt` AS `ven_block_dt`,if(isnull(`b`.`block_dt`),'NB',date_format(`b`.`block_dt`,'%m-%d-%y')) AS `ven_block_dt_fmt`,`a`.`idmkt_comp_client` AS `idmkt_comp_client`,`c`.`companyname` AS `mkt_comp_client_nm`,`c`.`acc_mgr` AS `client_acc_mgr`,`s`.`file_name` AS `client_acc_mgr_fnm`,concat(`r`.`firstname`,' ',`r`.`lastname`) AS `client_acc_mgr_nm`,`c`.`req_type` AS `client_req_type`,ifnull(`u`.`mkt_value`,'No Req Type') AS `client_req_type_nm`,`c`.`track` AS `client_track`,`c`.`block` AS `client_block`,`c`.`block_dt` AS `client_block_dt`,if(isnull(`c`.`block_dt`),'NB',date_format(`c`.`block_dt`,'%m-%d-%y')) AS `client_block_dt_fmt`,`a`.`acc_mgr` AS `acc_mgr`,`f`.`file_name` AS `acc_mgr_fnm`,concat(`e`.`firstname`,' ',`e`.`lastname`) AS `acc_mgr_nm`,`a`.`req_type` AS `req_type`,ifnull(`g`.`mkt_value`,'No Req Type') AS `req_type_nm`,`a`.`open_dt` AS `open_dt`,date_format(`a`.`open_dt`,'%m-%d-%y') AS `open_dt_fmt`,date_format(`a`.`open_dt`,'%Y') AS `open_dt_yr`,date_format(`a`.`open_dt`,'%b') AS `open_dt_mon`,`a`.`loc_state` AS `loc_state`,if(isnull(`a`.`loc_state`),'No State',`i`.`state_name`) AS `state_nm`,`a`.`loc_city` AS `loc_city`,if(isnull(`a`.`loc_city`),'No City',`h`.`city_name`) AS `city_nm`,concat(if(isnull(`a`.`loc_state`),'No State',`i`.`state_name`),', ',if(isnull(`a`.`loc_city`),'No City',`h`.`city_name`)) AS `state_city_nm`,`a`.`contact_info` AS `contact_info`,`a`.`source` AS `source`,ifnull(`d`.`mkt_value`,'No Source') AS `source_nm`,`a`.`open_details` AS `open_details`,`a`.`close_dt` AS `close_dt`,if(isnull(`a`.`close_dt`),'Open',date_format(`a`.`close_dt`,'%m-%d-%y')) AS `close_dt_fmt`,date_format(`a`.`close_dt`,'%Y') AS `close_dt_yr`,date_format(`a`.`close_dt`,'%b') AS `close_dt_mon`,if(isnull(`a`.`close_dt`),'Open','Closed') AS `mkt_comp_open_cur_stat`,`a`.`open_close_day` AS `open_close_day`,ifnull(`a`.`open_close_day`,(to_days(now()) - to_days(`a`.`open_dt`))) AS `open_close_day_fmt`,`a`.`open_cnt` AS `open_cnt`,`a`.`open_tol` AS `open_tol`,concat(`a`.`open_cnt`,' of ',`a`.`open_tol`) AS `open_cnt_tol`,`a`.`open_pcnt` AS `open_pcnt`,`a`.`summary` AS `summary`,`a`.`updater` AS `updater`,`k`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`j`.`firstname`,' ',`j`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(date_format(`a`.`del_dt`,'%Y'),'Not Deleted') AS `del_dt_yr`,ifnull(date_format(`a`.`del_dt`,'%M'),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`m`.`file_name` AS `del_by_fnm`,if(isnull(`a`.`del_by`),'Admin',concat(`l`.`firstname`,' ',`l`.`lastname`)) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then date_format(`a`.`archv_dt`,'%Y') when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then date_format(`a`.`archv_dt`,'%M') when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`o`.`file_name` AS `archv_by_fnm`,if(isnull(`a`.`archv_by`),'Admin',concat(`n`.`firstname`,' ',`n`.`lastname`)) AS `archv_by_nm`,`a`.`old_comp_dt` AS `old_comp_dt`,date_format(`a`.`old_comp_dt`,'%y-%m-%d') AS `old_comp_dt_fmt` from ((((((((((((((((((((`mkt_comp_open` `a` left join `mkt_comp` `b` on((`a`.`idmkt_comp_ven` = `b`.`idmkt_comp`))) left join `mkt_comp` `c` on((`a`.`idmkt_comp_client` = `c`.`idmkt_comp`))) left join `mkt_lk_val` `d` on((`a`.`source` = `d`.`idmkt_lk_val`))) left join `emp` `e` on((`a`.`acc_mgr` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `mkt_lk_val` `g` on((`a`.`req_type` = `g`.`idmkt_lk_val`))) left join `look_city` `h` on((`a`.`loc_city` = `h`.`city_id`))) left join `look_state` `i` on((`a`.`loc_state` = `i`.`state_id`))) left join `emp` `j` on((`a`.`updater` = `j`.`emp_id`))) left join `storages` `k` on((`j`.`idstorages` = `k`.`idstorages`))) left join `emp` `l` on((`a`.`del_by` = `l`.`emp_id`))) left join `storages` `m` on((`l`.`idstorages` = `m`.`idstorages`))) left join `emp` `n` on((`a`.`archv_by` = `n`.`emp_id`))) left join `storages` `o` on((`n`.`idstorages` = `o`.`idstorages`))) left join `emp` `p` on((`b`.`acc_mgr` = `p`.`emp_id`))) left join `storages` `q` on((`p`.`idstorages` = `q`.`idstorages`))) left join `emp` `r` on((`c`.`acc_mgr` = `r`.`emp_id`))) left join `storages` `s` on((`r`.`idstorages` = `s`.`idstorages`))) left join `mkt_lk_val` `t` on((`b`.`req_type` = `t`.`idmkt_lk_val`))) left join `mkt_lk_val` `u` on((`c`.`req_type` = `u`.`idmkt_lk_val`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_mkt_comp_open_assist` -- /*!50001 DROP VIEW IF EXISTS `vw_mkt_comp_open_assist`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8mb4 */; /*!50001 SET character_set_results = utf8mb4 */; /*!50001 SET collation_connection = utf8mb4_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_mkt_comp_open_assist` AS select `a`.`idmkt_comp_open_assist` AS `idmkt_comp_open_assist`,`a`.`idmkt_comp_open` AS `idmkt_comp_open`,`b`.`idmkt_comp_ven` AS `idmkt_comp_ven`,`c`.`companyname` AS `mkt_comp_ven_nm`,`b`.`idmkt_comp_client` AS `idmkt_comp_client`,`d`.`companyname` AS `mkt_comp_client_nm`,`b`.`acc_mgr` AS `acc_mgr`,`f`.`file_name` AS `acc_mgr_fnm`,concat(`e`.`firstname`,' ',`e`.`lastname`) AS `acc_mgr_nm`,`b`.`req_type` AS `req_type`,if(isnull(`b`.`req_type`),'No Req Type',`g`.`mkt_value`) AS `req_type_nm`,`b`.`open_dt` AS `open_dt`,date_format(`b`.`open_dt`,'%m-%d-%y') AS `open_dt_fmt`,`b`.`loc_city` AS `loc_city`,`i`.`state_name` AS `state_nm`,concat(`i`.`state_name`,',',`h`.`city_name`) AS `location_nm`,`b`.`contact_info` AS `contact_info`,`b`.`source` AS `source`,if(isnull(`b`.`source`),'No Source',`j`.`mkt_value`) AS `source_nm`,`b`.`open_details` AS `open_details`,`b`.`close_dt` AS `close_dt`,date_format(`b`.`close_dt`,'%m-%d-%y') AS `close_dt_fmt`,if(isnull(`b`.`close_dt`),'Open','Close') AS `mkt_comp_open_cur_stat`,`b`.`open_close_day` AS `open_close_day`,ifnull(`b`.`open_close_day`,(to_days(now()) - to_days(`b`.`open_dt`))) AS `open_close_day_fmt`,`b`.`open_cnt` AS `open_cnt`,`b`.`open_tol` AS `open_tol`,`b`.`open_pcnt` AS `open_pcnt`,concat(`b`.`open_cnt`,' of ',`b`.`open_tol`) AS `open_cnt_tol`,`a`.`assist_id` AS `assist_id`,`m`.`file_name` AS `assist_fnm`,concat(`l`.`firstname`,' ',`l`.`lastname`) AS `assist_nm`,`a`.`assist_st_dt` AS `assist_st_dt`,date_format(`a`.`assist_st_dt`,'%m-%d-%y') AS `assist_st_dt_fmt`,date_format(`a`.`assist_st_dt`,'%Y') AS `assist_st_dt_yr`,date_format(`a`.`assist_st_dt`,'%M') AS `assist_st_dt_mon`,`a`.`assist_e_dt` AS `assist_e_dt`,date_format(`a`.`assist_e_dt`,'%m-%d-%y') AS `assist_e_dt_fmt`,date_format(`a`.`assist_e_dt`,'%Y') AS `assist_e_dt_yr`,date_format(`a`.`assist_e_dt`,'%M') AS `assist_e_dt_mon`,if(isnull(`a`.`assist_e_dt`),'Open','Closed') AS `assist_cur_stat`,`a`.`idmkt_wrk_flow` AS `idmkt_wrk_flow`,`k`.`wrk_flow_nm` AS `wrk_flow_nm`,`a`.`assist_rate` AS `assist_rate`,`a`.`summary` AS `summary`,`a`.`assist_status` AS `assist_status`,if(isnull(`a`.`assist_status`),'No Status',`n`.`mkt_value`) AS `assist_status_nm`,`a`.`stat_e_dt_pre` AS `stat_e_dt_pre`,date_format(`a`.`stat_e_dt_pre`,'%m-%d-%y') AS `stat_e_dt_pre_fmt`,`a`.`stat_lag_tm` AS `stat_lag_tm`,`a`.`stat_st_dt` AS `stat_st_dt`,date_format(`a`.`stat_st_dt`,'%m-%d-%y') AS `stat_st_dt_fmt`,date_format(`a`.`stat_st_dt`,'%Y') AS `stat_st_dt_yr`,date_format(`a`.`stat_st_dt`,'%M') AS `stat_st_dt_mon`,`a`.`stat_e_dt` AS `stat_e_dt`,date_format(`a`.`stat_e_dt`,'%m-%d-%y') AS `stat_e_dt_fmt`,date_format(`a`.`stat_e_dt`,'%Y') AS `stat_e_dt_yr`,date_format(`a`.`stat_e_dt`,'%M') AS `stat_e_dt_mon`,if(isnull(`a`.`stat_e_dt`),'Open','Closed') AS `mkt_comp_open_assist_cur_stat`,`a`.`no_days` AS `no_days`,ifnull(`a`.`no_days`,(to_days(now()) - to_days(`a`.`stat_st_dt`))) AS `no_days_vir`,`a`.`updater` AS `updater`,`p`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`o`.`firstname`,' ',`o`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`idlook_stat_order` AS `idlook_stat_order`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`s`.`file_name` AS `del_by_fnm`,if(isnull(`a`.`del_by`),'Admin',concat(`r`.`firstname`,' ',`r`.`lastname`)) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`u`.`file_name` AS `archv_by_fnm`,if(isnull(`a`.`archv_by`),'Admin',concat(`t`.`firstname`,' ',`t`.`lastname`)) AS `archv_by_nm` from (((((((((((((((((((((`mkt_comp_open_assist` `a` left join `mkt_comp_open` `b` on((`a`.`idmkt_comp_open` = `b`.`idmkt_comp_open`))) left join `mkt_comp` `c` on((`b`.`idmkt_comp_ven` = `c`.`idmkt_comp`))) left join `mkt_comp` `d` on((`b`.`idmkt_comp_client` = `d`.`idmkt_comp`))) left join `emp` `e` on((`b`.`acc_mgr` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `mkt_lk_val` `g` on((`b`.`req_type` = `g`.`idmkt_lk_val`))) left join `look_city` `h` on((`b`.`loc_city` = `h`.`city_id`))) left join `look_county_district` `v` on((`h`.`idlook_county_district` = `v`.`idlook_county_district`))) left join `look_state` `i` on((`v`.`state_id` = `i`.`state_id`))) left join `mkt_lk_val` `j` on((`b`.`source` = `j`.`idmkt_lk_val`))) left join `mkt_lk_wrk_flow` `k` on((`a`.`idmkt_wrk_flow` = `k`.`idmkt_wrk_flow`))) left join `emp` `l` on((`a`.`assist_id` = `l`.`emp_id`))) left join `storages` `m` on((`l`.`idstorages` = `m`.`idstorages`))) left join `mkt_lk_val` `n` on((`a`.`assist_status` = `n`.`idmkt_lk_val`))) left join `emp` `o` on((`a`.`updater` = `o`.`emp_id`))) left join `storages` `p` on((`o`.`idstorages` = `p`.`idstorages`))) left join `mkt_lk_val` `q` on((`a`.`idlook_stat_order` = `q`.`idmkt_lk_val`))) left join `emp` `r` on((`a`.`del_by` = `r`.`emp_id`))) left join `storages` `s` on((`r`.`idstorages` = `s`.`idstorages`))) left join `emp` `t` on((`a`.`archv_by` = `t`.`emp_id`))) left join `storages` `u` on((`t`.`idstorages` = `u`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_mkt_comp_open_assist_stat` -- /*!50001 DROP VIEW IF EXISTS `vw_mkt_comp_open_assist_stat`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8mb4 */; /*!50001 SET character_set_results = utf8mb4 */; /*!50001 SET collation_connection = utf8mb4_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_mkt_comp_open_assist_stat` AS select `a`.`idmkt_comp_open_assist_stat` AS `idmkt_comp_open_assist_stat`,`aa`.`idmkt_comp_open_assist` AS `idmkt_comp_open_assist`,`aa`.`idmkt_comp_open` AS `idmkt_comp_open`,`b`.`idmkt_comp_ven` AS `idmkt_comp_ven`,`c`.`companyname` AS `idmkt_comp_ven_nm`,`b`.`idmkt_comp_client` AS `idmkt_comp_client`,`d`.`companyname` AS `idmkt_comp_client_nm`,`b`.`acc_mgr` AS `acc_mgr`,`f`.`file_name` AS `acc_mgr_fnm`,concat(`e`.`firstname`,' ',`e`.`lastname`) AS `acc_mgr_nm`,`b`.`req_type` AS `req_type`,ifnull(`g`.`mkt_value`,'No Req Type') AS `req_type_nm`,`b`.`open_dt` AS `open_dt`,date_format(`b`.`open_dt`,'%m-%d-%y') AS `open_dt_fmt`,`b`.`loc_city` AS `loc_city`,`i`.`state_name` AS `state_nm`,concat(`i`.`state_name`,', ',`h`.`city_name`) AS `location_nm`,`b`.`contact_info` AS `contact_info`,`b`.`source` AS `source`,ifnull(`j`.`mkt_value`,'No Source') AS `source_nm`,`b`.`open_details` AS `open_details`,`b`.`close_dt` AS `close_dt`,if(isnull(`b`.`close_dt`),'Open',convert(date_format(`b`.`close_dt`,'%m-%d-%y') using utf8mb4)) AS `close_dt_fmt`,if(isnull(`b`.`close_dt`),'Open','Closed') AS `mkt_comp_open_cur_stat`,`b`.`open_close_day` AS `open_close_day`,ifnull(`b`.`open_close_day`,(to_days(now()) - to_days(`b`.`open_dt`))) AS `open_close_day_fmt`,`b`.`open_cnt` AS `open_cnt`,`b`.`open_tol` AS `open_tol`,concat(`b`.`open_cnt`,' of ',`b`.`open_tol`) AS `open_cnt_tol`,`b`.`open_pcnt` AS `open_pcnt`,`aa`.`assist_id` AS `assist_id`,`m`.`file_name` AS `assist_fnm`,if(isnull(`aa`.`assist_id`),'Admin',concat(`l`.`firstname`,' ',`l`.`lastname`)) AS `assist_nm`,`aa`.`assist_rate` AS `assist_rate`,`aa`.`summary` AS `summary`,`aa`.`assist_status` AS `cur_assist_status`,`n`.`mkt_value` AS `cur_assist_status_nm`,`aa`.`stat_st_dt` AS `cur_stat_st_dt`,date_format(`aa`.`stat_st_dt`,'%m-%d-%y') AS `cur_stat_st_dt_fmt`,`aa`.`stat_e_dt` AS `cur_stat_e_dt`,date_format(`aa`.`stat_e_dt`,'%m-%d-%y') AS `cur_stat_e_dt_fmt`,`aa`.`no_days` AS `no_days`,ifnull(`aa`.`no_days`,(to_days(now()) - to_days(`aa`.`stat_st_dt`))) AS `no_days_vir`,`a`.`assist_status` AS `assist_status`,`v`.`mkt_value` AS `assist_status_nm`,`a`.`stat_st_dt` AS `stat_st_dt`,date_format(`a`.`stat_st_dt`,'%m-%d-%y') AS `stat_st_dt_fmt`,`a`.`stat_e_dt` AS `stat_e_dt`,date_format(`a`.`stat_e_dt`,'%m-%d-%y') AS `stat_e_dt_fmt`,if(isnull(`a`.`stat_e_dt`),'Open','Closed') AS `mkt_comp_open_assist_cur_stat`,`a`.`no_days_stat` AS `no_days_stat`,ifnull(`a`.`no_days_stat`,(to_days(now()) - to_days(`a`.`stat_st_dt`))) AS `no_days_stat_vir`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`updater` AS `updater`,`p`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`o`.`firstname`,' ',`o`.`lastname`)) AS `updater_nm`,`a`.`idlook_stat_order` AS `idlook_stat_order`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`s`.`file_name` AS `del_by_fnm`,if(isnull(`a`.`del_by`),'Admin',concat(`r`.`firstname`,' ',`r`.`lastname`)) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`u`.`file_name` AS `archv_by_fnm`,if(isnull(`a`.`archv_by`),'Admin',concat(`t`.`firstname`,' ',`t`.`lastname`)) AS `archv_by_nm` from ((((((((((((((((((((((`mkt_comp_open_assist_stat` `a` left join `mkt_comp_open_assist` `aa` on((`a`.`idmkt_comp_open_assist` = `aa`.`idmkt_comp_open_assist`))) left join `mkt_comp_open` `b` on((`aa`.`idmkt_comp_open` = `b`.`idmkt_comp_open`))) left join `mkt_comp` `c` on((`b`.`idmkt_comp_ven` = `c`.`idmkt_comp`))) left join `mkt_comp` `d` on((`b`.`idmkt_comp_client` = `d`.`idmkt_comp`))) left join `emp` `e` on((`b`.`acc_mgr` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `mkt_lk_val` `g` on((`b`.`req_type` = `g`.`idmkt_lk_val`))) left join `look_city` `h` on((`b`.`loc_city` = `h`.`city_id`))) left join `look_county_district` `w` on((`h`.`idlook_county_district` = `w`.`idlook_county_district`))) left join `look_state` `i` on((`w`.`state_id` = `i`.`state_id`))) left join `mkt_lk_val` `j` on((`b`.`source` = `j`.`idmkt_lk_val`))) left join `emp` `l` on((`aa`.`assist_id` = `l`.`emp_id`))) left join `storages` `m` on((`l`.`idstorages` = `m`.`idstorages`))) left join `mkt_lk_val` `n` on((`aa`.`assist_status` = `n`.`idmkt_lk_val`))) left join `emp` `o` on((`a`.`updater` = `o`.`emp_id`))) left join `storages` `p` on((`o`.`idstorages` = `p`.`idstorages`))) left join `mkt_lk_val` `q` on((`a`.`idlook_stat_order` = `q`.`idmkt_lk_val`))) left join `emp` `r` on((`a`.`del_by` = `r`.`emp_id`))) left join `storages` `s` on((`r`.`idstorages` = `s`.`idstorages`))) left join `emp` `t` on((`a`.`archv_by` = `t`.`emp_id`))) left join `storages` `u` on((`t`.`idstorages` = `u`.`idstorages`))) left join `mkt_lk_val` `v` on((`a`.`assist_status` = `v`.`idmkt_lk_val`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_mkt_comp_open_assist_stat_step` -- /*!50001 DROP VIEW IF EXISTS `vw_mkt_comp_open_assist_stat_step`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_mkt_comp_open_assist_stat_step` AS select `a`.`idmkt_comp_open_assist_stat_step` AS `idmkt_comp_open_assist_stat_step`,`a`.`idmkt_comp_open_assist_stat` AS `idmkt_comp_open_assist_stat`,`a`.`mkt_step_detail` AS `mkt_step_detail`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`b`.`firstname`,' ',`b`.`lastname`)) AS `updater_nm` from ((`mkt_comp_open_assist_stat_step` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_mkt_lk_val` -- /*!50001 DROP VIEW IF EXISTS `vw_mkt_lk_val`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_mkt_lk_val` AS select `a`.`idmkt_lk_val` AS `idmkt_lk_val`,NULL AS `idmkt_lk`,`a`.`lk_val_par` AS `lk_val_par`,`a`.`mkt_value` AS `mkt_value`,NULL AS `child_lvl`,`a`.`mkt_value_desc` AS `mkt_value_desc`,`a`.`disp_order` AS `disp_order`,`a`.`idmkt_lk` AS `parent_id`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,ifnull(concat(`b`.`firstname`,' ',`b`.`lastname`),'Admin') AS `updater_nm`,`a`.`updated` AS `updated`,if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) AS `updated_fmt` from ((`mkt_lk_val` `a` left join `emp` `b` on((`b`.`emp_id` = `a`.`updater`))) left join `storages` `c` on((`c`.`idstorages` = `b`.`idstorages`))) union all select NULL AS `NULL`,`a`.`idmkt_lk` AS `idmkt_lk`,NULL AS `lk_val_par`,`a`.`mkt_name` AS `mkt_name`,if((`a`.`child_lvl` = 0),1,ifnull(`a`.`child_lvl`,1)) AS `child_lvl`,`a`.`mkt_name_desc` AS `mkt_name_desc`,`a`.`disp_order` AS `disp_order`,NULL AS `NULL`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,concat(`b`.`firstname`,' ',`b`.`lastname`) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((`mkt_lk` `a` left join `emp` `b` on((`b`.`emp_id` = `a`.`updater`))) left join `storages` `c` on((`c`.`idstorages` = `b`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_mkt_lk_wrk_flow` -- /*!50001 DROP VIEW IF EXISTS `vw_mkt_lk_wrk_flow`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_mkt_lk_wrk_flow` AS select `a`.`idmkt_wrk_flow` AS `idmkt_wrk_flow`,`a`.`wrk_flow_nm` AS `wrk_flow_nm`,`a`.`id_wrk_flow` AS `id_wrk_flow`,`a`.`wrk_flow_desc` AS `wrk_flow_desc`,`a`.`id_wrk_flow_parent` AS `id_wrk_flow_parent`,`a`.`look_initial` AS `look_initial`,`a`.`look_restart` AS `look_restart`,`a`.`disp_order` AS `disp_order`,`a`.`updater` AS `updater`,ifnull(concat(`c`.`firstname`,' ',`c`.`lastname`),'Admin') AS `updater_fmt`,`a`.`last_updated` AS `last_updated`,if(isnull(`a`.`last_updated`),'Never',date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p')) AS `last_updated_fmt`,concat(ifnull(concat(`c`.`firstname`,' ',`c`.`lastname`),'Admin'),' ',convert(if(isnull(`a`.`last_updated`),'Never',date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p')) using latin1)) AS `last_updated_by`,`b`.`mkt_value` AS `mkt_value` from ((`mkt_lk_wrk_flow` `a` left join `mkt_lk_val` `b` on((`a`.`id_wrk_flow` = `b`.`idmkt_lk_val`))) left join `emp` `c` on((`a`.`updater` = `c`.`emp_id`))) order by `a`.`disp_order` */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_net_audit` -- /*!50001 DROP VIEW IF EXISTS `vw_net_audit`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_net_audit` AS select `a`.`idnet_audit` AS `idnet_audit`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,date_format(`a`.`updated`,'%Y') AS `updated_fmt_yr`,date_format(`a`.`updated`,'%M') AS `updated_fmt_mon`,dayname(`a`.`updated`) AS `updated_fmt_day`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,(case when (isnull(`a`.`updated`) and isnull(`a`.`updater`)) then 'Not Updated' when (isnull(`a`.`updater`) and (`a`.`updated` is not null)) then 'Admin' when ((`a`.`updated` is not null) and (`a`.`updater` is not null)) then concat(`b`.`firstname`,' ',`b`.`lastname`) end) AS `updater_nm`,`a`.`table_update` AS `table_update`,`a`.`action` AS `action`,`a`.`table_id` AS `table_id`,`a`.`col1` AS `col1`,`a`.`idlook_menu_pvt_lvl2` AS `idlook_menu_pvt_lvl2`,`d`.`lk_values` AS `idlook_menu_pvt_lvl2_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`f`.`file_name` AS `del_by_fnm`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`del_by`)) then 'Not Deleted' when (isnull(`a`.`del_by`) and (`a`.`del_dt` is not null)) then 'Admin' when ((`a`.`del_dt` is not null) and (`a`.`del_by` is not null)) then concat(`e`.`firstname`,' ',`e`.`lastname`) end) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`h`.`file_name` AS `archv_by_fnm`,(case when (isnull(`a`.`archv_dt`) and isnull(`a`.`archv_by`)) then 'Not Archived' when (isnull(`a`.`archv_by`) and (`a`.`archv_dt` is not null)) then 'Admin' when ((`a`.`archv_dt` is not null) and (`a`.`archv_by` is not null)) then concat(`g`.`firstname`,' ',`g`.`lastname`) end) AS `archv_by_nm` from (((((((`net_audit` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `look_menu_pvt` `d` on((`a`.`idlook_menu_pvt_lvl2` = `d`.`idlook_menu_pvt`))) left join `emp` `e` on((`a`.`del_by` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `emp` `g` on((`a`.`archv_by` = `g`.`emp_id`))) left join `storages` `h` on((`g`.`idstorages` = `h`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_net_blk_dm` -- /*!50001 DROP VIEW IF EXISTS `vw_net_blk_dm`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_net_blk_dm` AS select `a`.`idnet_blk_dm` AS `idnet_blk_dm`,`a`.`domain_nm` AS `domain_nm`,`a`.`domain_reason` AS `domain_reason`,`a`.`blk_rqtr` AS `blk_rqtr`,`b`.`emp_fnm` AS `blk_rqtr_fnm`,if(isnull(`a`.`blk_rqtr`),'Admin',concat(`b`.`firstname`,' ',`b`.`lastname`)) AS `blk_rqtr_nm`,`a`.`blk_by` AS `blk_by`,`c`.`emp_fnm` AS `blk_by_fnm`,if(isnull(`a`.`blk_by`),'Admin',concat(`c`.`firstname`,' ',`c`.`lastname`)) AS `blk_by_nm`,`a`.`blk_date` AS `blk_date`,date_format(`a`.`blk_date`,'%m-%d-%y %h:%i %p') AS `blk_date_fmt`,date_format(`a`.`blk_date`,'%Y') AS `blk_yr`,date_format(`a`.`blk_date`,'%M') AS `blk_mon`,dayname(`a`.`blk_date`) AS `blk_day`,`a`.`blk_type` AS `blk_type`,`a`.`updater` AS `updater`,`d`.`emp_fnm` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`d`.`firstname`,' ',`d`.`lastname`)) AS `updater_nm`,`a`.`updated_on` AS `last_updated`,date_format(`a`.`updated_on`,'%m-%d-%y %h:%i %p') AS `last_updated_fmt` from (((`net_blk_dm` `a` left join `vw_emp` `b` on((`a`.`blk_rqtr` = `b`.`emp_id`))) left join `vw_emp` `c` on((`a`.`blk_by` = `c`.`emp_id`))) left join `vw_emp` `d` on((`a`.`updater` = `d`.`emp_id`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_net_blk_ip_ser` -- /*!50001 DROP VIEW IF EXISTS `vw_net_blk_ip_ser`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`jitenpatel`@`%` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_net_blk_ip_ser` AS select `a`.`idnet_blk_ip_ser` AS `idnet_blk_ip_ser`,`a`.`idnet_blk_ip` AS `idnet_blk_ip`,`a`.`idnet_ser` AS `idnet_ser`,`a`.`blk_ser_by` AS `blk_ser_by`,`a`.`blk_ser_dt` AS `blk_ser_dt`,date_format(`a`.`blk_ser_dt`,'%m-%d-%y %h:%i %p') AS `blk_ser_dt_fmt`,`a`.`allow` AS `allow_ip_ser`,`b`.`ip_address` AS `ip_address`,`b`.`cnt_blk` AS `cnt_blk`,`b`.`hostname` AS `hostname`,`b`.`city` AS `city`,`b`.`region` AS `region`,`b`.`country` AS `country`,`b`.`blk_by` AS `blk_by`,`b`.`blk_dt` AS `blk_dt`,date_format(`b`.`blk_dt`,'%m-%d-%y %h:%i %p') AS `blk_dt_fmt`,`b`.`allow` AS `allow_ip` from (`net_blk_ip_ser` `a` left join `net_blk_ip` `b` on((`a`.`idnet_blk_ip` = `b`.`idnet_blk_ip`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_net_script` -- /*!50001 DROP VIEW IF EXISTS `vw_net_script`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_net_script` AS select `a`.`idnet_script` AS `idnet_script`,`a`.`script_nm` AS `script_nm`,`a`.`script_typ` AS `script_typ`,`a`.`script_desc` AS `script_desc`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`b`.`firstname`,' ',`b`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`cnt_log` AS `cnt_log`,`a`.`script_field` AS `script_field`,`a`.`script_col_nm` AS `script_col_nm` from ((`net_script` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_net_script_run` -- /*!50001 DROP VIEW IF EXISTS `vw_net_script_run`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_net_script_run` AS select (case when (timestampdiff(MINUTE,ifnull(`a`.`last_run_tm`,now()),now()) >= `a`.`run_tm`) then 'Y' when isnull(`a`.`run_tm`) then 'N' when isnull(`a`.`last_run_tm`) then 'Y' else 'N' end) AS `run`,(`a`.`run_tm` - timestampdiff(MINUTE,`a`.`last_run_tm`,now())) AS `next_run_min`,date_format((`a`.`last_run_tm` + interval `a`.`run_tm` minute),'%m-%d-%y %h:%i %p') AS `next_run_tm`,`b`.`script_nm` AS `script_nm`,`c`.`hostnm` AS `hostnm`,`a`.`run_tm` AS `run_tm`,date_format(`a`.`last_run_tm`,'%m-%d-%y %h:%i %p') AS `last_run_tm_fmt`,date_format(`a`.`script_end`,'%m-%d-%y %h:%i %p') AS `script_end_fmt`,timestampdiff(SECOND,`a`.`last_run_tm`,`a`.`script_end`) AS `exe_tm`,`a`.`idnet_script_run` AS `idnet_script_run`,`a`.`idnet_script` AS `idnet_script`,`b`.`script_desc` AS `script_desc`,`a`.`idnet_ser` AS `idnet_ser`,`c`.`hosted` AS `hosted`,`c`.`hostdm` AS `hostdm`,`c`.`host_type` AS `host_type`,`c`.`host_mst` AS `host_mst`,`a`.`start_dt` AS `start_dt`,`a`.`last_run_tm` AS `last_run_tm`,`a`.`script_end` AS `script_end`,`a`.`cnt_log` AS `cnt_log`,`a`.`run_result` AS `run_result`,timestampdiff(MINUTE,`a`.`last_run_tm`,now()) AS `min_since` from ((`net_script_run` `a` left join `net_script` `b` on((`a`.`idnet_script` = `b`.`idnet_script`))) left join `net_ser` `c` on((`a`.`idnet_ser` = `c`.`idnet_ser`))) order by (case when (timestampdiff(MINUTE,ifnull(`a`.`last_run_tm`,now()),now()) >= `a`.`run_tm`) then 'Y' when isnull(`a`.`run_tm`) then 'N' when isnull(`a`.`last_run_tm`) then 'Y' else 'N' end) desc,`c`.`hostnm` */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_net_script_run_log` -- /*!50001 DROP VIEW IF EXISTS `vw_net_script_run_log`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_net_script_run_log` AS select `a`.`idnet_script_run_log` AS `idnet_script_run_log`,`a`.`idnet_script` AS `idnet_script`,`a`.`idnet_script_run` AS `idnet_script_run`,`a`.`idnet_ser` AS `idnet_ser`,`a`.`run_result` AS `run_result`,`a`.`run_dt` AS `run_dt`,date_format(`a`.`run_dt`,'%m-%d-%y %h:%i %p') AS `run_dt_fmt`,`a`.`run_by` AS `run_by`,`a`.`updater` AS `updater`,`d`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`c`.`firstname`,' ',`c`.`lastname`)) AS `updater_nm`,`a`.`script_end` AS `script_end`,date_format(`a`.`script_end`,'%m-%d-%y %h:%i %p') AS `script_end_fmt` from (((`net_script_run_log` `a` left join `net_script` `b` on((`a`.`idnet_script` = `b`.`idnet_script`))) left join `emp` `c` on((`a`.`updater` = `c`.`emp_id`))) left join `storages` `d` on((`c`.`idstorages` = `d`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_net_secure` -- /*!50001 DROP VIEW IF EXISTS `vw_net_secure`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_net_secure` AS select `a`.`idnet_secure` AS `idnet_secure`,`a`.`access_fnm` AS `access_fnm`,`a`.`hostnm` AS `hostnm`,`a`.`access_brsw` AS `access_brsw`,`a`.`access_by` AS `access_by`,`c`.`file_name` AS `access_by_fnm`,if(isnull(`a`.`access_by`),'Admin',concat(`b`.`firstname`,' ',`b`.`lastname`)) AS `access_by_nm`,`a`.`access_dt` AS `access_dt`,date_format(`a`.`access_dt`,'%m-%d-%y %h:%i %p') AS `access_dt_fmt`,date_format(`a`.`access_dt`,'%Y') AS `access_dt_yr`,date_format(`a`.`access_dt`,'%M') AS `access_dt_mon`,`a`.`menu_main` AS `menu_main`,`f`.`lk_values` AS `menu_main_nm`,`a`.`menu_sub` AS `menu_sub`,`g`.`lk_values` AS `menu_sub_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(date_format(`a`.`del_dt`,'%Y'),'Not Deleted') AS `del_dt_yr`,ifnull(date_format(`a`.`del_dt`,'%M'),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`i`.`file_name` AS `del_by_fnm`,if(isnull(`a`.`del_by`),'Admin',concat(`h`.`firstname`,' ',`h`.`lastname`)) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then date_format(`a`.`archv_dt`,'%Y') when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then date_format(`a`.`archv_dt`,'%M') when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`k`.`file_name` AS `archv_by_fnm`,if(isnull(`a`.`archv_by`),'Admin',concat(`j`.`firstname`,' ',`j`.`lastname`)) AS `archv_by_nm` from ((((((((`net_secure` `a` left join `emp` `b` on((`a`.`access_by` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `look_menu_pvt` `f` on((`a`.`menu_main` = `f`.`idlook_menu_pvt`))) left join `look_menu_pvt` `g` on((`a`.`menu_sub` = `g`.`idlook_menu_pvt`))) left join `emp` `h` on((`a`.`del_by` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) left join `emp` `j` on((`a`.`archv_by` = `j`.`emp_id`))) left join `storages` `k` on((`j`.`idstorages` = `k`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_net_ser` -- /*!50001 DROP VIEW IF EXISTS `vw_net_ser`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_net_ser` AS select `a`.`idnet_ser` AS `idnet_ser`,`a`.`hostnm` AS `hostnm`,`a`.`hosted` AS `hosted`,`a`.`hostdm` AS `hostdm`,`a`.`hostdm_multi` AS `hostdm_multi`,`a`.`host_type` AS `host_type`,`a`.`host_mst` AS `host_mst`,`a`.`ip_lan` AS `ip_lan`,`a`.`ip_wan` AS `ip_wan`,`a`.`ip_usr` AS `ip_usr`,`a`.`gateway` AS `gateway`,concat('LAN: ',ifnull(`a`.`ip_lan`,'No LAN '),' ','WAN: ',ifnull(`a`.`ip_wan`,'No WAN '),' ','User: ',ifnull(`a`.`ip_usr`,'No User'),' ','Gateway: ',ifnull(`a`.`gateway`,'No Gateway')) AS `ips`,`a`.`updater` AS `updater`,`d`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`c`.`firstname`,' ',`c`.`lastname`)) AS `updater_nm`,`a`.`updated_on` AS `updated_on`,if(isnull(`a`.`updated_on`),date_format(now(),'%m-%d-%y %h:%i %p'),date_format(`a`.`updated_on`,'%m-%d-%y %h:%i %p')) AS `updated_on_fmt`,`b`.`hostnm` AS `mst_hostnm`,`b`.`hostdm` AS `mst_hostdm`,`b`.`ip_lan` AS `mst_ip_lan`,`b`.`ip_wan` AS `mst_ip_wan`,`a`.`cnt_ser_blk` AS `cnt_ser_blk`,`a`.`cnt_db_blk` AS `cnt_db_blk`,concat('Server: ',ifnull(`a`.`cnt_ser_blk`,'No Block '),' ','DB: ',ifnull(`a`.`cnt_db_blk`,'No Block ')) AS `blocks`,`a`.`cnt_blk_updated` AS `cnt_blk_updated`,date_format(`a`.`cnt_blk_updated`,'%m-%d-%y %h:%i %p') AS `cnt_blk_updated_fmt`,`a`.`dis_tot` AS `dis_tot`,`a`.`dis_tot` AS `dis_tot_fmt`,`a`.`dis_use` AS `dis_use`,`a`.`dis_use` AS `dis_use_fmt`,concat(`a`.`dis_use`,' Of ',`a`.`dis_tot`) AS `dis_use_tot`,`a`.`dis_free` AS `dis_free`,`a`.`dis_free` AS `dis_free_fmt`,concat(`a`.`dis_free`,' Of ',`a`.`dis_tot`) AS `dis_free_tot`,`a`.`dis_pcnt` AS `dis_pcnt`,`a`.`cnt_dis` AS `cnt_dis`,`a`.`dis_grp_ser_stat` AS `dis_grp_ser_stat`,`a`.`ser_stat_updated` AS `ser_stat_updated`,date_format(`a`.`ser_stat_updated`,'%m-%d-%y %h:%i %p') AS `ser_stat_updated_fmt`,`a`.`disc_chk_access` AS `disc_chk_access`,`a`.`dis_tol_grp` AS `dis_tol_grp`,`a`.`dis_mir_lvl` AS `dis_mir_lvl`,`a`.`dis_free_grp` AS `dis_free_grp`,`a`.`dis_updated` AS `dis_updated`,date_format(`a`.`dis_updated`,'%m-%d-%y %h:%i %p') AS `dis_updated_fmt`,`a`.`cpu_dt_tm` AS `cpu_dt_tm`,date_format(`a`.`cpu_dt_tm`,'%m-%d-%y') AS `cpu_dt_tm_fmt`,`a`.`users_load` AS `users_load`,`a`.`sys_load` AS `sys_load`,`a`.`io_wait` AS `io_wait`,`a`.`idle_wait` AS `idle_wait`,`a`.`cnt_ser_stat` AS `cnt_ser_stat`,`a`.`cpu_updated` AS `cpu_updated`,date_format(`a`.`cpu_updated`,'%m-%d-%y %h:%i %p') AS `cpu_updated_fmt` from (((`net_ser` `a` left join `net_ser` `b` on((`a`.`host_mst` = `b`.`hostnm`))) left join `emp` `c` on((`a`.`updater` = `c`.`emp_id`))) left join `storages` `d` on((`c`.`idstorages` = `d`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_net_ser_clone` -- /*!50001 DROP VIEW IF EXISTS `vw_net_ser_clone`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_net_ser_clone` AS select `a`.`idnet_clone` AS `idnet_clone`,`a`.`idnet_ser` AS `idnet_ser`,`b`.`hostnm` AS `hostnm`,`b`.`hostdm` AS `hostdm`,`b`.`host_mst` AS `host_mst`,`b`.`ip_lan` AS `ip_lan`,`b`.`ip_wan` AS `ip_wan`,`b`.`ip_usr` AS `ip_usr`,`b`.`gateway` AS `gateway`,`a`.`mst_app` AS `mst_app`,`a`.`cloned_app` AS `cloned_app`,`a`.`code_bk` AS `code_bk`,`a`.`db_bk` AS `db_bk`,`a`.`valid_days` AS `valid_days`,`a`.`validity` AS `validity`,`a`.`synced` AS `synced`,`a`.`alert_days` AS `alert_days`,`a`.`app_url` AS `app_url`,`a`.`deleted_on` AS `deleted_on`,`a`.`updater` AS `updater`,`a`.`updated_on` AS `updated_on` from (`net_ser_clone` `a` left join `net_ser` `b` on((`a`.`idnet_ser` = `b`.`idnet_ser`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_net_tb_vw_ser` -- /*!50001 DROP VIEW IF EXISTS `vw_net_tb_vw_ser`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_net_tb_vw_ser` AS select `a`.`idnet_tb_vw_ser` AS `idnet_tb_vw_ser`,`a`.`idnet_tb_vw` AS `idnet_tb_vw`,`a`.`idnet_clone` AS `idnet_clone`,`a`.`updated_on` AS `net_tb_vw_ser_updt`,`b`.`updated_on` AS `net_tb_vw_updt`,`b`.`qry` AS `qry`,`b`.`updater` AS `updater`,`c`.`idnet_ser` AS `idnet_ser`,`c`.`hostnm` AS `hostnm`,`c`.`hostdm` AS `hostdm`,`c`.`host_mst` AS `host_mst`,`c`.`ip_lan` AS `ip_lan`,`c`.`ip_wan` AS `ip_wan`,`c`.`mst_app` AS `mst_app`,`c`.`cloned_app` AS `cloned_app`,`c`.`validity` AS `validity`,`c`.`deleted_on` AS `deleted_on` from ((`net_tb_vw_ser` `a` left join `net_tb_vw` `b` on((`a`.`idnet_tb_vw` = `b`.`idnet_tb_vw`))) left join `vw_net_ser_clone` `c` on((`a`.`idnet_clone` = `c`.`idnet_clone`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_net_tb_vw_ser_app` -- /*!50001 DROP VIEW IF EXISTS `vw_net_tb_vw_ser_app`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`jitenpatel`@`%` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_net_tb_vw_ser_app` AS select `a`.`idnet_tb_vw_ser_app` AS `idnet_tb_vw_ser_app`,`a`.`idnet_tb_vw_ser` AS `idnet_tb_vw_ser`,`a`.`idnet_clone` AS `idnet_clone`,`a`.`updated_on` AS `updated_on`,`a`.`updated_by` AS `updated_by`,`b`.`idnet_ser` AS `idnet_ser`,`b`.`host_mst` AS `host_mst`,`b`.`ip_lan` AS `ip_lan`,`b`.`ip_wan` AS `ip_wan`,`b`.`gateway` AS `gateway`,`b`.`mst_app` AS `mst_app`,`b`.`cloned_app` AS `cloned_app`,`b`.`validity` AS `validity`,`b`.`deleted_on` AS `deleted_on` from (`net_tb_vw_ser_app` `a` left join `vw_net_ser_clone` `b` on((`a`.`idnet_clone` = `b`.`idnet_clone`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_prosp_audit` -- /*!50001 DROP VIEW IF EXISTS `vw_prosp_audit`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_prosp_audit` AS select `a`.`idprosp_audit` AS `idprosp_audit`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,date_format(`a`.`updated`,'%Y') AS `updated_fmt_yr`,date_format(`a`.`updated`,'%M') AS `updated_fmt_mon`,dayname(`a`.`updated`) AS `updated_fmt_day`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,(case when (isnull(`a`.`updated`) and isnull(`a`.`updater`)) then 'Not Updated' when (isnull(`a`.`updater`) and (`a`.`updated` is not null)) then 'Admin' when ((`a`.`updated` is not null) and (`a`.`updater` is not null)) then concat(`b`.`firstname`,' ',`b`.`lastname`) end) AS `updater_nm`,`a`.`table_update` AS `table_update`,`a`.`action` AS `action`,`a`.`table_id` AS `table_id`,`a`.`col1` AS `col1`,`a`.`idlook_menu_pvt_lvl2` AS `idlook_menu_pvt_lvl2`,`d`.`lk_values` AS `idlook_menu_pvt_lvl2_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`f`.`file_name` AS `del_by_fnm`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`del_by`)) then 'Not Deleted' when (isnull(`a`.`del_by`) and (`a`.`del_dt` is not null)) then 'Admin' when ((`a`.`del_dt` is not null) and (`a`.`del_by` is not null)) then concat(`e`.`firstname`,' ',`e`.`lastname`) end) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`h`.`file_name` AS `archv_by_fnm`,(case when (isnull(`a`.`archv_dt`) and isnull(`a`.`archv_by`)) then 'Not Archived' when (isnull(`a`.`archv_by`) and (`a`.`archv_dt` is not null)) then 'Admin' when ((`a`.`archv_dt` is not null) and (`a`.`archv_by` is not null)) then concat(`g`.`firstname`,' ',`g`.`lastname`) end) AS `archv_by_nm` from (((((((`prosp_audit` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `look_menu_pvt` `d` on((`a`.`idlook_menu_pvt_lvl2` = `d`.`idlook_menu_pvt`))) left join `emp` `e` on((`a`.`del_by` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `emp` `g` on((`a`.`archv_by` = `g`.`emp_id`))) left join `storages` `h` on((`g`.`idstorages` = `h`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_prosp_corp` -- /*!50001 DROP VIEW IF EXISTS `vw_prosp_corp`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_prosp_corp` AS select `a`.`idprosp_corp` AS `idprosp_corp`,`a`.`prosp_corp_type` AS `prosp_corp_type`,ifnull(`d`.`prosp_value`,'Not Entered') AS `prosp_corp_type_nm`,`a`.`corp_entity_name` AS `corp_entity_name`,concat(`a`.`corp_entity_name`,' Contacts: ',`a`.`corp_contacts`) AS `corp_name_contact`,`a`.`corp_source` AS `corp_source`,ifnull(`e`.`prosp_value`,'No Source') AS `corp_source_nm`,`a`.`corp_level` AS `corp_level`,ifnull(`g`.`prosp_value`,'No Level') AS `corp_level_nm`,`a`.`corp_domain` AS `corp_domain`,if(isnull(`a`.`corp_domain`),'No Industry',`v`.`prosp_value`) AS `corp_domain_nm`,`a`.`corp_domain_sub` AS `corp_domain_sub`,if(isnull(`a`.`corp_domain_sub`),'No Sub Industry',`w`.`prosp_value`) AS `corp_domain_sub_nm`,`a`.`response` AS `response`,ifnull(`r`.`prosp_value`,'No Response') AS `response_nm`,`a`.`corp_contacts` AS `corp_contacts`,`a`.`corp_address` AS `corp_address`,ifnull(`a`.`corp_address`,'Not Entered') AS `corp_address_nm`,`a`.`register_yr` AS `register_yr`,ifnull(`a`.`register_yr`,'Not Entered') AS `register_yr_fmt`,`a`.`register_state` AS `register_state`,ifnull(`a`.`register_state`,'Not Entered') AS `register_state_fmt`,`a`.`start_dt` AS `start_dt`,date_format(`a`.`start_dt`,'%m-%d-%y') AS `start_dt_fmt`,date_format(`a`.`start_dt`,'%Y') AS `start_dt_yr`,date_format(`a`.`start_dt`,'%M') AS `start_dt_mon`,`a`.`end_dt` AS `end_dt`,if(isnull(`a`.`end_dt`),'Not Ended',date_format(`a`.`end_dt`,'%m-%d-%y')) AS `end_dt_fmt`,date_format(`a`.`end_dt`,'%Y') AS `end_dt_yr`,date_format(`a`.`end_dt`,'%M') AS `end_dt_mon`,if(isnull(`a`.`end_dt`),'Open','Closed') AS `prosp_corp_cur_stat`,`a`.`st_end_tm` AS `st_end_tm`,ifnull(`a`.`st_end_tm`,timestampdiff(DAY,`a`.`start_dt`,now())) AS `st_end_tm_vir`,`a`.`acc_mgr` AS `acc_mgr`,`h`.`file_name` AS `acc_mgr_fnm`,ifnull(concat(`f`.`firstname`,' ',`f`.`lastname`),'Admin') AS `acc_mgr_nm`,`a`.`topic_discussed` AS `topic_discussed`,`a`.`all_topic` AS `all_topic`,`a`.`called_dt` AS `called_dt`,date_format(`a`.`called_dt`,'%m-%d-%y') AS `called_dt_fmt`,`a`.`call_nxt_dt` AS `call_nxt_dt`,if(isnull(`a`.`call_nxt_dt`),'To Plan',date_format(`a`.`call_nxt_dt`,'%m-%d-%y')) AS `call_nxt_dt_fmt`,`a`.`call_day_tm` AS `call_day_tm`,if(isnull(`a`.`call_day_tm`),(to_days(now()) - to_days(`a`.`called_dt`)),`a`.`call_day_tm`) AS `call_day_tm_vir`,`a`.`topic_count` AS `topic_count`,`a`.`about_corp` AS `about_corp`,ifnull(`a`.`about_corp`,'Not Entered') AS `about_corp_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`updater` AS `updater`,`u_by`.`file_name` AS `updater_fnm`,ifnull(concat(`u`.`firstname`,' ',`u`.`lastname`),'Admin') AS `updater_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(date_format(`a`.`del_dt`,'%Y'),'Not Deleted') AS `del_dt_yr`,ifnull(date_format(`a`.`del_dt`,'%M'),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`o_del_by`.`file_name` AS `del_by_fnm`,ifnull(concat(`e_del_by`.`firstname`,' ',`e_del_by`.`lastname`),'Admin') AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then date_format(`a`.`archv_dt`,'%Y') when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then date_format(`a`.`archv_dt`,'%M') when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`o_arch_by`.`file_name` AS `arch_by_fnm`,ifnull(concat(`e_arch_by`.`firstname`,' ',`e_arch_by`.`lastname`),'Admin') AS `arch_by_nm` from ((((((((((((((`prosp_corp` `a` left join `prosp_lk_val` `d` on((`a`.`prosp_corp_type` = `d`.`idprosp_lk_val`))) left join `prosp_lk_val` `e` on((`a`.`corp_source` = `e`.`idprosp_lk_val`))) left join `emp` `f` on((`a`.`acc_mgr` = `f`.`emp_id`))) left join `storages` `h` on((`f`.`idstorages` = `h`.`idstorages`))) left join `prosp_lk_val` `g` on((`a`.`corp_level` = `g`.`idprosp_lk_val`))) left join `prosp_lk_val` `r` on((`a`.`response` = `r`.`idprosp_lk_val`))) left join `emp` `u` on((`u`.`emp_id` = `a`.`updater`))) left join `storages` `u_by` on((`u`.`idstorages` = `u_by`.`idstorages`))) left join `emp` `e_del_by` on((`a`.`del_dt` = `e_del_by`.`emp_id`))) left join `emp` `e_arch_by` on((`a`.`archv_by` = `e_arch_by`.`emp_id`))) left join `storages` `o_del_by` on((`e_del_by`.`idstorages` = `o_del_by`.`idstorages`))) left join `storages` `o_arch_by` on((`e_arch_by`.`idstorages` = `o_arch_by`.`idstorages`))) left join `prosp_lk_val` `v` on((`a`.`corp_domain` = `v`.`idprosp_lk_val`))) left join `prosp_lk_val` `w` on((`a`.`corp_domain_sub` = `w`.`idprosp_lk_val`))) order by `a`.`updated` desc */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_prosp_corp_access` -- /*!50001 DROP VIEW IF EXISTS `vw_prosp_corp_access`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_prosp_corp_access` AS select `a`.`idprosp_corp_access` AS `idprosp_corp_access`,`a`.`corp_accessor` AS `corp_accessor`,`c`.`file_name` AS `corp_accessor_fnm`,concat(`b`.`firstname`,' ',`b`.`lastname`) AS `corp_accessor_nm`,`a`.`corp_access_acc_mgr` AS `corp_access_acc_mgr`,`e`.`file_name` AS `corp_access_acc_mgr_fnm`,concat(`d`.`firstname`,' ',`d`.`lastname`) AS `corp_access_acc_mgr_nm`,`a`.`from_dt_acc` AS `from_dt_acc`,if(isnull(`a`.`from_dt_acc`),'All',date_format(`a`.`from_dt_acc`,'%m-%d-%y')) AS `from_dt_acc_fmt`,`a`.`to_dt_acc` AS `to_dt_acc`,if(isnull(`a`.`to_dt_acc`),'Current',date_format(`a`.`to_dt_acc`,'%m-%d-%y')) AS `to_dt_acc_fmt`,`a`.`updater` AS `updater`,`g`.`file_name` AS `updater_fnm`,ifnull(concat(`f`.`firstname`,' ',`f`.`lastname`),'Admin') AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((((((`prosp_corp_access` `a` left join `emp` `b` on((`a`.`corp_accessor` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `emp` `d` on((`a`.`corp_access_acc_mgr` = `d`.`emp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `emp` `f` on((`a`.`updater` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_prosp_corp_activity` -- /*!50001 DROP VIEW IF EXISTS `vw_prosp_corp_activity`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8mb4 */; /*!50001 SET character_set_results = utf8mb4 */; /*!50001 SET collation_connection = utf8mb4_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_prosp_corp_activity` AS select `a`.`idprosp_corp_activity` AS `idprosp_corp_activity`,`a`.`idprosp_corp` AS `idprosp_corp`,`k`.`prosp_corp_type` AS `prosp_corp_type`,if(isnull(`k`.`prosp_corp_type`),'Not Entered',`l`.`prosp_value`) AS `prosp_corp_type_nm`,`k`.`corp_entity_name` AS `corp_entity_name`,`k`.`corp_source` AS `corp_source`,if(isnull(`k`.`corp_source`),'No Source',`m`.`prosp_value`) AS `corp_source_nm`,`k`.`corp_domain` AS `corp_domain`,if(isnull(`k`.`corp_domain`),'No Industry',`n`.`prosp_value`) AS `corp_domain_nm`,`k`.`corp_domain_sub` AS `corp_domain_sub`,if(isnull(`k`.`corp_domain_sub`),'No Sub Industry',`o`.`prosp_value`) AS `corp_domain_sub_nm`,`k`.`corp_contacts` AS `corp_contacts`,`k`.`corp_address` AS `corp_address`,ifnull(`k`.`corp_address`,'Not Entered') AS `corp_address_nm`,`k`.`register_yr` AS `register_yr`,ifnull(`k`.`register_yr`,'Not Entered') AS `register_yr_fmt`,`k`.`register_state` AS `register_state`,ifnull(`k`.`register_state`,'Not Entered') AS `register_state_fmt`,`k`.`start_dt` AS `start_dt`,date_format(`k`.`start_dt`,'%m-%d-%y') AS `start_dt_fmt`,`k`.`end_dt` AS `end_dt`,if(isnull(`k`.`end_dt`),'Not Ended',convert(date_format(`k`.`end_dt`,'%m-%d-%y') using utf8mb4)) AS `end_dt_fmt`,if(isnull(`k`.`end_dt`),'Open','Closed') AS `prosp_corp_cur_stat`,`k`.`st_end_tm` AS `st_end_tm`,ifnull(`k`.`st_end_tm`,timestampdiff(DAY,`k`.`start_dt`,now())) AS `st_end_tm_vir`,`k`.`about_corp` AS `about_corp`,`a`.`topic_disussed` AS `topic_disussed`,`a`.`corp_level` AS `corp_level`,`j`.`prosp_value` AS `corp_level_nm`,`a`.`response` AS `response`,`r`.`prosp_value` AS `response_nm`,`a`.`called_dt` AS `called_dt`,date_format(`a`.`called_dt`,'%m-%d-%y') AS `called_dt_fmt`,date_format(`a`.`called_dt`,'%Y') AS `called_dt_yr`,date_format(`a`.`called_dt`,'%M') AS `called_dt_mon`,`a`.`acc_mgr` AS `acc_mgr`,`c`.`file_name` AS `acc_mgr_fnm`,concat(`b`.`firstname`,' ',`b`.`lastname`) AS `acc_mgr_nm`,`a`.`call_nxt_dt` AS `call_nxt_dt`,date_format(`a`.`call_nxt_dt`,'%m-%d-%y') AS `call_nxt_dt_fmt`,date_format(`a`.`call_nxt_dt`,'%Y') AS `call_nxt_dt_yr`,date_format(`a`.`call_nxt_dt`,'%M') AS `call_nxt_dt_mon`,if(isnull(`a`.`call_nxt_dt`),'Open','Closed') AS `prosp_corp_activity_cur_stat`,`a`.`call_day_tm` AS `call_day_tm`,if(isnull(`a`.`call_day_tm`),(to_days(now()) - to_days(`a`.`called_dt`)),`a`.`call_day_tm`) AS `call_day_tm_vir`,`a`.`updater` AS `updater`,`i`.`file_name` AS `updater_fnm`,(case when (isnull(`a`.`updated`) and isnull(`a`.`updater`)) then 'Not Updated' when (isnull(`a`.`updater`) and (`a`.`updated` is not null)) then 'Admin' when ((`a`.`updated` is not null) and (`a`.`updater` is not null)) then concat(`h`.`firstname`,' ',`h`.`lastname`) end) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`f`.`file_name` AS `del_by_fnm`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`del_by`)) then 'Not Deleted' when (isnull(`a`.`del_by`) and (`a`.`del_dt` is not null)) then 'Admin' when ((`a`.`del_dt` is not null) and (`a`.`del_by` is not null)) then concat(`d`.`firstname`,' ',`d`.`lastname`) end) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`g`.`file_name` AS `arch_by_fnm`,(case when (isnull(`a`.`archv_dt`) and isnull(`a`.`archv_by`)) then 'Not Archived' when (isnull(`a`.`archv_by`) and (`a`.`archv_dt` is not null)) then 'Admin' when ((`a`.`archv_dt` is not null) and (`a`.`archv_by` is not null)) then concat(`e`.`firstname`,' ',`e`.`lastname`) end) AS `arch_by_nm` from (((((((((((((((`prosp_corp_activity` `a` left join `emp` `b` on((`b`.`emp_id` = `a`.`acc_mgr`))) left join `storages` `c` on((`c`.`idstorages` = `b`.`idstorages`))) left join `emp` `d` on((`a`.`del_by` = `d`.`emp_id`))) left join `emp` `e` on((`a`.`archv_by` = `e`.`emp_id`))) left join `storages` `f` on((`d`.`idstorages` = `f`.`idstorages`))) left join `storages` `g` on((`e`.`idstorages` = `g`.`idstorages`))) left join `emp` `h` on((`h`.`emp_id` = `a`.`updater`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) left join `prosp_lk_val` `r` on((`a`.`response` = `r`.`idprosp_lk_val`))) left join `prosp_lk_val` `j` on((`a`.`corp_level` = `j`.`idprosp_lk_val`))) left join `prosp_corp` `k` on((`a`.`idprosp_corp` = `k`.`idprosp_corp`))) left join `prosp_lk_val` `l` on((`k`.`prosp_corp_type` = `l`.`idprosp_lk_val`))) left join `prosp_lk_val` `m` on((`k`.`corp_source` = `m`.`idprosp_lk_val`))) left join `prosp_lk_val` `n` on((`k`.`corp_domain` = `n`.`idprosp_lk_val`))) left join `prosp_lk_val` `o` on((`k`.`corp_domain_sub` = `o`.`idprosp_lk_val`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_prosp_corp_doc` -- /*!50001 DROP VIEW IF EXISTS `vw_prosp_corp_doc`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_prosp_corp_doc` AS select `a`.`idprosp_corp_doc` AS `idprosp_corp_doc`,`a`.`idprosp_corp` AS `idprosp_corp`,`a`.`idstorages` AS `idstorages`,`c`.`file_name` AS `file_name`,`c`.`sto_cloud` AS `sto_cloud`,ifnull(`k`.`lk_val`,'Local') AS `sto_cloud_nm`,`c`.`file_size` AS `file_size`,(case when (`c`.`file_size` < 1024) then concat(`c`.`file_size`,' B') when ((`c`.`file_size` > 1024) and (`c`.`file_size` < 1048576)) then concat(round((`c`.`file_size` / 1024),2),' KB') when ((`c`.`file_size` > 1048576) and (`c`.`file_size` < 1073741824)) then concat(round(((`c`.`file_size` / 1024) / 1024),2),' MB') when (`c`.`file_size` > 1073741824) then concat(round((((`c`.`file_size` / 1024) / 1024) / 1024),2),' GB') end) AS `file_size_fmt`,`c`.`owner_id` AS `owner_id`,`e`.`file_name` AS `owner_fnm`,ifnull(concat(`d`.`firstname`,' ',`d`.`lastname`),'Admin') AS `owner_nm`,`c`.`create_dt` AS `create_dt`,date_format(`c`.`create_dt`,'%m-%d-%y %h:%i %p') AS `create_dt_fmt`,`c`.`expire_dt` AS `expire_dt`,date_format(`c`.`expire_dt`,'%m-%d-%y %h:%i %p') AS `expire_dt_fmt`,`c`.`ext_type` AS `ext_type`,`c`.`public` AS `public`,`c`.`self_view` AS `self_view`,`c`.`smry` AS `smry`,`c`.`ref_emp_id` AS `ref_emp_id`,`g`.`file_name` AS `ref_emp_fnm`,ifnull(concat(`f`.`firstname`,' ',`f`.`lastname`),'Admin') AS `ref_emp_nm`,`c`.`usage` AS `usage`,`c`.`updater` AS `updater`,`i`.`file_name` AS `updater_fnm`,ifnull(concat(`h`.`firstname`,' ',`h`.`lastname`),'Admin') AS `updater_nm`,`c`.`updated` AS `updated`,date_format(`c`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((((((((`prosp_corp_doc` `a` left join `storages` `c` on((`a`.`idstorages` = `c`.`idstorages`))) left join `emp` `d` on((`c`.`owner_id` = `d`.`emp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `emp` `f` on((`c`.`ref_emp_id` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `feature_lk_val` `k` on((`a`.`idstorages` = `k`.`idfeature_lk_val`))) left join `emp` `h` on((`c`.`updater` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_prosp_lk_val` -- /*!50001 DROP VIEW IF EXISTS `vw_prosp_lk_val`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_prosp_lk_val` AS select `a`.`idprosp_lk_val` AS `idprosp_lk_val`,NULL AS `idprosp_lk`,`a`.`lk_val_par` AS `lk_val_par`,`a`.`prosp_value` AS `prosp_value`,NULL AS `child_lvl`,`a`.`prosp_value_desc` AS `prosp_value_desc`,`a`.`disp_order` AS `disp_order`,`a`.`idprosp_lk` AS `parent_id`,`a`.`updated` AS `updated`,ifnull(date_format(`a`.`updated`,'%m-%d-%y %h:%i %p'),'Never') AS `updated_fmt`,`a`.`updater` AS `updater`,`v`.`file_name` AS `updater_fnm`,ifnull(concat(`u`.`firstname`,' ',`u`.`lastname`),'Admin') AS `updater_nm` from ((`prosp_lk_val` `a` left join `emp` `u` on((`a`.`updater` = `u`.`emp_id`))) left join `storages` `v` on((`v`.`idstorages` = `u`.`idstorages`))) union all select NULL AS `NULL`,`a`.`idprosp_lk` AS `idprosp_lk`,NULL AS `lk_val_par`,`a`.`prosp_name` AS `prosp_name`,if((`a`.`child_lvl` = 0),1,ifnull(`a`.`child_lvl`,1)) AS `child_lvl`,`a`.`lk_name_desc` AS `lk_name_desc`,`a`.`disp_order` AS `disp_order`,NULL AS `NULL`,`a`.`updated` AS `updated`,ifnull(date_format(`a`.`updated`,'%m-%d-%y %h:%i %p'),'Never') AS `updated_fmt`,`a`.`updater` AS `updater`,`v`.`file_name` AS `updater_fnm`,ifnull(concat(`u`.`firstname`,' ',`u`.`lastname`),'Admin') AS `updater_nm` from ((`prosp_lk` `a` left join `emp` `u` on((`a`.`updater` = `u`.`emp_id`))) left join `storages` `v` on((`v`.`idstorages` = `u`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_shr` -- /*!50001 DROP VIEW IF EXISTS `vw_shr`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_shr` AS select `a`.`idshr` AS `idshr`,`a`.`comp_id` AS `comp_id`,`c`.`file_name` AS `comp_fnm`,`b`.`companyname` AS `companyname`,`a`.`shr_no` AS `shr_no`,(case when ((`a`.`shr_no` > 999) and (`a`.`shr_no` < 1000000)) then convert(concat((trim(round((`a`.`shr_no` / 1000),2)) + 0),'K') using latin1) when (`a`.`shr_no` < 1000) then `a`.`shr_no` when ((`a`.`shr_no` > 999999) and (`a`.`shr_no` < 1000000000)) then convert(concat((trim(round((`a`.`shr_no` / 1000000),2)) + 0),'M') using latin1) when ((`a`.`shr_no` > 999999999) and (`a`.`shr_no` < 1000000000000)) then convert(concat((trim(round((`a`.`shr_no` / 1000000000),2)) + 0),'B') using latin1) when (`a`.`shr_no` > 999999999999) then convert(concat((trim(round((`a`.`shr_no` / 1000000000000),2)) + 0),'T') using latin1) end) AS `shr_no_fmt`,`a`.`hlding` AS `hlding`,concat(`a`.`hlding`,'%') AS `hlding_pcnt`,round((`a`.`shr_no` * (`a`.`hlding` / 100)),2) AS `hlding_amt`,(case when ((round((`a`.`shr_no` * (`a`.`hlding` / 100)),2) > 999) and (round((`a`.`shr_no` * (`a`.`hlding` / 100)),2) < 1000000)) then convert(concat((trim(round((round((`a`.`shr_no` * (`a`.`hlding` / 100)),2) / 1000),2)) + 0),'K') using latin1) when (round((`a`.`shr_no` * (`a`.`hlding` / 100)),2) < 1000) then round((`a`.`shr_no` * (`a`.`hlding` / 100)),2) when ((round((`a`.`shr_no` * (`a`.`hlding` / 100)),2) > 999999) and (round((`a`.`shr_no` * (`a`.`hlding` / 100)),2) < 1000000000)) then convert(concat((trim(round((round((`a`.`shr_no` * (`a`.`hlding` / 100)),2) / 1000000),2)) + 0),'M') using latin1) when ((round((`a`.`shr_no` * (`a`.`hlding` / 100)),2) > 999999999) and (round((`a`.`shr_no` * (`a`.`hlding` / 100)),2) < 1000000000000)) then convert(concat((trim(round((round((`a`.`shr_no` * (`a`.`hlding` / 100)),2) / 1000000000),2)) + 0),'B') using latin1) when (round((`a`.`shr_no` * (`a`.`hlding` / 100)),2) > 999999999999) then convert(concat((trim(round((round((`a`.`shr_no` * (`a`.`hlding` / 100)),2) / 1000000000000),2)) + 0),'T') using latin1) end) AS `hlding_amt_fmt`,`a`.`issued` AS `issued`,concat(`a`.`issued`,'%') AS `issued_pcnt`,round((`a`.`shr_no` * (`a`.`issued` / 100)),2) AS `issued_amt`,(case when ((round((`a`.`shr_no` * (`a`.`issued` / 100)),2) > 999) and (round((`a`.`shr_no` * (`a`.`issued` / 100)),2) < 1000000)) then convert(concat((trim(round((round((`a`.`shr_no` * (`a`.`issued` / 100)),2) / 1000),2)) + 0),'K') using latin1) when (round((`a`.`shr_no` * (`a`.`issued` / 100)),2) < 1000) then round((`a`.`shr_no` * (`a`.`issued` / 100)),2) when ((round((`a`.`shr_no` * (`a`.`issued` / 100)),2) > 999999) and (round((`a`.`shr_no` * (`a`.`issued` / 100)),2) < 1000000000)) then convert(concat((trim(round((round((`a`.`shr_no` * (`a`.`issued` / 100)),2) / 1000000),2)) + 0),'M') using latin1) when ((round((`a`.`shr_no` * (`a`.`issued` / 100)),2) > 999999999) and (round((`a`.`shr_no` * (`a`.`issued` / 100)),2) < 1000000000000)) then convert(concat((trim(round((round((`a`.`shr_no` * (`a`.`issued` / 100)),2) / 1000000000),2)) + 0),'B') using latin1) when (round((`a`.`shr_no` * (`a`.`issued` / 100)),2) > 999999999999) then convert(concat((trim(round((round((`a`.`shr_no` * (`a`.`issued` / 100)),2) / 1000000000000),2)) + 0),'T') using latin1) end) AS `issued_amt_fmt`,`a`.`thr_hld` AS `thr_hld`,concat(`a`.`thr_hld`,'%') AS `thr_hld_pcnt`,round((`a`.`shr_no` * (`a`.`thr_hld` / 100)),2) AS `thr_hld_amt`,(case when ((round((`a`.`shr_no` * (`a`.`thr_hld` / 100)),2) > 999) and (round((`a`.`shr_no` * (`a`.`thr_hld` / 100)),2) < 1000000)) then convert(concat((trim(round((round((`a`.`shr_no` * (`a`.`thr_hld` / 100)),2) / 1000),2)) + 0),'K') using latin1) when (round((`a`.`shr_no` * (`a`.`thr_hld` / 100)),2) < 1000) then round((`a`.`shr_no` * (`a`.`thr_hld` / 100)),2) when ((round((`a`.`shr_no` * (`a`.`thr_hld` / 100)),2) > 999999) and (round((`a`.`shr_no` * (`a`.`thr_hld` / 100)),2) < 1000000000)) then convert(concat((trim(round((round((`a`.`shr_no` * (`a`.`thr_hld` / 100)),2) / 1000000),2)) + 0),'M') using latin1) when ((round((`a`.`shr_no` * (`a`.`thr_hld` / 100)),2) > 999999999) and (round((`a`.`shr_no` * (`a`.`thr_hld` / 100)),2) < 1000000000000)) then convert(concat((trim(round((round((`a`.`shr_no` * (`a`.`thr_hld` / 100)),2) / 1000000000),2)) + 0),'B') using latin1) when (round((`a`.`shr_no` * (`a`.`thr_hld` / 100)),2) > 999999999999) then convert(concat((trim(round((round((`a`.`shr_no` * (`a`.`thr_hld` / 100)),2) / 1000000000000),2)) + 0),'T') using latin1) end) AS `thr_hld_amt_fmt`,`a`.`shr_symbl` AS `shr_symbl`,`a`.`shr_type` AS `shr_type`,`f`.`lk_val` AS `shr_type_nm`,`f`.`lk_val_desc` AS `shr_type_desc`,`a`.`shr_pr` AS `shr_pr`,format(`a`.`shr_pr`,2) AS `shr_pr_fmt`,round((`a`.`shr_no` * `a`.`shr_pr`),2) AS `market_cap`,(case when ((round((`a`.`shr_no` * `a`.`shr_pr`),2) > 999) and (round((`a`.`shr_no` * `a`.`shr_pr`),2) < 1000000)) then convert(concat((trim(round((round((`a`.`shr_no` * `a`.`shr_pr`),2) / 1000),2)) + 0),'K') using latin1) when (round((`a`.`shr_no` * `a`.`shr_pr`),2) < 1000) then round((`a`.`shr_no` * `a`.`shr_pr`),2) when ((round((`a`.`shr_no` * `a`.`shr_pr`),2) > 999999) and (round((`a`.`shr_no` * `a`.`shr_pr`),2) < 1000000000)) then convert(concat((trim(round((round((`a`.`shr_no` * `a`.`shr_pr`),2) / 1000000),2)) + 0),'M') using latin1) when ((round((`a`.`shr_no` * `a`.`shr_pr`),2) > 999999999) and (round((`a`.`shr_no` * `a`.`shr_pr`),2) < 1000000000000)) then convert(concat((trim(round((round((`a`.`shr_no` * `a`.`shr_pr`),2) / 1000000000),2)) + 0),'B') using latin1) when (round((`a`.`shr_no` * `a`.`shr_pr`),2) > 999999999999) then convert(concat((trim(round((round((`a`.`shr_no` * `a`.`shr_pr`),2) / 1000000000000),2)) + 0),'T') using latin1) end) AS `market_cap_fmt`,`a`.`shr_smry` AS `shr_smry`,`a`.`updater` AS `updater`,`e`.`file_name` AS `updater_fnm`,concat(`d`.`firstname`,' ',`d`.`lastname`) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,`a`.`del_by` AS `del_by`,`l`.`file_name` AS `del_by_fnm`,ifnull(concat(`h`.`firstname`,' ',`h`.`lastname`),'Admin') AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_by` AS `archv_by`,`p`.`file_name` AS `archv_by_fnm`,ifnull(concat(`i`.`firstname`,' ',`i`.`lastname`),'Admin') AS `archv_by_nm`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt` from (((((((((`shr` `a` left join `company` `b` on((`a`.`comp_id` = `b`.`comp_id`))) left join `storages` `c` on((`c`.`idstorages` = `b`.`idstorages`))) left join `emp` `d` on((`d`.`emp_id` = `a`.`updater`))) left join `storages` `e` on((`e`.`idstorages` = `d`.`idstorages`))) left join `shr_lk_val` `f` on((`f`.`idshr_lk_val` = `a`.`shr_type`))) left join `emp` `h` on((`h`.`emp_id` = `a`.`del_by`))) left join `storages` `l` on((`l`.`idstorages` = `h`.`idstorages`))) left join `emp` `i` on((`i`.`emp_id` = `a`.`archv_by`))) left join `storages` `p` on((`p`.`idstorages` = `i`.`idstorages`))) order by `a`.`updated` desc */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_shr_doc` -- /*!50001 DROP VIEW IF EXISTS `vw_shr_doc`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_shr_doc` AS select `a`.`idshr_doc` AS `idshr_doc`,`a`.`idshr` AS `idshr`,`a`.`idstorages` AS `idstorages`,`c`.`file_name` AS `file_name`,`c`.`sto_cloud` AS `sto_cloud`,ifnull(`k`.`lk_val`,'Local') AS `sto_cloud_nm`,`c`.`file_size` AS `file_size`,(case when (`c`.`file_size` < 1024) then concat(`c`.`file_size`,' B') when ((`c`.`file_size` > 1024) and (`c`.`file_size` < 1048576)) then concat(round((`c`.`file_size` / 1024),2),' KB') when ((`c`.`file_size` > 1048576) and (`c`.`file_size` < 1073741824)) then concat(round(((`c`.`file_size` / 1024) / 1024),2),' MB') when (`c`.`file_size` > 1073741824) then concat(round((((`c`.`file_size` / 1024) / 1024) / 1024),2),' GB') end) AS `file_size_fmt`,`c`.`owner_id` AS `owner_id`,`e`.`file_name` AS `owner_fnm`,ifnull(concat(`d`.`firstname`,' ',`d`.`lastname`),'Admin') AS `owner_nm`,`c`.`create_dt` AS `create_dt`,date_format(`c`.`create_dt`,'%m-%d-%y %h:%i %p') AS `create_dt_fmt`,`c`.`expire_dt` AS `expire_dt`,date_format(`c`.`expire_dt`,'%m-%d-%y %h:%i %p') AS `expire_dt_fmt`,`c`.`ext_type` AS `ext_type`,`c`.`public` AS `public`,`c`.`self_view` AS `self_view`,`c`.`smry` AS `smry`,`c`.`ref_emp_id` AS `ref_emp_id`,`g`.`file_name` AS `ref_emp_fnm`,ifnull(concat(`f`.`firstname`,' ',`f`.`lastname`),'Admin') AS `ref_emp_nm`,`c`.`usage` AS `usage`,`c`.`updater` AS `updater`,`i`.`file_name` AS `updater_fnm`,ifnull(concat(`h`.`firstname`,' ',`h`.`lastname`),'Admin') AS `updater_nm`,`c`.`updated` AS `updated`,date_format(`c`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((((((((`shr_doc` `a` left join `storages` `c` on((`a`.`idstorages` = `c`.`idstorages`))) left join `emp` `d` on((`c`.`owner_id` = `d`.`emp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) left join `emp` `f` on((`c`.`ref_emp_id` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `feature_lk_val` `k` on((`a`.`idstorages` = `k`.`idfeature_lk_val`))) left join `emp` `h` on((`c`.`updater` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_shr_hld` -- /*!50001 DROP VIEW IF EXISTS `vw_shr_hld`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_shr_hld` AS select `a`.`idshr_hld` AS `idshr_hld`,`a`.`idshr` AS `idshr`,`m`.`file_name` AS `comp_fnm`,`k`.`companyname` AS `companyname`,`a`.`own_ref_tab` AS `own_ref_tab`,(case when (`a`.`own_ref_tab` like 'Company') then `q`.`file_name` when (`a`.`own_ref_tab` like 'Employee') then `n`.`file_name` end) AS `own_ref_fnm`,(case when (`a`.`own_ref_tab` like 'Company') then `b`.`companyname` when (`a`.`own_ref_tab` like 'Employee') then concat(`d`.`firstname`,' ',`d`.`lastname`) end) AS `own_ref_nm`,`a`.`own_ref_id` AS `own_ref_id`,`a`.`shr_no` AS `shr_no`,(case when ((`a`.`shr_no` > 999) and (`a`.`shr_no` < 1000000)) then convert(concat((trim(round((`a`.`shr_no` / 1000),2)) + 0),'K') using latin1) when (`a`.`shr_no` < 1000) then `a`.`shr_no` when ((`a`.`shr_no` > 999999) and (`a`.`shr_no` < 1000000000)) then convert(concat((trim(round((`a`.`shr_no` / 1000000),2)) + 0),'M') using latin1) when (`a`.`shr_no` > 999999999) then convert(concat((trim(round((`a`.`shr_no` / 1000000000),2)) + 0),'B') using latin1) end) AS `shr_no_fmt`,`j`.`shr_no` AS `total_shares`,(case when ((`j`.`shr_no` > 999) and (`j`.`shr_no` < 1000000)) then convert(concat((trim(round((`j`.`shr_no` / 1000),2)) + 0),'K') using latin1) when (`j`.`shr_no` < 1000) then `j`.`shr_no` when ((`j`.`shr_no` > 999999) and (`j`.`shr_no` < 1000000000)) then convert(concat((trim(round((`j`.`shr_no` / 1000000),2)) + 0),'M') using latin1) when (`j`.`shr_no` > 999999999) then convert(concat((trim(round((`j`.`shr_no` / 1000000000),2)) + 0),'B') using latin1) end) AS `total_shares_fmt`,concat(`a`.`shr_no`,' of ',`j`.`shr_no`) AS `share_amt`,concat((case when ((`a`.`shr_no` > 999) and (`a`.`shr_no` < 1000000)) then convert(concat((trim(round((`a`.`shr_no` / 1000),2)) + 0),'K') using latin1) when (`a`.`shr_no` < 1000) then `a`.`shr_no` when ((`a`.`shr_no` > 999999) and (`a`.`shr_no` < 1000000000)) then convert(concat((trim(round((`a`.`shr_no` / 1000000),2)) + 0),'M') using latin1) when (`a`.`shr_no` > 999999999) then convert(concat((trim(round((`a`.`shr_no` / 1000000000),2)) + 0),'B') using latin1) end),' of ',(case when ((`j`.`shr_no` > 999) and (`j`.`shr_no` < 1000000)) then convert(concat((trim(round((`j`.`shr_no` / 1000),2)) + 0),'K') using latin1) when (`j`.`shr_no` < 1000) then `j`.`shr_no` when ((`j`.`shr_no` > 999999) and (`j`.`shr_no` < 1000000000)) then convert(concat((trim(round((`j`.`shr_no` / 1000000),2)) + 0),'M') using latin1) when (`j`.`shr_no` > 999999999) then convert(concat((trim(round((`j`.`shr_no` / 1000000000),2)) + 0),'B') using latin1) end)) AS `share_amt_fmt`,concat(round(((`a`.`shr_no` / `j`.`shr_no`) * 100),2),'%') AS `shr_no_pcnt`,`j`.`shr_pr` AS `shr_pr`,round(`j`.`shr_pr`,2) AS `shr_pr_fmt`,(`j`.`shr_pr` * `a`.`shr_no`) AS `shr_amt_pr`,(case when (((`j`.`shr_pr` * `a`.`shr_no`) > 999) and ((`j`.`shr_pr` * `a`.`shr_no`) < 1000000)) then convert(concat((trim(round(((`j`.`shr_pr` * `a`.`shr_no`) / 1000),2)) + 0),'K') using latin1) when ((`j`.`shr_pr` * `a`.`shr_no`) < 1000) then (`j`.`shr_pr` * `a`.`shr_no`) when (((`j`.`shr_pr` * `a`.`shr_no`) > 999999) and ((`j`.`shr_pr` * `a`.`shr_no`) < 1000000000)) then convert(concat((trim(round(((`j`.`shr_pr` * `a`.`shr_no`) / 1000000),2)) + 0),'M') using latin1) when ((`j`.`shr_pr` * `a`.`shr_no`) > 999999999) then convert(concat((trim(round(((`j`.`shr_pr` * `a`.`shr_no`) / 1000000000),2)) + 0),'B') using latin1) end) AS `shr_amt_pr_fmt`,`a`.`updater` AS `updater`,`o`.`file_name` AS `updater_fnm`,ifnull(concat(`e`.`firstname`,' ',`e`.`lastname`),'Admin') AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,_utf8'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,`a`.`del_by` AS `del_by`,`l`.`file_name` AS `del_by_fnm`,ifnull(concat(`h`.`firstname`,' ',`h`.`lastname`),'Admin') AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_by` AS `archv_by`,`p`.`file_name` AS `archv_by_fnm`,ifnull(concat(`i`.`firstname`,' ',`i`.`lastname`),'Admin') AS `archv_by_nm`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt` from (((((((((((((`shr_hld` `a` left join `shr` `j` on((`j`.`idshr` = `a`.`idshr`))) left join `company` `k` on((`k`.`comp_id` = `j`.`comp_id`))) left join `storages` `m` on((`m`.`idstorages` = `k`.`idstorages`))) left join `company` `b` on((`b`.`comp_id` = `a`.`own_ref_id`))) left join `storages` `q` on((`q`.`idstorages` = `b`.`idstorages`))) left join `emp` `d` on((`d`.`emp_id` = `a`.`own_ref_id`))) left join `storages` `n` on((`n`.`idstorages` = `d`.`idstorages`))) left join `emp` `e` on((`e`.`emp_id` = `a`.`updater`))) left join `storages` `o` on((`o`.`idstorages` = `e`.`idstorages`))) left join `emp` `h` on((`h`.`emp_id` = `a`.`del_by`))) left join `storages` `l` on((`l`.`idstorages` = `h`.`idstorages`))) left join `emp` `i` on((`i`.`emp_id` = `a`.`archv_by`))) left join `storages` `p` on((`p`.`idstorages` = `i`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_shr_hld_rec` -- /*!50001 DROP VIEW IF EXISTS `vw_shr_hld_rec`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_shr_hld_rec` AS select `a`.`idshr_hld_rec` AS `idshr_hld_rec`,`a`.`idshr` AS `idshr`,`c`.`companyname` AS `companyname`,`q`.`file_name` AS `comp_fnm`,`a`.`shr_fm` AS `shr_fm`,`d`.`own_ref_nm` AS `shr_fm_nm`,`a`.`shr_no` AS `shr_no`,concat(round(((`a`.`shr_no` / `b`.`shr_no`) * 100),2),'%') AS `shr_pcnt`,`a`.`shr_to` AS `shr_to`,`e`.`own_ref_nm` AS `shr_to_nm`,`a`.`trade_dt` AS `trade_dt`,date_format(`a`.`trade_dt`,_utf8'%m-%d-%y %h:%i %p') AS `trade_dt_fmt`,`a`.`strike_pr` AS `strike_pr`,round(`a`.`strike_pr`,2) AS `strike_pr_fmt`,`a`.`settle_dt` AS `settle_dt`,date_format(`a`.`settle_dt`,_utf8'%m-%d-%y %h:%i %p') AS `settle_dt_fmt`,`a`.`updater` AS `updater`,`o`.`file_name` AS `updater_fnm`,ifnull(concat(`f`.`firstname`,' ',`f`.`lastname`),'Admin') AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,_utf8'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,`a`.`del_by` AS `del_by`,`l`.`file_name` AS `del_by_fnm`,ifnull(concat(`h`.`firstname`,' ',`h`.`lastname`),'Admin') AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_by` AS `archv_by`,`p`.`file_name` AS `archv_by_fnm`,ifnull(concat(`i`.`firstname`,' ',`i`.`lastname`),'Admin') AS `archv_by_nm`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt` from (((((((((((`shr_hld_rec` `a` left join `shr` `b` on((`b`.`idshr` = `a`.`idshr`))) left join `company` `c` on((`c`.`comp_id` = `b`.`comp_id`))) left join `vw_shr_hld` `d` on((`d`.`idshr_hld` = `a`.`shr_fm`))) left join `vw_shr_hld` `e` on((`e`.`idshr_hld` = `a`.`shr_to`))) left join `emp` `f` on((`f`.`emp_id` = `a`.`updater`))) left join `storages` `o` on((`o`.`idstorages` = `f`.`idstorages`))) left join `emp` `h` on((`h`.`emp_id` = `a`.`del_by`))) left join `storages` `l` on((`l`.`idstorages` = `h`.`idstorages`))) left join `emp` `i` on((`i`.`emp_id` = `a`.`archv_by`))) left join `storages` `p` on((`p`.`idstorages` = `i`.`idstorages`))) left join `storages` `q` on((`p`.`idstorages` = `i`.`idstorages`))) order by `a`.`updated` desc */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_shr_hld_trd` -- /*!50001 DROP VIEW IF EXISTS `vw_shr_hld_trd`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_shr_hld_trd` AS select `a`.`idshr_hld_trd` AS `idshr_hld_trd`,`a`.`idshr_hld` AS `idshr_hld`,`b`.`own_ref_tab` AS `own_ref_tab`,`b`.`own_ref_id` AS `own_ref_id`,`b`.`own_ref_fnm` AS `own_ref_fnm`,`b`.`own_ref_nm` AS `own_ref_nm`,`b`.`comp_fnm` AS `comp_fnm`,`b`.`companyname` AS `companyname`,`a`.`trd_type` AS `trd_type`,`d`.`lk_val` AS `trd_type_nm`,`c`.`shr_type` AS `shr_type`,`c`.`shr_symbl` AS `shr_symbl`,`c`.`shr_type_nm` AS `shr_type_nm`,`c`.`shr_type_desc` AS `shr_type_desc`,`b`.`shr_no` AS `shr_hld_shr_no`,`b`.`shr_no_fmt` AS `shr_hld_shr_no_fmt`,`b`.`total_shares` AS `total_shares`,`b`.`total_shares_fmt` AS `total_shares_fmt`,`b`.`share_amt` AS `share_amt`,`b`.`share_amt_fmt` AS `share_amt_fmt`,`b`.`shr_no_pcnt` AS `shr_no_pcnt`,`b`.`shr_amt_pr` AS `shr_amt_pr`,`b`.`shr_amt_pr_fmt` AS `shr_amt_pr_fmt`,`c`.`shr_pr` AS `shr_pr`,`c`.`shr_pr_fmt` AS `shr_pr_fmt`,`a`.`shr_no_trd` AS `shr_no_trd`,`a`.`trd_pr` AS `trd_pr`,`a`.`trd_smry` AS `trd_smry`,`a`.`updater` AS `updater`,`j`.`file_name` AS `updater_fnm`,concat(`i`.`firstname`,' ',`i`.`lastname`) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`trd_or_dt` AS `trd_or_dt`,date_format(`a`.`trd_or_dt`,'%m-%d-%y %h:%i %p') AS `trd_or_dt_fmt`,`a`.`trd_exp_day` AS `trd_exp_day`,`a`.`trd_exp_dt` AS `trd_exp_dt`,date_format(`a`.`trd_exp_dt`,'%m-%d-%y %h:%i %p') AS `trd_exp_dt_fmt`,`a`.`trd_exe_dt` AS `trd_exe_dt`,date_format(`a`.`trd_exe_dt`,'%m-%d-%y %h:%i %p') AS `trd_exe_dt_fmt`,`a`.`trd_or_exe_dt` AS `trd_or_exe_dt`,ifnull(`a`.`trd_or_exe_dt`,timestampdiff(MINUTE,`a`.`trd_or_dt`,ifnull(`a`.`trd_exe_dt`,now()))) AS `trd_or_exe_dt_vir`,`a`.`del_by` AS `del_by`,`e`.`file_name` AS `del_by_fnm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(concat(`h`.`firstname`,' ',`h`.`lastname`),'Admin') AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_by` AS `archv_by`,`g`.`file_name` AS `archv_by_fnm`,ifnull(concat(`f`.`firstname`,' ',`f`.`lastname`),'Admin') AS `archv_by_nm`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt` from (((((((((`shr_hld_trd` `a` left join `vw_shr_hld` `b` on((`b`.`idshr_hld` = `a`.`idshr_hld`))) left join `vw_shr` `c` on((`c`.`idshr` = `b`.`idshr`))) left join `shr_lk_val` `d` on((`a`.`trd_type` = `d`.`idshr_lk_val`))) left join `emp` `h` on((`a`.`del_by` = `h`.`emp_id`))) left join `storages` `e` on((`e`.`idstorages` = `h`.`idstorages`))) left join `emp` `f` on((`a`.`archv_by` = `f`.`emp_id`))) left join `storages` `g` on((`g`.`idstorages` = `f`.`idstorages`))) left join `emp` `i` on((`i`.`emp_id` = `a`.`updater`))) left join `storages` `j` on((`j`.`idstorages` = `i`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_shr_lk_val` -- /*!50001 DROP VIEW IF EXISTS `vw_shr_lk_val`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_shr_lk_val` AS select `a`.`idshr_lk_val` AS `idshr_lk_val`,NULL AS `idshr_lk`,`a`.`lk_val_par` AS `lk_val_par`,`a`.`lk_val` AS `lk_val`,`a`.`lk_val_desc` AS `lk_val_desc`,`a`.`disp_order` AS `disp_order`,`a`.`idshr_lk` AS `parent_id`,`a`.`updater` AS `updater`,`d`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`b`.`firstname`,' ',`b`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) AS `updated_fmt`,concat(ifnull(concat(`b`.`firstname`,' ',`b`.`lastname`),'Admin'),' ',convert(if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) using latin1)) AS `updated_by` from ((`shr_lk_val` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `d` on((`d`.`idstorages` = `b`.`idstorages`))) union all select NULL AS `idshr_lk_val`,`a`.`idshr_lk` AS `idshr_lk`,NULL AS `lk_val_par`,`a`.`lk_nm` AS `lk_nm`,`a`.`lk_nm_desc` AS `lk_nm_desc`,`a`.`disp_order` AS `disp_order`,NULL AS `parent_id`,`a`.`updater` AS `updater`,`d`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`b`.`firstname`,' ',`b`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) AS `updated_fmt`,concat(ifnull(concat(`b`.`firstname`,' ',`b`.`lastname`),'Admin'),' ',convert(if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) using latin1)) AS `last_updated_by` from ((`shr_lk` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `d` on((`d`.`idstorages` = `b`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_storage_lk_tag` -- /*!50001 DROP VIEW IF EXISTS `vw_storage_lk_tag`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_storage_lk_tag` AS select `a`.`idstorage_lk_tag` AS `idstorage_lk_tag`,`a`.`lk_tag` AS `lk_tag`,`a`.`lk_tag_desc` AS `lk_tag_desc`,`a`.`lk_disp_id` AS `lk_disp_id`,`a`.`lk_parent_tag_id` AS `lk_parent_tag_id`,`a`.`updater` AS `updater`,if(isnull(`a`.`updater`),'Admin',concat(`e`.`firstname`,' ',`e`.`lastname`)) AS `updater_fmt`,`s`.`file_name` AS `updater_file_name`,`a`.`last_updated` AS `last_updated`,if(isnull(`a`.`last_updated`),'Never',date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p')) AS `last_updated_fmt`,concat(if(isnull(`a`.`updater`),'Admin',concat(`e`.`firstname`,' ',`e`.`lastname`)),' ',convert(if(isnull(`a`.`last_updated`),'Never',date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p')) using latin1)) AS `last_updated_by` from ((`storage_lk_tag` `a` left join `emp` `e` on((`a`.`updater` = `e`.`emp_id`))) left join `storages` `s` on((`e`.`idstorages` = `s`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_storages` -- /*!50001 DROP VIEW IF EXISTS `vw_storages`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_storages` AS select `a`.`idstorages` AS `idstorages`,`a`.`file_name` AS `file_name`,`a`.`file_ser_name` AS `file_ser_name`,`a`.`sto_cloud_link` AS `sto_cloud_link`,ifnull(`a`.`sto_cloud_link`,'None') AS `sto_cloud_link_nm`,`a`.`sto_cloud` AS `sto_cloud`,if(isnull(`a`.`sto_cloud`),'Local',`b`.`lk_val`) AS `sto_cloud_nm`,`a`.`file_size` AS `file_size`,`a`.`file_cnv_size` AS `file_cnv_size`,`a`.`file_cnv_size` AS `actual_size`,`a`.`owner_id` AS `owner_id`,`d`.`file_name` AS `owner_fnm`,if(isnull(`a`.`owner_id`),'No Owner',concat(`c`.`firstname`,' ',`c`.`lastname`)) AS `owner_nm`,`a`.`create_dt` AS `create_dt`,date_format(`a`.`create_dt`,'%m-%d-%y %h:%i %p') AS `create_dt_fmt`,date_format(`a`.`create_dt`,'%Y') AS `create_dt_yr`,date_format(`a`.`create_dt`,'%M') AS `create_dt_mon`,`a`.`expire_dt` AS `expire_dt`,if(isnull(`a`.`expire_dt`),'Never',convert(date_format(`a`.`expire_dt`,'%m-%d-%y') using utf8mb4)) AS `expire_dt_fmt`,date_format(`a`.`expire_dt`,'%M-%Y') AS `expire_dt_fmt2`,(case when (`a`.`expire_dt` < now()) then convert(date_format(`a`.`expire_dt`,'%m-%d-%y') using utf8mb4) when (`a`.`expire_dt` > now()) then timestampdiff(DAY,now(),`a`.`expire_dt`) when isnull(`a`.`expire_dt`) then 'None' end) AS `expire_dt_no_days`,if((isnull(`a`.`expire_dt`) or (`a`.`expire_dt` > now())),'No','Yes') AS `expire_dt_cur_stat`,`a`.`ext_type` AS `ext_type`,`a`.`public` AS `public`,`a`.`self_view` AS `self_view`,`a`.`smry` AS `smry`,`a`.`ref_emp_id` AS `ref_emp_id`,`g`.`file_name` AS `ref_emp_id_fnm`,if(isnull(`a`.`ref_emp_id`),'None',concat(`f`.`firstname`,' ',`f`.`lastname`)) AS `ref_emp_id_nm`,`a`.`updater` AS `updater`,`i`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'admin',concat(`h`.`firstname`,' ',`h`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_dt_fmt`,`a`.`usage` AS `usage`,`a`.`sto_tags` AS `sto_tags`,ifnull(`a`.`sto_tags`,'No Tags') AS `sto_tags_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`k`.`file_name` AS `del_by_fnm`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`del_by`)) then 'Not Deleted' when (isnull(`a`.`del_by`) and (`a`.`del_dt` is not null)) then 'Admin' when ((`a`.`del_dt` is not null) and (`a`.`del_by` is not null)) then concat(`j`.`firstname`,' ',`j`.`lastname`) end) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`m`.`file_name` AS `archv_by_fnm`,(case when (isnull(`a`.`archv_dt`) and isnull(`a`.`archv_by`)) then 'Not Archived' when (isnull(`a`.`archv_by`) and (`a`.`archv_dt` is not null)) then 'Admin' when ((`a`.`archv_dt` is not null) and (`a`.`archv_by` is not null)) then concat(`l`.`firstname`,' ',`l`.`lastname`) end) AS `archv_by_nm`,`a`.`chk_del` AS `chk_del`,`a`.`file_cnvt` AS `file_cnvt`,`a`.`dis_mir_lvl` AS `dis_mir_lvl`,`a`.`chk_sync` AS `chk_sync`,`a`.`chk_sync_date` AS `chk_sync_date`,`a`.`show_list` AS `show_list` from (((((((((((`storages` `a` left join `storages_lk_val` `b` on((`a`.`sto_cloud` = `b`.`idstorages_lk_val`))) left join `emp` `c` on((`a`.`owner_id` = `c`.`emp_id`))) left join `storages` `d` on((`c`.`idstorages` = `d`.`idstorages`))) left join `emp` `f` on((`a`.`ref_emp_id` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `emp` `h` on((`a`.`updater` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) left join `emp` `j` on((`a`.`del_by` = `j`.`emp_id`))) left join `storages` `k` on((`j`.`idstorages` = `k`.`idstorages`))) left join `emp` `l` on((`a`.`archv_by` = `l`.`emp_id`))) left join `storages` `m` on((`l`.`idstorages` = `m`.`idstorages`))) order by `a`.`updated` desc */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_storages_access` -- /*!50001 DROP VIEW IF EXISTS `vw_storages_access`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_storages_access` AS select `a`.`idstorages_access` AS `idstorages_access`,`a`.`idstorages` AS `idstorages`,`a`.`access_to` AS `access_to`,`c`.`file_name` AS `access_to_fnm`,concat(`b`.`firstname`,' ',`b`.`lastname`) AS `access_to_nm`,`a`.`access_type` AS `access_type`,`a`.`updater` AS `updater`,`e`.`file_name` AS `updater_fnm`,ifnull(concat(`d`.`firstname`,' ',`d`.`lastname`),'Admin') AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from ((((`storages_access` `a` left join `emp` `b` on((`a`.`access_to` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `emp` `d` on((`a`.`updater` = `d`.`emp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_storages_audit` -- /*!50001 DROP VIEW IF EXISTS `vw_storages_audit`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_storages_audit` AS select `a`.`idstorages_audit` AS `idstorages_audit`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,date_format(`a`.`updated`,'%Y') AS `updated_fmt_yr`,date_format(`a`.`updated`,'%M') AS `updated_fmt_mon`,dayname(`a`.`updated`) AS `updated_fmt_day`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`b`.`firstname`,' ',`b`.`lastname`)) AS `updater_nm`,`a`.`table_update` AS `table_update`,`a`.`action` AS `action`,`a`.`table_id` AS `table_id`,`a`.`col1` AS `col1`,`a`.`idlook_menu_pvt_lvl2` AS `idlook_menu_pvt_lvl2`,`d`.`lk_values` AS `idlook_menu_pvt_lvl2_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`f`.`file_name` AS `del_by_fnm`,if(isnull(`a`.`del_by`),'Admin',concat(`e`.`firstname`,' ',`e`.`lastname`)) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`h`.`file_name` AS `archv_by_fnm`,if(isnull(`a`.`archv_by`),'Admin',concat(`g`.`firstname`,' ',`g`.`lastname`)) AS `archv_by_nm` from (((((((`storages_audit` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `look_menu_pvt` `d` on((`a`.`idlook_menu_pvt_lvl2` = `d`.`idlook_menu_pvt`))) left join `emp` `e` on((`a`.`del_by` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `emp` `g` on((`a`.`archv_by` = `g`.`emp_id`))) left join `storages` `h` on((`g`.`idstorages` = `h`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_storages_order` -- /*!50001 DROP VIEW IF EXISTS `vw_storages_order`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8mb4 */; /*!50001 SET character_set_results = utf8mb4 */; /*!50001 SET collation_connection = utf8mb4_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_storages_order` AS select `a`.`idstorages_order` AS `idstorages_order`,`a`.`create_dt` AS `create_dt`,date_format(`a`.`create_dt`,'%m-%d-%y') AS `create_dt_fmt`,date_format(`a`.`create_dt`,'%Y') AS `create_dt_yr`,date_format(`a`.`create_dt`,'%M') AS `create_dt_mon`,`a`.`create_grp` AS `create_grp`,`a`.`idnet_ser` AS `idnet_ser`,`b`.`hostnm` AS `hostnm`,`b`.`hostdm` AS `hostdm`,`b`.`ip_lan` AS `ip_lan`,`b`.`ip_wan` AS `ip_wan`,concat(ifnull(`b`.`hostnm`,'No HostName'),' ',ifnull(`b`.`hostdm`,'No HostDomain '),' ',ifnull(`b`.`ip_lan`,'No IP LAN '),' ',ifnull(`b`.`ip_wan`,'No IP WAN')) AS `server`,`a`.`stored_dt` AS `stored_dt`,(case when (isnull(`a`.`stored_dt`) and isnull(`a`.`idstorages`)) then 'Not Used' when (isnull(`a`.`stored_dt`) and (`a`.`idstorages` is not null)) then 'Not Sync' when ((`a`.`stored_dt` is not null) and (`a`.`idstorages` is not null)) then convert(date_format(`a`.`stored_dt`,'%m-%d-%y') using utf8mb4) end) AS `stored_dt_fmt`,(case when (isnull(`a`.`stored_dt`) and isnull(`a`.`idstorages`)) then 'Not Used' when (isnull(`a`.`stored_dt`) and (`a`.`idstorages` is not null)) then 'Not Sync' when ((`a`.`stored_dt` is not null) and (`a`.`idstorages` is not null)) then convert(date_format(`a`.`stored_dt`,'%Y') using utf8mb4) end) AS `stored_dt_yr`,(case when (isnull(`a`.`stored_dt`) and isnull(`a`.`idstorages`)) then 'Not Used' when (isnull(`a`.`stored_dt`) and (`a`.`idstorages` is not null)) then 'Not Sync' when ((`a`.`stored_dt` is not null) and (`a`.`idstorages` is not null)) then convert(date_format(`a`.`stored_dt`,'%M') using utf8mb4) end) AS `stored_dt_mon`,(case when (isnull(`a`.`stored_dt`) and isnull(`a`.`idstorages`)) then 'Not Used' when (isnull(`a`.`stored_dt`) and (`a`.`idstorages` is not null)) then 'Not Sync' when ((`a`.`stored_dt` is not null) and (`a`.`idstorages` is not null)) then 'Used' end) AS `stored_dt_cur_stat`,`a`.`idstorages` AS `idstorages`,`c`.`file_name` AS `file_name`,`c`.`file_ser_name` AS `file_ser_name`,`c`.`file_size` AS `file_size`,`c`.`ext_type` AS `ext_type`,`c`.`public` AS `public`,`c`.`chk_sync` AS `chk_sync`,`a`.`create_stored_dt` AS `create_stored_dt` from ((`storages_order` `a` left join `net_ser` `b` on((`a`.`idnet_ser` = `b`.`idnet_ser`))) left join `storages` `c` on((`a`.`idstorages` = `c`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_storages_ref` -- /*!50001 DROP VIEW IF EXISTS `vw_storages_ref`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_storages_ref` AS select `a`.`idstorages_ref` AS `idstorages_ref`,`a`.`idstorages` AS `idstorages`,`b`.`file_name` AS `file_name`,`a`.`idlook_menu_pvt_lvl1` AS `idlook_menu_pvt_lvl1`,`c`.`lk_values` AS `idlook_menu_pvt_lvl1_nm`,`a`.`idlook_menu_pvt_lvl2` AS `idlook_menu_pvt_lvl2`,`d`.`lk_values` AS `idlook_menu_pvt_lvl2_nm`,`a`.`sto_tab_nm` AS `sto_tab_nm` from (((`storages_ref` `a` left join `storages` `b` on((`b`.`idstorages` = `a`.`idstorages`))) left join `look_menu_pvt` `c` on((`c`.`idlook_menu_pvt` = `a`.`idlook_menu_pvt_lvl1`))) left join `look_menu_pvt` `d` on((`d`.`idlook_menu_pvt` = `a`.`idlook_menu_pvt_lvl2`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_student` -- /*!50001 DROP VIEW IF EXISTS `vw_student`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8mb4 */; /*!50001 SET character_set_results = utf8mb4 */; /*!50001 SET collation_connection = utf8mb4_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`heshmapatel`@`%` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_student` AS select `a`.`idstudent` AS `Idstudent`,`a`.`first_name` AS `first_name`,`a`.`last_name` AS `last_name`,`a`.`nick_name` AS `nick_name`,`a`.`school_nm` AS `school_nm`,`b`.`lk_val` AS `school_name`,`a`.`dob` AS `dob`,date_format(`a`.`dob`,'%m-%d-%y') AS `dob_fmt`,`a`.`gender` AS `gender`,`c`.`lk_val` AS `gender_nm`,`a`.`idstudent_doc` AS `idstudent_doc`,`a`.`updater` AS `updater`,concat(`d`.`first_name`,' ',`d`.`last_name`) AS `updater_nm`,`a`.`last_updated` AS `last_updated`,date_format(`a`.`last_updated`,'%m-%d-%y-%h-%i-%p') AS `last_updated_fmt` from (((`student` `a` left join `student_lk_val` `b` on((`a`.`school_nm` = `b`.`idstudent_lk_value`))) left join `student_lk_val` `c` on((`a`.`gender` = `c`.`idstudent_lk_value`))) left join `student` `d` on((`a`.`updater` = `d`.`idstudent`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_student_class` -- /*!50001 DROP VIEW IF EXISTS `vw_student_class`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8mb4 */; /*!50001 SET character_set_results = utf8mb4 */; /*!50001 SET collation_connection = utf8mb4_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`heshmapatel`@`%` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_student_class` AS select `a`.`id_std_class` AS `id_std_class`,`a`.`idstudent` AS `idstudent`,concat(`b`.`first_name`,' ',`b`.`last_name`) AS `student_nm`,`c`.`lk_val` AS `school_name`,`b`.`nick_name` AS `nick_name`,`b`.`school_nm` AS `school_nm`,`b`.`dob` AS `dob`,date_format(`b`.`dob`,'%m-%d-%y') AS `dob_fmt`,`b`.`gender` AS `gender`,`d`.`lk_val` AS `gender_nm`,`a`.`std_class` AS `std_class`,`a`.`from` AS `from`,date_format(`a`.`from`,'%m-%d-%y') AS `from_fmt`,`a`.`to` AS `to`,date_format(`a`.`to`,'%m-%d-%y') AS `to_fmt` from (((`student_class` `a` left join `student` `b` on((`a`.`idstudent` = `b`.`idstudent`))) left join `student_lk_val` `c` on((`b`.`school_nm` = `c`.`idstudent_lk_value`))) left join `student_lk_val` `d` on((`b`.`gender` = `d`.`idstudent_lk_value`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_student_class_exam` -- /*!50001 DROP VIEW IF EXISTS `vw_student_class_exam`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8mb4 */; /*!50001 SET character_set_results = utf8mb4 */; /*!50001 SET collation_connection = utf8mb4_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_student_class_exam` AS select `a`.`id_std_class_exam` AS `id_std_class_exam`,`b`.`idstudent` AS `idstudent`,concat(`c`.`first_name`,' ',`c`.`last_name`) AS `student_nm`,`c`.`nick_name` AS `nick_name`,`c`.`school_nm` AS `school_nm`,`d`.`lk_val` AS `school_name`,`c`.`gender` AS `gender`,`e`.`lk_val` AS `gender_nm`,`c`.`dob` AS `dob`,date_format(`c`.`dob`,'%m-%d-%y') AS `dob_fmt`,`a`.`id_std_class` AS `id_std_class`,`b`.`std_class` AS `std_class`,`b`.`from` AS `from`,date_format(`b`.`from`,'%m-%d-%y') AS `from_fmt`,`b`.`to` AS `to`,date_format(`b`.`to`,'%m-%d-%y') AS `to_fmt`,`a`.`subject` AS `subject`,`a`.`marks` AS `marks`,`a`.`total` AS `total`,`a`.`percentage` AS `percentage`,if((`a`.`percentage` >= 40),'Pass','Fail') AS `result`,`a`.`updater` AS `updater`,if(isnull(`a`.`updater`),'No Updater',concat(`f`.`first_name`,' ',`f`.`last_name`)) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,`a`.`del_by` AS `del_by`,concat(`g`.`first_name`,' ',`g`.`last_name`) AS `del_by_nm`,`a`.`del_day` AS `del_day`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,`a`.`archv_by` AS `archv_by`,concat(`h`.`first_name`,' ',`h`.`last_name`) AS `archv_by_nm` from (((((((`student_class_exam` `a` left join `student_class` `b` on((`a`.`id_std_class` = `b`.`id_std_class`))) left join `student` `c` on((`b`.`idstudent` = `c`.`idstudent`))) left join `student_lk_val` `d` on((`c`.`school_nm` = `d`.`idstudent_lk_value`))) left join `student_lk_val` `e` on((`c`.`gender` = `d`.`idstudent_lk_value`))) left join `student` `f` on((`a`.`updater` = `f`.`idstudent`))) left join `student` `g` on((`a`.`del_by` = `g`.`idstudent`))) left join `student` `h` on((`a`.`archv_by` = `h`.`idstudent`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_tax_audit` -- /*!50001 DROP VIEW IF EXISTS `vw_tax_audit`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_tax_audit` AS select `a`.`idtax_audit` AS `idtax_audit`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt`,date_format(`a`.`updated`,'%Y') AS `updated_fmt_yr`,date_format(`a`.`updated`,'%M') AS `updated_fmt_mon`,dayname(`a`.`updated`) AS `updated_fmt_day`,`a`.`updater` AS `updater`,`c`.`file_name` AS `updater_fnm`,(case when (isnull(`a`.`updated`) and isnull(`a`.`updater`)) then 'Not Updated' when (isnull(`a`.`updater`) and (`a`.`updated` is not null)) then 'Admin' when ((`a`.`updated` is not null) and (`a`.`updater` is not null)) then concat(`b`.`firstname`,' ',`b`.`lastname`) end) AS `updater_nm`,`a`.`table_update` AS `table_update`,`a`.`action` AS `action`,`a`.`table_id` AS `table_id`,`a`.`col1` AS `col1`,`a`.`idlook_menu_pvt_lvl2` AS `idlook_menu_pvt_lvl2`,`d`.`lk_values` AS `idlook_menu_pvt_lvl2_nm`,`a`.`del_dt` AS `del_dt`,date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') AS `del_dt_fmt`,ifnull(convert(date_format(`a`.`del_dt`,'%Y') using utf8mb4),'Not Deleted') AS `del_dt_yr`,ifnull(convert(date_format(`a`.`del_dt`,'%M') using utf8mb4),'Not Deleted') AS `del_dt_mon`,`a`.`del_by` AS `del_by`,`f`.`file_name` AS `del_by_fnm`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`del_by`)) then 'Not Deleted' when (isnull(`a`.`del_by`) and (`a`.`del_dt` is not null)) then 'Admin' when ((`a`.`del_dt` is not null) and (`a`.`del_by` is not null)) then concat(`e`.`firstname`,' ',`e`.`lastname`) end) AS `del_by_nm`,`a`.`del_day` AS `del_day`,if((`a`.`archv_dt` is not null),'Never',(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d')))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') AS `archv_dt_fmt`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%Y') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_yr`,(case when (isnull(`a`.`del_dt`) and isnull(`a`.`archv_dt`)) then 'Not Archived' when isnull(`a`.`del_dt`) then convert(date_format(`a`.`archv_dt`,'%M') using utf8mb4) when ((`a`.`del_dt` is not null) and isnull(`a`.`archv_dt`)) then 'Deleted' end) AS `archv_dt_mon`,`a`.`archv_by` AS `archv_by`,`h`.`file_name` AS `archv_by_fnm`,(case when (isnull(`a`.`archv_dt`) and isnull(`a`.`archv_by`)) then 'Not Archived' when (isnull(`a`.`archv_by`) and (`a`.`archv_dt` is not null)) then 'Admin' when ((`a`.`archv_dt` is not null) and (`a`.`archv_by` is not null)) then concat(`g`.`firstname`,' ',`g`.`lastname`) end) AS `archv_by_nm` from (((((((`tax_audit` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `look_menu_pvt` `d` on((`a`.`idlook_menu_pvt_lvl2` = `d`.`idlook_menu_pvt`))) left join `emp` `e` on((`a`.`del_by` = `e`.`emp_id`))) left join `storages` `f` on((`e`.`idstorages` = `f`.`idstorages`))) left join `emp` `g` on((`a`.`archv_by` = `g`.`emp_id`))) left join `storages` `h` on((`g`.`idstorages` = `h`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_tax_lk_val` -- /*!50001 DROP VIEW IF EXISTS `vw_tax_lk_val`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_tax_lk_val` AS select `a`.`idtax_lk_val` AS `idtax_lk_val`,NULL AS `idtax_lk`,`a`.`lk_val_par` AS `lk_val_par`,`a`.`lk_val` AS `lk_val`,`a`.`lk_val_desc` AS `lk_val_desc`,`a`.`disp_order` AS `disp_order`,`a`.`idtax_lk` AS `parent_id`,`a`.`updater` AS `updater`,`d`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`b`.`firstname`,' ',`b`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) AS `updated_fmt`,concat(ifnull(concat(`b`.`firstname`,' ',`b`.`lastname`),'Admin'),' ',convert(if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) using latin1)) AS `updated_by` from ((`tax_lk_val` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `d` on((`d`.`idstorages` = `b`.`idstorages`))) union all select NULL AS `idtax_lk_val`,`a`.`idtax_lk` AS `idtax_lk`,NULL AS `lk_val_par`,`a`.`lk_nm` AS `lk_nm`,`a`.`lk_nm_desc` AS `lk_nm_desc`,`a`.`disp_order` AS `disp_order`,NULL AS `parent_id`,`a`.`updater` AS `updater`,`d`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`b`.`firstname`,' ',`b`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) AS `updated_fmt`,concat(ifnull(concat(`b`.`firstname`,' ',`b`.`lastname`),'Admin'),' ',convert(if(isnull(`a`.`updated`),'Never',date_format(`a`.`updated`,'%m-%d-%y %h:%i %p')) using latin1)) AS `updated_by` from ((`tax_lk` `a` left join `emp` `b` on((`a`.`updater` = `b`.`emp_id`))) left join `storages` `d` on((`d`.`idstorages` = `b`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_tax_reg` -- /*!50001 DROP VIEW IF EXISTS `vw_tax_reg`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_tax_reg` AS select `a`.`idtax_reg` AS `idtax_reg`,`a`.`comp_id` AS `comp_id`,`c`.`file_name` AS `comp_fnm`,`b`.`companyname` AS `comp_nm`,`a`.`state_id` AS `state_id`,`d`.`state_name` AS `state_nm`,`a`.`city_id` AS `city_id`,`l`.`city_name` AS `city_nm`,`a`.`dept_id` AS `dept_id`,`e`.`lk_val` AS `dept_nm`,`a`.`reg_number` AS `reg_number`,`a`.`login_smry` AS `login_smry`,`a`.`login_link` AS `login_link`,`a`.`comp_open_dt` AS `comp_open_dt`,ifnull(convert(date_format(`a`.`comp_open_dt`,'%m-%d-%y') using utf8mb4),'Not Open') AS `comp_open_dt_fmt`,`a`.`comp_close_dt` AS `comp_close_dt`,ifnull(convert(date_format(`a`.`comp_close_dt`,'%m-%d-%y') using utf8mb4),'Open') AS `comp_close_dt_fmt`,if(isnull(`a`.`comp_close_dt`),'Open','Close') AS `comp_open_close_cur_stat`,`a`.`comp_open_close_day` AS `comp_open_close_day`,ifnull(`a`.`comp_open_close_day`,timestampdiff(DAY,`a`.`comp_open_dt`,now())) AS `comp_open_close_day_vir`,`a`.`last_updated` AS `last_updated`,ifnull(convert(date_format(`a`.`last_updated`,'%m-%d-%y %h:%i %p') using utf8mb4),'Never') AS `last_updated_fmt`,`a`.`updated_by` AS `updated_by`,`g`.`file_name` AS `updated_by_fnm`,ifnull(concat(`f`.`firstname`,' ',`f`.`lastname`),'Admin') AS `updated_by_nm`,`a`.`del_dt` AS `del_dt`,ifnull(convert(date_format(`a`.`del_dt`,'%m-%d-%y %h:%i %p') using utf8mb4),'Never') AS `del_dt_fmt`,`a`.`del_by` AS `del_by`,`i`.`file_name` AS `del_by_fnm`,ifnull(concat(`h`.`firstname`,' ',`h`.`lastname`),'Admin') AS `del_by_nm`,`a`.`del_day` AS `del_day`,(to_days((date_format(`a`.`del_dt`,'%y-%m-%d') + interval `a`.`del_day` day)) - to_days(date_format(now(),'%y-%m-%d'))) AS `del_day_vir`,`a`.`archv_dt` AS `archv_dt`,ifnull(convert(date_format(`a`.`archv_dt`,'%m-%d-%y %h:%i %p') using utf8mb4),'Never') AS `archv_dt_fmt`,`a`.`archv_by` AS `archv_by`,`k`.`file_name` AS `archv_by_fnm`,ifnull(concat(`j`.`firstname`,' ',`j`.`lastname`),'Admin') AS `archv_by_nm` from (((((((((((`tax_reg` `a` left join `company` `b` on((`a`.`comp_id` = `b`.`comp_id`))) left join `storages` `c` on((`b`.`idstorages` = `c`.`idstorages`))) left join `look_state` `d` on((`a`.`state_id` = `d`.`state_id`))) left join `tax_lk_val` `e` on((`a`.`dept_id` = `e`.`idtax_lk_val`))) left join `emp` `f` on((`a`.`updated_by` = `f`.`emp_id`))) left join `storages` `g` on((`f`.`idstorages` = `g`.`idstorages`))) left join `emp` `h` on((`a`.`del_by` = `h`.`emp_id`))) left join `storages` `i` on((`h`.`idstorages` = `i`.`idstorages`))) left join `emp` `j` on((`a`.`archv_by` = `j`.`emp_id`))) left join `storages` `k` on((`j`.`idstorages` = `k`.`idstorages`))) left join `look_city` `l` on((`a`.`city_id` = `l`.`city_id`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_tax_reg_rate` -- /*!50001 DROP VIEW IF EXISTS `vw_tax_reg_rate`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_tax_reg_rate` AS select `a`.`idtax_reg_rate` AS `idtax_reg_rate`,`a`.`idtax_reg` AS `idtax_reg`,`b`.`comp_id` AS `comp_id`,`d`.`file_name` AS `comp_fnm`,`c`.`companyname` AS `comp_nm`,`b`.`state_id` AS `state_id`,`e`.`state_name` AS `state_nm`,`b`.`city_id` AS `city_id`,`f`.`city_name` AS `city_nm`,`b`.`dept_id` AS `dept_id`,`g`.`lk_val` AS `dept_nm`,`b`.`reg_number` AS `reg_number`,`b`.`comp_open_dt` AS `comp_open_dt`,ifnull(date_format(`b`.`comp_open_dt`,'%m-%d-%y'),'Not Open') AS `comp_open_dt_fmt`,`b`.`comp_close_dt` AS `comp_close_dt`,ifnull(date_format(`b`.`comp_close_dt`,'%m-%d-%y'),'Open') AS `comp_close_dt_fmt`,`b`.`comp_open_close_day` AS `comp_open_close_day`,ifnull(`b`.`comp_open_close_day`,timestampdiff(DAY,`b`.`comp_open_dt`,now())) AS `comp_open_close_day_vir`,`a`.`tax_for` AS `tax_for`,`a`.`creditable` AS `creditable`,`a`.`tax_frm_dt` AS `tax_frm_dt`,ifnull(date_format(`a`.`tax_frm_dt`,'%m-%d-%y'),'Not Started') AS `tax_frm_dt_fmt`,`a`.`tax_to_dt` AS `tax_to_dt`,(case when (`a`.`tax_to_dt` is not null) then date_format(`a`.`tax_to_dt`,'%m-%d-%y') when (isnull(`a`.`tax_frm_dt`) and isnull(`a`.`tax_to_dt`)) then 'Not Started' when isnull(`a`.`tax_to_dt`) then 'In Progress' end) AS `tax_to_dt_fmt`,if(isnull(`a`.`tax_to_dt`),'Open','Close') AS `tax_frm_to_cur_stat`,`a`.`tax_frm_to_day` AS `tax_frm_to_day`,ifnull(`a`.`tax_frm_to_day`,timestampdiff(DAY,`a`.`tax_frm_dt`,now())) AS `tax_frm_to_day_vir`,`a`.`tax_limit` AS `tax_limit`,`a`.`gender` AS `gender`,`h`.`lk_val` AS `gender_nm`,`a`.`tax_amt` AS `tax_amt`,`a`.`parent_id` AS `parent_id`,`a`.`tax_type` AS `tax_type`,`a`.`updater` AS `updater`,`j`.`file_name` AS `updater_fnm`,if(isnull(`a`.`updater`),'Admin',concat(`i`.`firstname`,' ',`i`.`lastname`)) AS `updater_nm`,`a`.`updated` AS `updated`,date_format(`a`.`updated`,'%m-%d-%y %h:%i %p') AS `updated_fmt` from (((((((((`tax_reg_rate` `a` left join `tax_reg` `b` on((`a`.`idtax_reg` = `b`.`idtax_reg`))) left join `company` `c` on((`b`.`comp_id` = `c`.`comp_id`))) left join `storages` `d` on((`c`.`idstorages` = `d`.`idstorages`))) left join `look_state` `e` on((`b`.`state_id` = `e`.`state_id`))) left join `look_city` `f` on((`b`.`city_id` = `f`.`city_id`))) left join `tax_lk_val` `g` on((`b`.`dept_id` = `g`.`idtax_lk_val`))) left join `emp_lk_val` `h` on((`a`.`gender` = `h`.`idemp_lk_value`))) left join `emp` `i` on((`a`.`updater` = `i`.`emp_id`))) left join `storages` `j` on((`i`.`idstorages` = `j`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; -- -- Final view structure for view `vw_web_mail` -- /*!50001 DROP VIEW IF EXISTS `vw_web_mail`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`aerion`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `vw_web_mail` AS select `a`.`idweb_mail` AS `idweb_mail`,`a`.`email_sender` AS `email_sender`,`a`.`idlook_ip_addr` AS `idlook_ip_addr`,`b`.`ip_address` AS `ip_address`,`b`.`domain_nm` AS `domain_nm`,`b`.`ip_contry` AS `ip_contry`,`b`.`ip_state` AS `ip_state`,`b`.`ip_city` AS `ip_city`,`b`.`ip_post_code` AS `ip_post_code`,`a`.`idnet_mail_send` AS `idnet_mail_send`,`c`.`mail_server_port` AS `mail_server_port`,`c`.`user_id` AS `user_id`,`c`.`pass_word` AS `pass_word`,`c`.`send_stat` AS `send_stat`,`c`.`usage_order` AS `usage_order`,`a`.`os_nm` AS `os_nm`,`a`.`browser_nm` AS `browser_nm`,`a`.`device_nm` AS `device_nm`,`a`.`msg_sent` AS `msg_sent`,`a`.`sent_dt` AS `sent_dt`,date_format(`a`.`sent_dt`,'%m-%d-%y %h:%i %p') AS `sent_dt_fmt`,date_format(`a`.`sent_dt`,'%Y') AS `sent_dt_yr`,date_format(`a`.`sent_dt`,'%M') AS `sent_dt_mon`,date_format(`a`.`sent_dt`,'%Y %M') AS `sent_dt_yr_mon`,`a`.`action_by` AS `action_by`,`e`.`file_name` AS `action_by_fnm`,if(isnull(`a`.`action_by`),'Admin',concat(`d`.`firstname`,'',`d`.`lastname`)) AS `action_by_nm`,`a`.`action_dt` AS `action_dt`,date_format(`a`.`action_dt`,'%m-%d-%y %h:%i %p') AS `action_dt_fmt`,`a`.`sent_act_day` AS `sent_act_day`,(to_days((date_format(`a`.`action_dt`,'%y-%m-%d %h:%i %p') + interval `a`.`sent_act_day` day)) - to_days(date_format(now(),'%y-%m-%d %h:%i %p'))) AS `sent_act_day_vir` from ((((`web_mail` `a` left join `look_ip_addr` `b` on((`a`.`idlook_ip_addr` = `b`.`idlook_ip_addr`))) left join `net_mail_send` `c` on((`a`.`idnet_mail_send` = `c`.`idnet_mail_send`))) left join `emp` `d` on((`a`.`action_by` = `d`.`emp_id`))) left join `storages` `e` on((`d`.`idstorages` = `e`.`idstorages`))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2025-10-14 17:11:56