Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SET NAMES utf8;
- SET time_zone = '+00:00';
- SET foreign_key_checks = 0;
- SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
- USE `dps_registrar_db`;
- DROP TABLE IF EXISTS `file_gradeyearlevel_2016_2017`;
- CREATE TABLE `file_gradeyearlevel_2016_2017` (
- `yl_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `sy_id` int(10) unsigned NOT NULL,
- `dept_id` int(10) unsigned NOT NULL,
- `yl_name` varchar(64) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL,
- `yl_shortname` varchar(64) DEFAULT NULL,
- `yl_ordinal` tinyint(3) unsigned DEFAULT NULL,
- `yl_isactive` tinyint(3) unsigned DEFAULT NULL,
- `yl_prevlevel` int(10) unsigned DEFAULT NULL,
- `yl_nextlevel` int(10) unsigned DEFAULT NULL,
- `yl_addwho` varchar(64) DEFAULT NULL,
- `yl_addwhen` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
- `yl_updatewho` varchar(64) DEFAULT NULL,
- `yl_updatewhen` datetime DEFAULT NULL,
- PRIMARY KEY (`yl_id`),
- KEY `file_yearlevel_FKIndex1` (`dept_id`),
- KEY `sy_id` (`sy_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
- INSERT INTO `file_gradeyearlevel_2016_2017` (`yl_id`, `sy_id`, `dept_id`, `yl_name`, `yl_shortname`, `yl_ordinal`, `yl_isactive`, `yl_prevlevel`, `yl_nextlevel`, `yl_addwho`, `yl_addwhen`, `yl_updatewho`, `yl_updatewhen`) VALUES
- (1, 13, 1, 'Kinder 1', 'Kinder 1', 1, 1, 0, 2, NULL, '2016-02-11 13:09:07', NULL, NULL),
- (2, 13, 1, 'Kinder 2', 'Kinder 2', 2, 1, 1, 3, NULL, '2016-02-11 13:09:07', NULL, NULL),
- (3, 13, 1, 'Grade 1', 'Grade 1', 3, 1, 2, 4, NULL, '2016-02-11 13:09:07', NULL, NULL),
- (4, 13, 1, 'Grade 2', 'Grade 2', 4, 1, 3, 5, NULL, '2016-02-11 13:09:07', NULL, NULL),
- (5, 13, 1, 'Grade 3', 'Grade 3', 5, 1, 4, 6, NULL, '2016-02-11 13:09:07', NULL, NULL),
- (6, 13, 1, 'Grade 4', 'Grade 4', 6, 1, 5, 7, NULL, '2016-02-11 13:09:07', NULL, NULL),
- (7, 13, 1, 'Grade 5', 'Grade 5', 7, 1, 6, 8, NULL, '2016-02-11 13:09:07', NULL, NULL),
- (8, 13, 1, 'Grade 6', 'Grade 6', 8, 1, 7, 9, NULL, '2016-02-11 13:09:07', NULL, NULL),
- (9, 13, 9, 'Grade 7', 'Grade 7', 9, 1, 8, 10, NULL, '2016-02-11 13:09:07', 'Philjosh', '0000-00-00 00:00:00'),
- (10, 13, 9, 'Grade 8', 'Grade 8', 10, 1, 9, 11, NULL, '2016-02-11 13:09:07', 'Philjosh', '0000-00-00 00:00:00'),
- (11, 13, 9, 'Grade 9', 'Grade 9', 11, 1, 10, 12, NULL, '2016-02-11 13:09:07', 'Philjosh', '0000-00-00 00:00:00'),
- (12, 13, 9, 'Grade 10', 'Grade 10', 12, 1, 11, 13, NULL, '2016-02-11 13:09:07', 'Philjosh', '0000-00-00 00:00:00'),
- (13, 13, 2, 'Grade 11', 'Grade 11', 13, 1, 12, 14, NULL, '2016-02-11 13:09:07', 'ralgee', '0000-00-00 00:00:00'),
- (14, 13, 2, 'Grade 12', 'Grade 12', 14, 1, 13, 19, NULL, '2016-02-11 13:09:07', 'ralgee', '0000-00-00 00:00:00'),
- (19, 13, 5, 'First Year', 'First Year', 15, 1, 14, 20, NULL, '2017-02-10 10:15:30', NULL, NULL),
- (20, 13, 5, 'Second Year', 'Second Year', 16, 1, 19, 21, NULL, '2017-02-10 10:16:11', NULL, NULL),
- (21, 13, 5, 'Third Year', 'Third Year', 17, 1, 20, 22, NULL, '2017-02-10 10:16:57', NULL, NULL),
- (22, 13, 5, 'Fourth Year', 'Fourth Year', 18, 1, 21, 23, NULL, '2017-02-10 10:16:57', NULL, NULL),
- (23, 13, 5, 'Fifth Year', 'Fifth Year', 19, 1, 22, 0, NULL, '2017-02-10 10:16:57', NULL, NULL);
- -- 2017-02-14 03:29:23
- -- Adminer 4.2.5 MySQL dump
- SET NAMES utf8;
- SET time_zone = '+00:00';
- SET foreign_key_checks = 0;
- SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
- DROP TABLE IF EXISTS `file_department`;
- CREATE TABLE `file_department` (
- `dept_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `dept_name` varchar(45) DEFAULT NULL,
- `dept_desc` varchar(200) DEFAULT NULL,
- `depttype_id` int(10) DEFAULT NULL,
- `dept_ord` tinyint(3) unsigned DEFAULT NULL,
- PRIMARY KEY (`dept_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
- INSERT INTO `file_department` (`dept_id`, `dept_name`, `dept_desc`, `depttype_id`, `dept_ord`) VALUES
- (1, 'Grade School', 'Grade School', 7, 20),
- (2, 'Senior High School', 'Senior High School', 7, 40),
- (10, 'Early Education', 'Early Education', 7, 10),
- (9, 'Junior High School', 'Junior High School', 7, 30),
- (26, 'CoPE', 'College of Physical Education', 8, 130),
- (18, 'CRT', 'College of Radiologic Technology', 8, 140),
- (5, 'College', 'College', 8, 50),
- (14, 'CAC', 'College of Accountancy', 8, 60),
- (15, 'CON', 'College of Nursing', 8, 129),
- (16, 'CBA', 'College of Business Administration', 8, 80),
- (13, 'CAS', 'College of Arts and Sciences', 8, 70),
- (17, 'CCS', 'College of Computer Studies', 8, 90),
- (21, 'COL', 'College of Law', 8, 110),
- (20, 'CPT', 'College of Physical Therapy', 8, 120),
- (19, 'CED', 'College of Education', 8, 100),
- (12, 'Graduate Studies', 'Graduate Studies', 8, 150),
- (22, 'Short Courses', 'Short Courses', 8, 160),
- (24, 'School of Midwifery', 'School of Midwifery', 8, 170);
- -- 2017-02-14 06:38:33
- -- Adminer 4.2.5 MySQL dump
- SET NAMES utf8;
- SET time_zone = '+00:00';
- SET foreign_key_checks = 0;
- SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
- DROP TABLE IF EXISTS `file_department_type`;
- CREATE TABLE `file_department_type` (
- `depttype_id` int(10) NOT NULL AUTO_INCREMENT,
- `depttype_name` varchar(50) NOT NULL,
- PRIMARY KEY (`depttype_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
- INSERT INTO `file_department_type` (`depttype_id`, `depttype_name`) VALUES
- (8, 'College'),
- (7, 'Basic Education');
- -- 2017-02-14 05:28:55
- -- Adminer 4.2.5 MySQL dump
- SET NAMES utf8;
- SET time_zone = '+00:00';
- SET foreign_key_checks = 0;
- SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
- DROP TABLE IF EXISTS `college_academic_strand`;
- CREATE TABLE `college_academic_strand` (
- `as_id` int(11) NOT NULL AUTO_INCREMENT,
- `at_id` int(9) NOT NULL,
- `as_name` varchar(100) NOT NULL,
- `as_shortname` varchar(100) NOT NULL,
- PRIMARY KEY (`as_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- INSERT INTO `college_academic_strand` (`as_id`, `at_id`, `as_name`, `as_shortname`) VALUES
- (1, 1, 'Accountancy, Business and Management', 'ABM'),
- (2, 1, 'Science, Technology, Engineering, and Mathematics', 'STEM'),
- (3, 1, 'Humanities and Social Sciences', 'HUMSS'),
- (4, 1, 'General Academic Strand', 'GAS'),
- (5, 3, 'Home Economics', 'HE'),
- (6, 3, 'Information and Communication Technology', 'ICT'),
- (7, 2, 'Arts And Design', 'AD');
- DROP TABLE IF EXISTS `college_academic_track`;
- CREATE TABLE `college_academic_track` (
- `at_id` int(11) NOT NULL AUTO_INCREMENT,
- `at_name` varchar(100) NOT NULL,
- `at_shortname` varchar(100) NOT NULL,
- PRIMARY KEY (`at_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- INSERT INTO `college_academic_track` (`at_id`, `at_name`, `at_shortname`) VALUES
- (1, 'Academic Track', 'AT'),
- (2, 'Arts and Design Track', 'ADT'),
- (3, 'Technical- Vocational Livelihood Track', 'TVL');
- DROP TABLE IF EXISTS `college_add_open_subjects`;
- CREATE TABLE `college_add_open_subjects` (
- `caos_id` int(11) NOT NULL AUTO_INCREMENT,
- `yl_id` int(11) NOT NULL COMMENT 'year level',
- `block_id` int(11) NOT NULL COMMENT 'block',
- `cc_id` int(11) NOT NULL COMMENT 'course',
- `dept_id` int(11) NOT NULL COMMENT 'department',
- `ccc_id` int(11) NOT NULL COMMENT 'curriculum',
- `status` int(11) NOT NULL COMMENT '1 = active, 0 = inactive',
- `sy_id` int(11) NOT NULL,
- PRIMARY KEY (`caos_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- INSERT INTO `college_add_open_subjects` (`caos_id`, `yl_id`, `block_id`, `cc_id`, `dept_id`, `ccc_id`, `status`, `sy_id`) VALUES
- (1, 19, 1, 8, 17, 1, 1, 0),
- (2, 19, 1, 8, 17, 2, 1, 0),
- (3, 19, 1, 8, 17, 3, 1, 0),
- (4, 19, 1, 8, 17, 4, 1, 0),
- (5, 19, 20, 8, 17, 1, 1, 0),
- (6, 19, 20, 8, 17, 2, 1, 0),
- (7, 19, 20, 8, 17, 3, 1, 0),
- (8, 19, 20, 8, 17, 4, 1, 0),
- (9, 19, 21, 8, 17, 1, 1, 0),
- (10, 19, 21, 8, 17, 2, 1, 0),
- (11, 19, 21, 8, 17, 3, 1, 0),
- (12, 19, 21, 8, 17, 4, 1, 0),
- (13, 19, 22, 21, 16, 5, 1, 0),
- (14, 19, 22, 21, 16, 6, 1, 0),
- (15, 19, 22, 21, 16, 7, 1, 0);
- DROP TABLE IF EXISTS `college_block_active_semester`;
- CREATE TABLE `college_block_active_semester` (
- `cbas_id` int(11) NOT NULL AUTO_INCREMENT,
- `yl_id` int(11) NOT NULL,
- `cc_id` int(11) NOT NULL,
- `dept_id` int(11) NOT NULL,
- `block_name` varchar(255) NOT NULL,
- `ordinal` int(11) NOT NULL,
- `status` int(11) NOT NULL,
- `sy_id` int(11) NOT NULL,
- PRIMARY KEY (`cbas_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- INSERT INTO `college_block_active_semester` (`cbas_id`, `yl_id`, `cc_id`, `dept_id`, `block_name`, `ordinal`, `status`, `sy_id`) VALUES
- (20, 19, 8, 17, 'BSCS 1A', 1, 1, 13),
- (21, 19, 8, 17, 'BSCS 1B', 2, 1, 13),
- (22, 19, 21, 16, 'BSBA 1A', 1, 1, 13);
- DROP TABLE IF EXISTS `college_block_subject_schedule`;
- CREATE TABLE `college_block_subject_schedule` (
- `cbss_id` int(10) NOT NULL AUTO_INCREMENT,
- `cs_id` int(10) NOT NULL COMMENT 'college_subjects',
- `css_id` int(10) NOT NULL DEFAULT '0' COMMENT 'college_subject_schedule',
- `cc_id` int(10) NOT NULL COMMENT 'college_course',
- `yl_id` int(10) NOT NULL COMMENT 'year level',
- `csm_id` int(10) NOT NULL COMMENT 'semester id',
- `ccb_id` int(10) NOT NULL COMMENT 'block id',
- PRIMARY KEY (`cbss_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
- INSERT INTO `college_block_subject_schedule` (`cbss_id`, `cs_id`, `css_id`, `cc_id`, `yl_id`, `csm_id`, `ccb_id`) VALUES
- (1, 1, 1, 8, 19, 4, 20),
- (2, 2, 2, 8, 19, 4, 20),
- (3, 3, 3, 8, 19, 4, 20),
- (4, 3, 4, 8, 19, 4, 20),
- (5, 1, 5, 8, 19, 4, 21),
- (6, 4, 6, 8, 19, 4, 21),
- (7, 5, 7, 21, 19, 4, 22),
- (8, 6, 8, 21, 19, 4, 22),
- (9, 7, 9, 21, 19, 4, 22);
- DROP TABLE IF EXISTS `college_course`;
- CREATE TABLE `college_course` (
- `cc_id` int(11) NOT NULL AUTO_INCREMENT,
- `cc_name` varchar(100) NOT NULL,
- `cc_shortname` varchar(100) NOT NULL,
- `cc_isactive` tinyint(1) NOT NULL,
- `dept_id` int(10) DEFAULT NULL,
- `as_id` int(10) DEFAULT NULL,
- PRIMARY KEY (`cc_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
- INSERT INTO `college_course` (`cc_id`, `cc_name`, `cc_shortname`, `cc_isactive`, `dept_id`, `as_id`) VALUES
- (7, 'Bachelor of Science in Information Technology', 'BSIT', 1, 17, NULL),
- (8, 'Bachelor of Science in Computer Science', 'BSCS', 1, 17, NULL),
- (9, 'Bachelor of Science in Nursing', 'BSN', 1, 15, NULL),
- (10, 'Doctor in Business Administration ', 'DBA', 1, 12, NULL),
- (11, 'Doctor of Education', 'Ed.D', 1, 12, NULL),
- (13, 'Master of Arts in Educational Management', 'M.A.Ed.M.', 1, 12, NULL),
- (15, 'Bachelor of Secondary Education', 'BSED', 1, 19, NULL),
- (21, 'Bachelor of Science in Business Administration', 'BSBA', 1, 16, NULL),
- (18, 'Master of Arts in Filipino', 'M.A.Fil.', 1, 12, NULL),
- (19, 'Master of Arts in English ', 'M.A.Engl', 1, 12, NULL),
- (20, 'Bachelor of Elementary Education', 'BEED', 1, 19, NULL),
- (22, 'Bachelor of Science in Accountancy', 'BSA', 0, 14, NULL),
- (23, 'Bachelor of Science in Accounting Technology', 'BSAcT', 1, 14, NULL),
- (24, 'Bachelor of Science in Hotel and Restaurant Management', 'BSHRM', 1, 16, NULL),
- (25, 'Associate in Hotel and Restaurant Management', 'AHRM', 1, 16, NULL),
- (27, 'Bachelor of Arts', 'AB', 1, 13, NULL),
- (28, 'Bachelor of Science in Psychology', 'BSP', 1, 13, NULL),
- (29, 'Bachelor of Science in Mass Communication', 'BSMC', 1, 13, NULL),
- (30, 'Bachelor of Science in Mathematics', 'BSMA', 1, 13, NULL),
- (31, 'Bachelor of Science in Radiologic Technology', 'BSRT', 1, 18, NULL),
- (32, 'Bachelor of Science in Physical Therapy', 'BSPT', 1, 20, NULL),
- (33, 'Graduate in Midwifery', 'GM', 1, 24, NULL),
- (34, 'Associate in Computer Technology', 'ACT', 1, 17, NULL),
- (35, 'Associate in Office Administration', 'AOA', 1, 17, NULL),
- (36, 'Caregving Course', 'CG', 1, 22, NULL),
- (37, 'Master in Business Administration', 'MBA', 1, 12, NULL),
- (39, 'Master of Arts', 'MA', 1, 12, NULL),
- (41, 'Master of Arts in Nursing ', 'MAN', 1, 12, NULL),
- (42, 'Associate in Radilogic Technology', 'ARad Tech', 1, 18, NULL),
- (44, 'Master of Arts in Guidance Counseling ', 'M.A.G.C', 1, 12, NULL);
- DROP TABLE IF EXISTS `college_course_block`;
- CREATE TABLE `college_course_block` (
- `ccb_id` int(10) NOT NULL AUTO_INCREMENT,
- `ccb_shortname` varchar(100) NOT NULL,
- `ccb_name` varchar(100) NOT NULL,
- `ccb_order` int(10) NOT NULL,
- `cc_id` int(10) NOT NULL,
- `yl_id` int(10) NOT NULL,
- `csm_id` int(10) NOT NULL COMMENT 'semester_id',
- PRIMARY KEY (`ccb_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
- DROP TABLE IF EXISTS `college_course_curriculum_2015_2016`;
- CREATE TABLE `college_course_curriculum_2015_2016` (
- `ccc_id` int(11) NOT NULL AUTO_INCREMENT,
- `cc_id` int(10) NOT NULL,
- `yl_id` int(10) NOT NULL,
- `csm_id` int(10) NOT NULL,
- `csh_id` int(10) NOT NULL,
- `ccc_lec_unit` int(10) NOT NULL DEFAULT '0',
- `ccc_lab_unit` int(10) NOT NULL DEFAULT '0',
- `ccc_lab_fee` int(10) NOT NULL DEFAULT '0',
- `ccc_prereq_id` int(10) NOT NULL,
- `is_included` int(1) NOT NULL,
- `ccc_order` int(10) NOT NULL,
- PRIMARY KEY (`ccc_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- DROP TABLE IF EXISTS `college_course_curriculum_2016_2017`;
- CREATE TABLE `college_course_curriculum_2016_2017` (
- `ccc_id` int(11) NOT NULL AUTO_INCREMENT,
- `cc_id` int(10) NOT NULL,
- `yl_id` int(10) NOT NULL,
- `csm_id` int(10) NOT NULL,
- `csh_id` int(10) NOT NULL,
- `ccc_lec_unit` int(10) NOT NULL DEFAULT '0',
- `ccc_lab_unit` int(10) NOT NULL DEFAULT '0',
- `ccc_fee_name` varchar(100) DEFAULT NULL,
- `ccc_fee_value` float NOT NULL DEFAULT '0',
- `ccc_fee_unit` int(10) NOT NULL DEFAULT '0',
- `ccc_prereq_id` int(10) NOT NULL,
- `is_included` int(1) NOT NULL,
- `ccc_order` int(10) NOT NULL,
- PRIMARY KEY (`ccc_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- INSERT INTO `college_course_curriculum_2016_2017` (`ccc_id`, `cc_id`, `yl_id`, `csm_id`, `csh_id`, `ccc_lec_unit`, `ccc_lab_unit`, `ccc_fee_name`, `ccc_fee_value`, `ccc_fee_unit`, `ccc_prereq_id`, `is_included`, `ccc_order`) VALUES
- (1, 8, 19, 4, 23, 3, 0, NULL, 0, 0, 0, 10, 1),
- (2, 8, 19, 4, 13, 3, 0, NULL, 0, 0, 0, 20, 2),
- (3, 8, 19, 4, 21, 3, 0, NULL, 0, 0, 0, 20, 3),
- (4, 8, 19, 4, 95, 3, 0, NULL, 0, 0, 0, 20, 4),
- (5, 21, 19, 4, 221, 3, 0, NULL, 0, 0, 0, 20, 1),
- (6, 21, 19, 4, 23, 3, 0, NULL, 0, 0, 0, 10, 2),
- (7, 21, 19, 4, 21, 3, 0, NULL, 0, 0, 0, 20, 3);
- DROP TABLE IF EXISTS `college_course_curriculum_header`;
- CREATE TABLE `college_course_curriculum_header` (
- `ccch_id` int(10) NOT NULL AUTO_INCREMENT,
- `sy_id` int(10) NOT NULL,
- `ccch_name` varchar(100) NOT NULL,
- `cc_id` int(10) NOT NULL,
- `is_active` tinyint(1) NOT NULL,
- PRIMARY KEY (`ccch_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- INSERT INTO `college_course_curriculum_header` (`ccch_id`, `sy_id`, `ccch_name`, `cc_id`, `is_active`) VALUES
- (1, 13, 'Bachelor of Science in Computer Science Effective SY 2014-2015', 8, 1),
- (2, 13, 'Bachelor of Science in Business Administration Effective SY 2012-2013', 21, 1);
- DROP TABLE IF EXISTS `college_course_header`;
- CREATE TABLE `college_course_header` (
- `cch_id` bigint(20) NOT NULL AUTO_INCREMENT,
- `cc_id` varchar(100) NOT NULL,
- `cc_section` varchar(10) NOT NULL,
- `cch_semester` varchar(10) NOT NULL,
- PRIMARY KEY (`cch_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
- DROP TABLE IF EXISTS `college_curriculum_prereqs_2016_2017`;
- CREATE TABLE `college_curriculum_prereqs_2016_2017` (
- `ccc_id` int(11) NOT NULL,
- `cccp_id` int(11) NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- DROP TABLE IF EXISTS `college_editsubject_history_2016_2017`;
- CREATE TABLE `college_editsubject_history_2016_2017` (
- `ceh_id` int(11) NOT NULL AUTO_INCREMENT,
- `ccc_id` int(11) NOT NULL,
- `new_ccc_id` int(11) NOT NULL,
- `csh_id` int(11) NOT NULL,
- `new_csh_id` int(11) NOT NULL,
- `css_id` int(11) NOT NULL,
- `new_css_id` int(11) NOT NULL,
- `remarks` varchar(200) NOT NULL,
- `yl_id` int(11) NOT NULL,
- `csm_id` int(11) NOT NULL,
- `sai_id` int(11) NOT NULL,
- PRIMARY KEY (`ceh_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- DROP TABLE IF EXISTS `college_enrolled_subjects_2016_2017`;
- CREATE TABLE `college_enrolled_subjects_2016_2017` (
- `cses_id` int(10) NOT NULL AUTO_INCREMENT,
- `ccc_id` int(11) NOT NULL,
- `csh_id` int(11) NOT NULL,
- `css_id` varchar(255) NOT NULL,
- `sai_id` int(10) NOT NULL,
- `yl_id` int(10) NOT NULL,
- `csm_id` int(10) NOT NULL,
- PRIMARY KEY (`cses_id`),
- KEY `ccc_id` (`ccc_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
- INSERT INTO `college_enrolled_subjects_2016_2017` (`cses_id`, `ccc_id`, `csh_id`, `css_id`, `sai_id`, `yl_id`, `csm_id`) VALUES
- (52, 7, 21, '9', 9979, 19, 4),
- (54, 1, 23, '1', 9979, 19, 4);
- DROP TABLE IF EXISTS `college_payment_fee_header`;
- CREATE TABLE `college_payment_fee_header` (
- `college_payment_id` int(11) NOT NULL AUTO_INCREMENT,
- `pfh_id` int(100) NOT NULL,
- `college_semester_id` int(100) NOT NULL,
- `college_department_id` int(100) NOT NULL,
- `college_course_id` int(100) NOT NULL,
- `yl_id` int(11) NOT NULL,
- PRIMARY KEY (`college_payment_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- INSERT INTO `college_payment_fee_header` (`college_payment_id`, `pfh_id`, `college_semester_id`, `college_department_id`, `college_course_id`, `yl_id`) VALUES
- (1, 621, 4, 5, 8, 19);
- DROP TABLE IF EXISTS `college_semester`;
- CREATE TABLE `college_semester` (
- `cs_id` int(11) NOT NULL AUTO_INCREMENT,
- `cs_name` varchar(50) NOT NULL,
- `cs_description` varchar(50) NOT NULL,
- `cs_ordinal` int(10) NOT NULL,
- `cs_isactive` int(1) NOT NULL COMMENT '1=active',
- `cs_sy` varchar(255) NOT NULL,
- `cs_sy_id` varchar(11) NOT NULL,
- PRIMARY KEY (`cs_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- INSERT INTO `college_semester` (`cs_id`, `cs_name`, `cs_description`, `cs_ordinal`, `cs_isactive`, `cs_sy`, `cs_sy_id`) VALUES
- (4, 'First Semester', 'test', 1, 1, '2016-2017', '13'),
- (11, 'Second Semester', '', 0, 0, '2016-2017', '');
- DROP TABLE IF EXISTS `college_student_course_headers`;
- CREATE TABLE `college_student_course_headers` (
- `cc_header_id` int(11) NOT NULL AUTO_INCREMENT,
- `cc_student_id` int(50) DEFAULT NULL,
- `cc_student_course` int(50) DEFAULT NULL,
- `cc_student_track` int(50) DEFAULT NULL,
- `cc_student_strand` int(50) DEFAULT NULL,
- `yl_id` int(50) DEFAULT NULL COMMENT 'Year level',
- `csm_id` int(50) DEFAULT NULL COMMENT 'Semester',
- `ccb_id` int(50) DEFAULT NULL COMMENT 'block',
- `ccch_id` int(10) DEFAULT NULL COMMENT 'curriculum',
- PRIMARY KEY (`cc_header_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- INSERT INTO `college_student_course_headers` (`cc_header_id`, `cc_student_id`, `cc_student_course`, `cc_student_track`, `cc_student_strand`, `yl_id`, `csm_id`, `ccb_id`, `ccch_id`) VALUES
- (2, 10304, 8, 0, 0, 19, NULL, NULL, 1),
- (5, 9979, 21, NULL, 0, 19, NULL, NULL, 2);
- DROP TABLE IF EXISTS `college_subject_headers`;
- CREATE TABLE `college_subject_headers` (
- `college_headers_subject_id` int(11) NOT NULL AUTO_INCREMENT,
- `college_department` int(55) NOT NULL,
- `college_subject_id` int(55) NOT NULL,
- PRIMARY KEY (`college_headers_subject_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- INSERT INTO `college_subject_headers` (`college_headers_subject_id`, `college_department`, `college_subject_id`) VALUES
- (13, 5, 58),
- (16, 5, 61),
- (17, 6, 62),
- (18, 5, 52),
- (19, 5, 53),
- (20, 5, 54),
- (21, 5, 55),
- (22, 5, 56),
- (23, 5, 57),
- (24, 5, 58),
- (25, 5, 59),
- (26, 5, 60),
- (27, 5, 61),
- (28, 5, 62),
- (29, 5, 63),
- (30, 0, 64),
- (31, 5, 65),
- (32, 5, 56),
- (33, 5, 67),
- (34, 5, 68),
- (35, 5, 69),
- (36, 5, 70),
- (37, 5, 71),
- (38, 5, 72),
- (39, 12, 57),
- (40, 5, 57),
- (41, 5, 75),
- (42, 5, 76),
- (43, 5, 77),
- (44, 5, 78),
- (45, 5, 79),
- (46, 5, 60),
- (47, 5, 61),
- (48, 5, 62),
- (49, 5, 83),
- (50, 5, 0),
- (51, 5, 84),
- (52, 5, 85),
- (53, 5, 86),
- (54, 5, 87),
- (55, 5, 88),
- (56, 5, 89),
- (57, 5, 90),
- (58, 5, 70),
- (59, 5, 0),
- (60, 5, 67),
- (61, 5, 0),
- (62, 5, 0),
- (63, 5, 93),
- (64, 5, 94),
- (65, 5, 95),
- (66, 5, 96),
- (67, 5, 97),
- (68, 5, 71),
- (69, 5, 99),
- (70, 5, 100),
- (71, 5, 101),
- (72, 5, 102),
- (73, 5, 103),
- (74, 5, 104),
- (75, 5, 105),
- (76, 5, 0),
- (77, 5, 106),
- (78, 5, 107),
- (79, 5, 108),
- (80, 5, 109),
- (81, 5, 110),
- (82, 5, 111),
- (83, 5, 112),
- (84, 5, 0),
- (85, 5, 113),
- (86, 5, 114),
- (87, 5, 115),
- (88, 5, 0),
- (89, 5, 116),
- (90, 5, 0),
- (91, 5, 117),
- (92, 5, 118),
- (93, 5, 119),
- (94, 5, 120),
- (95, 5, 82),
- (96, 5, 81),
- (97, 5, 124),
- (98, 5, 125),
- (99, 5, 125),
- (100, 5, 127),
- (101, 5, 128),
- (102, 5, 129),
- (103, 5, 130),
- (104, 5, 131),
- (105, 5, 132),
- (106, 5, 133),
- (107, 5, 134),
- (108, 5, 135),
- (109, 5, 136),
- (110, 5, 137),
- (111, 5, 138),
- (112, 5, 139),
- (113, 5, 140),
- (114, 5, 141),
- (115, 5, 142),
- (116, 5, 143),
- (117, 5, 144),
- (118, 5, 145),
- (119, 5, 146),
- (120, 5, 147),
- (121, 5, 148),
- (122, 5, 149),
- (123, 5, 150),
- (124, 5, 151),
- (125, 5, 152),
- (126, 5, 152),
- (127, 5, 154),
- (128, 5, 154),
- (129, 5, 156),
- (130, 5, 154),
- (131, 5, 156),
- (132, 5, 156),
- (133, 5, 156),
- (134, 5, 161),
- (135, 5, 162),
- (136, 5, 163),
- (137, 5, 164),
- (138, 5, 165),
- (139, 5, 166),
- (140, 5, 167),
- (141, 5, 168),
- (142, 5, 169),
- (143, 5, 170),
- (144, 5, 171),
- (145, 5, 172),
- (146, 5, 173),
- (147, 5, 174),
- (148, 5, 175),
- (149, 5, 176),
- (150, 5, 177),
- (151, 5, 178),
- (152, 5, 179),
- (153, 5, 180),
- (154, 5, 181),
- (155, 5, 182),
- (156, 5, 183),
- (157, 5, 184),
- (158, 5, 185),
- (159, 5, 186),
- (160, 5, 187),
- (161, 5, 188),
- (162, 5, 189),
- (163, 5, 190),
- (164, 5, 191),
- (165, 5, 192),
- (166, 5, 193),
- (167, 5, 194),
- (168, 5, 195),
- (169, 5, 196),
- (170, 5, 197),
- (171, 5, 198),
- (172, 5, 0),
- (173, 5, 0),
- (174, 5, 0),
- (175, 5, 0),
- (176, 5, 0),
- (177, 5, 186),
- (178, 5, 0),
- (179, 5, 0),
- (180, 5, 0),
- (181, 5, 0),
- (182, 5, 0),
- (183, 5, 0),
- (184, 5, 0),
- (185, 5, 0),
- (186, 5, 0),
- (187, 5, 0),
- (188, 5, 198),
- (189, 5, 0),
- (190, 5, 160),
- (191, 5, 159),
- (192, 5, 200),
- (193, 5, 158),
- (194, 5, 0),
- (195, 5, 0),
- (196, 5, 201),
- (197, 5, 202),
- (198, 5, 203),
- (199, 5, 204),
- (200, 5, 205),
- (201, 5, 206),
- (202, 5, 207),
- (203, 5, 208),
- (204, 5, 209),
- (205, 5, 210),
- (206, 5, 211),
- (207, 5, 212),
- (208, 5, 213),
- (209, 5, 214),
- (210, 5, 215),
- (211, 5, 214),
- (212, 5, 217),
- (213, 5, 218),
- (214, 5, 219),
- (215, 5, 220),
- (216, 5, 221),
- (217, 5, 222),
- (218, 5, 223),
- (219, 5, 224),
- (220, 5, 225),
- (221, 5, 226),
- (222, 5, 227),
- (223, 5, 228),
- (224, 5, 229),
- (225, 5, 230),
- (226, 5, 231),
- (227, 5, 232),
- (228, 5, 233),
- (229, 5, 234),
- (230, 5, 235),
- (231, 5, 236),
- (232, 5, 237),
- (233, 5, 238),
- (234, 5, 239),
- (235, 5, 240),
- (236, 5, 241),
- (237, 5, 242),
- (238, 5, 243),
- (239, 5, 244),
- (240, 5, 245),
- (241, 5, 246),
- (242, 5, 247),
- (243, 5, 248),
- (244, 5, 249),
- (245, 5, 250),
- (246, 5, 251),
- (247, 5, 252),
- (248, 5, 253),
- (249, 5, 254),
- (250, 5, 255),
- (251, 5, 0),
- (252, 5, 0),
- (253, 5, 0),
- (254, 5, 0),
- (255, 5, 0),
- (256, 5, 0),
- (257, 5, 0),
- (258, 5, 0),
- (259, 5, 0),
- (260, 5, 0),
- (261, 5, 256),
- (262, 5, 258),
- (263, 5, 259),
- (264, 5, 260),
- (265, 5, 260),
- (266, 5, 262),
- (267, 5, 264),
- (268, 5, 262),
- (269, 5, 266),
- (270, 5, 267),
- (271, 0, 268),
- (272, 0, 269),
- (273, 0, 271),
- (274, 0, 272),
- (275, 0, 274);
- DROP TABLE IF EXISTS `college_subject_schedule`;
- CREATE TABLE `college_subject_schedule` (
- `college_subject_schedule_id` int(11) NOT NULL AUTO_INCREMENT,
- `ccc_id` int(11) NOT NULL,
- `csh_id` int(11) NOT NULL,
- `college_day` varchar(200) NOT NULL,
- `college_time_in` varchar(10) NOT NULL,
- `college_time_out` varchar(10) NOT NULL,
- `college_room_id` int(10) NOT NULL,
- `college_professor_id` int(10) NOT NULL,
- `college_course_id` int(10) NOT NULL,
- `college_year_level` int(10) NOT NULL,
- `college_sem_id` int(10) NOT NULL,
- PRIMARY KEY (`college_subject_schedule_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- INSERT INTO `college_subject_schedule` (`college_subject_schedule_id`, `ccc_id`, `csh_id`, `college_day`, `college_time_in`, `college_time_out`, `college_room_id`, `college_professor_id`, `college_course_id`, `college_year_level`, `college_sem_id`) VALUES
- (1, 1, 23, '[{\"sunday\":0,\"monday\":1,\"tuesday\":1,\"wednesday\":0,\"thursday\":0,\"friday\":0,\"saturday\":0}]', '7:00 AM', '9:00 AM', 33, 24, 8, 19, 4),
- (2, 2, 13, '[{\"sunday\":0,\"monday\":0,\"tuesday\":0,\"wednesday\":1,\"thursday\":1,\"friday\":0,\"saturday\":0}]', '9:00 AM', '12:00 PM', 36, 25, 8, 19, 4),
- (3, 3, 21, '[{\"sunday\":0,\"monday\":0,\"tuesday\":0,\"wednesday\":0,\"thursday\":1,\"friday\":0,\"saturday\":1}]', '1:00 PM', '3:00 PM', 36, 10, 8, 19, 4),
- (4, 3, 21, '[{\"sunday\":0,\"monday\":0,\"tuesday\":0,\"wednesday\":0,\"thursday\":0,\"friday\":0,\"saturday\":1}]', '5:00 PM', '7:00 PM', 38, 4, 8, 19, 4),
- (5, 1, 23, '[{\"sunday\":0,\"monday\":0,\"tuesday\":0,\"wednesday\":1,\"thursday\":1,\"friday\":0,\"saturday\":0}]', '1:00 PM', '5:00 PM', 33, 0, 8, 19, 4),
- (6, 4, 95, '[{\"sunday\":0,\"monday\":0,\"tuesday\":1,\"wednesday\":0,\"thursday\":0,\"friday\":0,\"saturday\":0}]', '2:45 PM', '6:00 PM', 24, 29, 8, 19, 4),
- (7, 5, 221, '[{\"sunday\":0,\"monday\":0,\"tuesday\":0,\"wednesday\":0,\"thursday\":1,\"friday\":0,\"saturday\":0}]', '1:00 PM', '4:00 PM', 52, 7, 21, 19, 4),
- (8, 6, 23, '[{\"sunday\":0,\"monday\":0,\"tuesday\":0,\"wednesday\":1,\"thursday\":0,\"friday\":0,\"saturday\":0}]', '8:30 AM', '12:00 PM', 37, 32, 21, 19, 4),
- (9, 7, 21, '[{\"sunday\":0,\"monday\":0,\"tuesday\":1,\"wednesday\":0,\"thursday\":1,\"friday\":0,\"saturday\":0}]', '2:45 PM', '6:00 PM', 34, 32, 21, 19, 4);
- DROP TABLE IF EXISTS `college_subject_size`;
- CREATE TABLE `college_subject_size` (
- `csize_id` int(11) NOT NULL AUTO_INCREMENT,
- `csh_id` int(11) NOT NULL,
- `csize_size` int(11) NOT NULL,
- `ccb_id` int(11) NOT NULL,
- PRIMARY KEY (`csize_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- INSERT INTO `college_subject_size` (`csize_id`, `csh_id`, `csize_size`, `ccb_id`) VALUES
- (1, 23, 1, 20),
- (2, 13, 1, 20),
- (3, 21, 1, 20),
- (4, 95, 1, 20),
- (5, 23, 1, 21),
- (6, 13, 1, 21);
- DROP TABLE IF EXISTS `college_transaction_header`;
- CREATE TABLE `college_transaction_header` (
- `cth_id` int(11) NOT NULL AUTO_INCREMENT,
- `cs_transaction_id` int(11) NOT NULL,
- `cs_id` int(11) NOT NULL,
- `cs_th_status` int(11) NOT NULL,
- `cs_start_date` varchar(255) NOT NULL,
- `cs_end_date` varchar(255) NOT NULL,
- PRIMARY KEY (`cth_id`),
- KEY `cs_transaction_id` (`cs_transaction_id`),
- KEY `cs_id` (`cs_id`),
- CONSTRAINT `college_transaction_header_ibfk_1` FOREIGN KEY (`cs_transaction_id`) REFERENCES `college_transaction_schedule` (`cs_transaction_id`),
- CONSTRAINT `college_transaction_header_ibfk_2` FOREIGN KEY (`cs_id`) REFERENCES `college_semester` (`cs_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- INSERT INTO `college_transaction_header` (`cth_id`, `cs_transaction_id`, `cs_id`, `cs_th_status`, `cs_start_date`, `cs_end_date`) VALUES
- (2, 1, 4, 1, '02-06-2017', '02-20-2017');
- DROP TABLE IF EXISTS `college_transaction_schedule`;
- CREATE TABLE `college_transaction_schedule` (
- `cs_transaction_id` int(11) NOT NULL AUTO_INCREMENT,
- `cs_transaction_name` varchar(255) NOT NULL,
- `status` varchar(255) NOT NULL,
- PRIMARY KEY (`cs_transaction_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- INSERT INTO `college_transaction_schedule` (`cs_transaction_id`, `cs_transaction_name`, `status`) VALUES
- (1, 'Semester Enrollment', '1'),
- (2, 'Adding/Dropping/Changing', '1');
- DROP TABLE IF EXISTS `college_yearlevel_sems_2015_2016`;
- CREATE TABLE `college_yearlevel_sems_2015_2016` (
- `cys_id` int(10) NOT NULL AUTO_INCREMENT,
- `cc_id` int(10) NOT NULL,
- `yl_id` int(10) NOT NULL,
- `csm_id` int(10) NOT NULL,
- `dept_id` int(10) NOT NULL,
- PRIMARY KEY (`cys_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
- DROP TABLE IF EXISTS `college_yearlevel_sems_2016_2017`;
- CREATE TABLE `college_yearlevel_sems_2016_2017` (
- `cys_id` int(10) NOT NULL AUTO_INCREMENT,
- `cc_id` int(10) NOT NULL,
- `yl_id` int(10) NOT NULL,
- `csm_id` int(10) NOT NULL,
- `dept_id` int(10) NOT NULL,
- PRIMARY KEY (`cys_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
- INSERT INTO `college_yearlevel_sems_2016_2017` (`cys_id`, `cc_id`, `yl_id`, `csm_id`, `dept_id`) VALUES
- (1, 21, 19, 4, 16),
- (2, 21, 19, 4, 16);
- -- 2017-02-14 05:41:34
- INSERT INTO `college_semester` (`cs_name`, `cs_description`, `cs_ordinal`, `cs_isactive`, `cs_sy`, `cs_sy_id`)
- VALUES ('Summer', 'Summer', '2', '1', '2016-2017', '13');
Add Comment
Please, Sign In to add comment