?
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/V2.sql |
DROP table `menu`; DROP table `module`; 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=161 ; -- -- Dumping data for table `menu` -- INSERT INTO `menu` (`menu_id`, `module_id`, `parent_menu_id`, `caption`, `target`, `sort`, `active`) VALUES (1, 10, 158, 'Class Name', 'master/manage_class_name', 3, 1), (2, 2, 0, 'Terms', 'master/manage_term', 2, 0), (3, 10, 158, 'Fee Master', 'master/manage_fee_master', 5, 1), (4, 10, 158, 'No of Days', 'master/manage_no_days', 4, 1), (5, 10, 158, 'File Type', 'master/manage_file_type', 7, 1), (6, 10, 160, '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, 160, 'User', 'settings/manage_user', 1, 1), (43, 10, 160, 'Profile and Access rights', 'settings/manage_profiles', 2, 1), (44, 10, 160, '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, 160, 'Alert Master', 'settings/manage_alert_master', 4, 1), (103, 3, 0, 'Deactivation', 'student/manage_deactivate', 10, 1), (106, 10, 158, 'Nationalty', 'master/manage_nationality', 6, 1), (107, 4, 0, 'Nursery Calendar', 'calendar/manage_calendar', 1, 1), (108, 10, 158, 'Academic Year', 'master/manage_academic_year', 1, 1), (109, 10, 158, 'Sessions', 'master/manage_session', 2, 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, 160, '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, 10, 158, '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, 11, 0, 'Effort/Behavior', 'master/manage_behavior', 7, 1), (156, 3, 0, 'Rollover', 'student/manage_roll_over', 9, 1), (157, 3, 0, 'Daily Report', 'student/manage_extra', 11, 1), (158, 10, 0, 'Masters', 'master/manage_academic_year', 1, 1), (160, 10, 0, 'Settings', 'settings/manage_user', 2, 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', 'icon-home', 1, 1), (2, 'master', 'Master', 'master.png', 2, 0), (3, 'student', 'Student', 'icon-female', 3, 1), (4, 'calendar', 'Calendar', 'icon-calendar', 4, 1), (5, 'email', 'Email', 'icon-envelope', 6, 1), (6, 'sms', 'SMS', 'icon-rss', 7, 1), (7, 'hr', 'HR', ' icon-male', 8, 1), (8, 'accounting', 'Accounting', 'icon-money', 9, 1), (9, 'report', 'Reports', 'icon-file', 10, 1), (10, 'settings', 'Settings', 'icon-wrench', 11, 1), (11, 'examination', 'Examination', 'icon-paper-clip', 5, 1); /* ALTER TABLE `class_name` DROP FOREIGN KEY `class_name_ibfk_3` ; */ /* ALTER TABLE `class_name` DROP FOREIGN KEY `class_name_ibfk_1` ;*/ /* ALTER TABLE `class_name` DROP FOREIGN KEY `class_name_ibfk_2` ;*/ /* ALTER TABLE `class_name` CHANGE `class_room_id` `class_room_name` VARCHAR( 100 ) NOT NULL , CHANGE `class_term_id` `class_term` VARCHAR( 100 ) NOT NULL , CHANGE `class_name_academic_year_id` `class_academic_year` YEAR NOT NULL; */ /* ALTER TABLE `term_academic_details` DROP FOREIGN KEY `term_academic_details_ibfk_1` ;*/ /* ALTER TABLE `term_academic_details` CHANGE `term_id` `term_name` VARCHAR( 100 ) NOT NULL;*/ /* ALTER TABLE `fee_collection_term` DROP FOREIGN KEY `fee_collection_term_ibfk_2` ;*/ DROP TABLE `fee_collection_details`, `fee_collection_term`, `fee_collection`; ALTER TABLE `class_name` ADD `class_section` VARCHAR( 50 ) NOT NULL AFTER `class_days`; DELETE from `fee_master` where `fee_master_id` = '3'; -- -- Table structure for table `employee_attendance` -- CREATE TABLE IF NOT EXISTS `employee_attendance` ( `employee_attendance_id` int(11) NOT NULL, `employee_attendance_date` date NOT NULL, `employee_attendance_remarks` text NOT NULL, PRIMARY KEY (`employee_attendance_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `employee_attendance_details` -- CREATE TABLE IF NOT EXISTS `employee_attendance_details` ( `id` int(11) NOT NULL AUTO_INCREMENT, `employee_attendance_id` int(11) NOT NULL, `employee_id` int(11) NOT NULL, `employee_attendance_status` enum('P','L','A') NOT NULL, `employee_attendance_details_remarks` text NOT NULL, PRIMARY KEY (`id`), KEY `employee_attendance_id` (`employee_attendance_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Constraints for dumped tables -- -- -- Constraints for table `employee_attendance_details` -- ALTER TABLE `employee_attendance_details` ADD CONSTRAINT `employee_attendance_details_ibfk_1` FOREIGN KEY (`employee_attendance_id`) REFERENCES `employee_attendance` (`employee_attendance_id`) ON DELETE CASCADE; INSERT INTO `report` (`report_id`, `report_label`, `report_target`, `report_sort`, `report_module_id`) VALUES (NULL, 'Attendance Report', 'addformdisplay(''view_employee_attendance_report'',''report'');', '5', '78'); INSERT INTO `menu` (`menu_id`, `module_id`, `parent_menu_id`, `caption`, `target`, `sort`, `active`) VALUES (NULL, '7', '74', 'Attendance', 'hr/manage_employee_attendance', '4', '1'); ALTER TABLE `employee_attendance_details` ADD `employee_attendance_in_time` TIME NOT NULL AFTER `employee_attendance_status` , ADD `employee_attendance_out_time` TIME NOT NULL AFTER `employee_attendance_in_time`; INSERT INTO `report` (`report_id`, `report_label`, `report_target`, `report_sort`, `report_module_id`) VALUES (NULL, 'Class Student List', 'addformdisplay(''view_student_list_report'',''report'');', '10', '77'); ALTER TABLE `employee` ADD `employee_passport_expiry_date` DATE NOT NULL AFTER `employee_passport_no`; INSERT INTO `alert_master` (`alert_master_id`, `alert_master_name`, `alert_master_days`, `alert_master_type`, `alert_target`) VALUES (NULL, 'Nursery Document Alerts', '10', 'document_alert', 'document_alert'); ALTER TABLE `nursery_file` ADD `file_expiry_date` DATE NOT NULL ,ADD `file_remind_before` INT NOT NULL; ALTER TABLE `menu` ADD `menu_icon` VARCHAR( 100 ) NOT NULL AFTER `target`; CREATE TABLE IF NOT EXISTS `finance_credit_card_info` ( `credit_card_id` int(11) NOT NULL AUTO_INCREMENT, `journal_id` int(11) NOT NULL, `credit_card_holder` varchar(100) NOT NULL, `credit_card_no` varchar(50) NOT NULL, PRIMARY KEY (`credit_card_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;