0byt3m1n1
Path:
C:
/
wamp64
/
www
/
[
Home
]
File: cpms.sql
-- phpMyAdmin SQL Dump -- version 3.1.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 02, 2017 at 09:03 AM -- Server version: 5.1.30 -- PHP Version: 5.2.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `cpms` -- -- -------------------------------------------------------- -- -- Table structure for table `accgroup` -- CREATE TABLE IF NOT EXISTS `accgroup` ( `group_id` bigint(20) NOT NULL AUTO_INCREMENT, `user_id` int(20) NOT NULL, `project_id` int(20) NOT NULL, `groupname` varchar(75) NOT NULL, `debit` double NOT NULL DEFAULT '0', `credit` double NOT NULL DEFAULT '0', PRIMARY KEY (`group_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `accgroup` -- -- -------------------------------------------------------- -- -- Table structure for table `account` -- CREATE TABLE IF NOT EXISTS `account` ( `account_id` bigint(20) NOT NULL, `user_id` int(20) NOT NULL, `project_id` int(20) NOT NULL, `group_name` varchar(75) NOT NULL, `account_name` varchar(75) NOT NULL, `debit` double NOT NULL, `credit` double NOT NULL, PRIMARY KEY (`account_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `account` -- -- -------------------------------------------------------- -- -- Table structure for table `addproject` -- CREATE TABLE IF NOT EXISTS `addproject` ( `project_id` bigint(100) NOT NULL AUTO_INCREMENT, `project_code` varchar(50) NOT NULL, `user_id` int(20) NOT NULL, `project_title` varchar(250) NOT NULL, `principle_investigator` int(11) NOT NULL, `investigators` varchar(250) NOT NULL, `fundagency` varchar(100) NOT NULL, `duration` varchar(50) NOT NULL, `project_outlay` varchar(50) NOT NULL, `startdate` date NOT NULL, `end_date` date NOT NULL, `abstract` varchar(2500) NOT NULL, `objective` varchar(2500) NOT NULL, `projectproposel` varchar(50) NOT NULL, `fundtype` int(11) NOT NULL DEFAULT '0', `verify_date` date DEFAULT NULL, `created_on` datetime NOT NULL, `created_by` int(11) NOT NULL, `modified_on` int(11) NOT NULL, `modified_by` datetime NOT NULL, `co_pi` text, PRIMARY KEY (`project_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=3 ; -- -- Dumping data for table `addproject` -- INSERT INTO `addproject` (`project_id`, `project_code`, `user_id`, `project_title`, `principle_investigator`, `investigators`, `fundagency`, `duration`, `project_outlay`, `startdate`, `end_date`, `abstract`, `objective`, `projectproposel`, `fundtype`, `verify_date`, `created_on`, `created_by`, `modified_on`, `modified_by`, `co_pi`) VALUES (1, 'TestProj 100', 3, 'Cwrdm500', 0, 'bineesha tm  ', 'KCSTE', '2years 0month 0day ', '200000', '2017-05-01', '2019-05-01', 'null', 'null', 'null', 2, '0000-00-00', '2017-05-20 14:29:23', 3, 0, '0000-00-00 00:00:00', 'Dr. Girish Gopinath'), (2, '327', 46, 'Pilot Project on establishment of a Mobile Water Analysis Lab for the quality assurance of drinking water source in Kerala', 0, '', 'Kerala Water Authority', '5years 0month 0day ', '3047000', '2012-03-27', '2017-03-27', 'null', 'null', 'null', 2, '0000-00-00', '2017-05-25 16:48:43', 46, 0, '0000-00-00 00:00:00', NULL); -- -------------------------------------------------------- -- -- Table structure for table `advance_settelment` -- CREATE TABLE IF NOT EXISTS `advance_settelment` ( `settelment_id` bigint(20) NOT NULL, `voucher_no` bigint(20) NOT NULL, `advance_taken_entry_no` bigint(20) NOT NULL, `type_of_item` varchar(150) NOT NULL, `vender_name` varchar(150) NOT NULL, `invoice_no` varchar(50) NOT NULL, `invoice_date` date NOT NULL, `bill_amount` double NOT NULL, `description` varchar(275) NOT NULL, PRIMARY KEY (`settelment_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `advance_settelment` -- -- -------------------------------------------------------- -- -- Table structure for table `advance_taken_entry` -- CREATE TABLE IF NOT EXISTS `advance_taken_entry` ( `advance_id` bigint(20) NOT NULL, `user_id` int(20) NOT NULL, `project_id` int(20) NOT NULL, `advance_impresed` varchar(20) NOT NULL, `date` date NOT NULL, `name` varchar(75) NOT NULL, `account_name` varchar(75) NOT NULL, `amount` double NOT NULL, `description` varchar(275) NOT NULL, `closed` int(2) NOT NULL DEFAULT '0', `balance` double NOT NULL DEFAULT '0', PRIMARY KEY (`advance_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `advance_taken_entry` -- -- -------------------------------------------------------- -- -- Table structure for table `custemaccount_cashentry` -- CREATE TABLE IF NOT EXISTS `custemaccount_cashentry` ( `custem_id` bigint(20) NOT NULL, `user_id` int(20) NOT NULL, `project_id` int(20) NOT NULL, `voucher` varchar(50) NOT NULL, `date` date NOT NULL, `groupname` varchar(75) NOT NULL, `accountname` varchar(75) NOT NULL, `custemaccount_type` smallint(20) NOT NULL, `debit` double NOT NULL DEFAULT '0', `credit` double NOT NULL DEFAULT '0', `description` varchar(275) NOT NULL, PRIMARY KEY (`custem_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `custemaccount_cashentry` -- -- -------------------------------------------------------- -- -- Table structure for table `employe` -- CREATE TABLE IF NOT EXISTS `employe` ( `emp_id` bigint(20) NOT NULL, `user_id` int(20) NOT NULL, `project_id` int(20) NOT NULL, `emp_name` varchar(75) NOT NULL, `address` varchar(150) NOT NULL, `phone` varchar(20) NOT NULL, `mobile` varchar(20) NOT NULL, `designation` varchar(30) NOT NULL, `join_date` date NOT NULL, `validupto_date` date NOT NULL, `mail_id` varchar(50) NOT NULL, `salary` double NOT NULL, `photo` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `status` int(11) NOT NULL DEFAULT '1', PRIMARY KEY (`emp_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `employe` -- -- -------------------------------------------------------- -- -- Table structure for table `fileshelf` -- CREATE TABLE IF NOT EXISTS `fileshelf` ( `file_shelf_id` bigint(50) NOT NULL, `user_id` int(20) NOT NULL, `project_id` int(20) NOT NULL, `filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `fileupload` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `date` date NOT NULL, `description` varchar(275) NOT NULL, PRIMARY KEY (`file_shelf_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `fileshelf` -- -- -------------------------------------------------------- -- -- Table structure for table `leave_credit` -- CREATE TABLE IF NOT EXISTS `leave_credit` ( `credit_id` bigint(20) NOT NULL, `user_id` int(20) NOT NULL, `emp_id` int(20) NOT NULL, `credit_count` double NOT NULL, `year` year(4) NOT NULL, `today_date` date NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `leave_credit` -- -- -------------------------------------------------------- -- -- Table structure for table `leave_entry` -- CREATE TABLE IF NOT EXISTS `leave_entry` ( `leave_id` bigint(20) NOT NULL, `user_id` int(20) NOT NULL, `emp_id` int(20) NOT NULL, `start_date` date NOT NULL, `end_date` date NOT NULL, `leave_count` float NOT NULL, `leave_type` varchar(50) NOT NULL, `description` varchar(275) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `leave_entry` -- -- -------------------------------------------------------- -- -- Table structure for table `ledger` -- CREATE TABLE IF NOT EXISTS `ledger` ( `ledg_id` bigint(100) NOT NULL AUTO_INCREMENT, `user_id` int(20) NOT NULL, `project_id` int(20) NOT NULL, `group_name` varchar(75) NOT NULL, `account_name` varchar(75) NOT NULL, `date` date NOT NULL, `ledger_type` varchar(20) NOT NULL, `type_id` bigint(20) NOT NULL, `debit` double NOT NULL DEFAULT '0', `credit` double NOT NULL DEFAULT '0', `description` varchar(275) NOT NULL, PRIMARY KEY (`ledg_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `ledger` -- -- -------------------------------------------------------- -- -- Table structure for table `payment` -- CREATE TABLE IF NOT EXISTS `payment` ( `payment_id` bigint(20) NOT NULL AUTO_INCREMENT, `user_id` int(20) NOT NULL, `project_id` int(20) NOT NULL, `voucher` varchar(20) NOT NULL, `account_Name` varchar(75) NOT NULL, `p_date` date NOT NULL, `amount` double NOT NULL, `discount` double NOT NULL, `description` varchar(275) NOT NULL, PRIMARY KEY (`payment_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `payment` -- -- -------------------------------------------------------- -- -- Table structure for table `pi` -- CREATE TABLE IF NOT EXISTS `pi` ( `pi_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(75) NOT NULL, PRIMARY KEY (`pi_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `pi` -- -- -------------------------------------------------------- -- -- Table structure for table `project_outlay_history` -- CREATE TABLE IF NOT EXISTS `project_outlay_history` ( `id` int(11) NOT NULL AUTO_INCREMENT, `project_id` int(11) DEFAULT NULL, `total_outlay` int(11) DEFAULT NULL, `created_on` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=41 ; -- -- Dumping data for table `project_outlay_history` -- INSERT INTO `project_outlay_history` (`id`, `project_id`, `total_outlay`, `created_on`) VALUES (27, 1, 2949581, '2017-04-03 00:00:00'), (28, 2, 903724, '2017-04-03 00:00:00'), (29, 3, 0, '2017-04-03 00:00:00'), (30, 4, 5032104, '2017-04-03 00:00:00'), (31, 5, 1429000, '2017-04-03 00:00:00'), (32, 6, 431200, '2017-04-03 00:00:00'), (33, 7, 506400, '2017-04-03 00:00:00'), (34, 8, 0, '2017-04-04 00:00:00'), (35, 9, 0, '2017-04-04 00:00:00'), (36, 10, 181600, '2017-04-04 00:00:00'), (37, 11, 300300, '2017-04-26 00:00:00'), (38, 12, 100000, '2017-06-01 00:00:00'), (39, 1, 200000, '2017-05-20 00:00:00'), (40, 2, 3047000, '2017-05-25 00:00:00'); -- -------------------------------------------------------- -- -- Table structure for table `project_total_outlay` -- CREATE TABLE IF NOT EXISTS `project_total_outlay` ( `id` int(11) NOT NULL AUTO_INCREMENT, `project_id` int(11) NOT NULL, `amount` varchar(250) NOT NULL, `created_on` datetime NOT NULL, `created_by` int(11) NOT NULL, `modified_on` datetime NOT NULL, `modified_by` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ; -- -- Dumping data for table `project_total_outlay` -- INSERT INTO `project_total_outlay` (`id`, `project_id`, `amount`, `created_on`, `created_by`, `modified_on`, `modified_by`) VALUES (1, 1, '100000', '2017-05-20 00:00:00', 3, '2017-05-20 00:00:00', 3), (2, 1, '100000', '2017-05-20 00:00:00', 3, '2017-05-20 00:00:00', 3), (3, 2, '3047000', '2017-05-25 00:00:00', 46, '2017-05-25 00:00:00', 46), (4, 2, '0', '2017-05-25 00:00:00', 46, '2017-05-25 00:00:00', 46), (5, 2, '0', '2017-05-25 00:00:00', 46, '2017-05-25 00:00:00', 46), (6, 2, '0', '2017-05-25 00:00:00', 46, '2017-05-25 00:00:00', 46), (7, 2, '0', '2017-05-25 00:00:00', 46, '2017-05-25 00:00:00', 46); -- -------------------------------------------------------- -- -- Table structure for table `reciept` -- CREATE TABLE IF NOT EXISTS `reciept` ( `receipt_id` bigint(20) NOT NULL AUTO_INCREMENT, `user_id` int(20) NOT NULL, `project_id` int(20) NOT NULL, `voucher` varchar(50) NOT NULL, `account_Name` varchar(75) NOT NULL, `r_date` date NOT NULL, `amount` double NOT NULL, `discount` float NOT NULL, `description` varchar(275) NOT NULL, PRIMARY KEY (`receipt_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `reciept` -- -- -------------------------------------------------------- -- -- Table structure for table `salaryvoucher` -- CREATE TABLE IF NOT EXISTS `salaryvoucher` ( `salary_id` bigint(20) NOT NULL, `user_id` int(20) NOT NULL, `project_id` int(20) NOT NULL, `svoucherno` varchar(100) NOT NULL, `emp_id` bigint(20) NOT NULL, `date` date NOT NULL, `salary_paid` double NOT NULL, `description` varchar(275) NOT NULL, PRIMARY KEY (`salary_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `salaryvoucher` -- -- -------------------------------------------------------- -- -- Table structure for table `stockcategory` -- CREATE TABLE IF NOT EXISTS `stockcategory` ( `category_id` bigint(20) NOT NULL, `user_id` int(20) NOT NULL, `category_name` varchar(100) NOT NULL, PRIMARY KEY (`category_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC; -- -- Dumping data for table `stockcategory` -- -- -------------------------------------------------------- -- -- Table structure for table `stockentry` -- CREATE TABLE IF NOT EXISTS `stockentry` ( `stockentry_id` bigint(50) NOT NULL, `user_id` int(20) NOT NULL, `item_name` varchar(150) NOT NULL, `stockentrydate` date NOT NULL, `itemsinstock` int(100) NOT NULL, `description` varchar(275) NOT NULL, PRIMARY KEY (`stockentry_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `stockentry` -- -- -------------------------------------------------------- -- -- Table structure for table `stockitem` -- CREATE TABLE IF NOT EXISTS `stockitem` ( `item_id` bigint(20) NOT NULL, `user_id` int(20) NOT NULL, `item_name` varchar(150) NOT NULL, `category_name` varchar(100) NOT NULL, `description` varchar(275) NOT NULL, PRIMARY KEY (`item_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `stockitem` -- -- -------------------------------------------------------- -- -- Table structure for table `stockusage_entry` -- CREATE TABLE IF NOT EXISTS `stockusage_entry` ( `stockusage_id` bigint(20) NOT NULL, `user_id` int(20) NOT NULL, `item_name` varchar(150) NOT NULL, `date` date NOT NULL, `itemused` int(50) NOT NULL, `description` varchar(275) NOT NULL, PRIMARY KEY (`stockusage_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `stockusage_entry` -- -- -------------------------------------------------------- -- -- Table structure for table `student` -- CREATE TABLE IF NOT EXISTS `student` ( `s_id` bigint(20) NOT NULL, `user_id` int(11) NOT NULL, `name` varchar(75) NOT NULL, `address` varchar(300) NOT NULL, `phone` int(11) NOT NULL, `email` varchar(50) NOT NULL, `course` varchar(75) NOT NULL, `college` varchar(75) NOT NULL, `category` varchar(15) NOT NULL, `start_date` date NOT NULL, `end_date` date NOT NULL, `title` varchar(200) NOT NULL, `file` varchar(200) NOT NULL, `remarks` varchar(255) NOT NULL, PRIMARY KEY (`s_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `student` -- -- -------------------------------------------------------- -- -- Table structure for table `tab_budget_form` -- CREATE TABLE IF NOT EXISTS `tab_budget_form` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `project_id` int(10) unsigned NOT NULL, `name` varchar(250) NOT NULL, `date_current` date NOT NULL, `debit_head` int(11) NOT NULL, `invoice_date` varchar(200) NOT NULL, `invoice_number` text NOT NULL, `amount` text NOT NULL, `amount_init` text NOT NULL, `status` varchar(100) NOT NULL DEFAULT 'PENDING', `installment_id` int(11) NOT NULL, `remarks` varchar(250) NOT NULL, `created_on` datetime NOT NULL, `modified_on` datetime NOT NULL, `created_by` int(11) NOT NULL, `modified_date_accounts` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=21 ; -- -- Dumping data for table `tab_budget_form` -- INSERT INTO `tab_budget_form` (`id`, `project_id`, `name`, `date_current`, `debit_head`, `invoice_date`, `invoice_number`, `amount`, `amount_init`, `status`, `installment_id`, `remarks`, `created_on`, `modified_on`, `created_by`, `modified_date_accounts`) VALUES (1, 1, 'rajesh', '2017-05-20', 1, '', '', '5000', '5000', 'ACCEPTED', 3, '', '2017-05-20 14:32:44', '2017-05-20 14:51:47', 3, '0000-00-00 00:00:00'), (2, 1, 'mahesh', '2017-05-20', 1, '', '', '5000', '5000', 'ACCEPTED', 3, '', '2017-05-20 14:32:53', '2017-05-20 14:51:47', 3, '0000-00-00 00:00:00'), (3, 1, 'kiran', '2017-05-20', 1, '', '', '5000', '5000', 'ACCEPTED', 3, '', '2017-05-20 14:33:01', '2017-05-20 14:51:47', 3, '0000-00-00 00:00:00'), (4, 1, 'deepak', '2017-05-20', 1, '', '', '5000', '5000', 'ACCEPTED', 3, '', '2017-05-20 14:33:16', '2017-05-20 14:51:47', 3, '0000-00-00 00:00:00'), (5, 1, 'Gk Travels', '2017-05-20', 3, '2017-05-02', 'GH001', '2500', '2500', 'ACCEPTED', 3, '', '2017-05-20 14:34:04', '2017-05-20 14:40:32', 3, '0000-00-00 00:00:00'), (6, 1, 'Tk Travels', '2017-05-20', 3, '2017-05-10', 'Gh54789', '15000', '15000', 'ACCEPTED', 3, '', '2017-05-20 14:34:33', '2017-05-20 14:40:32', 3, '0000-00-00 00:00:00'), (7, 1, 'Pradeep Travels', '2017-05-20', 3, '2017-05-04', 'MN002', '3000', '2500', 'ACCEPTED', 3, '', '2017-05-20 14:35:27', '2017-05-20 14:54:00', 3, '0000-00-00 00:00:00'), (8, 1, 'GMD 101', '2017-05-20', 2, '1970-01-01', '', '5000', '5000', 'ACCEPTED', 3, '', '2017-05-20 14:35:59', '2017-05-20 14:51:47', 3, '0000-00-00 00:00:00'), (9, 1, 'Gmd 102', '2017-05-20', 2, '1970-01-01', '', '7500', '7500', 'ACCEPTED', 3, '', '2017-05-20 14:36:14', '2017-05-20 14:51:47', 3, '0000-00-00 00:00:00'), (10, 1, 'GMd 103', '2017-05-20', 2, '1970-01-01', '', '2500', '2500', 'ACCEPTED', 3, '', '2017-05-20 14:36:30', '2017-05-20 14:51:47', 3, '0000-00-00 00:00:00'), (11, 1, 'Const 1', '2017-05-20', 4, '1970-01-01', '', '15000', '15000', 'ACCEPTED', 3, '', '2017-05-20 14:37:05', '2017-05-20 14:51:47', 3, '0000-00-00 00:00:00'), (12, 2, 'Sarath', '2017-05-25', 5, '', '', '654147', '654147', 'ACCEPTED', 4, '', '2017-05-25 16:51:24', '2017-05-25 16:54:10', 46, '0000-00-00 00:00:00'), (13, 2, 'Sakthi Motors', '2017-05-25', 10, '1970-01-01', '', '1249260', '1249260', 'ACCEPTED', 4, '', '2017-05-25 16:51:47', '2017-05-25 16:54:10', 46, '0000-00-00 00:00:00'), (14, 2, 'Harikumar', '2017-05-25', 7, '1970-01-01', '', '187533.5', '187533.5', 'ACCEPTED', 4, '', '2017-05-25 16:52:07', '2017-05-25 16:54:10', 46, '0000-00-00 00:00:00'), (15, 2, 'Sun Biomed', '2017-05-25', 11, '1970-01-01', '', '157513', '157513', 'ACCEPTED', 4, '', '2017-05-25 16:52:27', '2017-05-25 16:54:10', 46, '0000-00-00 00:00:00'), (16, 2, 'Chemind Chemicals', '2017-05-25', 12, '1970-01-01', '', '303679', '303679', 'ACCEPTED', 4, '', '2017-05-25 16:52:43', '2017-05-25 16:54:10', 46, '0000-00-00 00:00:00'), (17, 2, 'KVR Motors', '2017-05-25', 13, '1970-01-01', '', '182276', '182276', 'ACCEPTED', 4, '', '2017-05-25 16:53:13', '2017-05-25 16:54:10', 46, '0000-00-00 00:00:00'), (18, 2, 'Overhead', '2017-05-25', 6, '1970-01-01', '', '277000', '277000', 'ACCEPTED', 4, '', '2017-05-25 16:53:30', '2017-05-25 16:54:10', 46, '0000-00-00 00:00:00'), (19, 2, 'Siju', '2017-05-26', 7, '1970-01-01', '', '.05', '.05', 'ACCEPTED', 0, '', '2017-05-26 12:29:40', '2017-05-26 12:30:02', 40, '0000-00-00 00:00:00'), (20, 2, 'siju', '2017-05-26', 7, '1970-01-01', '', '-.05', '-.05', 'ACCEPTED', 0, '', '2017-05-26 12:35:20', '2017-05-26 12:35:31', 40, '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Table structure for table `tab_budget_head` -- CREATE TABLE IF NOT EXISTS `tab_budget_head` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `project_id` int(10) unsigned NOT NULL, `budget_head_id` int(11) NOT NULL, `amount` varchar(250) NOT NULL, `created_on` datetime NOT NULL, `created_by` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=14 ; -- -- Dumping data for table `tab_budget_head` -- INSERT INTO `tab_budget_head` (`id`, `project_id`, `budget_head_id`, `amount`, `created_on`, `created_by`) VALUES (1, 1, 1, '50000', '2017-05-20 00:00:00', 3), (2, 1, 2, '50000', '2017-05-20 00:00:00', 3), (3, 1, 3, '50000', '2017-05-20 00:00:00', 3), (4, 1, 4, '50000', '2017-05-20 00:00:00', 3), (5, 2, 1, '720000', '2017-05-25 00:00:00', 46), (6, 2, 2, '277000', '2017-05-25 00:00:00', 46), (7, 2, 10, '150000', '2017-05-25 00:00:00', 46), (8, 2, 28, '0', '2017-05-25 00:00:00', 46), (9, 2, 30, '0', '2017-05-25 00:00:00', 46), (10, 2, 48, '1200000', '2017-05-25 00:00:00', 46), (11, 2, 49, '150000', '2017-05-25 00:00:00', 46), (12, 2, 50, '400000', '2017-05-25 00:00:00', 46), (13, 2, 51, '150000', '2017-05-25 00:00:00', 46); -- -------------------------------------------------------- -- -- Table structure for table `tab_budget_head_master` -- CREATE TABLE IF NOT EXISTS `tab_budget_head_master` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(250) NOT NULL, `type` int(11) NOT NULL DEFAULT '0' COMMENT '0 -basic ,1 - no invoice,no invoice date', `created_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `created_by` int(11) NOT NULL DEFAULT '1', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=52 ; -- -- Dumping data for table `tab_budget_head_master` -- INSERT INTO `tab_budget_head_master` (`id`, `name`, `type`, `created_on`, `created_by`) VALUES (1, 'Salary', 1, '2016-11-07 22:54:53', 1), (2, 'Overhead', 0, '2016-11-07 22:54:53', 1), (3, 'Travel', 0, '2016-11-07 22:54:53', 1), (4, 'Consumables', 0, '2016-11-07 22:54:53', 1), (7, 'Contingencies', 0, '2017-03-25 14:01:58', 3), (8, 'Manpower', 0, '2017-03-25 14:02:10', 3), (9, 'Equipment', 0, '2017-03-25 14:15:29', 3), (10, 'TA/DA', 0, '2017-03-25 14:15:53', 3), (11, 'Consumable', 0, '2017-03-25 14:16:12', 3), (12, 'Experimental', 0, '2017-03-25 14:16:31', 3), (13, 'experimental/consumable/contingencies', 0, '2017-03-25 14:17:13', 3), (14, 'Field Expenditure', 0, '2017-03-25 14:17:40', 3), (15, 'Printing & Stationery', 0, '2017-03-25 14:18:02', 3), (16, 'Seminar/Workshop', 0, '2017-03-25 14:18:19', 3), (17, 'Institutional Charges', 0, '2017-03-25 14:18:39', 3), (18, 'Miscellaneous Expenses', 0, '2017-03-25 14:19:30', 3), (19, 'Office Stationery', 0, '2017-03-25 14:19:44', 3), (20, 'Equipment/Software', 0, '2017-03-25 14:20:08', 3), (21, 'Human Resources Charges', 0, '2017-03-27 17:00:13', 3), (22, 'Consumables/Stationery', 0, '2017-03-27 17:00:49', 3), (23, 'Accommodation, Food & Refreshment', 0, '2017-03-27 17:01:17', 3), (24, 'Contingency', 0, '2017-03-27 17:07:08', 3), (25, 'Demonstration & Awareness Programme', 0, '2017-03-27 17:19:36', 3), (26, 'Tour Advance', 0, '2017-03-27 17:49:03', 3), (27, 'Other Advane', 0, '2017-03-27 17:49:20', 3), (28, 'Fund Received', 0, '2017-04-03 12:17:45', 41), (29, 'Interest Accrued', 0, '2017-04-03 12:18:49', 41), (30, 'Refund of Unspent', 0, '2017-04-03 12:19:30', 41), (31, 'Experimental Charges', 0, '2017-04-03 15:43:54', 46), (32, 'Preparation of Digital Maps', 0, '2017-04-03 15:44:23', 46), (33, 'Bathymetric Survey', 0, '2017-04-03 15:44:45', 46), (34, 'Analytical Instruments', 0, '2017-04-03 15:45:07', 46), (35, 'Hardware / Software', 0, '2017-04-03 15:45:32', 46), (36, 'Workshop & Training Programme', 0, '2017-04-03 15:45:57', 46), (37, 'Stipend', 0, '2017-04-03 16:34:20', 46), (38, 'Consumables, Supplies and Materials', 0, '2017-04-03 16:38:40', 52), (39, 'Field Expense including Travel', 0, '2017-04-03 16:39:16', 52), (40, 'Dissemination of Reslts/Workshop', 0, '2017-04-03 17:23:21', 46), (41, 'Expenditure for HH Survey', 0, '2017-04-03 17:23:42', 46), (42, 'IEC Activities', 0, '2017-04-03 17:27:41', 46), (43, 'Farmers Training', 0, '2017-04-04 14:23:26', 43), (44, 'Registration Materials', 0, '2017-04-04 14:24:01', 43), (45, 'Travel Allowance', 0, '2017-04-04 14:24:26', 43), (46, 'Refreshment Charges', 0, '2017-04-04 14:24:50', 43), (47, 'Internal Faculty Charges', 0, '2017-04-04 14:25:13', 43), (48, 'Cost of Vehicle', 0, '2017-05-25 16:45:02', 46), (49, 'Reagent Kit', 0, '2017-05-25 16:45:42', 46), (50, 'Laboratory Instruments', 0, '2017-05-25 16:46:20', 46), (51, 'Maintenance of Vehicle', 0, '2017-05-25 16:46:48', 46); -- -------------------------------------------------------- -- -- Table structure for table `tab_division_master` -- CREATE TABLE IF NOT EXISTS `tab_division_master` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(250) NOT NULL, `status` int(11) NOT NULL DEFAULT '1', `created_on` datetime NOT NULL, `created_by` int(11) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ; -- -- Dumping data for table `tab_division_master` -- INSERT INTO `tab_division_master` (`id`, `name`, `status`, `created_on`, `created_by`) VALUES (1, 'Geomatics', 1, '0000-00-00 00:00:00', 0), (2, 'Water Quality', 1, '0000-00-00 00:00:00', 0), (3, 'Water Management (Agri)', 1, '2017-03-25 11:39:27', 1), (4, 'Environmental Studies', 1, '2017-03-25 11:39:37', 1), (5, 'Ground Water', 1, '2017-03-25 11:39:44', 1), (6, 'Surface Water', 1, '2017-03-25 11:39:50', 1), (7, 'Isotope Hydrology', 1, '2017-03-25 11:40:09', 1), (8, 'Training Education & Extention', 1, '2017-03-25 11:41:50', 1), (9, ' Kottayam Sub Centre', 1, '2017-03-31 18:20:20', 1), (10, 'Manimalakunnu Sub Centre', 1, '2017-03-31 18:21:09', 1), (11, 'Neyyantinkara Sub Centre', 1, '2017-03-31 18:21:34', 1), (12, 'EDs Secretariat Division', 1, '2017-03-31 18:30:21', 1); -- -------------------------------------------------------- -- -- Table structure for table `tab_master_fund_type` -- CREATE TABLE IF NOT EXISTS `tab_master_fund_type` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(250) NOT NULL, `created_by` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `created_on` int(11) NOT NULL DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ; -- -- Dumping data for table `tab_master_fund_type` -- INSERT INTO `tab_master_fund_type` (`id`, `name`, `created_by`, `created_on`) VALUES (1, 'Plan', '2016-11-07 22:34:58', 1), (2, 'External', '2016-11-07 22:34:58', 1), (3, 'Consultancy', '2016-11-07 22:37:57', 1), (4, 'Others', '2016-11-07 22:37:57', 1), (5, 'Non-Plan', '2016-11-07 22:37:57', 1); -- -------------------------------------------------------- -- -- Table structure for table `tab_project_installment` -- CREATE TABLE IF NOT EXISTS `tab_project_installment` ( `id` int(11) NOT NULL AUTO_INCREMENT, `project_id` int(11) NOT NULL, `name` varchar(250) NOT NULL, `created_on` datetime NOT NULL, `created_by` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ; -- -- Dumping data for table `tab_project_installment` -- INSERT INTO `tab_project_installment` (`id`, `project_id`, `name`, `created_on`, `created_by`) VALUES (1, 1, '1st Installment split up', '2017-05-20 14:30:19', 3), (2, 1, '2nd Installment split up', '2017-05-20 14:30:35', 3), (3, 1, '3rd Installment split up', '2017-05-20 14:30:59', 3), (4, 2, '1st Installment split up', '2017-05-25 16:50:45', 46); -- -------------------------------------------------------- -- -- Table structure for table `tab_project_installment_details` -- CREATE TABLE IF NOT EXISTS `tab_project_installment_details` ( `id` int(11) NOT NULL AUTO_INCREMENT, `installment_id` int(11) NOT NULL, `budget_head_id` int(11) NOT NULL, `amount` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=22 ; -- -- Dumping data for table `tab_project_installment_details` -- INSERT INTO `tab_project_installment_details` (`id`, `installment_id`, `budget_head_id`, `amount`) VALUES (1, 1, 1, '20000'), (2, 1, 2, '20000'), (3, 1, 3, '20000'), (4, 1, 4, '10000'), (5, 2, 1, '10000'), (6, 2, 2, '10000'), (7, 2, 3, '10000'), (8, 2, 4, '10000'), (9, 3, 1, '10000'), (10, 3, 2, '10000'), (11, 3, 3, '10000'), (12, 3, 4, '10000'), (13, 4, 5, '720000'), (14, 4, 6, '277000'), (15, 4, 7, '150000'), (16, 4, 8, '0'), (17, 4, 9, '0'), (18, 4, 10, '1200000'), (19, 4, 11, '150000'), (20, 4, 12, '400000'), (21, 4, 13, '150000'); -- -------------------------------------------------------- -- -- Table structure for table `tab_user_types` -- CREATE TABLE IF NOT EXISTS `tab_user_types` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(200) NOT NULL, `is_static` tinyint(1) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; -- -- Dumping data for table `tab_user_types` -- INSERT INTO `tab_user_types` (`id`, `name`, `is_static`) VALUES (1, 'Admin', 0), (0, 'Pi', 1), (2, 'Accounts', 1), (3, 'Ed', 0); -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE IF NOT EXISTS `user` ( `user_id` int(11) NOT NULL AUTO_INCREMENT, `user_name` varchar(50) CHARACTER SET latin1 NOT NULL, `passwd` varchar(50) CHARACTER SET latin1 NOT NULL, `email` varchar(50) CHARACTER SET latin1 NOT NULL, `name` text CHARACTER SET latin1 NOT NULL, `photo` text CHARACTER SET latin1 NOT NULL, `salutation` varchar(20) CHARACTER SET latin1 NOT NULL, `designation` varchar(50) CHARACTER SET latin1 NOT NULL, `is_admin` int(11) NOT NULL DEFAULT '0' COMMENT '0-pi, 1-admin, 2-acounts,3-ED', `accounts_type` varchar(200) CHARACTER SET latin1 NOT NULL, `division_id` varchar(200) CHARACTER SET latin1 NOT NULL, `co_investigator` varchar(100) CHARACTER SET latin1 NOT NULL, `verify_date` date DEFAULT NULL, `debit_heads` varchar(500) DEFAULT NULL, `disabled_debit_heads` varchar(500) DEFAULT '3,8', PRIMARY KEY (`user_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=74 ; -- -- Dumping data for table `user` -- INSERT INTO `user` (`user_id`, `user_name`, `passwd`, `email`, `name`, `photo`, `salutation`, `designation`, `is_admin`, `accounts_type`, `division_id`, `co_investigator`, `verify_date`, `debit_heads`, `disabled_debit_heads`) VALUES (1, 'admin', 'admin123', 'admin@gmail.com', 'Administrator', '../photo/rdm.png', '', 'CWRDM', 1, '0', '', '', '0000-01-01', NULL, '3,8'), (2, 'dinesan', '123', 'dinesan@cwrdm.org', 'Dr. Dinesan V.P', '../photo/dinesan.jpg', '', '', 0, '0', '1', '', '0000-00-00', NULL, '3,8'), (3, 'gmd', 'gmd16', 'gmd@gmail.com', 'Testbot', '../photo/admin.jpg', '', 'Scientist', 0, '0', '1', '', '2009-03-02', NULL, '3,8'), (49, 'dinil', '123', 'C Dinil Sony', 'Mr. C Dinil Sony', '../photo/dinil.jpg', '', 'Senior Principal Scientist', 0, '', '6', '', NULL, NULL, '3,8'), (7, 'joseph', '123', 'jej@cwrdm.org', 'Dr. Joseph E J', '../photo/joseph.jpg', '', '', 0, '0', '3', '', '0000-00-00', NULL, '3,8'), (48, 'jayakumar', '123', 'Jayakumar P', 'Dr. Jayakumar P', '../photo/jayakumar.jpg', '', 'Senior Principal Scientist & Head', 0, '', '4', '', NULL, NULL, '3,8'), (47, 'madhavan', '123', 'Madhavan K', 'Dr. Madhavan K', '../photo/madhavan.jpg', '', 'Scientist', 0, '', '2', '', NULL, NULL, '3,8'), (44, 'Madhava', '123', 'Madhava Chandran K', 'Dr. Madhava Chandran K', '../photo/madhava .jpg', '', 'Senior Principal Scientist', 0, '', '3', '', NULL, NULL, '3,8'), (43, 'babu', '123', 'Babu Mathew', 'Mr. Babu Mathew', '../photo/babu.jpg', '', 'Senior Principal Scientist & Head', 0, '', '8', '', NULL, NULL, '3,8'), (35, 'ed', '123', 'jej@cwrdm.org', 'Executive Director', '../photo/rdm.png', '', 'CWRDM', 3, '0', '0', '', NULL, NULL, '3,8'), (36, 'acc1', 'acc1', 'accounts@accounts.co', 'accounts1', '../photo/rdm.png', '', '', 2, '1,2,3,5', '0', '', NULL, NULL, '3,8'), (37, 'acc2', 'acc', 'accounts@accounts.co', 'accounts2', '../photo/rdm.png', '', '', 2, '5', '0', '', NULL, NULL, '3,8'), (38, 'acc3', 'acc', 'accounts@accounts.co', 'accounts3', '../photo/rdm.png', '', '', 2, '1,5', '0', '', NULL, NULL, '3,8'), (39, 'acc4', 'acc', 'accounts4@accounts.co', 'Accounts 4', '../photo/rdm.png', '', 'Accountant', 2, '1,2,3,5', '0', '', NULL, '3,8', NULL), (40, 'acc5', 'acc', 'accounts5@accounts.co', 'Accounts 5', '../photo/rdm.png', '', 'Accountant', 2, '2,3', '0', '', NULL, NULL, '3,8'), (46, 'harikumar', '123', 'Harikumar P S', 'Dr. Harikumar P S', '../photo/harikumar.jpg', '', 'Senior Principal Scientist & Head', 0, '', '2', '', NULL, NULL, '3,8'), (45, 'surendran', '123', 'Surendran U', 'Dr. Surendran U', '../photo/surendan.png', '', 'Scientist', 0, '', '3', '', NULL, NULL, '3,8'), (42, 'chinni', '123', 'K.Ch.V Naga Kumar', 'Dr. K.Ch.V Naga Kumar', '../photo/Chinni.JPG', '', 'Scientist B', 0, '', '1', '', NULL, NULL, '3,8'), (41, 'gg', '123', 'gg@cwrdm.org', 'Dr. Girish Gopinath', '../photo/girish.jpg', '', 'Senior Scientist', 0, '', '1', '', NULL, NULL, '3,8'), (50, 'vivek', '123', 'Vivek B', 'Mr. Vivek B', '../photo/vivek.jpg', '', 'Scientist B', 0, '', '4', '', NULL, NULL, '3,8'), (51, 'dipu', '123', 'Dipu S', 'Dr. Dipu S', '../photo/dipu.jpg', '', 'Scientist B', 0, '', '2', '', NULL, NULL, '3,8'), (52, 'priju', '123', 'C P Priju', 'Dr. C P Priju', '../photo/priju.jpg', '', 'Scientist', 0, '', '5', '', NULL, NULL, '3,8'), (53, 'arun', '123', 'Arun P R', 'Dr. Arun P R', '../photo/arun.jpg', '', 'Scientist', 0, '', '5', '', NULL, NULL, '3,8'), (54, 'anitha', '123', 'Anitha A B', 'Dr. Anitha A B', '../photo/anitha.jpg', '', 'Senior Principal Scientist & Head', 0, '', '6', '', NULL, NULL, '3,8'), (55, 'george', '123', ' George Abe', 'Dr. George Abe', '../photo/abe.jpg', '', 'Chief Scientist & Head', 0, '', '9', '', NULL, NULL, '3,8'), (56, 'abdulla', '123', 'Abdulla P K', 'Mr. Abdulla P K', '../photo/abdulla.jpg', '', 'Senior Principal Scientist', 0, '', '6', '', NULL, NULL, '3,8'), (57, 'celine', '123', 'Celine George', 'Dr. Celine George', '../photo/celine.jpg', '', 'Principal Scientist & Head', 0, '', '10', '', NULL, NULL, '3,8'), (58, 'drissia', '123', 'Drissia T K', 'Ms. Drissia T K', '../photo/drissia.jpg', '', 'Scientist', 0, '', '6', '', NULL, NULL, '3,8'), (59, 'hameed', '123', 'Abdul Hameed E', 'Mr. Abdul Hameed E', '../photo/hameed.jpg', '', 'Technical PA to ED & Scientist B', 0, '', '12', '', NULL, NULL, '3,8'), (60, 'jainet', '123', 'Jainet P J', 'Mr. Jainet P J', '../photo/jainet.jpg', '', 'Scientist B', 0, '', '6', '', NULL, NULL, '3,8'), (62, 'ambili', '123', 'Ambili G K', 'Ms. Ambili G K', '../photo/ambili.jpg', '', 'Scientist & Head In Charge', 0, '', '11', '', NULL, NULL, '3,8'), (63, 'warrier', '123', ' Unnikrishna Warrier C', 'Dr. Unnikrishna Warrier C', '../photo/warrier.jpg', '', 'Principal Scientist & Head', 0, '', '7', '', NULL, NULL, '3,8'), (64, 'resmi', '123', 'Resmi TR', 'Dr. Resmi TR', '../photo/resmi.jpg', '', 'Scientist', 0, '', '7', '', NULL, NULL, '3,8'), (69, 'registrar', '123', '', 'Registrar', '../photo/rdm.png', '', 'CWRDM', 3, '', '', '', NULL, NULL, '3,8'), (73, 'ar', '123', 'so@gmail.com.oo', 'Special Officer', '../photo/rdm.png', ' ', 'kmkm', 4, ' ', '1', ' ', '0000-00-00', NULL, '3,8'), (72, 'so', '123', 'so@gmail.com.oo', 'Special Officer', '../photo/rdm.png', ' ', 'kmkm', 4, ' ', '1', ' ', '0000-00-00', NULL, '3,8');