?
Current Path : /home1/savoy/public_html/savoyglobal.net/cocorico/assets/data/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/cocorico/assets/data/V1.sql |
-- phpMyAdmin SQL Dump -- version 3.4.10.1deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 08, 2014 at 11:30 AM -- Server version: 5.5.40 -- PHP Version: 5.3.10-1ubuntu3.15 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `savoy_busybees` -- -- -------------------------------------------------------- -- -- Table structure for table `academic_year` -- CREATE TABLE IF NOT EXISTS `academic_year` ( `academic_year_id` int(11) NOT NULL AUTO_INCREMENT, `academic_year_year` year(4) NOT NULL, `display_name` varchar(100) NOT NULL, `academic_year_start_date` date NOT NULL, `academic_year_end_date` date NOT NULL, `current` int(1) NOT NULL DEFAULT '0', PRIMARY KEY (`academic_year_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; CREATE TABLE IF NOT EXISTS `alert` ( `alert_id` int(11) NOT NULL, `alert_record_id` int(11) NOT NULL, `alert_master_id` int(11) NOT NULL, `alert_date` date NOT NULL, `alert_status` smallint(6) NOT NULL, `alert_status_modified_date` date NOT NULL, PRIMARY KEY (`alert_id`), KEY `alert_record_id` (`alert_record_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `alert_close` -- CREATE TABLE IF NOT EXISTS `alert_close` ( `id` int(11) NOT NULL AUTO_INCREMENT, `master_id` int(11) NOT NULL, `alert_date` date NOT NULL, `alert_type` enum('fee_pending','age_limit','resident_expiry','labour_expiry','medical_expiry','leave_application') NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `alert_employee` -- CREATE TABLE IF NOT EXISTS `alert_employee` ( `id` int(11) NOT NULL AUTO_INCREMENT, `alert_id` int(11) NOT NULL, `employee_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `alert_id` (`alert_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `alert_master` -- CREATE TABLE IF NOT EXISTS `alert_master` ( `alert_master_id` int(11) NOT NULL AUTO_INCREMENT, `alert_master_name` varchar(200) NOT NULL, `alert_master_days` int(11) NOT NULL, `alert_master_type` varchar(100) NOT NULL, `alert_target` varchar(100) NOT NULL, PRIMARY KEY (`alert_master_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ; -- -- Dumping data for table `alert_master` -- INSERT INTO `alert_master` (`alert_master_id`, `alert_master_name`, `alert_master_days`, `alert_master_type`, `alert_target`) VALUES (1, 'Fee Pending Alerts', 5, 'fee_pending_alerts', 'fee_pending_alert'), (2, 'Age Limit Alerts', 7, 'age_limit_alerts', 'age_limit'), (3, 'Resident Visa Expiry Alerts', 10, 'resident_visa_expiry_alerts', 'resident_expiry'), (4, 'Labor Card Expiry Alerts', 4, 'labor_card_expiry_alerts', 'labour_expiry'), (5, 'Medical Test Expiry Date', 5, 'medical_test_expiry_alerts', 'medical_expiry'), (6, 'Leave Application Alert', 3, 'leave_application_alert', 'leave_application_alert'); -- -------------------------------------------------------- -- -- Table structure for table `alert_master_employee` -- CREATE TABLE IF NOT EXISTS `alert_master_employee` ( `id` int(11) NOT NULL AUTO_INCREMENT, `alert_master_id` int(11) NOT NULL, `alert_master_employee_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `alert_master_id` (`alert_master_id`), KEY `alert_master_employee_id` (`alert_master_employee_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- Table structure for table `allowdeduc` -- CREATE TABLE IF NOT EXISTS `allowdeduc` ( `allowdeduc_id` int(11) NOT NULL AUTO_INCREMENT, `allowdeduc_name` varchar(100) NOT NULL, `allowdeduc_type` int(2) NOT NULL, `allowdeduc_mode` int(2) NOT NULL, `chart_account_code` varchar(10) NOT NULL, PRIMARY KEY (`allowdeduc_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- Table structure for table `assessment_master` -- CREATE TABLE IF NOT EXISTS `assessment_master` ( `assessment_master_id` int(11) NOT NULL AUTO_INCREMENT, `assessment_master_name` varchar(200) NOT NULL, `start_date` date NOT NULL, `end_date` date NOT NULL, `class_name_id` int(11) NOT NULL, PRIMARY KEY (`assessment_master_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Table structure for table `attendance` -- CREATE TABLE IF NOT EXISTS `attendance` ( `attendance_id` int(11) NOT NULL AUTO_INCREMENT, `batch_id` int(11) NOT NULL, `teacher_id` int(11) NOT NULL, `class_id` int(11) NOT NULL, `attendance_date` date NOT NULL, `start_time` time NOT NULL, `end_time` time NOT NULL, `subject_id` int(11) NOT NULL, `remarks` text NOT NULL, PRIMARY KEY (`attendance_id`), KEY `class_id` (`class_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Table structure for table `attendance_details` -- CREATE TABLE IF NOT EXISTS `attendance_details` ( `id` int(11) NOT NULL AUTO_INCREMENT, `attendance_id` int(11) NOT NULL, `student_id` int(11) NOT NULL, `attendance` varchar(50) NOT NULL, `start_time` time NOT NULL, `end_time` time NOT NULL, `remarks` text NOT NULL, PRIMARY KEY (`id`), KEY `attendance_id` (`attendance_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; CREATE TABLE IF NOT EXISTS `branch` ( `branch_id` int(11) NOT NULL AUTO_INCREMENT, `branch_name` varchar(100) NOT NULL, `address` text NOT NULL, `city` varchar(100) NOT NULL, `country` varchar(100) NOT NULL, `contact_no` varchar(50) NOT NULL, `email` varchar(100) NOT NULL, `fax` varchar(50) NOT NULL, `website` varchar(50) NOT NULL, PRIMARY KEY (`branch_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -- Dumping data for table `branch` -- INSERT INTO `branch` (`branch_id`, `branch_name`, `address`, `city`, `country`, `contact_no`, `email`, `fax`, `website`) VALUES (1, 'Doha', '', 'Doha', '', '974093213', '', '', ''); -- -------------------------------------------------------- -- -- Table structure for table `calendar` -- CREATE TABLE IF NOT EXISTS `calendar` ( `calendar_id` int(11) NOT NULL, `calendar_title` varchar(200) NOT NULL, `calendar_description` text NOT NULL, `calendar_start_date` date NOT NULL, `calendar_end_date` date NOT NULL, PRIMARY KEY (`calendar_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `chart_account_group` ( `chart_group_id` int(11) NOT NULL AUTO_INCREMENT, `account_group` varchar(100) NOT NULL, `account_group_label` varchar(100) NOT NULL, PRIMARY KEY (`chart_group_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ; -- -- Dumping data for table `chart_account_group` -- INSERT INTO `chart_account_group` (`chart_group_id`, `account_group`, `account_group_label`) VALUES (1, 'revenue', 'Revenue'), (2, 'cost_of_sales', 'Cost Of Sales'), (3, 'expenses', 'Expenses'), (4, 'current_assets', 'Current Assets'), (5, 'non_current_assets', 'Non Current Assets'), (6, 'current_liabilities', 'Current Liabilities'), (7, 'non_current_liabilities', 'Non Current Liabilities'), (8, 'equity', 'Owner''s Equity'); -- -------------------------------------------------------- -- -- Table structure for table `class_name` -- CREATE TABLE IF NOT EXISTS `class_name` ( `class_name_id` int(11) NOT NULL AUTO_INCREMENT, `class_name_code` varchar(50) NOT NULL, `class_room_id` int(11) NOT NULL, `class_term_id` int(11) NOT NULL, `class_name_academic_year_id` int(11) NOT NULL, `class_session` varchar(100) NOT NULL, `class_days` varchar(200) NOT NULL, `class_start_time` time NOT NULL, `class_end_time` time NOT NULL, `class_closed` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (`class_name_id`), KEY `class_name_academic_year_id` (`class_name_academic_year_id`), KEY `class_room_id` (`class_room_id`), KEY `class_term_id` (`class_term_id`), KEY `class_session` (`class_session`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1; CREATE TABLE IF NOT EXISTS `class_room` ( `class_room_id` int(11) NOT NULL AUTO_INCREMENT, `class_room_name` varchar(50) NOT NULL, PRIMARY KEY (`class_room_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; CREATE TABLE IF NOT EXISTS `class_teacher` ( `id` int(11) NOT NULL AUTO_INCREMENT, `class_name_id` int(11) NOT NULL, `teacher_id` int(11) NOT NULL, `wef_date` date NOT NULL, PRIMARY KEY (`id`), KEY `class_name_id` (`class_name_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `cost_center` -- CREATE TABLE IF NOT EXISTS `cost_center` ( `cost_center_id` int(11) NOT NULL AUTO_INCREMENT, `cost_journal_id` int(11) NOT NULL, PRIMARY KEY (`cost_center_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `cost_expense_type` -- CREATE TABLE IF NOT EXISTS `cost_expense_type` ( `cost_expense_type_id` int(11) NOT NULL AUTO_INCREMENT, `finance_journal_id` int(11) NOT NULL, `expense_type_id` int(11) NOT NULL, PRIMARY KEY (`cost_expense_type_id`), KEY `expense_type_id` (`expense_type_id`), KEY `finance_journal_id` (`finance_journal_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `department` -- CREATE TABLE IF NOT EXISTS `department` ( `department_id` int(11) NOT NULL AUTO_INCREMENT, `department_name` varchar(100) NOT NULL, PRIMARY KEY (`department_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ; -- -- Dumping data for table `department` -- INSERT INTO `department` (`department_id`, `department_name`) VALUES (1, 'Management'), (2, 'Adminstration'), (3, 'Teaching Staff'), (4, 'Non Teaching Staff'); -- -------------------------------------------------------- -- -- Table structure for table `designation` -- CREATE TABLE IF NOT EXISTS `designation` ( `designation_id` int(11) NOT NULL AUTO_INCREMENT, `designation_name` varchar(50) NOT NULL, PRIMARY KEY (`designation_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ; -- -- Dumping data for table `designation` -- INSERT INTO `designation` (`designation_id`, `designation_name`) VALUES (1, 'Chief Executive Officer'), (2, 'Director'), (3, 'Head - Training'), (4, 'Training Coordinator'), (5, 'Faculty'), (6, 'Administration Manager'), (7, 'Nurse'), (8, 'Head staff'), (9, 'Clerk'); -- -------------------------------------------------------- -- -- Table structure for table `document` -- CREATE TABLE IF NOT EXISTS `document` ( `recordid` int(11) NOT NULL, `name` varchar(100) NOT NULL, `location` varchar(200) NOT NULL, KEY `recordid` (`recordid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `effort_behavior` -- CREATE TABLE IF NOT EXISTS `effort_behavior` ( `effort_behavior_id` int(11) NOT NULL AUTO_INCREMENT, `effort_behavior_status` varchar(100) NOT NULL, `effort_behavior_value` int(11) NOT NULL, PRIMARY KEY (`effort_behavior_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1; CREATE TABLE IF NOT EXISTS `emailreport` ( `email_id` int(11) NOT NULL, `email_subject` text NOT NULL, `email_contents` text NOT NULL, `email_date` date NOT NULL, `status` varchar(11) NOT NULL, PRIMARY KEY (`email_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; CREATE TABLE IF NOT EXISTS `emailsettings` ( `id` int(11) NOT NULL, `from_email` varchar(100) NOT NULL, `from_name` varchar(100) NOT NULL, `from_password` varchar(100) NOT NULL, `smtp` varchar(100) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `emailtemplate` -- CREATE TABLE IF NOT EXISTS `emailtemplate` ( `template_id` int(11) NOT NULL AUTO_INCREMENT, `template_title` varchar(200) NOT NULL, `template_subject` text NOT NULL, `template_contents` text NOT NULL, PRIMARY KEY (`template_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Table structure for table `email_receipents` -- CREATE TABLE IF NOT EXISTS `email_receipents` ( `email_id` int(11) NOT NULL, `receipent_name` varchar(50) NOT NULL, `receipent_email` varchar(50) NOT NULL, `receipent_type` varchar(20) NOT NULL, KEY `email_id` (`email_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `employee` -- CREATE TABLE IF NOT EXISTS `employee` ( `employee_id` int(11) NOT NULL, `employee_no` varchar(20) NOT NULL, `employee_name` varchar(200) NOT NULL, `employee_gender` enum('Male','Female') NOT NULL, `employee_dob` date NOT NULL, `employee_nationality_id` int(12) NOT NULL, `employee_branch_id` int(11) NOT NULL, `employee_designation_id` int(11) NOT NULL, `employee_department_id` int(11) NOT NULL, `employee_grade_id` int(11) NOT NULL, `employee_status_id` int(11) NOT NULL, `employee_local_address` text NOT NULL, `employee_permanent_address` text NOT NULL, `employee_contact_no` varchar(20) NOT NULL, `employee_mobile_no` varchar(25) NOT NULL, `employee_email` varchar(50) NOT NULL, `employee_passport_no` varchar(50) NOT NULL, `employee_visa_type` varchar(100) NOT NULL, `employee_visa_expiry_date` date NOT NULL, `employee_labour_card_no` varchar(100) NOT NULL, `employee_police_certificate` enum('Issued','Not Issued','Under Processing') NOT NULL, `employee_labour_card_expiry_date` date NOT NULL, `employee_reporting_to` int(11) NOT NULL, `employee_qatar_id_no` varchar(100) NOT NULL, `device_no` int(11) NOT NULL, `date_of_join` date NOT NULL, `relieving_date` date NOT NULL, `employee_teacher` int(11) NOT NULL DEFAULT '0', `medical_test_expiry_date` date NOT NULL, PRIMARY KEY (`employee_id`), KEY `employee_designation_id` (`employee_designation_id`), KEY `employee_status_id` (`employee_status_id`), KEY `employee_grade_id` (`employee_grade_id`), KEY `employee_department_id` (`employee_department_id`), KEY `employee_branch_id` (`employee_branch_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `employee` -- INSERT INTO `employee` (`employee_id`, `employee_no`, `employee_name`, `employee_gender`, `employee_dob`, `employee_nationality_id`, `employee_branch_id`, `employee_designation_id`, `employee_department_id`, `employee_grade_id`, `employee_status_id`, `employee_local_address`, `employee_permanent_address`, `employee_contact_no`, `employee_mobile_no`, `employee_email`, `employee_passport_no`, `employee_visa_type`, `employee_visa_expiry_date`, `employee_labour_card_no`, `employee_police_certificate`, `employee_labour_card_expiry_date`, `employee_reporting_to`, `employee_qatar_id_no`, `device_no`, `date_of_join`, `relieving_date`, `employee_teacher`, `medical_test_expiry_date`) VALUES (1, 'E101', 'Administrator', 'Male', '1974-01-01', 1, 1, 1, 2, 2, 1, '', '', '', '', '', '', 'Business', '0000-00-00', '', 'Issued', '0000-00-00', 0, '1234567', 0, '0000-00-00', '0000-00-00', 0, '0000-00-00'); -- -------------------------------------------------------- -- -- Table structure for table `employee_additional_certification` -- CREATE TABLE IF NOT EXISTS `employee_additional_certification` ( `id` int(11) NOT NULL AUTO_INCREMENT, `employee_id` int(11) NOT NULL, `course` varchar(100) NOT NULL, `institute` varchar(100) NOT NULL, `yearofpassing` year(4) NOT NULL, PRIMARY KEY (`id`), KEY `employee_id` (`employee_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; CREATE TABLE IF NOT EXISTS `employee_educational_qualification` ( `id` int(11) NOT NULL AUTO_INCREMENT, `employee_id` int(11) NOT NULL, `course` varchar(100) NOT NULL, `university` varchar(50) NOT NULL, `yearofpassing` year(4) NOT NULL, PRIMARY KEY (`id`), KEY `employee_id` (`employee_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; CREATE TABLE IF NOT EXISTS `employee_professional_experience` ( `id` int(11) NOT NULL AUTO_INCREMENT, `employee_id` int(11) NOT NULL, `employer` varchar(100) NOT NULL, `designation` varchar(100) NOT NULL, `period` varchar(20) NOT NULL, PRIMARY KEY (`id`), KEY `employee_id` (`employee_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; CREATE TABLE IF NOT EXISTS `employee_salary` ( `employee_salary_id` int(11) NOT NULL, `employee_id` int(11) NOT NULL, `wef_date` date NOT NULL, `basic_salary` varchar(30) NOT NULL, `from_ticket` varchar(100) NOT NULL, `to_ticket` varchar(100) NOT NULL, `return_ticket` int(11) NOT NULL, `no_tickets` int(11) NOT NULL, `currency_type` int(11) NOT NULL, `payment_method` varchar(8) NOT NULL, PRIMARY KEY (`employee_salary_id`), KEY `employee_id` (`employee_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; CREATE TABLE IF NOT EXISTS `employee_salary_allowdeduc` ( `id` int(11) NOT NULL AUTO_INCREMENT, `employee_salary_id` int(11) NOT NULL, `allowdeduc_id` int(11) NOT NULL, `amount` double NOT NULL, PRIMARY KEY (`id`), KEY `employee_salary_id` (`employee_salary_id`), KEY `allowdeduc_id` (`allowdeduc_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; CREATE TABLE IF NOT EXISTS `employee_salary_medical` ( `id` int(11) NOT NULL AUTO_INCREMENT, `employee_salary_id` int(11) NOT NULL, `type` varchar(100) NOT NULL, `company` varchar(100) NOT NULL, `policy` varchar(20) NOT NULL, `plan` varchar(100) NOT NULL, `sum` double NOT NULL, PRIMARY KEY (`id`), KEY `employee_salary_id` (`employee_salary_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `employee_salary_slip` -- CREATE TABLE IF NOT EXISTS `employee_salary_slip` ( `employee_salary_slip_id` int(11) NOT NULL, `employee_id` int(11) NOT NULL, `salary_date` date NOT NULL, `pay_date` date NOT NULL, `basic_salary` double NOT NULL, `allowance_amount` double NOT NULL, `deduction_amount` double NOT NULL, `net_payment` double NOT NULL, `commission_amount` double NOT NULL, `paid_amount` double NOT NULL, `unpost` int(11) NOT NULL DEFAULT '1', `payment_method` varchar(50) NOT NULL, PRIMARY KEY (`employee_salary_slip_id`), KEY `employee_id` (`employee_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Table structure for table `employee_salary_slip_allowdeduc` -- CREATE TABLE IF NOT EXISTS `employee_salary_slip_allowdeduc` ( `id` int(11) NOT NULL AUTO_INCREMENT, `employee_salary_slip_id` int(11) NOT NULL, `allowdeduc_id` int(11) NOT NULL, `amount` double NOT NULL, PRIMARY KEY (`id`), KEY `allowdeduc_id` (`allowdeduc_id`), KEY `employee_salary_slip_id` (`employee_salary_slip_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=13 ; -- -- Dumping data for table `employee_salary_slip_allowdeduc` -- -- Table structure for table `evaluation` -- CREATE TABLE IF NOT EXISTS `evaluation` ( `evaluation_id` int(11) NOT NULL, `class_name_id` int(11) NOT NULL, `teacher_id` int(11) NOT NULL, `exam_master_id` int(11) NOT NULL, `evaluation_date` date NOT NULL, `evaluation_remarks` text NOT NULL, `month_max_mark` int(11) NOT NULL, `sem_max_mark` int(11) NOT NULL, PRIMARY KEY (`evaluation_id`), KEY `class_name_id` (`class_name_id`), KEY `exam_master_id` (`exam_master_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Table structure for table `evaluation_student` -- CREATE TABLE IF NOT EXISTS `evaluation_student` ( `id` int(11) NOT NULL AUTO_INCREMENT, `evaluation_id` int(11) NOT NULL, `evaluation_student_id` int(11) NOT NULL, `evaluation_subject_id` int(11) NOT NULL, `evaluation_monthly_marks` double NOT NULL, `evaluation_semester_marks` double NOT NULL, PRIMARY KEY (`id`), KEY `evaluation_id` (`evaluation_id`), KEY `evaluation_subject_id` (`evaluation_subject_id`), KEY `evaluation_student_id` (`evaluation_student_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `evaluation_student` -- -- -- Table structure for table `exam_grade_level` -- CREATE TABLE IF NOT EXISTS `exam_grade_level` ( `gradelevel_id` int(11) NOT NULL AUTO_INCREMENT, `gradelevel_name` varchar(10) NOT NULL, `min_marks` decimal(10,1) NOT NULL, `max_marks` decimal(10,1) NOT NULL, `gradelevel_description` varchar(50) NOT NULL, PRIMARY KEY (`gradelevel_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Table structure for table `exam_master` -- CREATE TABLE IF NOT EXISTS `exam_master` ( `exam_master_id` int(11) NOT NULL AUTO_INCREMENT, `exam_master_name` varchar(250) NOT NULL, `exam_academic_year_id` int(11) NOT NULL, `exam_master_start_date` date NOT NULL, `exam_master_end_date` date NOT NULL, PRIMARY KEY (`exam_master_id`), KEY `exam_academic_year_id` (`exam_academic_year_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Table structure for table `expense_type` -- CREATE TABLE IF NOT EXISTS `expense_type` ( `expense_type_id` int(11) NOT NULL AUTO_INCREMENT, `expense_type_name` varchar(200) NOT NULL, PRIMARY KEY (`expense_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `fee` -- CREATE TABLE IF NOT EXISTS `fee` ( `fee_id` int(11) NOT NULL, `fee_receipt_no` varchar(20) NOT NULL, `fee_date` date NOT NULL, `total_amount` int(11) NOT NULL, `payment_mode` text NOT NULL, `remarks` text NOT NULL, `student_class_id` int(11) NOT NULL, `posted` int(11) NOT NULL DEFAULT '0', `journal_id` int(11) NOT NULL DEFAULT '0', KEY `fee_id` (`fee_id`), KEY `student_class_id` (`student_class_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Table structure for table `fee_bank_transfer_info` -- CREATE TABLE IF NOT EXISTS `fee_bank_transfer_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, `fee_id` int(11) NOT NULL, `description` text NOT NULL, PRIMARY KEY (`id`), KEY `fee_id` (`fee_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `fee_category` -- CREATE TABLE IF NOT EXISTS `fee_category` ( `fee_particular_id` int(11) NOT NULL AUTO_INCREMENT, `fee_particular_name` varchar(50) NOT NULL, PRIMARY KEY (`fee_particular_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `fee_cheque_info` -- CREATE TABLE IF NOT EXISTS `fee_cheque_info` ( `fee_cheque_id` int(11) NOT NULL AUTO_INCREMENT, `fee_id` int(11) NOT NULL, `cheque_no` varchar(100) NOT NULL, `cheque_date` date NOT NULL, `cheque_info` text NOT NULL, `bank_drawn` varchar(100) NOT NULL, PRIMARY KEY (`fee_cheque_id`), KEY `fee_id` (`fee_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `fee_collection` -- CREATE TABLE IF NOT EXISTS `fee_collection` ( `fee_collection_id` int(11) NOT NULL AUTO_INCREMENT, `fee_collection_academic_year` year(4) NOT NULL, PRIMARY KEY (`fee_collection_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `fee_collection_details` -- CREATE TABLE IF NOT EXISTS `fee_collection_details` ( `id` int(11) NOT NULL AUTO_INCREMENT, `fee_collection_id` int(11) NOT NULL, `fee_collection_date_month` date NOT NULL, PRIMARY KEY (`id`), KEY `fee_collection_id` (`fee_collection_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `fee_collection_term` -- CREATE TABLE IF NOT EXISTS `fee_collection_term` ( `id` int(11) NOT NULL AUTO_INCREMENT, `fee_collection_id` int(11) NOT NULL, `fee_collection_term_id` int(11) NOT NULL, `fee_collection_term_date` date NOT NULL, PRIMARY KEY (`id`), KEY `fee_collection_id` (`fee_collection_id`), KEY `fee_collection_term_id` (`fee_collection_term_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `fee_credit_card_info` -- CREATE TABLE IF NOT EXISTS `fee_credit_card_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, `fee_id` int(11) NOT NULL, `credit_card_holder` varchar(100) NOT NULL, `credit_card_no` varchar(100) NOT NULL, PRIMARY KEY (`id`), KEY `fee_id` (`fee_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `fee_master` -- CREATE TABLE IF NOT EXISTS `fee_master` ( `fee_master_id` int(11) NOT NULL AUTO_INCREMENT, `fee_master_name` varchar(200) NOT NULL, `fee_master_description` text NOT NULL, `fee_master_target` varchar(200) NOT NULL, `active` int(1) NOT NULL DEFAULT '1', PRIMARY KEY (`fee_master_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; -- -- Dumping data for table `fee_master` -- INSERT INTO `fee_master` (`fee_master_id`, `fee_master_name`, `fee_master_description`, `fee_master_target`, `active`) VALUES (1, 'Fee Particulars', 'Students Fee Category', ' viewdata(''master'',''viewinmastersearch'',''search_fee_particular'',''view_fee_particular'',''1'');', 1), (2, 'Fee Settings', 'Configure class wise fee categories and amounts', ' viewdata(''master'',''viewinmastersearch'',''search_fee_term'',''view_fee_term'',''1'');', 1), (3, 'Fee Collection Management', 'Manage academic year fee collection dates', ' viewdata(''master'',''viewinmastersearch'',''search_fee_collection'',''view_fee_collection'',''1'');', 0); -- -------------------------------------------------------- -- -- Table structure for table `fee_paid_details` -- CREATE TABLE IF NOT EXISTS `fee_paid_details` ( `id` int(11) NOT NULL AUTO_INCREMENT, `fee_id` int(11) NOT NULL, `student_class_fee_id` varchar(100) NOT NULL, `payment_for` date NOT NULL DEFAULT '0000-00-00', `amount_paid` double NOT NULL, PRIMARY KEY (`id`), KEY `fee_id` (`fee_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `fee_paid_details` -- -------------------------------------------------------- -- -- Table structure for table `fee_paid_details_other` -- CREATE TABLE IF NOT EXISTS `fee_paid_details_other` ( `id` int(11) NOT NULL AUTO_INCREMENT, `fee_id` int(11) NOT NULL, `fee_other_name` varchar(100) NOT NULL, `fee_other_amount` double NOT NULL, PRIMARY KEY (`id`), KEY `fee_id` (`fee_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `fee_paid_details_other` -- -- -------------------------------------------------------- -- -- Table structure for table `fee_particular` -- CREATE TABLE IF NOT EXISTS `fee_particular` ( `fee_particular_id` int(11) NOT NULL AUTO_INCREMENT, `fee_particular_name` varchar(50) NOT NULL, PRIMARY KEY (`fee_particular_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `fee_particular` -- -- -------------------------------------------------------- -- -- Table structure for table `fee_payment` -- CREATE TABLE IF NOT EXISTS `fee_payment` ( `fee_payment_id` int(11) NOT NULL, `fee_student_id` int(11) NOT NULL, `fee_receipt_no` varchar(30) NOT NULL, `fee_payment_date` date NOT NULL, `fee_payment_remarks` text NOT NULL, `payment_mode` int(11) NOT NULL, PRIMARY KEY (`fee_payment_id`), UNIQUE KEY `fee_receipt_no` (`fee_receipt_no`), KEY `fee_student_id` (`fee_student_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf16; -- -- -------------------------------------------------------- -- -- Table structure for table `fee_payment_bank_transfer_info` -- CREATE TABLE IF NOT EXISTS `fee_payment_bank_transfer_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, `fee_payment_id` int(11) NOT NULL, `description` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `fee_payment_cheque_info` -- CREATE TABLE IF NOT EXISTS `fee_payment_cheque_info` ( `fee_cheque_id` int(11) NOT NULL AUTO_INCREMENT, `fee_payment_id` int(11) NOT NULL, `cheque_no` varchar(100) NOT NULL, `cheque_date` date NOT NULL, `cheque_info` text, `bank_drawn` varchar(200) NOT NULL, PRIMARY KEY (`fee_cheque_id`), KEY `fee_payment_id` (`fee_payment_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `fee_payment_cheque_info` -- -------------------------------------------------------- -- -- Table structure for table `fee_payment_credit_card_info` -- CREATE TABLE IF NOT EXISTS `fee_payment_credit_card_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, `fee_payment_id` int(11) NOT NULL, `credit_card_holder` varchar(100) NOT NULL, `credit_card_no` varchar(100) NOT NULL, PRIMARY KEY (`id`), KEY `fee_payment_id` (`fee_payment_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `fee_payment_details` -- CREATE TABLE IF NOT EXISTS `fee_payment_details` ( `id` int(11) NOT NULL AUTO_INCREMENT, `fee_payment_id` int(11) NOT NULL, `fee_particular_id` int(11) NOT NULL, `fee_term_amount` double NOT NULL, PRIMARY KEY (`id`), KEY `fee_term_id` (`fee_payment_id`), KEY `fee_particular_id` (`fee_particular_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Dumping data for table `fee_payment_details` -- -- -- Table structure for table `fee_payment_wire_info` -- CREATE TABLE IF NOT EXISTS `fee_payment_wire_info` ( `wire_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `fee_payment_id` int(11) NOT NULL, `wire_info` varchar(40) NOT NULL, PRIMARY KEY (`wire_id`), KEY `fee_payment_id` (`fee_payment_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `fee_term` -- CREATE TABLE IF NOT EXISTS `fee_term` ( `fee_term_id` int(11) NOT NULL AUTO_INCREMENT, `fee_term_term_id` int(11) NOT NULL, `fee_term_session` int(11) NOT NULL, `fee_term_academic_year_id` int(11) NOT NULL, `fee_term_due_date` date NOT NULL, `refund_bond_amount` double NOT NULL, PRIMARY KEY (`fee_term_id`), KEY `fee_term_term_id` (`fee_term_term_id`), KEY `fee_term_session` (`fee_term_session`), KEY `fee_term_academic_year_id` (`fee_term_academic_year_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Table structure for table `fee_term_details` -- CREATE TABLE IF NOT EXISTS `fee_term_details` ( `id` int(11) NOT NULL AUTO_INCREMENT, `fee_term_id` int(11) NOT NULL, `fee_particular_id` int(11) NOT NULL, `fee_term_amount` double NOT NULL, `fee_month_amount` double NOT NULL, `fee_term_no_of_days` varchar(10) NOT NULL, PRIMARY KEY (`id`), KEY `fee_term_id` (`fee_term_id`), KEY `fee_particular_id` (`fee_particular_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Table structure for table `fee_term_due_date` -- CREATE TABLE IF NOT EXISTS `fee_term_due_date` ( `id` int(11) NOT NULL AUTO_INCREMENT, `fee_term_id` int(11) NOT NULL, `fee_term_monthly_due_date` date NOT NULL, PRIMARY KEY (`id`), KEY `fee_term_id` (`fee_term_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Table structure for table `fee_wire_info` -- CREATE TABLE IF NOT EXISTS `fee_wire_info` ( `wire_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `fee_id` int(11) NOT NULL, `wire_info` varchar(40) NOT NULL, PRIMARY KEY (`wire_id`), KEY `fee_id` (`fee_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `file` -- CREATE TABLE IF NOT EXISTS `file` ( `file_id` int(11) NOT NULL AUTO_INCREMENT, `master_id` int(11) NOT NULL, `file_type_id` int(11) NOT NULL, `file_location` varchar(200) NOT NULL, `file_date` date NOT NULL, PRIMARY KEY (`file_id`), KEY `master_id` (`master_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `file_type` -- CREATE TABLE IF NOT EXISTS `file_type` ( `file_type_id` int(11) NOT NULL AUTO_INCREMENT, `file_type` varchar(100) NOT NULL, PRIMARY KEY (`file_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `file_type` -- -------------------------------------------------------- -- -- Table structure for table `finance_auto_journal` -- CREATE TABLE IF NOT EXISTS `finance_auto_journal` ( `id` int(11) NOT NULL AUTO_INCREMENT, `auto_journal_id` int(11) NOT NULL, `chart_account_code` varchar(20) CHARACTER SET latin1 NOT NULL, `debit` decimal(10,2) NOT NULL, `credit` decimal(10,2) NOT NULL, `description` text CHARACTER SET latin1 NOT NULL, PRIMARY KEY (`id`), KEY `auto_journal_ref_id` (`auto_journal_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `finance_auto_journal_refs` -- CREATE TABLE IF NOT EXISTS `finance_auto_journal_refs` ( `auto_journal_id` int(11) NOT NULL, `auto_journal_title` varchar(128) NOT NULL, PRIMARY KEY (`auto_journal_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `finance_bank_account` -- CREATE TABLE IF NOT EXISTS `finance_bank_account` ( `bank_account_id` int(5) unsigned NOT NULL AUTO_INCREMENT, `chart_account_code` varchar(20) NOT NULL DEFAULT '', `bank_name` varchar(60) NOT NULL DEFAULT '', `bank_account_number` varchar(100) NOT NULL DEFAULT '', `bank_address` tinytext, `currency_id` int(11) unsigned NOT NULL, `last_reconciled_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `ending_reconcile_balance` double NOT NULL, PRIMARY KEY (`bank_account_id`), KEY `bank_account_name` (`bank_name`), KEY `bank_account_number` (`bank_account_number`), KEY `account_code` (`chart_account_code`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Table structure for table `finance_chart_master` -- CREATE TABLE IF NOT EXISTS `finance_chart_master` ( `chart_master_id` int(11) unsigned NOT NULL AUTO_INCREMENT, `chart_account_code` varchar(20) NOT NULL, `chart_account_name` varchar(250) NOT NULL, `chart_type_id` int(11) NOT NULL, `parent` int(11) NOT NULL DEFAULT '0', `inactive` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`chart_account_code`), UNIQUE KEY `id` (`chart_master_id`), KEY `chart_type_id` (`chart_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=723 ; -- -- Dumping data for table `finance_chart_master` -- INSERT INTO `finance_chart_master` (`chart_master_id`, `chart_account_code`, `chart_account_name`, `chart_type_id`, `parent`, `inactive`) VALUES (324, '100000', 'CAPITAL ', 1, 0, 0), (325, '100001', 'STAFF LOAN A/C', 1, 0, 0), (326, '100002', 'PREPAID EXPENSES ', 1, 0, 0), (327, '100003', 'COMPUTERS ', 1, 0, 0), (328, '100004', 'PARTITIONS & DECORATIONS ', 1, 0, 0), (329, '100005', 'OFFICE FURNITURES ', 1, 0, 0), (330, '100006', 'OTHER EQUIPMENTS ', 1, 0, 0), (331, '100007', 'MOTOR VEHICLES ', 1, 0, 0), (332, '100008', 'FURNITURESFIXTURES & EQUIPMENT ', 1, 0, 0), (333, '100009', 'CREDIT CARD COLLECTION ', 1, 0, 0), (701, '150001', 'QNB', 1, 700, 0), (5, '210000', 'Student Account', 4, 0, 0), (338, '220000', 'OTHER INCOME ', 4, 0, 0), (339, '220001', 'INCOME FROM LOANS ', 4, 0, 0), (340, '220002', 'INCOME FROM FIXED DEPOSITS ', 4, 0, 0), (341, '220003', 'INCOME FROM INVESTMENTS ', 4, 0, 0), (342, '220004', 'INCOME FROM ASSET MANAGEMENT ', 4, 0, 0), (343, '220005', 'INCOME FROM MANAGEMENT FEES ', 4, 0, 0), (344, '220006', 'PROFIT ON SALE OF F/ASSET ', 4, 0, 0), (345, '220007', 'PROFIT/LOSS ON FIXED ASSETS ', 4, 0, 0), (346, '220008', 'REALIZED GAIN IN EXCHANGE RATE ', 4, 0, 0), (347, '220009', 'GAIN / LOSS ON EXCHANGE ', 4, 0, 0), (348, '220010', 'PRIOR YEAR ADJUSTMENT ', 4, 0, 0), (349, '220011', 'OTHER EXCEPTIONAL INCOME ', 4, 0, 0), (700, '220012', 'Bank Account', 1, 0, 0), (350, '300000', 'BASIC SALARY ', 3, 0, 0), (351, '300001', 'Housing Allowance', 3, 0, 0), (352, '300002', ' UTILITY ', 3, 0, 0), (353, '300003', 'RECREATION & CLUB FEES ', 3, 0, 0), (354, '300004', 'STAFF HOUSING ', 3, 0, 0), (355, '300005', 'Car Allowance', 3, 0, 0), (356, '300006', 'Fuel Expenses', 3, 0, 0), (357, '300007', 'TELEPHONE ALLOWANCE ', 3, 0, 0), (358, '300008', 'LEAVE TRAVEL AIR PASSAGE ', 3, 0, 0), (359, '300009', 'LEAVE TRAVEL ALLOWANCE ', 3, 0, 0), (360, '300010', 'STAFF MEDICAL INSURANCE ', 3, 0, 0), (361, '300011', 'SCHOOL FEES MANAGEMENT ', 3, 0, 0), (362, '300012', 'SOCIAL SECURITY NATIONALS (GOSI) ', 3, 0, 0), (363, '300013', 'PASSPORT/ VISA/ IQAMA RENEWALS ', 3, 0, 0), (364, '300014', 'VISA RENEWALS ', 3, 0, 0), (365, '300015', 'WORK PERMIT RENEWALS ', 3, 0, 0), (366, '300016', 'MEDICAL FOR IQAMA RENEWAL ', 3, 0, 0), (367, '300017', 'VISA FORM TYPING & OTHERS ', 3, 0, 0), (368, '300018', 'RECRUITMENT EXPENSES ', 3, 0, 0), (369, '300019', 'STAFF RELOCATION EXPENSES ', 3, 0, 0), (370, '300020', 'INSURANCE EXAM EXPS ', 3, 0, 0), (371, '300021', 'INSURANCE EXAM AWARDS ', 3, 0, 0), (372, '300022', 'STAFF PROFIT BONUS ', 3, 0, 0), (373, '300023', 'STAFF PERFORMANCE BONUS ', 3, 0, 0), (374, '300024', 'STAFF TRAINING ', 3, 0, 0), (375, '300025', 'STAFF TRAINING OTHERS ', 3, 0, 0), (376, '300026', 'CO CONTRIBUTION STAFF PENSION ', 3, 0, 0), (377, '300027', 'OTHER STAFF RELATED EXPS ', 3, 0, 0), (378, '300028', 'STAFF LEAVING INDEMINITY ', 3, 0, 0), (379, '300029', 'OFFICE RENT ', 3, 0, 0), (380, '300030', 'OFFICE WATER / ELECTRICITY ', 3, 0, 0), (381, '300031', 'OFFICE UPKEEP & MAINTENANCE ', 3, 0, 0), (382, '300032', 'OFFICE EQUIPMENT MAINTENANCE ', 3, 0, 0), (383, '300033', 'OFFICE RENOVATION ', 3, 0, 0), (384, '300034', 'OFFICE TELEPHONES ', 3, 0, 0), (385, '300035', 'OFFICE FAX CHARGES ', 3, 0, 0), (386, '300036', 'OFFICE MOBILE CHARGES ', 3, 0, 0), (387, '300037', 'ISDN/LEASE LINE COSTS ', 3, 0, 0), (388, '300038', 'POSTAGE/ COURIER EXPENSES ', 3, 0, 0), (389, '300039', 'IT EXPENSES', 3, 0, 0), (390, '300040', 'DEPRECIATION - OTHERS ', 3, 0, 0), (391, '300041', 'ADVERTISING ', 3, 0, 0), (392, '300042', 'SPONSORSHIP ', 3, 0, 0), (393, '300043', 'CHARITY / GIFTS ', 3, 0, 0), (394, '300044', 'BUSINESS PROMOTION ', 3, 0, 0), (395, '300045', 'MARKETING ', 3, 0, 0), (396, '300046', 'LEGAL & CONSULTANCY ', 3, 0, 0), (397, '300047', 'TAXATION FEES ', 3, 0, 0), (398, '300048', 'COMMERCIAL REGISTRATION ', 3, 0, 0), (399, '300049', 'CHAMBER OF COMMERCE ', 3, 0, 0), (400, '300050', 'OTHER FEES ', 3, 0, 0), (401, '300051', 'TRANSLATION CHARGES ', 3, 0, 0), (402, '300052', 'BROKERAGE TAX ', 3, 0, 0), (403, '300053', 'GOVT FEE ON BROKERAGES ', 3, 0, 0), (404, '300054', 'EXTERNAL AUDIT FEES ', 3, 0, 0), (405, '300055', 'INTERNAL AUDIT FEES ', 3, 0, 0), (406, '300056', 'BANK CHARGES ', 3, 0, 0), (407, '300057', 'CREDIT CARD CHARGES ', 3, 0, 0), (408, '300058', 'PRINTING ', 3, 0, 0), (409, '300059', 'ENVELOPS ', 3, 0, 0), (410, '300060', 'STATIONERY ', 3, 0, 0), (411, '300061', 'GENERAL STATIONERY ', 3, 0, 0), (412, '300062', 'BUSINESS CARDS ', 3, 0, 0), (413, '300063', 'NEWS PAPER & PERIODOCALS ', 3, 0, 0), (414, '300064', 'CO. MEMBERSHIP SUBSCRIPTION ', 3, 0, 0), (415, '300065', 'BUSINESS TRAVEL ', 3, 0, 0), (416, '300066', 'BUSINESS TRAVEL HOTEL ', 3, 0, 0), (417, '300067', 'BUSINESS TRAVEL INCIDENTAL ', 3, 0, 0), (418, '300068', 'OFFICE CAR PETROL EXPENSES ', 3, 0, 0), (419, '300069', 'CAR MAINTENACE COSTS ', 3, 0, 0), (420, '300070', 'CAR WASHING CHARGES ', 3, 0, 0), (421, '300071', 'CAR PARKING CHARGES ', 3, 0, 0), (422, '300072', 'CAR LEASING CHARGES ', 3, 0, 0), (423, '300073', 'CAR INSURANCE EXPENSES ', 3, 0, 0), (424, '300074', 'TAXI FARE EXPENSES ', 3, 0, 0), (425, '300075', 'ENTERTAINMENT - BUSINESS ', 3, 0, 0), (426, '300076', 'ENTERTAINMENT - STAFF ', 3, 0, 0), (427, '300077', 'ENTERTAINMENT - VISITORS ', 3, 0, 0), (428, '300078', 'CONFERENCE EXPENSES ', 3, 0, 0), (429, '300079', 'TECHNICAL RISK SURVEY COSTS ', 3, 0, 0), (430, '300080', 'DRINKING WATER ', 3, 0, 0), (431, '300081', 'OFFICE COFFEE TEA EXPENSES ', 3, 0, 0), (432, '300082', 'MISCELLANEOUS EXPENSES ', 3, 0, 0), (433, '300083', 'PROJECT EXPENSES ', 3, 0, 0), (434, '300084', 'OTHER EXPENSES ', 3, 0, 0), (435, '300085', 'TAXATION CHARGE FOR THE YEAR ', 3, 0, 0), (436, '300086', 'WITHHOLDING TAX CHARGE ', 3, 0, 0), (437, '300087', 'INVESTMENT EXPENSES ', 3, 0, 0), (438, '300088', 'BAD DEBTS WRITTEN OFF / PROVISION ', 3, 0, 0), (439, '300089', 'MANAGER''S FEES ', 3, 0, 0), (1, '310000', 'Employee Account', 3, 0, 0), (440, '400000', 'STATUTORY RESERVE ', 2, 0, 0), (441, '400001', 'CAPITAL RESERVE ', 2, 0, 0), (442, '400002', 'LEGAL RESERVE ', 2, 0, 0), (443, '400003', 'GENERAL RESERVE ', 2, 0, 0), (444, '400004', 'PROFIT/LOSS ', 2, 0, 0), (445, '400005', 'LOSS FOR THE CURRENT YEAR ', 2, 0, 0), (446, '400006', 'ACCRUED EXPENSES ', 2, 0, 0), (447, '400007', 'COMMISSION PAYABLE ', 2, 0, 0), (448, '400008', 'DEPRECIATION ON FIXED ASSETS ', 2, 0, 0), (449, '400009', 'DEPRECIATION - COMPUTERS ', 2, 0, 0), (450, '400010', 'DEPRECIATION - FURNITURE & FIXTURES ', 2, 0, 0), (451, '400011', 'ACCM DEPN- COMP. HARDWARE & SOFTWRE ', 2, 0, 0), (452, '400012', 'ACCUM. DEPN- FURN. FIXTURES & EQPT. ', 2, 0, 0), (453, '400013', 'ACCUM. DEPN- MOTOR VEHICLES ', 2, 0, 0), (454, '400014', 'DEPRECIATION - OTHERS ', 2, 0, 0), (455, '400015', 'ACC. DEPN- COMPUTER HARDWARE-HO ', 2, 0, 0), (456, '400016', 'ACC. DEPN- FURNS. FIXTRES. EQPT-HO ', 2, 0, 0), (457, '400017', 'ACCUM. DEPN- MOTOR VEHICLES- H.O. ', 2, 0, 0), (458, '400018', 'CLOSING BALANCE ACCOUNT ', 2, 0, 0), (706, 'E101', 'Administrator', 3, 1, 0); -- -------------------------------------------------------- -- -- Table structure for table `finance_chart_type` -- CREATE TABLE IF NOT EXISTS `finance_chart_type` ( `chart_type_id` int(11) NOT NULL AUTO_INCREMENT, `chart_type_name` varchar(25) NOT NULL, `sort` tinyint(4) NOT NULL, `chart_group` int(11) NOT NULL, PRIMARY KEY (`chart_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ; -- -- Dumping data for table `finance_chart_type` -- INSERT INTO `finance_chart_type` (`chart_type_id`, `chart_type_name`, `sort`, `chart_group`) VALUES (1, 'Assets', 2, 4), (2, 'Liabilities', 5, 6), (3, 'Expense', 4, 3), (4, 'Income', 3, 1), (5, 'Fixed Assets', 1, 5); -- -------------------------------------------------------- -- -- Table structure for table `finance_cheque_info` -- CREATE TABLE IF NOT EXISTS `finance_cheque_info` ( `cheque_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `journal_id` int(10) unsigned NOT NULL, `cheque_no` varchar(15) NOT NULL, `cheque_date` date NOT NULL, `cheque_info` text NOT NULL, `chart_account_code` varchar(20) NOT NULL, PRIMARY KEY (`cheque_id`), UNIQUE KEY `cheque_no` (`cheque_no`,`chart_account_code`), KEY `journal_id` (`journal_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `finance_cheque_info` -- -- -------------------------------------------------------- -- -- Table structure for table `finance_currency` -- CREATE TABLE IF NOT EXISTS `finance_currency` ( `currency_id` int(11) unsigned NOT NULL AUTO_INCREMENT, `currency_name` varchar(100) NOT NULL, `currency_code` varchar(20) NOT NULL, `default_currency` int(11) NOT NULL, PRIMARY KEY (`currency_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -- Dumping data for table `finance_currency` -- INSERT INTO `finance_currency` (`currency_id`, `currency_name`, `currency_code`, `default_currency`) VALUES (1, 'Qatar Riyals', 'QAR', 0); -- -------------------------------------------------------- -- -- Table structure for table `finance_fiscal_year` -- CREATE TABLE IF NOT EXISTS `finance_fiscal_year` ( `fiscal_year_id` int(11) unsigned NOT NULL AUTO_INCREMENT, `fiscal_year_start` date NOT NULL, `fiscal_year_end` date NOT NULL, `closed` int(11) NOT NULL DEFAULT '0', `default` int(11) NOT NULL, PRIMARY KEY (`fiscal_year_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Dumping data for table `finance_fiscal_year` -- -- Table structure for table `finance_journal` -- CREATE TABLE IF NOT EXISTS `finance_journal` ( `journal_id` int(11) unsigned NOT NULL, `chart_account_code` varchar(20) NOT NULL, `debit` decimal(10,2) DEFAULT NULL, `credit` decimal(10,2) DEFAULT NULL, `description` text, `id` int(11) NOT NULL AUTO_INCREMENT, `system_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `fiscal_year_id` int(11) NOT NULL, `reconcile_date` date DEFAULT NULL, `allocation` decimal(10,2) NOT NULL, PRIMARY KEY (`id`), KEY `account_code` (`chart_account_code`), KEY `journal_id` (`journal_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `finance_journal` -- -- -- Table structure for table `finance_journal_refs` -- CREATE TABLE IF NOT EXISTS `finance_journal_refs` ( `journal_id` int(11) unsigned NOT NULL, `journal_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `description` text, `reference` varchar(20) NOT NULL, `currency_id` int(11) unsigned NOT NULL, `payment_type_id` int(11) unsigned NOT NULL, `transaction_id` int(11) unsigned NOT NULL, `posted` tinyint(1) NOT NULL DEFAULT '0', `tr_type` enum('post_dated_cheque','other') NOT NULL DEFAULT 'other', PRIMARY KEY (`journal_id`), UNIQUE KEY `reference` (`reference`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `finance_journal_refs` -- CREATE TABLE IF NOT EXISTS `finance_main_accounts` ( `account_main` varchar(50) NOT NULL, `chart_account_code` varchar(20) NOT NULL, PRIMARY KEY (`account_main`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `finance_payment_types` -- CREATE TABLE IF NOT EXISTS `finance_payment_types` ( `payment_type_id` int(11) unsigned NOT NULL AUTO_INCREMENT, `payment_type` varchar(45) NOT NULL, PRIMARY KEY (`payment_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; -- -- Dumping data for table `finance_payment_types` -- INSERT INTO `finance_payment_types` (`payment_type_id`, `payment_type`) VALUES (1, 'CASH'), (2, 'CHEQUE'), (3, 'Credit Card'), (4, 'Bank Transfer'); -- -------------------------------------------------------- -- -- Table structure for table `finance_refs` -- CREATE TABLE IF NOT EXISTS `finance_refs` ( `refs_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `journal_id` int(11) unsigned NOT NULL, `param_id` varchar(30) NOT NULL, `refs_type` varchar(20) NOT NULL, `param_table` varchar(30) NOT NULL, PRIMARY KEY (`refs_id`), KEY `journal_id` (`journal_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; -- -- Dumping data for table `finance_refs` -- -- -------------------------------------------------------- -- -- Table structure for table `finance_sub_account_settings` -- CREATE TABLE IF NOT EXISTS `finance_sub_account_settings` ( `sub_account_settings_id` int(11) NOT NULL DEFAULT '1', `employee` int(11) NOT NULL, `student` int(11) NOT NULL, `profitloss` int(11) NOT NULL, `salary` int(11) NOT NULL, `franchisee` int(11) NOT NULL, `bank_account` int(11) NOT NULL, `vendor` int(11) NOT NULL, `employee_fee_payable` int(11) NOT NULL, `allowance` int(11) NOT NULL, `deduction` int(11) NOT NULL, PRIMARY KEY (`sub_account_settings_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `finance_sub_account_settings` -- INSERT INTO `finance_sub_account_settings` (`sub_account_settings_id`, `employee`, `student`, `profitloss`, `salary`, `franchisee`, `bank_account`, `vendor`, `employee_fee_payable`, `allowance`, `deduction`) VALUES (1, 1, 5, 444, 350, 6, 700, 599, 713, 712, 713); -- -------------------------------------------------------- -- -- Table structure for table `finance_transaction_code` -- CREATE TABLE IF NOT EXISTS `finance_transaction_code` ( `transaction_id` int(11) unsigned NOT NULL AUTO_INCREMENT, `transaction_code` char(6) NOT NULL, `transaction_name` varchar(25) NOT NULL, PRIMARY KEY (`transaction_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ; -- -- Dumping data for table `finance_transaction_code` -- INSERT INTO `finance_transaction_code` (`transaction_id`, `transaction_code`, `transaction_name`) VALUES (1, 'PV', 'Payment Voucher'), (2, 'RV', 'Receipt Voucher'), (3, 'JV', 'Journal Voucher'), (5, 'CN', 'Credit Note'), (6, 'DN', 'Debit Note'), (4, 'BJ', 'Bank Journal'); -- -------------------------------------------------------- -- -- Table structure for table `finance_wire_info` -- CREATE TABLE IF NOT EXISTS `finance_wire_info` ( `wire_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `journal_id` int(10) unsigned NOT NULL, `wire_info` varchar(40) NOT NULL, PRIMARY KEY (`wire_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `grade` -- CREATE TABLE IF NOT EXISTS `grade` ( `grade_id` int(11) NOT NULL AUTO_INCREMENT, `grade_name` varchar(100) NOT NULL, PRIMARY KEY (`grade_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Table structure for table `holiday` -- CREATE TABLE IF NOT EXISTS `holiday` ( `holiday_id` int(11) NOT NULL AUTO_INCREMENT, `holiday_start_date` date NOT NULL, `holiday_end_date` date NOT NULL, `holiday_name` varchar(100) NOT NULL, PRIMARY KEY (`holiday_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `leave_allocation` -- CREATE TABLE IF NOT EXISTS `leave_allocation` ( `leave_allocation_id` int(11) NOT NULL, `employee_id` int(11) NOT NULL, `leave_allocation_year` year(4) NOT NULL, PRIMARY KEY (`leave_allocation_id`), KEY `employee_id` (`employee_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Table structure for table `leave_allocation_detail` -- CREATE TABLE IF NOT EXISTS `leave_allocation_detail` ( `leave_allocation_id` int(11) NOT NULL, `leave_type_id` int(11) NOT NULL, `leave_allocation_days` int(11) NOT NULL, KEY `leave_allocation_id` (`leave_allocation_id`), KEY `leave_type_id` (`leave_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Table structure for table `leave_application` -- CREATE TABLE IF NOT EXISTS `leave_application` ( `leave_application_id` int(11) NOT NULL, `employee_id` int(11) NOT NULL, `leave_type_id` int(11) NOT NULL, `from_date` date NOT NULL, `to_date` date NOT NULL, `remarks` text NOT NULL, `leave_status` varchar(100) NOT NULL DEFAULT 'Pending', PRIMARY KEY (`leave_application_id`), KEY `employee_id` (`employee_id`), KEY `leave_type_id` (`leave_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Table structure for table `leave_type` -- CREATE TABLE IF NOT EXISTS `leave_type` ( `leave_type_id` int(11) NOT NULL AUTO_INCREMENT, `leave_code` varchar(20) NOT NULL, `leave_type_name` varchar(100) NOT NULL, PRIMARY KEY (`leave_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Table structure for table `login_details` -- CREATE TABLE IF NOT EXISTS `login_details` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_name` varchar(30) DEFAULT NULL, `password` varchar(32) DEFAULT NULL, `login_time` datetime NOT NULL, `faillog_count` varchar(11) DEFAULT NULL, `user_id` varchar(11) DEFAULT NULL, `failing_time` datetime NOT NULL, `ip_address` varchar(16) NOT NULL, `status` varchar(8) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Table structure for table `master` -- CREATE TABLE IF NOT EXISTS `master` ( `master_id` int(200) NOT NULL AUTO_INCREMENT, `menu_id` int(11) NOT NULL, `creator_id` int(11) NOT NULL, `modifier_id` int(11) NOT NULL, `owner_id` int(11) NOT NULL, `created_time` datetime NOT NULL, `modified_time` datetime NOT NULL, `ip_address` varchar(50) NOT NULL, PRIMARY KEY (`master_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `master` (`master_id`, `menu_id`, `creator_id`, `modifier_id`, `owner_id`, `created_time`, `modified_time`, `ip_address`) VALUES (1, 16, 1, 0, 1, '2014-06-22 12:29:32', '0000-00-00 00:00:00', ''); -- -- Table structure for table `medical` -- CREATE TABLE IF NOT EXISTS `medical` ( `medical_id` int(11) NOT NULL, `medical_student_id` int(11) NOT NULL, `medical_date` date NOT NULL, `medical_health_status` text NOT NULL, `medical_medication` text NOT NULL, `medical_special_requirements` text NOT NULL, `medical_notes` text NOT NULL, PRIMARY KEY (`medical_id`), KEY `medical_student_id` (`medical_student_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- -- Table structure for table `menu` -- CREATE TABLE IF NOT EXISTS `menu` ( `menu_id` int(11) NOT NULL AUTO_INCREMENT, `module_id` int(11) NOT NULL, `parent_menu_id` int(11) NOT NULL DEFAULT '0', `caption` varchar(100) NOT NULL, `target` varchar(100) NOT NULL, `sort` int(11) NOT NULL, `active` int(11) NOT NULL, PRIMARY KEY (`menu_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=158 ; -- -- Dumping data for table `menu` -- INSERT INTO `menu` (`menu_id`, `module_id`, `parent_menu_id`, `caption`, `target`, `sort`, `active`) VALUES (1, 2, 0, 'Class Name', 'master/manage_class_name', 1, 1), (2, 2, 0, 'Terms', 'master/manage_term', 2, 1), (3, 2, 0, 'Fee Master', 'master/manage_fee_master', 3, 1), (4, 2, 0, 'No of Days', 'master/manage_no_sessions', 4, 1), (5, 2, 0, 'File Type', 'master/manage_file_type', 6, 1), (6, 10, 0, 'Nursery', 'master/manage_nursery', 9, 1), (7, 3, 0, 'Students', 'student/manage_student', 1, 1), (8, 3, 0, 'Parents', 'student/manage_parents', 2, 1), (9, 3, 0, 'Class Allocation', 'student/manage_student_class', 3, 1), (10, 3, 0, 'Attendance', 'student/manage_attendance', 5, 1), (14, 3, 0, 'Fees', 'student/manage_fees', 8, 1), (15, 7, 75, 'Teachers', 'hr/manage_teachers', 1, 0), (16, 7, 74, 'Employees', 'hr/manage_employee', 1, 1), (17, 7, 75, 'Batch Allocation & Class', 'hr/manage_staff_batch', 3, 0), (18, 7, 75, 'Time Table', 'hr/manage_staff_timetable', 2, 0), (19, 7, 75, 'Attendance', 'hr/manage_staff_attendance', 4, 0), (27, 7, 74, 'Leave Allocation', 'hr/manage_leave_allocation', 2, 1), (29, 7, 74, 'Leave Application', 'hr/manage_leave_application', 3, 1), (30, 7, 73, 'Employee-Salary Setting', 'hr/manage_employee_salary_setting', 1, 1), (31, 7, 73, 'Salary Payment', 'hr/manage_salary_payment', 2, 1), (32, 7, 73, 'Pay Slip', 'hr/manage_pay_slip', 3, 1), (33, 7, 72, 'Designation', 'hr/manage_designation', 11, 1), (34, 7, 72, 'Department', 'hr/manage_department', 12, 1), (35, 7, 72, 'Grade', 'hr/manage_grade', 13, 1), (36, 7, 72, 'Status', 'hr/manage_status', 14, 1), (37, 7, 72, 'Allowance & Deduction', 'hr/manage_allowdeduc', 15, 1), (38, 7, 72, 'Leave Type', 'hr/manage_leave_type', 16, 1), (39, 7, 72, 'Holidays', 'hr/manage_holiday', 17, 1), (42, 10, 0, 'User', 'settings/manage_user', 1, 1), (43, 10, 0, 'Profile and Access rights', 'settings/manage_profiles', 2, 1), (44, 10, 0, 'Alerts', 'settings/manage_alerts', 3, 1), (72, 7, 0, 'HR MASTER', 'hr/manage_designation', 4, 1), (73, 7, 0, 'PAYROLL', 'hr/manage_employee_salary_setting', 3, 1), (74, 7, 0, 'EMPLOYEES', 'hr/manage_employee', 2, 1), (75, 7, 0, 'TEACHING STAFF', 'hr/manage_teachers', 1, 0), (77, 9, 0, 'Student Reports', 'report/manage_student_report', 1, 1), (78, 9, 0, 'HR Reports', 'report/manage_hr_report', 2, 1), (80, 2, 0, 'Summer Camp', 'master/manage_summer_camp', 8, 0), (86, 5, 0, 'Send Emails', 'email/manage_send_email', 1, 1), (87, 5, 0, 'Email Templates', 'email/manage_email_templte', 2, 1), (88, 5, 0, 'Email Reports', 'email/manage_email_reports', 3, 1), (89, 5, 0, 'Email Settings', 'email/manage_email_settings', 4, 1), (90, 6, 0, 'Bulk SMS', 'sms/manage_bulk_sms', 2, 1), (91, 6, 0, 'SMS Templates', 'sms/manage_sms_template', 3, 1), (92, 6, 0, 'SMS Drafts', 'sms/manage_sms_draft', 4, 1), (93, 6, 0, 'SMS Reports', 'sms/manage_sms_reports', 5, 1), (94, 6, 0, 'SMS Settings', 'sms/manage_sms_settings', 6, 1), (95, 6, 0, 'Send SMS', 'sms/manage_send_sms', 1, 1), (96, 3, 0, 'Cancellation', 'student/manage_cancellation', 9, 1), (100, 10, 0, 'Alert Master', 'settings/manage_alert_master', 4, 1), (103, 3, 0, 'Deactivation', 'student/manage_deactivate', 10, 1), (106, 2, 0, 'Nationalty', 'master/manage_nationality', 5, 1), (107, 4, 0, 'Nursery Calendar', 'calendar/manage_calendar', 1, 1), (108, 10, 0, 'Academic Year', 'master/manage_academic_year', 7, 1), (109, 2, 0, 'Sessions', 'master/manage_session', 9, 1), (110, 4, 0, 'Event', 'calendar/manage_event', 2, 1), (111, 8, 0, 'TRANSACTIONS', 'accounting/manage_debit_note', 1, 1), (112, 8, 111, 'Debit Note', 'accounting/manage_debit_note', 1, 0), (113, 8, 111, 'Credit Note', 'accounting/manage_credit_note', 2, 0), (114, 8, 111, 'Student Payment Receipts', 'accounting/manage_student_payment', 3, 1), (115, 8, 111, 'Receipt Voucher', 'accounting/manage_receipt_voucher', 4, 1), (116, 8, 111, 'Bank Journal', 'accounting/manage_bank_journal', 5, 1), (117, 8, 111, 'Journal Voucher', 'accounting/manage_journal_voucher', 6, 1), (118, 8, 111, 'Auto Journal', 'accounting/manage_auto_journal', 7, 1), (119, 8, 0, 'REPORTS', 'accounting/manage_trial_balance_report', 2, 1), (120, 8, 119, 'Trial Balance report', 'accounting/trial_balance_report', 1, 1), (121, 8, 119, 'Sub A/c Trial Balance', 'accounting/sub_acc_trial_balance_report', 2, 1), (122, 8, 119, 'Sub A/c Ledger', 'accounting/sub_acc_ledger', 4, 1), (123, 8, 119, 'Statement of Account', 'accounting/account_statement', 4, 1), (124, 8, 119, 'Aging Summary', 'accounting/manage_aging_summary', 5, 0), (125, 8, 119, 'Aging report', 'accounting/manage_aging_report', 6, 0), (126, 8, 0, 'MASTERS', 'accounting/manage_transaction_code', 3, 1), (127, 8, 126, 'Transaction Code', 'accounting/manage_transaction_code', 1, 1), (128, 8, 126, 'Bank Accounts', 'accounting/manage_bank_account', 2, 1), (129, 8, 126, 'Sub Accounts', 'accounting/manage_sub_account', 3, 1), (130, 8, 126, 'Main Accounts', 'accounting/manage_main_account', 4, 1), (131, 8, 0, 'GL SETTINGS', 'accounting/manage_currency', 4, 1), (132, 8, 131, 'Currency', 'accounting/manage_currency', 1, 1), (133, 8, 131, 'Fiscal Year', 'accounting/manage_fiscal_year', 2, 1), (134, 8, 131, 'Sub A/c Settings', 'accounting/manage_sub_ac_settings', 3, 1), (135, 8, 131, 'Main Account Setting', 'accounting/manage_main_account_setting', 4, 0), (136, 8, 111, 'Payment Voucher', 'accounting/manage_payment_voucher', 3, 1), (137, 8, 111, 'Reconciliation', 'accounting/manage_reconciliation', 8, 1), (138, 8, 126, 'Expense Master', 'master/manage_expense_type', 5, 1), (139, 8, 111, 'Cost Center', 'accounting/manage_cost_center', 2, 1), (140, 8, 111, 'Post Dated Cheque', 'accounting/manage_post_dated_cheque', 9, 1), (141, 10, 0, 'Prefix Code', 'settings/manage_prefix_code', 7, 1), (142, 8, 126, 'Account Type', 'accounting/manage_account_type', 5, 1), (143, 3, 0, 'Assessment', 'student/manage_assessment', 8, 1), (144, 2, 0, 'Assessment', 'master/manage_assessment_master', 8, 1), (145, 11, 0, 'Grading Levels', 'examination/manage_grade_level', 4, 1), (146, 11, 0, 'Examination Master', 'examination/manage_exam_master', 3, 1), (147, 11, 0, 'Subjects', 'examination/manage_subject', 2, 1), (148, 11, 0, 'Evaluation', 'examination/manage_evaluation', 1, 1), (149, 8, 119, 'General Ledger', 'accounting/general_ledger', 3, 1), (150, 8, 119, 'Balance Sheet', 'accounting/balance_sheet', 9, 1), (151, 8, 119, 'Profit & Loss', 'accounting/profit_loss', 10, 1), (152, 8, 119, 'Post Dated Cheque Report', 'accounting/pdc_report', 6, 1), (153, 11, 0, 'Semester Report', 'examination/manage_semester_report', 5, 1), (154, 11, 0, 'Overall Report', 'examination/manage_over_all_report', 6, 1), (155, 2, 0, 'Effort/Behavior', 'master/manage_behavior', 12, 1), (156, 3, 0, 'Rollover', 'student/manage_roll_over', 9, 1), (157, 3, 0, 'Daily Report', 'student/manage_extra', 11, 1); -- -------------------------------------------------------- -- -- Table structure for table `module` -- CREATE TABLE IF NOT EXISTS `module` ( `module_id` int(11) NOT NULL AUTO_INCREMENT, `module_name` varchar(100) NOT NULL, `module_title` varchar(100) NOT NULL, `module_icon` varchar(30) NOT NULL, `sort` int(11) NOT NULL, `active` tinyint(4) NOT NULL, PRIMARY KEY (`module_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=12 ; -- -- Dumping data for table `module` -- INSERT INTO `module` (`module_id`, `module_name`, `module_title`, `module_icon`, `sort`, `active`) VALUES (1, 'home', 'Home', 'home.png', 1, 1), (2, 'master', 'Master', 'master.png', 2, 1), (3, 'student', 'Student', 'customer.png', 3, 1), (4, 'calendar', 'Calendar', 'project.png', 4, 1), (5, 'email', 'Email', 'email_icon.png', 6, 1), (6, 'sms', 'SMS', 'sms.png', 7, 1), (7, 'hr', 'HR', 'hr.png', 8, 1), (8, 'accounting', 'Accounting', 'accounts.png', 9, 1), (9, 'report', 'Reports', 'master.png', 10, 1), (10, 'settings', 'Settings', 'settings.png', 11, 1), (11, 'examination', 'Examination', 'project.png', 5, 1); -- -------------------------------------------------------- -- -- Table structure for table `nationality` -- CREATE TABLE IF NOT EXISTS `nationality` ( `nationality_id` int(11) NOT NULL AUTO_INCREMENT, `nationality_name` varchar(50) NOT NULL, `nationality_type` enum('Foreign','Arabic','Qatari') NOT NULL, PRIMARY KEY (`nationality_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ; -- -- Dumping data for table `nationality` -- INSERT INTO `nationality` (`nationality_id`, `nationality_name`, `nationality_type`) VALUES (1, 'Indian', 'Foreign'), (2, 'Bristish', 'Foreign'), (3, 'Qatari', 'Qatari'), (4, 'UAE', 'Qatari'), (5, 'American', 'Foreign'), (6, 'Chineese', 'Foreign'), (7, 'Pakistan', 'Foreign'), (8, 'Bangladesh', 'Foreign'), (9, 'Sri Lankan', 'Foreign'), (10, 'African', 'Foreign'), (11, 'Brazilian', 'Foreign'), (12, 'Lebanese', 'Arabic'); -- -------------------------------------------------------- -- -- Table structure for table `no_sessions` -- CREATE TABLE IF NOT EXISTS `no_sessions` ( `no_sessions_id` int(11) NOT NULL AUTO_INCREMENT, `no_sessions` int(11) NOT NULL, PRIMARY KEY (`no_sessions_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ; -- -- Dumping data for table `no_sessions` -- INSERT INTO `no_sessions` (`no_sessions_id`, `no_sessions`) VALUES (3, 3), (4, 4), (5, 5), (6, 6), (7, 7); -- -------------------------------------------------------- -- -- Table structure for table `nursery` -- CREATE TABLE IF NOT EXISTS `nursery` ( `nursery_id` int(11) NOT NULL AUTO_INCREMENT, `nursery_code` int(11) NOT NULL, `nursery_name` varchar(50) NOT NULL, `city` varchar(50) NOT NULL, `country` varchar(50) NOT NULL, `address` text NOT NULL, `municipality` varchar(100) NOT NULL, `po_code` varchar(20) NOT NULL, `contact_no` varchar(20) NOT NULL, `email` varchar(128) NOT NULL, `fax` varchar(128) NOT NULL, `logo` varchar(200) NOT NULL, `website` varchar(50) NOT NULL, `age_limit` int(11) NOT NULL, `curriculum` varchar(50) NOT NULL, `theme` varchar(20) NOT NULL, PRIMARY KEY (`nursery_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -- Dumping data for table `nursery` -- INSERT INTO `nursery` (`nursery_id`, `nursery_code`, `nursery_name`, `city`, `country`, `address`, `municipality`, `po_code`, `contact_no`, `email`, `fax`, `logo`, `website`, `age_limit`, `curriculum`, `theme`) VALUES (1, 1, 'Savoy Education Center', 'Doha', 'Qatar', 'P.O. Box 32607 \nDoha, Qatar', 'Doha', '', '', '', '', 'logo.jpg', '', 7, '', 'blue'); -- -------------------------------------------------------- -- -- Table structure for table `nursery_file` -- CREATE TABLE IF NOT EXISTS `nursery_file` ( `file_id` int(11) NOT NULL AUTO_INCREMENT, `file_name` varchar(100) NOT NULL, `file_location` varchar(100) NOT NULL, PRIMARY KEY (`file_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `nutrition` -- CREATE TABLE IF NOT EXISTS `nutrition` ( `nutrition_id` int(11) NOT NULL, `nutrition_student_id` int(11) NOT NULL, `nutrition_date` date NOT NULL, `nutrition_teacher_id` int(11) NOT NULL, `nutrition_arrived` time NOT NULL, `nutrition_departed` time NOT NULL, `nutrition_food_dislike` text NOT NULL, `nutrition_play` text NOT NULL, `nutrition_requirement` text NOT NULL, PRIMARY KEY (`nutrition_id`), KEY `nutrition_student_id` (`nutrition_student_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `nutrition_bottle` -- CREATE TABLE IF NOT EXISTS `nutrition_bottle` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nutrition_id` int(11) NOT NULL, `nutrition_bottle_time` time NOT NULL, `nutrition_bottle_amount` varchar(20) NOT NULL, PRIMARY KEY (`id`), KEY `nutrition_id` (`nutrition_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `nutrition_bottle` -- -- -------------------------------------------------------- -- -- Table structure for table `nutrition_food` -- CREATE TABLE IF NOT EXISTS `nutrition_food` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nutrition_id` int(11) NOT NULL, `nutrition_food_time` time NOT NULL, `nutrition_food_type` enum('AM','Lunch','PM') NOT NULL, `nutrition_food_status` enum('Little','Normal','V Good') NOT NULL, PRIMARY KEY (`id`), KEY `nutrition_id` (`nutrition_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `nutrition_nappies` -- CREATE TABLE IF NOT EXISTS `nutrition_nappies` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nutrition_id` int(11) NOT NULL, `nutrition_nappies_time` time NOT NULL, `nutrition_nappies_status` enum('Dry','Wet','Soiled') NOT NULL, `nutrition_nappies_cream` enum('Yes','No') NOT NULL, PRIMARY KEY (`id`), KEY `nutrition_id` (`nutrition_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Table structure for table `nutrition_sleep` -- CREATE TABLE IF NOT EXISTS `nutrition_sleep` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nutrition_id` int(11) NOT NULL, `nutrition_sleep_from` time NOT NULL, `nutrition_sleep_to` time NOT NULL, `nutrition_sleep_type` enum('AM','PM') NOT NULL, PRIMARY KEY (`id`), KEY `nutrition_id` (`nutrition_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Table structure for table `parent` -- CREATE TABLE IF NOT EXISTS `parent` ( `parent_id` int(10) NOT NULL, `father_name` varchar(100) NOT NULL, `father_qatar_id_no` varchar(50) NOT NULL, `father_occupation` varchar(50) NOT NULL, `father_mobile_no` varchar(25) NOT NULL, `father_ofc_no` varchar(25) NOT NULL, `father_residence_no` varchar(25) NOT NULL, `father_email` varchar(25) NOT NULL, `mother_name` varchar(200) NOT NULL, `mother_qatar_id_no` varchar(30) NOT NULL, `mother_occupation` varchar(50) NOT NULL, `mother_mobile_no` varchar(25) NOT NULL, `mother_ofc_no` varchar(25) NOT NULL, `mother_residence_no` varchar(25) NOT NULL, `mother_email` varchar(25) NOT NULL, `emergency_contact_no` varchar(25) NOT NULL, PRIMARY KEY (`parent_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Table structure for table `parent_student` -- CREATE TABLE IF NOT EXISTS `parent_student` ( `id` int(11) NOT NULL AUTO_INCREMENT, `parent_id` int(11) NOT NULL, `student_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `parent_id` (`parent_id`), KEY `student_id` (`student_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ; -- -- Table structure for table `payment_methods` -- CREATE TABLE IF NOT EXISTS `payment_methods` ( `id` int(10) NOT NULL AUTO_INCREMENT, `method` varchar(15) NOT NULL, `methods` varchar(50) NOT NULL, `sort` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; -- -- Dumping data for table `payment_methods` -- INSERT INTO `payment_methods` (`id`, `method`, `methods`, `sort`) VALUES (1, 'cash', 'Cash', 1), (3, 'bank', 'Bank Transfer', 4), (2, 'cheque', 'Cheque', 2), (4, 'credit', 'Credit', 3); -- -------------------------------------------------------- -- -- Table structure for table `physical` -- CREATE TABLE IF NOT EXISTS `physical` ( `physical_id` int(11) NOT NULL, `physical_student_id` int(11) NOT NULL, `physical_date` date NOT NULL, `physical_status` enum('Happy','Content','Clingy','Quiet') NOT NULL, `physical_nappies` text NOT NULL, `physical_essentials` varchar(100) NOT NULL, `physical_essentials_other` text NOT NULL, `physical_learning` text NOT NULL, `physical_meal_comments` text NOT NULL, PRIMARY KEY (`physical_id`), KEY `physical_student_id` (`physical_student_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Table structure for table `prefix` -- CREATE TABLE IF NOT EXISTS `prefix` ( `id` int(11) NOT NULL AUTO_INCREMENT, `prefix_code` varchar(100) NOT NULL, `starting_no` int(11) NOT NULL, `prefix_name` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; -- -- Dumping data for table `prefix` -- INSERT INTO `prefix` (`id`, `prefix_code`, `starting_no`, `prefix_name`) VALUES (1, 'S', 100, 'Student'), (2, 'E', 100, 'Employee'); -- -- Table structure for table `reminder` -- CREATE TABLE IF NOT EXISTS `reminder` ( `reminder_id` int(10) NOT NULL, `reminder_date` date NOT NULL, `remind_before` int(10) NOT NULL, `reminder_subject` varchar(100) NOT NULL, `reminder_description` text NOT NULL, PRIMARY KEY (`reminder_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Table structure for table `report` -- CREATE TABLE IF NOT EXISTS `report` ( `report_id` int(11) NOT NULL AUTO_INCREMENT, `report_label` varchar(200) NOT NULL, `report_target` varchar(200) NOT NULL, `report_sort` int(11) NOT NULL, `report_module_id` int(11) NOT NULL, PRIMARY KEY (`report_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=25 ; -- -- Dumping data for table `report` -- INSERT INTO `report` (`report_id`, `report_label`, `report_target`, `report_sort`, `report_module_id`) VALUES (1, 'Assessment Report', 'addformdisplay(''view_test_report'',''report'');', 3, 77), (2, 'Parents Report', 'addformdisplay(''view_parents_report'',''report'');', 4, 77), (5, 'Class Allocation Report', 'addformdisplay(''view_class_allocation_report'',''report'');', 5, 77), (7, 'Student Details Report', 'addformdisplay(''view_student_report'',''report'');', 1, 77), (8, 'Attendance Report', 'addformdisplay(''view_attendance_report'',''report'');', 2, 77), (9, 'Cancellation Report', 'addformdisplay(''view_cancellation_report'',''report'');', 7, 77), (10, 'Employee Details Report', 'addformdisplay(''view_employee_report'',''report'');', 1, 78), (11, 'Leave Report', 'addformdisplay(''view_leave_report'',''report'');', 2, 78), (12, 'Salary Report', 'addformdisplay(''view_salary_report'',''report'');', 3, 78), (18, 'Fee Report', 'addformdisplay(''view_fee_report'',''report'');', 7, 77), (19, 'Pending Fee Report', 'addformdisplay(''view_fee_pending_report'',''report'');', 8, 77), (23, 'Personnel Summary Report', 'addformdisplay(''view_personal_summary_report'',''report'');', 4, 78), (24, 'Monthly Statistics Report', 'addformdisplay(''view_monthly_statistics_report'',''report'');', 8, 77); -- -- Table structure for table `rollover` -- CREATE TABLE IF NOT EXISTS `rollover` ( `rollover_id` int(11) NOT NULL, `current_class_id` int(11) NOT NULL, `allocation_date` date NOT NULL, `rollover_class_id` int(11) NOT NULL, PRIMARY KEY (`rollover_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Table structure for table `rollover_students` -- CREATE TABLE IF NOT EXISTS `rollover_students` ( `id` int(11) NOT NULL AUTO_INCREMENT, `rollover_id` int(11) NOT NULL, `student_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `rollover_id` (`rollover_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -- Table structure for table `salarybank` -- CREATE TABLE IF NOT EXISTS `salarybank` ( `id` int(11) NOT NULL AUTO_INCREMENT, `sal_id` int(11) NOT NULL, `ch_dep_no` varchar(100) NOT NULL, `bank_name` varchar(50) NOT NULL, `acc_no` varchar(20) NOT NULL, `branch_name` varchar(50) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `sal_id` (`sal_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Table structure for table `sendsms` -- CREATE TABLE IF NOT EXISTS `sendsms` ( `id` int(11) NOT NULL AUTO_INCREMENT, `sms_id` int(11) NOT NULL, `sender_id` varchar(10) NOT NULL, `message` text NOT NULL, `receipent_name` varchar(100) NOT NULL, `receipent_type` varchar(50) NOT NULL, `numbers` text NOT NULL, `status` varchar(10) NOT NULL, `datetime` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Table structure for table `session` -- CREATE TABLE IF NOT EXISTS `session` ( `session_id` int(11) NOT NULL AUTO_INCREMENT, `session_name` varchar(100) NOT NULL, `session_start` time NOT NULL, `session_end` time NOT NULL, PRIMARY KEY (`session_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ; -- -- Table structure for table `smsreport` -- CREATE TABLE IF NOT EXISTS `smsreport` ( `sms_id` int(11) NOT NULL, `sms_contents` text NOT NULL, `sms_date` date NOT NULL, `sender_id` varchar(10) NOT NULL, PRIMARY KEY (`sms_id`), KEY `sms_id` (`sms_id`), KEY `sms_id_2` (`sms_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Table structure for table `smssettings` -- CREATE TABLE IF NOT EXISTS `smssettings` ( `username` varchar(30) NOT NULL, `password` varchar(100) NOT NULL, `domain` varchar(200) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `smssettings` -- INSERT INTO `smssettings` (`username`, `password`, `domain`) VALUES ('mre-savoy', 'savoy123', 'http://121.241.242.114:8080/bulksms/bulksms'); -- -------------------------------------------------------- -- -- Table structure for table `status` -- CREATE TABLE IF NOT EXISTS `status` ( `status_id` int(11) NOT NULL AUTO_INCREMENT, `status_name` varchar(100) NOT NULL, PRIMARY KEY (`status_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; -- -- Dumping data for table `status` -- INSERT INTO `status` (`status_id`, `status_name`) VALUES (1, 'Active'), (2, 'Inactive'), (3, 'Present'); -- -- Table structure for table `student` -- CREATE TABLE IF NOT EXISTS `student` ( `student_id` int(11) NOT NULL AUTO_INCREMENT, `reg_no` varchar(30) NOT NULL, `first_name` varchar(30) NOT NULL, `last_name` varchar(30) NOT NULL, `gender` enum('Female','Male') NOT NULL, `dob` date NOT NULL, `nationality_id` int(11) NOT NULL, `grade_name` varchar(250) NOT NULL, `qatar_id` varchar(100) NOT NULL, `blood_group` varchar(20) NOT NULL, `previous_medical_illness` varchar(100) NOT NULL, `address` text NOT NULL, `photo` varchar(200) NOT NULL, `admission_date` date NOT NULL, `mobile_no` varchar(20) NOT NULL, `languages` text NOT NULL, PRIMARY KEY (`student_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Table structure for table `student_address` -- CREATE TABLE IF NOT EXISTS `student_address` ( `id` int(11) NOT NULL AUTO_INCREMENT, `student_id` int(10) NOT NULL, `address` mediumtext NOT NULL, `state` varchar(100) NOT NULL, `country` varchar(20) NOT NULL, PRIMARY KEY (`id`), KEY `student_id` (`student_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Table structure for table `student_assessment` -- CREATE TABLE IF NOT EXISTS `student_assessment` ( `assessment_id` int(11) NOT NULL AUTO_INCREMENT, `class_name_id` int(11) NOT NULL, `assessment_master_id` int(11) NOT NULL, `assessment_date` date NOT NULL, `remarks` text NOT NULL, PRIMARY KEY (`assessment_id`), KEY `class_name_id` (`class_name_id`), KEY `assessment_master_id` (`assessment_master_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Table structure for table `student_assessment_details` -- CREATE TABLE IF NOT EXISTS `student_assessment_details` ( `id` int(11) NOT NULL AUTO_INCREMENT, `student_assessment_id` int(11) NOT NULL, `remarks` text NOT NULL, `student_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `performance_id` (`student_assessment_id`), KEY `student_id` (`student_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Table structure for table `student_assessment_files` -- CREATE TABLE IF NOT EXISTS `student_assessment_files` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(100) CHARACTER SET utf8 NOT NULL, `student_assessment_detail_id` int(11) NOT NULL, `student_id` int(11) NOT NULL, `file` varchar(100) NOT NULL, PRIMARY KEY (`id`), KEY `student_assessment_detail_id` (`student_assessment_detail_id`), KEY `student_id` (`student_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Table structure for table `student_attendance` -- CREATE TABLE IF NOT EXISTS `student_attendance` ( `id` int(11) NOT NULL, `student_id` int(11) NOT NULL, `date` date NOT NULL, `reason` text NOT NULL, `remark` text NOT NULL, KEY `id` (`id`), KEY `student_id` (`student_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Table structure for table `student_cancellation` -- CREATE TABLE IF NOT EXISTS `student_cancellation` ( `cancellation_id` int(11) NOT NULL, `student_class_id` int(11) NOT NULL, `student_id` int(11) NOT NULL, `refund_amount` double NOT NULL, `cancellation_date` date NOT NULL, `remarks` text NOT NULL, `journal_id` int(11) NOT NULL, PRIMARY KEY (`cancellation_id`), KEY `student_id` (`student_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Triggers `student_cancellation` -- DROP TRIGGER IF EXISTS `update_student_cancelled`; DELIMITER // CREATE TRIGGER `update_student_cancelled` AFTER DELETE ON `student_cancellation` FOR EACH ROW BEGIN UPDATE student_class SET cancelled = 0 WHERE student_id = old.student_id; END // DELIMITER ; -- -- Table structure for table `student_class` -- CREATE TABLE IF NOT EXISTS `student_class` ( `student_class_id` int(11) NOT NULL AUTO_INCREMENT, `class_name_id` int(11) NOT NULL, `term_id` int(11) NOT NULL, `student_id` int(11) NOT NULL, `no_of_days` varchar(10) NOT NULL, `class_allocation_date` date NOT NULL, `cancelled` int(1) NOT NULL DEFAULT '0', PRIMARY KEY (`student_class_id`), KEY `class_name_id` (`class_name_id`), KEY `student_id` (`student_id`), KEY `term_id` (`term_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Table structure for table `student_class_details` -- CREATE TABLE IF NOT EXISTS `student_class_details` ( `id` int(11) NOT NULL AUTO_INCREMENT, `student_class_id` int(11) NOT NULL, `allocation_date` date NOT NULL, `remarks` text NOT NULL, PRIMARY KEY (`id`), KEY `student_batch_id` (`student_class_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Table structure for table `student_class_fee` -- CREATE TABLE IF NOT EXISTS `student_class_fee` ( `student_class_fee_id` int(11) NOT NULL AUTO_INCREMENT, `student_class_id` int(11) NOT NULL, `fee_particular_id` int(11) NOT NULL, `payment_type` enum('monthly','term') NOT NULL, `fee_amount` double NOT NULL, PRIMARY KEY (`student_class_fee_id`), KEY `student_class_id` (`student_class_id`), KEY `fee_particular_id` (`fee_particular_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Table structure for table `student_deactivate` -- CREATE TABLE IF NOT EXISTS `student_deactivate` ( `deactivate_id` int(11) NOT NULL, `student_class_id` int(11) NOT NULL, `student_id` int(11) NOT NULL, `start_date` date NOT NULL, `end_date` date NOT NULL, `remarks` text NOT NULL, `activate` tinyint(4) NOT NULL DEFAULT '0', `activate_date` date NOT NULL, PRIMARY KEY (`deactivate_id`), KEY `student_id` (`student_id`), KEY `batch_id` (`student_class_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Table structure for table `student_effort_details` -- CREATE TABLE IF NOT EXISTS `student_effort_details` ( `student_effort_id` int(11) NOT NULL AUTO_INCREMENT, `student_id` int(11) NOT NULL, `academic_year_id` int(11) NOT NULL, `subject_id` int(11) NOT NULL, `effort_id` int(11) NOT NULL, PRIMARY KEY (`student_effort_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Table structure for table `student_monthly_fee` -- CREATE TABLE IF NOT EXISTS `student_monthly_fee` ( `student_monthly_fee_id` int(11) NOT NULL AUTO_INCREMENT, `student_class_fee_id` int(11) NOT NULL, `fee_wef_date` date NOT NULL, `amount` double NOT NULL, PRIMARY KEY (`student_monthly_fee_id`), KEY `student_class_fee_id` (`student_class_fee_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Table structure for table `student_other_info` -- CREATE TABLE IF NOT EXISTS `student_other_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, `student_id` int(11) NOT NULL, `community` varchar(200) NOT NULL, `ipp_no` varchar(100) NOT NULL, `tc` varchar(100) NOT NULL, `school_previous` varchar(100) NOT NULL, `illness` varchar(100) NOT NULL, `allergy` varchar(100) NOT NULL, `transport` varchar(100) NOT NULL, `computer` varchar(30) NOT NULL, `internet` varchar(30) NOT NULL, `printer` varchar(30) NOT NULL, PRIMARY KEY (`id`), KEY `student_id` (`student_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Table structure for table `student_semester_details` -- CREATE TABLE IF NOT EXISTS `student_semester_details` ( `student_sem_id` int(11) NOT NULL AUTO_INCREMENT, `student_id` int(11) NOT NULL, `academic_year_id` int(11) NOT NULL, `exam_master_id` int(11) NOT NULL, `no_sessions_per_sem` int(11) NOT NULL, `no_sessions_absent` int(11) NOT NULL, `no_sessions_late` int(11) NOT NULL, PRIMARY KEY (`student_sem_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Table structure for table `subject` -- CREATE TABLE IF NOT EXISTS `subject` ( `subject_id` int(11) NOT NULL AUTO_INCREMENT, `class_room_id` int(11) NOT NULL, `subject_code` varchar(50) NOT NULL, `subject_name` varchar(50) NOT NULL, `monthly_total_marks` int(11) NOT NULL, `sem_total_marks` int(11) NOT NULL, PRIMARY KEY (`subject_id`), KEY `class_room_id` (`class_room_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Table structure for table `teacher` -- CREATE TABLE IF NOT EXISTS `teacher` ( `teacher_id` int(10) NOT NULL, `teacher_no` varchar(10) NOT NULL, `first_name` varchar(50) NOT NULL, `last_name` varchar(50) NOT NULL, `gender` varchar(7) NOT NULL, `dob` date NOT NULL, `email` varchar(50) NOT NULL, `contact_no` varchar(25) NOT NULL, `mobile_no` varchar(12) NOT NULL, `passport_no` varchar(20) NOT NULL, `date_of_join` date NOT NULL, `relieving_date` date NOT NULL, PRIMARY KEY (`teacher_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Table structure for table `template` -- CREATE TABLE IF NOT EXISTS `template` ( `template_id` int(10) NOT NULL AUTO_INCREMENT, `template_title` varchar(50) NOT NULL, `content` text NOT NULL, PRIMARY KEY (`template_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Table structure for table `term` -- CREATE TABLE IF NOT EXISTS `term` ( `term_id` int(11) NOT NULL AUTO_INCREMENT, `term_name` varchar(50) NOT NULL, PRIMARY KEY (`term_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Table structure for table `term_academic_details` -- CREATE TABLE IF NOT EXISTS `term_academic_details` ( `id` int(11) NOT NULL AUTO_INCREMENT, `term_id` int(11) NOT NULL, `academic_year_id` int(11) NOT NULL, `term_start_date` date NOT NULL, `term_end_date` date NOT NULL, PRIMARY KEY (`id`), KEY `academic_year_id` (`academic_year_id`), KEY `term_id` (`term_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Table structure for table `timetable` -- CREATE TABLE IF NOT EXISTS `timetable` ( `timetable_id` int(11) NOT NULL, `batch_id` int(11) NOT NULL, `class_id` int(11) NOT NULL, `subject_id` int(11) NOT NULL, `period_no` varchar(20) NOT NULL, `day` varchar(20) NOT NULL, `staff_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Table structure for table `user` -- CREATE TABLE IF NOT EXISTS `user` ( `user_id` int(11) NOT NULL AUTO_INCREMENT, `user_name` varchar(50) NOT NULL, `password` varchar(200) NOT NULL, `employee_id` int(11) NOT NULL, `user_modules` text NOT NULL, `modules_permission` text NOT NULL, `home_page` text NOT NULL, PRIMARY KEY (`user_id`), UNIQUE KEY `user_name` (`user_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -- Dumping data for table `user` -- INSERT INTO `user` (`user_id`, `user_name`, `password`, `employee_id`, `user_modules`, `modules_permission`, `home_page`) VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 1, '1,2,3,4,106,5,144,109,155,7,8,9,10,143,14,96,156,103,157,107,110,148,147,146,145,153,154,86,87,88,89,95,90,91,92,93,94,16,30,27,31,74,73,29,32,72,33,34,35,36,37,38,39,132,127,120,111,119,139,133,128,121,126,114,136,134,129,149,115,131,130,123,122,138,142,116,152,117,118,137,150,140,151,77,78,42,43,44,100,108,141,6,', '15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,', '1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,'); -- -- Table structure for table `user_profile` -- CREATE TABLE IF NOT EXISTS `user_profile` ( `profile_id` int(11) NOT NULL, `designation_id` int(11) NOT NULL, `profile_modules` text NOT NULL, `profile_modules_home_page` text NOT NULL, `profile_modules_permission` text NOT NULL, PRIMARY KEY (`profile_id`), KEY `designation_id` (`designation_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `user_profile` -- INSERT INTO `user_profile` (`profile_id`, `designation_id`, `profile_modules`, `profile_modules_home_page`, `profile_modules_permission`) VALUES (1, 1, '1,2,3,4,5,6,80,81,7,8,9,11,10,12,13,14,20,40,41,16,15,30,75,74,27,31,18,73,32,29,17,72,19,33,34,35,36,37,38,39,68,62,47,46,55,69,63,48,56,54,57,61,70,65,49,58,67,71,66,50,51,59,52,60,53,77,78,42,43,44,45,79,107,109,110', '1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1', '7,7,7,7,7,7,0,0,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7.7,7'); -- -- Table structure for table `user_report` -- CREATE TABLE IF NOT EXISTS `user_report` ( `user_report_id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `report_id` int(11) NOT NULL, PRIMARY KEY (`user_report_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=398 ; -- -- Dumping data for table `user_report` -- INSERT INTO `user_report` (`user_report_id`, `user_id`, `report_id`) VALUES (385, 1, 1), (386, 1, 2), (387, 1, 5), (388, 1, 7), (389, 1, 8), (390, 1, 9), (391, 1, 18), (392, 1, 19), (393, 1, 24), (394, 1, 10), (395, 1, 11), (396, 1, 12), (397, 1, 23); ALTER TABLE `alert` ADD CONSTRAINT `alert_ibfk_1` FOREIGN KEY (`alert_record_id`) REFERENCES `master` (`master_id`) ON DELETE CASCADE; ALTER TABLE `alert_employee` ADD CONSTRAINT `alert_employee_ibfk_1` FOREIGN KEY (`alert_id`) REFERENCES `alert` (`alert_id`) ON DELETE CASCADE; ALTER TABLE `alert_master_employee` ADD CONSTRAINT `alert_master_employee_ibfk_1` FOREIGN KEY (`alert_master_id`) REFERENCES `alert_master` (`alert_master_id`) ON DELETE CASCADE, ADD CONSTRAINT `alert_master_employee_ibfk_2` FOREIGN KEY (`alert_master_employee_id`) REFERENCES `employee` (`employee_id`) ON DELETE CASCADE; ALTER TABLE `attendance` ADD CONSTRAINT `attendance_ibfk_1` FOREIGN KEY (`attendance_id`) REFERENCES `master` (`master_id`) ON DELETE CASCADE, ADD CONSTRAINT `attendance_ibfk_3` FOREIGN KEY (`class_id`) REFERENCES `class_name` (`class_name_id`); ALTER TABLE `attendance_details` ADD CONSTRAINT `attendance_details_ibfk_2` FOREIGN KEY (`attendance_id`) REFERENCES `attendance` (`attendance_id`) ON DELETE CASCADE ON UPDATE NO ACTION; ALTER TABLE `calendar` ADD CONSTRAINT `calendar_ibfk_1` FOREIGN KEY (`calendar_id`) REFERENCES `master` (`master_id`) ON DELETE CASCADE; ALTER TABLE `class_name` ADD CONSTRAINT `class_name_ibfk_1` FOREIGN KEY (`class_term_id`) REFERENCES `term` (`term_id`) ON DELETE NO ACTION, ADD CONSTRAINT `class_name_ibfk_2` FOREIGN KEY (`class_name_academic_year_id`) REFERENCES `academic_year` (`academic_year_id`) ON DELETE NO ACTION, ADD CONSTRAINT `class_name_ibfk_3` FOREIGN KEY (`class_room_id`) REFERENCES `class_room` (`class_room_id`) ON DELETE NO ACTION; ALTER TABLE `class_teacher` ADD CONSTRAINT `class_teacher_ibfk_1` FOREIGN KEY (`class_name_id`) REFERENCES `class_name` (`class_name_id`) ON DELETE CASCADE; ALTER TABLE `cost_expense_type` ADD CONSTRAINT `cost_expense_type_ibfk_1` FOREIGN KEY (`expense_type_id`) REFERENCES `expense_type` (`expense_type_id`) ON DELETE NO ACTION, ADD CONSTRAINT `cost_expense_type_ibfk_2` FOREIGN KEY (`finance_journal_id`) REFERENCES `finance_journal` (`id`) ON DELETE CASCADE; ALTER TABLE `employee` ADD CONSTRAINT `employee_ibfk_1` FOREIGN KEY (`employee_id`) REFERENCES `master` (`master_id`) ON DELETE CASCADE; ALTER TABLE `employee_additional_certification` ADD CONSTRAINT `employee_additional_certification_ibfk_1` FOREIGN KEY (`employee_id`) REFERENCES `employee` (`employee_id`) ON DELETE CASCADE; -- -- Constraints for table `employee_educational_qualification` -- ALTER TABLE `employee_educational_qualification` ADD CONSTRAINT `employee_educational_qualification_ibfk_1` FOREIGN KEY (`employee_id`) REFERENCES `employee` (`employee_id`) ON DELETE CASCADE; -- -- Constraints for table `employee_professional_experience` -- ALTER TABLE `employee_professional_experience` ADD CONSTRAINT `employee_professional_experience_ibfk_1` FOREIGN KEY (`employee_id`) REFERENCES `employee` (`employee_id`) ON DELETE CASCADE; -- -- Constraints for table `employee_salary` -- ALTER TABLE `employee_salary` ADD CONSTRAINT `employee_salary_ibfk_1` FOREIGN KEY (`employee_salary_id`) REFERENCES `master` (`master_id`) ON DELETE CASCADE, ADD CONSTRAINT `employee_salary_ibfk_2` FOREIGN KEY (`employee_id`) REFERENCES `employee` (`employee_id`) ON DELETE CASCADE; -- -- Constraints for table `employee_salary_allowdeduc` -- ALTER TABLE `employee_salary_allowdeduc` ADD CONSTRAINT `employee_salary_allowdeduc_ibfk_1` FOREIGN KEY (`employee_salary_id`) REFERENCES `employee_salary` (`employee_salary_id`) ON DELETE CASCADE, ADD CONSTRAINT `employee_salary_allowdeduc_ibfk_2` FOREIGN KEY (`allowdeduc_id`) REFERENCES `allowdeduc` (`allowdeduc_id`) ON DELETE NO ACTION; -- -- Constraints for table `employee_salary_medical` -- ALTER TABLE `employee_salary_medical` ADD CONSTRAINT `employee_salary_medical_ibfk_1` FOREIGN KEY (`employee_salary_id`) REFERENCES `employee_salary` (`employee_salary_id`) ON DELETE CASCADE; -- -- Constraints for table `employee_salary_slip` -- ALTER TABLE `employee_salary_slip` ADD CONSTRAINT `employee_salary_slip_ibfk_1` FOREIGN KEY (`employee_salary_slip_id`) REFERENCES `master` (`master_id`) ON DELETE CASCADE, ADD CONSTRAINT `employee_salary_slip_ibfk_2` FOREIGN KEY (`employee_id`) REFERENCES `employee` (`employee_id`) ON DELETE NO ACTION; -- -- Constraints for table `employee_salary_slip_allowdeduc` -- ALTER TABLE `employee_salary_slip_allowdeduc` ADD CONSTRAINT `employee_salary_slip_allowdeduc_ibfk_1` FOREIGN KEY (`employee_salary_slip_id`) REFERENCES `employee_salary_slip` (`employee_salary_slip_id`) ON DELETE CASCADE, ADD CONSTRAINT `employee_salary_slip_allowdeduc_ibfk_2` FOREIGN KEY (`allowdeduc_id`) REFERENCES `allowdeduc` (`allowdeduc_id`) ON DELETE NO ACTION; -- -- Constraints for table `evaluation` -- ALTER TABLE `evaluation` ADD CONSTRAINT `evaluation_ibfk_1` FOREIGN KEY (`class_name_id`) REFERENCES `class_name` (`class_name_id`) ON DELETE NO ACTION, ADD CONSTRAINT `evaluation_ibfk_2` FOREIGN KEY (`exam_master_id`) REFERENCES `exam_master` (`exam_master_id`) ON DELETE NO ACTION; -- -- Constraints for table `evaluation_student` -- ALTER TABLE `evaluation_student` ADD CONSTRAINT `evaluation_student_ibfk_1` FOREIGN KEY (`evaluation_id`) REFERENCES `evaluation` (`evaluation_id`) ON DELETE CASCADE, ADD CONSTRAINT `evaluation_student_ibfk_2` FOREIGN KEY (`evaluation_subject_id`) REFERENCES `subject` (`subject_id`) ON DELETE NO ACTION, ADD CONSTRAINT `evaluation_student_ibfk_3` FOREIGN KEY (`evaluation_student_id`) REFERENCES `student` (`student_id`) ON DELETE CASCADE; -- -- Constraints for table `exam_master` -- ALTER TABLE `exam_master` ADD CONSTRAINT `exam_master_ibfk_1` FOREIGN KEY (`exam_academic_year_id`) REFERENCES `academic_year` (`academic_year_id`) ON DELETE NO ACTION; -- -- Constraints for table `fee` -- ALTER TABLE `fee` ADD CONSTRAINT `fee_ibfk_1` FOREIGN KEY (`fee_id`) REFERENCES `master` (`master_id`) ON DELETE CASCADE, ADD CONSTRAINT `fee_ibfk_2` FOREIGN KEY (`student_class_id`) REFERENCES `student_class` (`student_class_id`) ON DELETE NO ACTION; -- -- Constraints for table `fee_bank_transfer_info` -- ALTER TABLE `fee_bank_transfer_info` ADD CONSTRAINT `fee_bank_transfer_info_ibfk_1` FOREIGN KEY (`fee_id`) REFERENCES `fee` (`fee_id`) ON DELETE CASCADE ON UPDATE NO ACTION; -- -- Constraints for table `fee_cheque_info` -- ALTER TABLE `fee_cheque_info` ADD CONSTRAINT `fee_cheque_info_ibfk_1` FOREIGN KEY (`fee_id`) REFERENCES `fee` (`fee_id`) ON DELETE CASCADE ON UPDATE NO ACTION; -- -- Constraints for table `fee_collection_details` -- ALTER TABLE `fee_collection_details` ADD CONSTRAINT `fee_collection_details_ibfk_1` FOREIGN KEY (`fee_collection_id`) REFERENCES `fee_collection` (`fee_collection_id`) ON DELETE CASCADE; -- -- Constraints for table `fee_collection_term` -- ALTER TABLE `fee_collection_term` ADD CONSTRAINT `fee_collection_term_ibfk_1` FOREIGN KEY (`fee_collection_id`) REFERENCES `fee_collection` (`fee_collection_id`) ON DELETE CASCADE, ADD CONSTRAINT `fee_collection_term_ibfk_2` FOREIGN KEY (`fee_collection_term_id`) REFERENCES `term` (`term_id`) ON DELETE NO ACTION; -- -- Constraints for table `fee_credit_card_info` -- ALTER TABLE `fee_credit_card_info` ADD CONSTRAINT `fee_credit_card_info_ibfk_1` FOREIGN KEY (`fee_id`) REFERENCES `fee` (`fee_id`) ON DELETE CASCADE ON UPDATE NO ACTION; -- -- Constraints for table `fee_paid_details` -- ALTER TABLE `fee_paid_details` ADD CONSTRAINT `fee_paid_details_ibfk_1` FOREIGN KEY (`fee_id`) REFERENCES `fee` (`fee_id`) ON DELETE CASCADE; -- -- Constraints for table `fee_paid_details_other` -- ALTER TABLE `fee_paid_details_other` ADD CONSTRAINT `fee_paid_details_other_ibfk_1` FOREIGN KEY (`fee_id`) REFERENCES `fee` (`fee_id`) ON DELETE CASCADE; -- -- Constraints for table `fee_payment` -- ALTER TABLE `fee_payment` ADD CONSTRAINT `fee_payment_ibfk_1` FOREIGN KEY (`fee_student_id`) REFERENCES `student` (`student_id`) ON DELETE NO ACTION; -- -- Constraints for table `fee_payment_cheque_info` -- ALTER TABLE `fee_payment_cheque_info` ADD CONSTRAINT `fee_payment_cheque_info_ibfk_1` FOREIGN KEY (`fee_payment_id`) REFERENCES `fee_payment` (`fee_payment_id`) ON DELETE CASCADE; -- -- Constraints for table `fee_payment_credit_card_info` -- ALTER TABLE `fee_payment_credit_card_info` ADD CONSTRAINT `fee_payment_credit_card_info_ibfk_1` FOREIGN KEY (`fee_payment_id`) REFERENCES `fee_payment` (`fee_payment_id`) ON DELETE CASCADE; -- -- Constraints for table `fee_payment_details` -- ALTER TABLE `fee_payment_details` ADD CONSTRAINT `fee_payment_details_ibfk_1` FOREIGN KEY (`fee_payment_id`) REFERENCES `fee_payment` (`fee_payment_id`) ON DELETE CASCADE, ADD CONSTRAINT `fee_payment_details_ibfk_2` FOREIGN KEY (`fee_particular_id`) REFERENCES `fee_particular` (`fee_particular_id`) ON UPDATE NO ACTION; -- -- Constraints for table `fee_payment_wire_info` -- ALTER TABLE `fee_payment_wire_info` ADD CONSTRAINT `fee_payment_wire_info_ibfk_1` FOREIGN KEY (`fee_payment_id`) REFERENCES `fee_payment` (`fee_payment_id`) ON DELETE CASCADE; -- -- Constraints for table `fee_term` -- ALTER TABLE `fee_term` ADD CONSTRAINT `fee_term_ibfk_1` FOREIGN KEY (`fee_term_term_id`) REFERENCES `term` (`term_id`) ON DELETE NO ACTION, ADD CONSTRAINT `fee_term_ibfk_2` FOREIGN KEY (`fee_term_session`) REFERENCES `session` (`session_id`) ON DELETE NO ACTION, ADD CONSTRAINT `fee_term_ibfk_3` FOREIGN KEY (`fee_term_academic_year_id`) REFERENCES `academic_year` (`academic_year_id`) ON DELETE NO ACTION; -- -- Constraints for table `fee_term_details` -- ALTER TABLE `fee_term_details` ADD CONSTRAINT `fee_term_details_ibfk_1` FOREIGN KEY (`fee_term_id`) REFERENCES `fee_term` (`fee_term_id`) ON DELETE CASCADE, ADD CONSTRAINT `fee_term_details_ibfk_2` FOREIGN KEY (`fee_particular_id`) REFERENCES `fee_particular` (`fee_particular_id`) ON DELETE NO ACTION; -- -- Constraints for table `fee_term_due_date` -- ALTER TABLE `fee_term_due_date` ADD CONSTRAINT `fee_term_due_date_ibfk_2` FOREIGN KEY (`fee_term_id`) REFERENCES `fee_term` (`fee_term_id`) ON DELETE CASCADE; -- -- Constraints for table `fee_wire_info` -- ALTER TABLE `fee_wire_info` ADD CONSTRAINT `fee_wire_info_ibfk_1` FOREIGN KEY (`fee_id`) REFERENCES `fee` (`fee_id`) ON DELETE CASCADE ON UPDATE NO ACTION; -- -- Constraints for table `file` -- ALTER TABLE `file` ADD CONSTRAINT `file_ibfk_1` FOREIGN KEY (`master_id`) REFERENCES `master` (`master_id`) ON DELETE CASCADE; -- -- Constraints for table `finance_chart_master` -- ALTER TABLE `finance_chart_master` ADD CONSTRAINT `finance_chart_master_ibfk_1` FOREIGN KEY (`chart_type_id`) REFERENCES `finance_chart_type` (`chart_type_id`) ON DELETE NO ACTION; -- -- Constraints for table `finance_journal` -- ALTER TABLE `finance_journal` ADD CONSTRAINT `finance_journal_ibfk_1` FOREIGN KEY (`journal_id`) REFERENCES `finance_journal_refs` (`journal_id`) ON DELETE CASCADE; -- -- Constraints for table `finance_refs` -- ALTER TABLE `finance_refs` ADD CONSTRAINT `finance_refs_ibfk_1` FOREIGN KEY (`journal_id`) REFERENCES `finance_journal_refs` (`journal_id`) ON DELETE CASCADE; -- -- Constraints for table `leave_allocation` -- ALTER TABLE `leave_allocation` ADD CONSTRAINT `leave_allocation_ibfk_1` FOREIGN KEY (`leave_allocation_id`) REFERENCES `master` (`master_id`) ON DELETE CASCADE, ADD CONSTRAINT `leave_allocation_ibfk_2` FOREIGN KEY (`employee_id`) REFERENCES `employee` (`employee_id`) ON DELETE CASCADE; -- -- Constraints for table `leave_allocation_detail` -- ALTER TABLE `leave_allocation_detail` ADD CONSTRAINT `leave_allocation_detail_ibfk_1` FOREIGN KEY (`leave_allocation_id`) REFERENCES `leave_allocation` (`leave_allocation_id`) ON DELETE CASCADE, ADD CONSTRAINT `leave_allocation_detail_ibfk_2` FOREIGN KEY (`leave_type_id`) REFERENCES `leave_type` (`leave_type_id`) ON DELETE NO ACTION; -- -- Constraints for table `leave_application` -- ALTER TABLE `leave_application` ADD CONSTRAINT `leave_application_ibfk_1` FOREIGN KEY (`leave_application_id`) REFERENCES `master` (`master_id`) ON DELETE CASCADE, ADD CONSTRAINT `leave_application_ibfk_2` FOREIGN KEY (`employee_id`) REFERENCES `employee` (`employee_id`) ON DELETE CASCADE, ADD CONSTRAINT `leave_application_ibfk_3` FOREIGN KEY (`leave_type_id`) REFERENCES `leave_type` (`leave_type_id`) ON DELETE NO ACTION; -- -- Constraints for table `medical` -- ALTER TABLE `medical` ADD CONSTRAINT `medical_ibfk_1` FOREIGN KEY (`medical_id`) REFERENCES `nutrition` (`nutrition_id`) ON DELETE CASCADE, ADD CONSTRAINT `medical_ibfk_2` FOREIGN KEY (`medical_student_id`) REFERENCES `student` (`student_id`) ON DELETE CASCADE; -- -- Constraints for table `nutrition` -- ALTER TABLE `nutrition` ADD CONSTRAINT `nutrition_ibfk_1` FOREIGN KEY (`nutrition_id`) REFERENCES `master` (`master_id`) ON DELETE CASCADE, ADD CONSTRAINT `nutrition_ibfk_3` FOREIGN KEY (`nutrition_student_id`) REFERENCES `student` (`student_id`) ON DELETE CASCADE; -- -- Constraints for table `nutrition_bottle` -- ALTER TABLE `nutrition_bottle` ADD CONSTRAINT `nutrition_bottle_ibfk_1` FOREIGN KEY (`nutrition_id`) REFERENCES `nutrition` (`nutrition_id`) ON DELETE CASCADE; -- -- Constraints for table `nutrition_food` -- ALTER TABLE `nutrition_food` ADD CONSTRAINT `nutrition_food_ibfk_1` FOREIGN KEY (`nutrition_id`) REFERENCES `nutrition` (`nutrition_id`) ON DELETE CASCADE; -- -- Constraints for table `nutrition_nappies` -- ALTER TABLE `nutrition_nappies` ADD CONSTRAINT `nutrition_nappies_ibfk_1` FOREIGN KEY (`nutrition_id`) REFERENCES `nutrition` (`nutrition_id`) ON DELETE CASCADE; -- -- Constraints for table `nutrition_sleep` -- ALTER TABLE `nutrition_sleep` ADD CONSTRAINT `nutrition_sleep_ibfk_1` FOREIGN KEY (`nutrition_id`) REFERENCES `nutrition` (`nutrition_id`) ON DELETE CASCADE; -- -- Constraints for table `parent` -- ALTER TABLE `parent` ADD CONSTRAINT `parent_ibfk_1` FOREIGN KEY (`parent_id`) REFERENCES `master` (`master_id`) ON DELETE CASCADE; -- -- Constraints for table `parent_student` -- ALTER TABLE `parent_student` ADD CONSTRAINT `parent_student_ibfk_5` FOREIGN KEY (`parent_id`) REFERENCES `parent` (`parent_id`), ADD CONSTRAINT `parent_student_ibfk_7` FOREIGN KEY (`student_id`) REFERENCES `student` (`student_id`) ON DELETE CASCADE; -- -- Constraints for table `physical` -- ALTER TABLE `physical` ADD CONSTRAINT `physical_ibfk_1` FOREIGN KEY (`physical_student_id`) REFERENCES `student` (`student_id`) ON DELETE CASCADE, ADD CONSTRAINT `physical_ibfk_2` FOREIGN KEY (`physical_id`) REFERENCES `nutrition` (`nutrition_id`) ON DELETE CASCADE; -- -- Constraints for table `reminder` -- ALTER TABLE `reminder` ADD CONSTRAINT `reminder_ibfk_1` FOREIGN KEY (`reminder_id`) REFERENCES `master` (`master_id`) ON DELETE CASCADE; -- -- Constraints for table `rollover_students` -- ALTER TABLE `rollover_students` ADD CONSTRAINT `rollover_students_ibfk_1` FOREIGN KEY (`rollover_id`) REFERENCES `rollover` (`rollover_id`) ON DELETE CASCADE; -- -- Constraints for table `salarybank` -- ALTER TABLE `salarybank` ADD CONSTRAINT `salarybank_ibfk_1` FOREIGN KEY (`sal_id`) REFERENCES `employee_salary` (`employee_salary_id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `smsreport` -- ALTER TABLE `smsreport` ADD CONSTRAINT `smsreport_ibfk_1` FOREIGN KEY (`sms_id`) REFERENCES `master` (`master_id`) ON DELETE CASCADE; -- -- Constraints for table `student` -- ALTER TABLE `student` ADD CONSTRAINT `student_ibfk_1` FOREIGN KEY (`student_id`) REFERENCES `master` (`master_id`) ON DELETE CASCADE; -- -- Constraints for table `student_address` -- ALTER TABLE `student_address` ADD CONSTRAINT `student_address_ibfk_1` FOREIGN KEY (`student_id`) REFERENCES `student` (`student_id`) ON DELETE CASCADE; -- -- Constraints for table `student_assessment` -- ALTER TABLE `student_assessment` ADD CONSTRAINT `student_assessment_ibfk_1` FOREIGN KEY (`class_name_id`) REFERENCES `class_name` (`class_name_id`) ON DELETE NO ACTION, ADD CONSTRAINT `student_assessment_ibfk_2` FOREIGN KEY (`assessment_master_id`) REFERENCES `assessment_master` (`assessment_master_id`) ON DELETE NO ACTION; -- -- Constraints for table `student_assessment_details` -- ALTER TABLE `student_assessment_details` ADD CONSTRAINT `student_assessment_details_ibfk_1` FOREIGN KEY (`student_assessment_id`) REFERENCES `student_assessment` (`assessment_id`) ON DELETE CASCADE ON UPDATE NO ACTION, ADD CONSTRAINT `student_assessment_details_ibfk_2` FOREIGN KEY (`student_id`) REFERENCES `student` (`student_id`) ON DELETE CASCADE; -- -- Constraints for table `student_assessment_files` -- ALTER TABLE `student_assessment_files` ADD CONSTRAINT `student_assessment_files_ibfk_1` FOREIGN KEY (`student_assessment_detail_id`) REFERENCES `student_assessment_details` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, ADD CONSTRAINT `student_assessment_files_ibfk_2` FOREIGN KEY (`student_id`) REFERENCES `student` (`student_id`) ON DELETE CASCADE; -- -- Constraints for table `student_cancellation` -- ALTER TABLE `student_cancellation` ADD CONSTRAINT `student_cancellation_ibfk_1` FOREIGN KEY (`cancellation_id`) REFERENCES `master` (`master_id`) ON DELETE CASCADE, ADD CONSTRAINT `student_cancellation_ibfk_2` FOREIGN KEY (`student_id`) REFERENCES `student` (`student_id`) ON DELETE CASCADE ON UPDATE NO ACTION; -- -- Constraints for table `student_class` -- ALTER TABLE `student_class` ADD CONSTRAINT `student_class_ibfk_1` FOREIGN KEY (`class_name_id`) REFERENCES `class_name` (`class_name_id`) ON DELETE NO ACTION, ADD CONSTRAINT `student_class_ibfk_2` FOREIGN KEY (`term_id`) REFERENCES `term` (`term_id`) ON DELETE NO ACTION, ADD CONSTRAINT `student_class_ibfk_4` FOREIGN KEY (`student_id`) REFERENCES `student` (`student_id`) ON DELETE CASCADE; -- -- Constraints for table `student_class_details` -- ALTER TABLE `student_class_details` ADD CONSTRAINT `student_class_details_ibfk_1` FOREIGN KEY (`student_class_id`) REFERENCES `student_class` (`student_class_id`) ON DELETE CASCADE; -- -- Constraints for table `student_class_fee` -- ALTER TABLE `student_class_fee` ADD CONSTRAINT `student_class_fee_ibfk_1` FOREIGN KEY (`student_class_id`) REFERENCES `student_class` (`student_class_id`) ON DELETE CASCADE, ADD CONSTRAINT `student_class_fee_ibfk_2` FOREIGN KEY (`fee_particular_id`) REFERENCES `fee_particular` (`fee_particular_id`) ON DELETE NO ACTION; -- -- Constraints for table `student_deactivate` -- ALTER TABLE `student_deactivate` ADD CONSTRAINT `student_deactivate_ibfk_1` FOREIGN KEY (`deactivate_id`) REFERENCES `master` (`master_id`) ON DELETE CASCADE, ADD CONSTRAINT `student_deactivate_ibfk_3` FOREIGN KEY (`student_id`) REFERENCES `student` (`student_id`) ON DELETE CASCADE; -- -- Constraints for table `student_monthly_fee` -- ALTER TABLE `student_monthly_fee` ADD CONSTRAINT `student_monthly_fee_ibfk_1` FOREIGN KEY (`student_class_fee_id`) REFERENCES `student_class_fee` (`student_class_fee_id`) ON DELETE CASCADE ON UPDATE NO ACTION; -- -- Constraints for table `student_other_info` -- ALTER TABLE `student_other_info` ADD CONSTRAINT `student_other_info_ibfk_1` FOREIGN KEY (`student_id`) REFERENCES `student` (`student_id`) ON DELETE CASCADE; -- -- Constraints for table `subject` -- ALTER TABLE `subject` ADD CONSTRAINT `subject_ibfk_1` FOREIGN KEY (`class_room_id`) REFERENCES `class_room` (`class_room_id`) ON DELETE CASCADE; -- -- Constraints for table `term_academic_details` -- ALTER TABLE `term_academic_details` ADD CONSTRAINT `term_academic_details_ibfk_1` FOREIGN KEY (`term_id`) REFERENCES `term` (`term_id`) ON DELETE NO ACTION, ADD CONSTRAINT `term_academic_details_ibfk_2` FOREIGN KEY (`academic_year_id`) REFERENCES `academic_year` (`academic_year_id`) ON DELETE CASCADE; /*!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 */;