-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 31, 2018 at 05:58 AM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `Visa_DB` -- -- -------------------------------------------------------- -- -- Table structure for table `ci_sessions` -- CREATE TABLE `ci_sessions` ( `session_id` varchar(40) NOT NULL DEFAULT '0', `ip_address` varchar(45) NOT NULL DEFAULT '0', `user_agent` varchar(120) NOT NULL, `last_activity` int(10) UNSIGNED NOT NULL DEFAULT '0', `user_data` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `Tab_CityMaster` -- CREATE TABLE `Tab_CityMaster` ( `CityCode` int(4) NOT NULL, `CityName` varchar(80) NOT NULL, `CityDescription` varchar(300) NOT NULL, `IsActive` tinyint(2) NOT NULL DEFAULT '1' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `Tab_CountryMaster` -- CREATE TABLE `Tab_CountryMaster` ( `CountryCode` int(3) NOT NULL, `CountryName` varchar(80) NOT NULL, `CapitalCity` varchar(80) NOT NULL, `CountryDescription` varchar(300) NOT NULL, `IsActive` tinyint(2) NOT NULL DEFAULT '1' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `Tab_Documents` -- CREATE TABLE `Tab_Documents` ( `DocumentCode` int(4) NOT NULL, `DocumentName` varchar(80) NOT NULL, `Document` varchar(300) NOT NULL, `DocumentDescription` varchar(300) NOT NULL, `IsActive` tinyint(2) NOT NULL DEFAULT '1' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `Tab_ResetPassword` -- CREATE TABLE `Tab_ResetPassword` ( `id` bigint(20) NOT NULL, `email` varchar(128) NOT NULL, `activation_id` varchar(32) NOT NULL, `agent` varchar(512) NOT NULL, `client_ip` varchar(32) NOT NULL, `isDeleted` tinyint(4) NOT NULL DEFAULT '0', `createdBy` bigint(20) NOT NULL DEFAULT '1', `createdDtm` datetime NOT NULL, `updatedBy` bigint(20) DEFAULT NULL, `updatedDtm` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `Tab_Roles` -- CREATE TABLE `Tab_Roles` ( `roleId` tinyint(4) NOT NULL COMMENT 'role id', `role` varchar(50) NOT NULL COMMENT 'role text' ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -- Dumping data for table `Tab_Roles` -- INSERT INTO `Tab_Roles` (`roleId`, `role`) VALUES (1, 'System Administrator'), (2, 'Manager'), (3, 'Employee'); -- -------------------------------------------------------- -- -- Table structure for table `Tab_Users` -- CREATE TABLE `Tab_Users` ( `userId` int(11) NOT NULL, `email` varchar(128) NOT NULL COMMENT 'login email', `password` varchar(128) NOT NULL COMMENT 'hashed login password', `name` varchar(128) DEFAULT NULL COMMENT 'full name of user', `mobile` varchar(20) DEFAULT NULL, `roleId` tinyint(4) NOT NULL, `isDeleted` tinyint(4) NOT NULL DEFAULT '0', `createdBy` int(11) NOT NULL, `createdDtm` datetime NOT NULL, `updatedBy` int(11) DEFAULT NULL, `updatedDtm` datetime DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -- Dumping data for table `Tab_Users` -- INSERT INTO `Tab_Users` (`userId`, `email`, `password`, `name`, `mobile`, `roleId`, `isDeleted`, `createdBy`, `createdDtm`, `updatedBy`, `updatedDtm`) VALUES (1, 'admin@Visa.com', '$2y$10$Z.JwBMjSgKrWOYPK3Gs/wOb.zEL3816sChRNWr2F4cujf9VDVXOae', 'System Administrator', '9890098900', 1, 0, 0, '2015-07-01 18:56:49', 1, '2018-07-30 12:21:25'), (2, 'manager@Visa.com', '$2y$10$q3/bzbhAviWTh9O9XymWr.awSwSJE45cSQJ8RbGbNAAEJ1p2w5Ksa', 'Manager', '9890098900', 2, 0, 1, '2016-12-09 17:49:56', 1, '2018-01-12 07:22:11'), (3, 'employee@Visa.com', '$2y$10$q3/bzbhAviWTh9O9XymWr.awSwSJE45cSQJ8RbGbNAAEJ1p2w5Ksa', 'Employee', '9890098900', 3, 0, 1, '2016-12-09 17:50:22', 3, '2018-01-04 07:58:28'); -- -------------------------------------------------------- -- -- Table structure for table `Tab_VisaTypeMaster` -- CREATE TABLE `Tab_VisaTypeMaster` ( `VisaCode` int(4) NOT NULL, `VisaName` varchar(80) NOT NULL, `VisaDescription` varchar(300) NOT NULL, `IsActive` tinyint(2) NOT NULL DEFAULT '1' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `Tab_LastLogin` -- CREATE TABLE `Tab_LastLogin` ( `id` bigint(20) NOT NULL, `userId` bigint(20) NOT NULL, `sessionData` varchar(2048) NOT NULL, `machineIp` varchar(1024) NOT NULL, `userAgent` varchar(128) NOT NULL, `agentString` varchar(1024) NOT NULL, `platform` varchar(128) NOT NULL, `createdDtm` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Indexes for dumped tables -- -- -- Indexes for table `ci_sessions` -- ALTER TABLE `ci_sessions` ADD PRIMARY KEY (`session_id`), ADD KEY `last_activity_idx` (`last_activity`); -- -- Indexes for table `Tab_CityMaster` -- ALTER TABLE `Tab_CityMaster` ADD PRIMARY KEY (`CityCode`); -- -- Indexes for table `Tab_CountryMaster` -- ALTER TABLE `Tab_CountryMaster` ADD PRIMARY KEY (`CountryCode`); -- -- Indexes for table `Tab_Documents` -- ALTER TABLE `Tab_Documents` ADD PRIMARY KEY (`DocumentCode`); -- -- Indexes for table `Tab_ResetPassword` -- ALTER TABLE `Tab_ResetPassword` ADD PRIMARY KEY (`id`); -- -- Indexes for table `Tab_Roles` -- ALTER TABLE `Tab_Roles` ADD PRIMARY KEY (`roleId`); -- -- Indexes for table `Tab_Users` -- ALTER TABLE `Tab_Users` ADD PRIMARY KEY (`userId`); -- -- Indexes for table `Tab_VisaTypeMaster` -- ALTER TABLE `Tab_VisaTypeMaster` ADD PRIMARY KEY (`VisaCode`); -- -- Indexes for table `Tab_LastLogin` -- ALTER TABLE `Tab_LastLogin` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `Tab_CityMaster` -- ALTER TABLE `Tab_CityMaster` MODIFY `CityCode` int(4) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `Tab_CountryMaster` -- ALTER TABLE `Tab_CountryMaster` MODIFY `CountryCode` int(3) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `Tab_Documents` -- ALTER TABLE `Tab_Documents` MODIFY `DocumentCode` int(4) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `Tab_ResetPassword` -- ALTER TABLE `Tab_ResetPassword` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `Tab_Roles` -- ALTER TABLE `Tab_Roles` MODIFY `roleId` tinyint(4) NOT NULL AUTO_INCREMENT COMMENT 'role id', AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `Tab_Users` -- ALTER TABLE `Tab_Users` MODIFY `userId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `Tab_VisaTypeMaster` -- ALTER TABLE `Tab_VisaTypeMaster` MODIFY `VisaCode` int(4) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `Tab_LastLogin` -- ALTER TABLE `Tab_LastLogin` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT; /*!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 */;