-- Table structure for table `institution_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `institution_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `institution_payment_gateway_config`
--

CREATE TABLE IF NOT EXISTS `institution_payment_gateway_config` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `gateway` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `merchant_id` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `merchant_key` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `merchant_checksumkey` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `request_url` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `response_url` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `institution_sequence_params`
--

CREATE TABLE IF NOT EXISTS `institution_sequence_params` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `inst_abbr` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `inst_br_abbr` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `institution_sub_config`
--

CREATE TABLE IF NOT EXISTS `institution_sub_config` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci DEFAULT NULL,
  `inst_id` smallint(5) NOT NULL,
  `config_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `config_value` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 05:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `inst_autojob_config`
--

CREATE TABLE IF NOT EXISTS `inst_autojob_config` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci DEFAULT NULL,
  `shift_type` enum('','Morning','Afternoon','Evening') COLLATE utf8_unicode_ci DEFAULT NULL,
  `user_type` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `homework_job_run_time` time NOT NULL,
  `homework_last_run_datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `attendance_job_run_time` time NOT NULL,
  `attendance_last_run_datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `bday_job_run_time` time NOT NULL,
  `bday_last_run_datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_homework_base` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'N',
  `is_attendance_base` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'N',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `inst_homework_grp_status`
--

CREATE TABLE IF NOT EXISTS `inst_homework_grp_status` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `job_run_time` time NOT NULL,
  `last_run_datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 21:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `inst_msg91_account_info`
--

CREATE TABLE IF NOT EXISTS `inst_msg91_account_info` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `sender_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `authkey` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 21:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `inst_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `inst_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `inst_rule_config`
--

CREATE TABLE IF NOT EXISTS `inst_rule_config` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `module_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `rule_apply_for` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `rule` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-29 18:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AVG_ROW_LENGTH=8192;

-- --------------------------------------------------------

--
-- Table structure for table `interview_schedule_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `interview_schedule_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `inventory_department_master`
--

CREATE TABLE IF NOT EXISTS `inventory_department_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `inventory_dept_id` mediumint(8) NOT NULL,
  `dept_issue_type` char(3) COLLATE utf8_unicode_ci NOT NULL,
  `inventory_dept_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `inventory_dept_display_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `inventory_dept_desc` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `inventory_dept_abbr` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `is_default_dept` tinyint(1) DEFAULT NULL,
  `item_label` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `inventory_issue_details`
--

CREATE TABLE IF NOT EXISTS `inventory_issue_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `issue_mst_id` mediumint(8) NOT NULL,
  `issue_dtl_id` mediumint(8) NOT NULL,
  `item_id` mediumint(8) NOT NULL,
  `quantity` decimal(7,2) NOT NULL,
  `item_rate` bigint(30) NOT NULL,
  `cgst` decimal(7,2) NOT NULL,
  `sgst` decimal(7,2) NOT NULL,
  `igst` decimal(7,2) NOT NULL,
  `total_item_rate` decimal(7,2) NOT NULL,
  `unit` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `amount` bigint(50) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 21:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `inventory_issue_item_details_seq_generator`
--

CREATE TABLE IF NOT EXISTS `inventory_issue_item_details_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `inventory_issue_item_master_seq_generator`
--

CREATE TABLE IF NOT EXISTS `inventory_issue_item_master_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `inventory_issue_master`
--

CREATE TABLE IF NOT EXISTS `inventory_issue_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `issue_mst_id` mediumint(8) NOT NULL,
  `inventory_dept_id` mediumint(8) NOT NULL,
  `fin_receipt` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `party_type` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `party_id` mediumint(8) NOT NULL,
  `total_amount` bigint(50) NOT NULL,
  `issue_date` date NOT NULL,
  `file_upload_id` mediumint(8) NOT NULL,
  `issue_type` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 21:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `inventory_item_category`
--

CREATE TABLE IF NOT EXISTS `inventory_item_category` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `item_category_id` mediumint(8) NOT NULL,
  `inventory_dept_id` mediumint(8) NOT NULL,
  `category_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `category_type` varchar(40) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `inventory_item_category_seq_generator`
--

CREATE TABLE IF NOT EXISTS `inventory_item_category_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AVG_ROW_LENGTH=82;

-- --------------------------------------------------------

--
-- Table structure for table `inventory_item_master`
--

CREATE TABLE IF NOT EXISTS `inventory_item_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `item_id` mediumint(8) NOT NULL,
  `item_category_id` mediumint(8) NOT NULL,
  `item_code` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `inventory_dept_id` mediumint(8) NOT NULL,
  `item_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `item_display_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `unit` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `item_rate` bigint(30) NOT NULL,
  `is_expense` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `initial_stock` bigint(20) NOT NULL,
  `item_status` tinyint(1) NOT NULL,
  `cgst` decimal(7,2) NOT NULL,
  `cgst_amount` decimal(7,2) NOT NULL,
  `sgst` decimal(7,2) NOT NULL,
  `sgst_amount` decimal(7,2) NOT NULL,
  `igst` decimal(7,2) NOT NULL,
  `igst_amount` decimal(7,2) NOT NULL,
  `total_item_rate` decimal(7,2) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 05:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `inventory_item_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `inventory_item_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AVG_ROW_LENGTH=82;

-- --------------------------------------------------------

--
-- Table structure for table `inventory_order_details`
--

CREATE TABLE IF NOT EXISTS `inventory_order_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `order_master_id` mediumint(8) NOT NULL,
  `order_detail_id` mediumint(8) NOT NULL,
  `item_id` mediumint(8) NOT NULL,
  `order_quantity` decimal(7,2) NOT NULL,
  `unit` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `received_quantity` decimal(7,2) NOT NULL,
  `recived_item_rate` mediumint(8) NOT NULL,
  `received_amount` bigint(50) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 05:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `inventory_order_dtl_seq_generator`
--

CREATE TABLE IF NOT EXISTS `inventory_order_dtl_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `inventory_order_master`
--

CREATE TABLE IF NOT EXISTS `inventory_order_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `order_master_id` mediumint(8) NOT NULL,
  `party_id` mediumint(8) NOT NULL,
  `inventory_dept_id` mediumint(8) NOT NULL,
  `order_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `order_desc` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `order_date` date DEFAULT NULL,
  `total_amount` bigint(50) NOT NULL,
  `order_status` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `fulfil_status` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 05:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `inventory_order_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `inventory_order_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `inventory_party_master`
--

CREATE TABLE IF NOT EXISTS `inventory_party_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `inventory_party_id` smallint(5) NOT NULL,
  `inventory_party_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `inventory_party_type` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `address` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `party_contact_no` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 21:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `inventory_pocket_money`
--

CREATE TABLE IF NOT EXISTS `inventory_pocket_money` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `user_id` mediumint(8) NOT NULL,
  `user_type` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `balance` bigint(50) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `inventory_stock_balance`
--

CREATE TABLE IF NOT EXISTS `inventory_stock_balance` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `inventory_dept_id` mediumint(8) NOT NULL,
  `order_master_id` mediumint(8) NOT NULL,
  `item_id` mediumint(8) NOT NULL,
  `quantity` decimal(7,2) DEFAULT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-29 23:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `inventory_user_pocket_history`
--

CREATE TABLE IF NOT EXISTS `inventory_user_pocket_history` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `issue_mst_id` mediumint(8) NOT NULL,
  `user_id` mediumint(8) NOT NULL,
  `user_type` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `transcation_type` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `balance` bigint(50) NOT NULL,
  `date` date NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 10:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `jobs`
--

CREATE TABLE IF NOT EXISTS `jobs` (
  `id` bigint(20) unsigned NOT NULL,
  `queue` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `payload` longtext COLLATE utf8_unicode_ci NOT NULL,
  `attempts` int(10) unsigned NOT NULL,
  `reserved` tinyint(3) unsigned NOT NULL,
  `reserved_at` int(10) unsigned DEFAULT NULL,
  `available_at` int(10) unsigned NOT NULL,
  `created_at` int(10) unsigned NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `json_template_master`
--

CREATE TABLE IF NOT EXISTS `json_template_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `json_template_id` mediumint(8) NOT NULL,
  `tbl_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `col_name` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `col_pos` tinyint(2) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2036-12-31 03:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `kitchen_item_master`
--

CREATE TABLE IF NOT EXISTS `kitchen_item_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `item_id` mediumint(8) NOT NULL,
  `item_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `item_display_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `unit` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-29 23:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `kitchen_item_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `kitchen_item_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AVG_ROW_LENGTH=82;

-- --------------------------------------------------------

--
-- Table structure for table `leave_package_emp_history`
--

CREATE TABLE IF NOT EXISTS `leave_package_emp_history` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `emp_id` mediumint(8) NOT NULL,
  `package_id` mediumint(8) NOT NULL,
  `leave_type` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `credit` int(20) NOT NULL,
  `leave_balance` decimal(7,1) NOT NULL,
  `used_leave` decimal(7,1) NOT NULL,
  `cary_forward_leave` int(25) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `leave_package_emp_map`
--

CREATE TABLE IF NOT EXISTS `leave_package_emp_map` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `emp_id` mediumint(8) NOT NULL,
  `package_id` mediumint(8) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-29 18:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `leave_real_time_emp_balance`
--

CREATE TABLE IF NOT EXISTS `leave_real_time_emp_balance` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `emp_id` mediumint(8) NOT NULL,
  `package_id` mediumint(8) NOT NULL,
  `leave_type` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `credit` int(20) NOT NULL,
  `credit_frequency` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `leave_balance` decimal(7,1) NOT NULL,
  `total_leave` int(20) NOT NULL,
  `used_leave` decimal(7,1) NOT NULL,
  `deduct_leave` decimal(7,2) NOT NULL,
  `min_used_leave` int(20) NOT NULL,
  `cary_forward_leave` int(25) NOT NULL,
  `total_max_cf_leave` int(25) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `liability_master`
--

CREATE TABLE IF NOT EXISTS `liability_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `liability_id` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `liability_name` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `liability_desc` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `liability_value` double(10,2) NOT NULL,
  `is_solved` tinyint(1) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 08:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `library_accounts`
--

CREATE TABLE IF NOT EXISTS `library_accounts` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `lib_acct_id` mediumint(8) NOT NULL,
  `acct_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `acct_display_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `acct_abbr` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `logo_path` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `is_default` tinyint(1) NOT NULL DEFAULT '1',
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-29 23:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AVG_ROW_LENGTH=8192;

-- --------------------------------------------------------

--
-- Table structure for table `library_account_seq_generator`
--

CREATE TABLE IF NOT EXISTS `library_account_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `library_book_details`
--

CREATE TABLE IF NOT EXISTS `library_book_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `book_id` mediumint(8) NOT NULL,
  `book_code` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `barcode` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `publication` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `publish_date` date DEFAULT NULL,
  `book_edition` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `per_book_price` int(20) DEFAULT NULL,
  `rack_type` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `rack_no` int(10) DEFAULT NULL,
  `book_arrival_date` date DEFAULT NULL,
  `place_of_publication` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `year_of_publication` smallint(5) NOT NULL,
  `pages` bigint(20) NOT NULL,
  `binding` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `source` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `remark` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `accession_no` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `book_condition` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 10:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `library_book_issue`
--

CREATE TABLE IF NOT EXISTS `library_book_issue` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `lib_acct_id` mediumint(8) NOT NULL,
  `member_id` mediumint(8) NOT NULL,
  `book_code` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `member_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `issue_date` date DEFAULT NULL,
  `return_date` date NOT NULL,
  `returned_date` date DEFAULT NULL,
  `book_status` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `book_renew_count` smallint(8) NOT NULL,
  `fine_amount` bigint(20) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-29 23:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `library_book_master`
--

CREATE TABLE IF NOT EXISTS `library_book_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `lib_acct_id` mediumint(8) NOT NULL,
  `book_id` mediumint(8) NOT NULL,
  `ISBN_no` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `book_category` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `book_title` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `book_author` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `book_type` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `no_of_copies` int(20) DEFAULT NULL,
  `book_entry_date` date NOT NULL,
  `language` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `bill_no` mediumint(8) NOT NULL,
  `bill_date` date NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 10:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AVG_ROW_LENGTH=8192;

-- --------------------------------------------------------

--
-- Table structure for table `meal_calendar_details`
--

CREATE TABLE IF NOT EXISTS `meal_calendar_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E.g. 2015-16',
  `inst_id` smallint(5) NOT NULL,
  `meal_dtl_id` mediumint(8) NOT NULL,
  `meal_mst_id` mediumint(8) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `meal_cal_type` enum('Fixed','Dynamic') COLLATE utf8_unicode_ci DEFAULT NULL,
  `meal_date` date NOT NULL,
  `meal_day` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `meal_type` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `meal_label` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `meal_value` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `meal_calendar_dtl_seq_generator`
--

CREATE TABLE IF NOT EXISTS `meal_calendar_dtl_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `meal_calendar_master`
--

CREATE TABLE IF NOT EXISTS `meal_calendar_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E.g. 2015-16',
  `inst_id` smallint(5) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `meal_mst_id` mediumint(8) NOT NULL,
  `meal_calendar_valid_from` date NOT NULL,
  `meal_calendar_valid_to` date NOT NULL,
  `title` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 21:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `meal_calendar_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `meal_calendar_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `migration_std_div_map_inputs`
--

CREATE TABLE IF NOT EXISTS `migration_std_div_map_inputs` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `previous_yr_student_count` smallint(5) NOT NULL,
  `admission_intake` smallint(5) NOT NULL,
  `students_per_division` smallint(5) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `mobile_account_mapping`
--

CREATE TABLE IF NOT EXISTS `mobile_account_mapping` (
  `id` mediumint(8) NOT NULL,
  `owner_mobile_phone` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `target_mobile_number` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `guest_inst_id` mediumint(8) NOT NULL,
  `guest_user_id` mediumint(8) NOT NULL,
  `guest_user_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `user_status` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `is_default_profile` tinyint(3) DEFAULT '0',
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `module_user_master`
--

CREATE TABLE IF NOT EXISTS `module_user_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `user_id` mediumint(8) NOT NULL,
  `module_acct_id` mediumint(8) NOT NULL,
  `module_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `is_create_allowed` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `is_read_allowed` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `is_update_allowed` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `is_delete_allowed` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 10:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `news_category`
--

CREATE TABLE IF NOT EXISTS `news_category` (
  `id` int(11) NOT NULL,
  `category_id` smallint(5) NOT NULL,
  `category_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `category_description` varchar(5000) COLLATE utf8_unicode_ci NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `news_posts`
--

CREATE TABLE IF NOT EXISTS `news_posts` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `org_id` smallint(5) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `post_id` mediumint(8) NOT NULL,
  `post_category` smallint(5) NOT NULL,
  `post_title` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `post_slug` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `post_content` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `post_date` date NOT NULL,
  `post_image` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `original_image_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `comments_enabled` tinyint(2) NOT NULL DEFAULT '1',
  `scope` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `is_facebook` char(1) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `is_twitter` char(1) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `status` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 10:59:59',
  `created_by` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `updated_by` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_bin;

-- --------------------------------------------------------

--
-- Table structure for table `news_post_seq_generator`
--

CREATE TABLE IF NOT EXISTS `news_post_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `notification_config`
--

CREATE TABLE IF NOT EXISTS `notification_config` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci DEFAULT NULL,
  `inst_id` smallint(5) NOT NULL,
  `notif_template_id` mediumint(8) NOT NULL,
  `notif_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `notif_desc` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `txn_id` mediumint(8) DEFAULT NULL,
  `txn_category` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `txn_sub_category` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `is_sms` tinyint(1) NOT NULL,
  `sms_template_id` mediumint(8) DEFAULT NULL,
  `is_mail` tinyint(1) NOT NULL,
  `mail_template_id` mediumint(8) DEFAULT NULL,
  `is_app` tinyint(1) NOT NULL,
  `app_template_id` mediumint(8) DEFAULT NULL,
  `is_web` tinyint(1) NOT NULL,
  `web_template_id` mediumint(8) DEFAULT NULL,
  `priority` tinyint(1) NOT NULL,
  `handler_method` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `is_auto_mode` tinyint(1) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 08:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `notification_master`
--

CREATE TABLE IF NOT EXISTS `notification_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci DEFAULT NULL,
  `inst_id` smallint(5) NOT NULL,
  `notification_id` mediumint(8) NOT NULL,
  `notif_template_id` mediumint(8) NOT NULL,
  `notif_datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `send_group_json` text COLLATE utf8_unicode_ci NOT NULL,
  `is_sms` tinyint(1) NOT NULL,
  `sms_from_mobile_no` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sms_body` varchar(1000) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sms_params` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sms_opt1` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sms_opt2` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `is_mail` tinyint(1) NOT NULL,
  `email_subject` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email_from` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email_cc_address` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email_bcc_address` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email_replyto` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email_body` varchar(5000) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email_params` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email_attach_path1` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email_attach_path2` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email_opt1` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email_opt2` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `is_app` tinyint(1) NOT NULL,
  `push_message` varchar(1000) COLLATE utf8_unicode_ci DEFAULT NULL,
  `push_title` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `push_subtitle` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `push_action` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `push_vibrate` tinyint(1) DEFAULT '1',
  `push_sound` tinyint(1) DEFAULT '1',
  `push_large_icon` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `push_small_icon` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `push_registration_id` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `push_params` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `push_opt1` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `push_opt2` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `is_web` tinyint(1) NOT NULL,
  `web_subject` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `web_params` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `web_from` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `web_description` varchar(2000) COLLATE utf8_unicode_ci DEFAULT NULL,
  `web_icon` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `web_action_link` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `web_opt1` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `web_opt2` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `actual_datetime` timestamp NULL DEFAULT NULL,
  `priority` tinyint(1) NOT NULL DEFAULT '3',
  `status` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `sms_compulsion` tinyint(1) NOT NULL DEFAULT '-1',
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 08:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `notification_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `notification_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `notif_app_log`
--

CREATE TABLE IF NOT EXISTS `notif_app_log` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci DEFAULT NULL,
  `inst_id` smallint(5) NOT NULL,
  `notification_id` mediumint(8) NOT NULL,
  `user_type` char(3) COLLATE utf8_unicode_ci DEFAULT NULL,
  `user_id` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `push_message` varchar(1000) COLLATE utf8_unicode_ci NOT NULL,
  `push_title` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `push_subtitle` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `push_action` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `push_vibrate` tinyint(1) DEFAULT '1',
  `push_sound` tinyint(1) DEFAULT '1',
  `push_large_icon` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `push_small_icon` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `push_registration_id` varchar(2000) COLLATE utf8_unicode_ci DEFAULT NULL,
  `push_opt1` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `push_opt2` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `recipient_type` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `priority` tinyint(1) DEFAULT '1',
  `expiries_on` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `sent_on` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `max_retry_count` tinyint(2) DEFAULT '1',
  `retry_count` tinyint(2) DEFAULT '0',
  `retry_interval` smallint(5) DEFAULT '0',
  `retried_on` timestamp NULL DEFAULT NULL,
  `status` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `response_message` varchar(10000) COLLATE utf8_unicode_ci DEFAULT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 03:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `notif_app_template_master`
--

CREATE TABLE IF NOT EXISTS `notif_app_template_master` (
  `id` mediumint(8) NOT NULL,
  `app_template_id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `push_message` varchar(1000) COLLATE utf8_unicode_ci NOT NULL,
  `push_title` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `push_subtitle` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `push_action` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `push_vibrate` tinyint(1) NOT NULL DEFAULT '1',
  `push_sound` tinyint(1) NOT NULL DEFAULT '1',
  `push_large_icon` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `push_small_icon` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `push_registration_id` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `push_params` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `push_opt1` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `push_opt2` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `recipient_type` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 15:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `notif_email_log`
--

CREATE TABLE IF NOT EXISTS `notif_email_log` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci DEFAULT NULL,
  `inst_id` smallint(5) NOT NULL,
  `notification_id` mediumint(8) NOT NULL,
  `user_type` char(3) COLLATE utf8_unicode_ci NOT NULL,
  `user_id` mediumint(8) NOT NULL,
  `email_subject` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `email_from` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `email_to` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `email_cc_address` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email_bcc_address` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email_replyto` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email_body` varchar(5000) COLLATE utf8_unicode_ci NOT NULL,
  `email_attach_path1` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email_attach_path2` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email_opt1` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email_opt2` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `recipient_type` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `priority` tinyint(1) DEFAULT NULL,
  `expiries_on` timestamp NULL DEFAULT NULL,
  `sent_on` timestamp NULL DEFAULT NULL,
  `max_retry_count` tinyint(2) DEFAULT '5',
  `retry_count` tinyint(2) DEFAULT '0',
  `retry_interval` smallint(5) DEFAULT '0',
  `retried_on` timestamp NULL DEFAULT NULL,
  `status` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 08:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `notif_email_template_master`
--

CREATE TABLE IF NOT EXISTS `notif_email_template_master` (
  `id` mediumint(8) NOT NULL,
  `mail_template_id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `email_subject` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `email_from` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `email_cc_address` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `email_bcc_address` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `email_replyto` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `email_body` varchar(5000) COLLATE utf8_unicode_ci NOT NULL,
  `email_params` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `email_attach_path1` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email_attach_path2` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email_opt1` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email_opt2` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `recipient_type` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 21:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `notif_file_attachments`
--

CREATE TABLE IF NOT EXISTS `notif_file_attachments` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci DEFAULT NULL,
  `inst_id` smallint(5) NOT NULL,
  `notification_id` mediumint(8) NOT NULL,
  `file_upload_id` mediumint(8) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 21:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `notif_sms_log`
--

CREATE TABLE IF NOT EXISTS `notif_sms_log` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci DEFAULT NULL,
  `inst_id` smallint(5) NOT NULL,
  `notification_id` mediumint(8) NOT NULL,
  `user_type` char(3) COLLATE utf8_unicode_ci NOT NULL,
  `user_id` mediumint(8) NOT NULL,
  `sms_from_mobile_no` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `sms_to_mobile_no` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `sms_body` varchar(1000) COLLATE utf8_unicode_ci NOT NULL,
  `sms_opt1` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sms_opt2` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `recipient_type` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `priority` tinyint(1) DEFAULT NULL,
  `expiries_on` timestamp NULL DEFAULT NULL,
  `sent_on` timestamp NULL DEFAULT NULL,
  `max_retry_count` tinyint(2) DEFAULT '5',
  `retry_count` tinyint(2) DEFAULT '0',
  `retry_interval` smallint(5) DEFAULT '0',
  `retried_on` timestamp NULL DEFAULT NULL,
  `status` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `response` varchar(1000) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sms_credits` smallint(5) DEFAULT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 08:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `notif_sms_log_archive`
--

CREATE TABLE IF NOT EXISTS `notif_sms_log_archive` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci DEFAULT NULL,
  `inst_id` smallint(5) NOT NULL,
  `notification_id` mediumint(8) NOT NULL,
  `user_type` char(3) COLLATE utf8_unicode_ci NOT NULL,
  `user_id` mediumint(8) NOT NULL,
  `sms_from_mobile_no` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `sms_to_mobile_no` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `sms_body` varchar(1000) COLLATE utf8_unicode_ci NOT NULL,
  `sms_opt1` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sms_opt2` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `recipient_type` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `priority` tinyint(1) DEFAULT NULL,
  `expiries_on` timestamp NULL DEFAULT NULL,
  `sent_on` timestamp NULL DEFAULT NULL,
  `max_retry_count` tinyint(2) DEFAULT '5',
  `retry_count` tinyint(2) DEFAULT '0',
  `retry_interval` smallint(5) DEFAULT '0',
  `retried_on` timestamp NULL DEFAULT NULL,
  `status` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `response` varchar(1000) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sms_credits` smallint(5) DEFAULT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 03:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `notif_sms_template_master`
--

CREATE TABLE IF NOT EXISTS `notif_sms_template_master` (
  `id` mediumint(8) NOT NULL,
  `sms_template_id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `sms_from_mobile_no` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `sms_body` varchar(1000) COLLATE utf8_unicode_ci NOT NULL,
  `sms_params` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `sms_opt1` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `sms_opt2` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `recipient_type` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 15:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `notif_web_log`
--

CREATE TABLE IF NOT EXISTS `notif_web_log` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci DEFAULT NULL,
  `inst_id` smallint(5) NOT NULL,
  `notification_id` mediumint(8) NOT NULL,
  `user_type` char(3) COLLATE utf8_unicode_ci NOT NULL,
  `user_id` mediumint(8) NOT NULL,
  `web_from` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `web_subject` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `web_description` varchar(2000) COLLATE utf8_unicode_ci DEFAULT NULL,
  `web_icon` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `web_action_link` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `web_opt1` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `web_opt2` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `recipient_type` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `priority` tinyint(1) DEFAULT NULL,
  `expiries_on` timestamp NULL DEFAULT NULL,
  `sent_on` timestamp NULL DEFAULT NULL,
  `is_read` tinyint(1) DEFAULT '0',
  `is_star` tinyint(1) DEFAULT '0',
  `opt1` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `opt2` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 08:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `notif_web_log_archive`
--

CREATE TABLE IF NOT EXISTS `notif_web_log_archive` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci DEFAULT NULL,
  `inst_id` smallint(5) NOT NULL,
  `notification_id` mediumint(8) NOT NULL,
  `user_type` char(3) COLLATE utf8_unicode_ci NOT NULL,
  `user_id` mediumint(8) NOT NULL,
  `web_from` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `web_subject` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `web_description` varchar(2000) COLLATE utf8_unicode_ci DEFAULT NULL,
  `web_icon` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `web_action_link` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `web_opt1` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `web_opt2` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `recipient_type` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `priority` tinyint(1) DEFAULT NULL,
  `expiries_on` timestamp NULL DEFAULT NULL,
  `sent_on` timestamp NULL DEFAULT NULL,
  `is_read` tinyint(1) DEFAULT '0',
  `is_star` tinyint(1) DEFAULT '0',
  `opt1` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `opt2` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 03:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `notif_web_template_master`
--

CREATE TABLE IF NOT EXISTS `notif_web_template_master` (
  `id` mediumint(8) NOT NULL,
  `web_template_id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `web_from` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `web_subject` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `web_params` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `web_description` varchar(2000) COLLATE utf8_unicode_ci NOT NULL,
  `web_icon` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `web_action_link` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `web_opt1` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `web_opt2` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `recipient_type` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 21:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `optional_field_appl_master`
--

CREATE TABLE IF NOT EXISTS `optional_field_appl_master` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `field_set_id` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `country_id` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `state_id` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `board_id` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `data_type` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `data_key` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `data_value` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `data_desc` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `data_abbr` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `data_pos` tinyint(3) NOT NULL,
  `is_system_def` tinyint(1) NOT NULL,
  `is_editable` tinyint(1) NOT NULL,
  `is_validations` tinyint(1) NOT NULL,
  `is_notifaction` tinyint(1) NOT NULL DEFAULT '0',
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 03:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `optional_field_details`
--

CREATE TABLE IF NOT EXISTS `optional_field_details` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `field_set_id` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `country_id` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `state_id` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `board_id` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `user_type` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
  `user_id` mediumint(8) NOT NULL,
  `f1` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `f2` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `f3` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `f4` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `f5` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `f6` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `f7` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `f8` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `f9` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `f10` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `f11` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `f12` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `f13` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `f14` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `f15` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `f16` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `f17` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `f18` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `f19` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `f20` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `f21` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `f22` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `f23` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `f24` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `f25` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `f26` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `f27` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `f28` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `f29` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `f30` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `f31` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `f32` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `f33` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `f34` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `f35` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `f36` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `f37` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `f38` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `f39` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `f40` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `f41` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 03:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AVG_ROW_LENGTH=682;

-- --------------------------------------------------------

--
-- Table structure for table `optional_field_master`
--

CREATE TABLE IF NOT EXISTS `optional_field_master` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `field_set_id` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `country_id` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `state_id` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `board_id` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `table_name` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `field_id` smallint(5) NOT NULL,
  `field_label` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `field_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `data_type` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `default_value` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `array_value` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `field_seq` smallint(5) NOT NULL,
  `is_optional` tinyint(1) NOT NULL DEFAULT '0',
  `category` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 21:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AVG_ROW_LENGTH=682;

-- --------------------------------------------------------

--
-- Table structure for table `order_details`
--

CREATE TABLE IF NOT EXISTS `order_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `order_master_id` mediumint(8) NOT NULL,
  `order_detail_id` mediumint(8) NOT NULL,
  `item_name` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `order_quantity` decimal(7,2) NOT NULL,
  `unit` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `received_quantity` decimal(7,2) NOT NULL,
  `recived_item_rate` mediumint(8) NOT NULL,
  `received_amount` bigint(50) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-29 23:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `order_dtl_seq_generator`
--

CREATE TABLE IF NOT EXISTS `order_dtl_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `order_master`
--

CREATE TABLE IF NOT EXISTS `order_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `order_master_id` mediumint(8) NOT NULL,
  `order_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `order_desc` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `order_date` date DEFAULT NULL,
  `total_amount` bigint(50) NOT NULL,
  `order_status` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `fulfil_status` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-29 23:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `order_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `order_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `organization_master`
--

CREATE TABLE IF NOT EXISTS `organization_master` (
  `id` mediumint(8) NOT NULL,
  `org_id` smallint(5) NOT NULL,
  `org_type` varchar(20) COLLATE utf8_unicode_ci NOT NULL COMMENT 'appl_data_master : ORGANIZATION_TYPE',
  `org_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `org_display_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `org_abbr` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `org_desc` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `org_logo_path` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `address_line_1` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `address_line_2` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `locality` int(4) NOT NULL,
  `city` int(4) NOT NULL,
  `state` int(4) NOT NULL,
  `district` int(4) NOT NULL,
  `country` int(4) NOT NULL,
  `pincode` mediumint(7) NOT NULL,
  `registration_num` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `foundation_date` date NOT NULL,
  `onboarding_date` date NOT NULL,
  `website_address` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `email_main` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `email_alt` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `facebook_address` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `twitter_address` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `linkedin_address` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `instagram_address` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `institutes` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `head_institute` mediumint(8) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 10:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `organization_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `organization_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `outbound_communication_details`
--

CREATE TABLE IF NOT EXISTS `outbound_communication_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `outbound_communication_id` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `communication_created_on` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `communication_valid_from` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `communication_valid_to` timestamp NULL DEFAULT '2037-12-31 08:59:59',
  `communication_title` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `communication_desc` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `status` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `status_desc` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `communication_addressed_to` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 08:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `parent_master`
--

CREATE TABLE IF NOT EXISTS `parent_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `parent_id` mediumint(8) NOT NULL,
  `salutation` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `first_name` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `middle_name` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `last_name` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `birth_date` date NOT NULL,
  `gender` enum('M','F','O') COLLATE utf8_unicode_ci NOT NULL,
  `relation_type` varchar(25) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Relationship to the child Parent / Guardian )',
  `relation` varchar(25) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Relationship to the child ( father / mother / .. )',
  `blood_group` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `birth_place` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `nationality` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `language` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `religion` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `caste` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `profile_logo_path` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `student_id_default` mediumint(8) DEFAULT NULL,
  `email_main` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `email_alt` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fixed_phone_1` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fixed_phone_2` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mobile_phone_1` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `mobile_phone_2` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `occupation` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `income_bracket` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `edu_qual_degree` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `edu_qual_stream` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `aadhar_card_num` varchar(12) COLLATE utf8_unicode_ci DEFAULT NULL,
  `pan_card_num` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `passport_num` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `curr_addr_line_1` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `curr_addr_line_2` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `curr_locality` int(4) DEFAULT NULL,
  `curr_city` int(4) DEFAULT NULL,
  `curr_district` int(4) DEFAULT NULL,
  `curr_state` int(4) DEFAULT NULL,
  `curr_country` int(4) DEFAULT NULL,
  `curr_pincode` mediumint(6) DEFAULT NULL,
  `is_addr_replicated` tinyint(1) DEFAULT NULL,
  `perm_addr_line_1` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `perm_addr_line_2` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `perm_locality` int(4) DEFAULT NULL,
  `perm_city` int(4) DEFAULT NULL,
  `perm_district` int(4) DEFAULT NULL,
  `perm_state` int(4) DEFAULT NULL,
  `perm_country` int(4) DEFAULT NULL,
  `perm_pincode` mediumint(6) DEFAULT NULL,
  `note` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bulk_upload_status` tinyint(3) NOT NULL,
  `stud_bulk_file_upload_id` mediumint(8) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 21:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `parent_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `parent_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `password_resets`
--

CREATE TABLE IF NOT EXISTS `password_resets` (
  `id` mediumint(8) NOT NULL,
  `login_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `email` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mobile_phone` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `token` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `expiry_time_limit` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `pmt_gateway_billdesk_response`
--

CREATE TABLE IF NOT EXISTS `pmt_gateway_billdesk_response` (
  `id` mediumint(8) NOT NULL,
  `merchant_id` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `txn_reference` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `billdesk_txn_reference` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `bank_reference_no` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
  `txn_amount` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
  `bank_id` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
  `bin` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
  `txn_type` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
  `txn_type_desc` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `currency_name` varchar(3) COLLATE utf8_unicode_ci NOT NULL,
  `item_code` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
  `security_type` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
  `security_id` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
  `security_password` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
  `txn_date` datetime DEFAULT CURRENT_TIMESTAMP,
  `auth_status` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
  `auth_status_desc` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `settlement_type` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
  `additional_info_1` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
  `additional_info_2` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
  `additional_info_3` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
  `additional_info_4` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
  `additional_info_5` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
  `additional_info_6` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
  `additional_info_7` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
  `error_status` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
  `error_description` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
  `filler1` varchar(120) COLLATE utf8_unicode_ci DEFAULT NULL,
  `refund_status` varchar(120) COLLATE utf8_unicode_ci DEFAULT NULL,
  `total_refund_amount` varchar(120) COLLATE utf8_unicode_ci DEFAULT NULL,
  `last_refund_date` datetime DEFAULT NULL,
  `last_refund_ref_no` varchar(120) COLLATE utf8_unicode_ci DEFAULT NULL,
  `query_status` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `checksum` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
  `response_str` varchar(4000) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 21:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `pmt_gateway_master`
--

CREATE TABLE IF NOT EXISTS `pmt_gateway_master` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `qp_code` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `txn_reference` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `txn_amount` double(30,2) NOT NULL,
  `txn_currency` varchar(3) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'INR',
  `txn_title` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `txn_details` varchar(1000) COLLATE utf8_unicode_ci DEFAULT NULL,
  `first_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `last_name` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `address_1` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `address_2` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `city` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `state` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `country` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `zip_code` char(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `phone_number` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `udf1` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `udf2` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `udf3` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `udf4` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `udf5` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `request_str` varchar(4000) COLLATE utf8_unicode_ci DEFAULT NULL,
  `request_checksum` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `txn_datetime` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `pmt_gateway` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `status` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 03:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `pmt_gateway_payumoney_response`
--

CREATE TABLE IF NOT EXISTS `pmt_gateway_payumoney_response` (
  `id` mediumint(8) NOT NULL,
  `txn_reference` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `response_code` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `response_status` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `txn_amount` double(30,2) NOT NULL,
  `txn_title` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `txn_details` varchar(1000) COLLATE utf8_unicode_ci DEFAULT NULL,
  `first_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `last_name` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `address_1` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `address_2` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `city` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `state` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `country` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `zip_code` char(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `phone_number` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `udf1` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `udf2` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `udf3` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `udf4` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `udf5` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `hash_checksum` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `txn_mode` char(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `merchant_key` char(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `error_code` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `error_desc` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `pg_type` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `bank_reference_number` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `bank_code` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `payumoney_id` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `additional_charges` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `name_on_card` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cardnum` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `amount_split` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `discount` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `net_amount_debit` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `txn_datetime` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 03:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `pmt_gateway_razorpay_response`
--

CREATE TABLE IF NOT EXISTS `pmt_gateway_razorpay_response` (
  `id` mediumint(8) NOT NULL,
  `merchant_id` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `razorpay_payment_id` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `razorpay_order_id` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `razorpay_signature` varchar(150) COLLATE utf8_unicode_ci NOT NULL,
  `txn_reference` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `txn_amount` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
  `currency_name` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
  `txn_status` varchar(120) COLLATE utf8_unicode_ci NOT NULL,
  `method` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `invoice_id` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `international` tinyint(3) NOT NULL,
  `pmt_captured` tinyint(3) DEFAULT NULL,
  `bank` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `wallet` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `vpa` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `contact` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `notes` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fee` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tax` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `txn_description` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `card_id` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `txn_date` datetime DEFAULT CURRENT_TIMESTAMP,
  `auth_status` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `auth_status_desc` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `refund_status` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `total_refund_amount` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `last_refund_date` datetime DEFAULT NULL,
  `last_refund_ref_no` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `settlement_type` varchar(120) COLLATE utf8_unicode_ci DEFAULT NULL,
  `additional_info_1` varchar(120) COLLATE utf8_unicode_ci DEFAULT NULL,
  `additional_info_2` varchar(120) COLLATE utf8_unicode_ci DEFAULT NULL,
  `additional_info_3` varchar(120) COLLATE utf8_unicode_ci DEFAULT NULL,
  `additional_info_4` varchar(120) COLLATE utf8_unicode_ci DEFAULT NULL,
  `additional_info_5` varchar(120) COLLATE utf8_unicode_ci DEFAULT NULL,
  `error_code` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `error_description` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 05:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `pmt_quick_pay_details`
--

CREATE TABLE IF NOT EXISTS `pmt_quick_pay_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `qp_dtl_id` mediumint(8) NOT NULL,
  `qp_mst_id` mediumint(8) NOT NULL,
  `demand_mst_id` mediumint(8) NOT NULL,
  `demand_grp_id` mediumint(8) NOT NULL,
  `collection_type` enum('DEM','ADH') COLLATE utf8_unicode_ci NOT NULL,
  `pmt_desc` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `pmt_amt` decimal(10,2) DEFAULT NULL,
  `tax_amt` decimal(10,2) NOT NULL,
  `total_pmt_amt` double(10,2) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 21:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `pmt_quick_pay_master`
--

CREATE TABLE IF NOT EXISTS `pmt_quick_pay_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `qp_mst_id` mediumint(8) NOT NULL,
  `qp_code` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `party_id` mediumint(8) NOT NULL,
  `party_type` char(3) COLLATE utf8_unicode_ci NOT NULL,
  `party_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `pmt_title` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `pmt_desc` varchar(1000) COLLATE utf8_unicode_ci DEFAULT NULL,
  `pmt_due_date` date NOT NULL,
  `pmt_date` date NOT NULL,
  `pmt_amt` decimal(10,2) DEFAULT NULL,
  `tax_amt` decimal(10,2) NOT NULL,
  `total_pmt_amt` double(10,2) NOT NULL,
  `status` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 21:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `proc_error_logs`
--

CREATE TABLE IF NOT EXISTS `proc_error_logs` (
  `id` int(11) NOT NULL,
  `routine_name` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `label_name` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sql_log` mediumtext COLLATE utf8_unicode_ci,
  `updated_on` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `qams_actor_master`
--

CREATE TABLE IF NOT EXISTS `qams_actor_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `actor_id` smallint(5) NOT NULL,
  `actor_title` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `description` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `abbr` char(10) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 08:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `qams_asset_master`
--

CREATE TABLE IF NOT EXISTS `qams_asset_master` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `asset_id` smallint(5) NOT NULL,
  `asset_type` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `asset_code` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `asset_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `asset_desc` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 08:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AVG_ROW_LENGTH=1;

-- --------------------------------------------------------

--
-- Table structure for table `qams_asset_master_seq_generator`
--

CREATE TABLE IF NOT EXISTS `qams_asset_master_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `qams_incident_data_details`
--

CREATE TABLE IF NOT EXISTS `qams_incident_data_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `incident_data_mst_id` smallint(5) NOT NULL,
  `user_type` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `user_id` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `incident_value` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 10:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `qams_incident_data_master`
--

CREATE TABLE IF NOT EXISTS `qams_incident_data_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `incident_data_mst_id` smallint(5) NOT NULL,
  `date` date DEFAULT NULL,
  `incident_id` smallint(5) NOT NULL,
  `actor_id` smallint(5) NOT NULL,
  `remark` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 10:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `qams_incident_data_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `qams_incident_data_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `qams_incident_master`
--

CREATE TABLE IF NOT EXISTS `qams_incident_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `incident_id` smallint(5) NOT NULL,
  `incident_title` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `description` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `is_date_independent` tinyint(1) NOT NULL DEFAULT '0',
  `abbr` char(10) COLLATE utf8_unicode_ci NOT NULL,
  `initiator` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `frequency` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `actors` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `data_type` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `data_format` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `data_default_value` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `seq_number` smallint(5) NOT NULL,
  `is_reverse_matrix` tinyint(4) NOT NULL DEFAULT '0',
  `is_only_applicable_all` tinyint(1) NOT NULL DEFAULT '0',
  `is_group_entry` tinyint(1) NOT NULL DEFAULT '0',
  `check_attendance` tinyint(3) DEFAULT NULL,
  `multi_row_allowed` tinyint(3) NOT NULL DEFAULT '0',
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 08:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `qams_incident_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `qams_incident_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `qams_other_users_master`
--

CREATE TABLE IF NOT EXISTS `qams_other_users_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `others_user_id` smallint(5) NOT NULL,
  `display_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 05:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `qams_other_user_seq_generator`
--

CREATE TABLE IF NOT EXISTS `qams_other_user_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `qms_category_master`
--

CREATE TABLE IF NOT EXISTS `qms_category_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `category_mst_id` smallint(5) NOT NULL,
  `category_name` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `category_desc` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `category_abbr` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `group_status` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `task_initiator` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `task_applicable_to` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `matrix_type` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `qms_task_data_details`
--

CREATE TABLE IF NOT EXISTS `qms_task_data_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `task_data_mst_id` smallint(5) NOT NULL,
  `task_mst_id` smallint(5) NOT NULL,
  `task_value` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `user_type` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `user_id` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `qms_task_data_master`
--

CREATE TABLE IF NOT EXISTS `qms_task_data_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `task_data_mst_id` smallint(5) NOT NULL,
  `date` date DEFAULT NULL,
  `category_mst_id` smallint(5) NOT NULL,
  `sub_category_id` smallint(5) NOT NULL,
  `task_data_description` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `group_type` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `group_id` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `qms_task_data_seq_generator`
--

CREATE TABLE IF NOT EXISTS `qms_task_data_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `qms_task_master`
--

CREATE TABLE IF NOT EXISTS `qms_task_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `category_mst_id` smallint(5) NOT NULL,
  `task_mst_id` smallint(5) NOT NULL,
  `task_title` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `task_description` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `task_data_format` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `data_type` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `default_value` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `queue_gate_pass_data`
--

CREATE TABLE IF NOT EXISTS `queue_gate_pass_data` (
  `id` mediumint(8) NOT NULL,
  `device_id` smallint(6) NOT NULL,
  `rfid` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `attendance_date` date NOT NULL,
  `time` time DEFAULT NULL,
  `status` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `ranking_level_master`
--

CREATE TABLE IF NOT EXISTS `ranking_level_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `ranking_lvl_id` int(10) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `grading_system` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `level_name` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `level_desc` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `level_abbr` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `exam_gpa_marks` decimal(6,2) NOT NULL,
  `subject_count` tinyint(2) NOT NULL,
  `rank_priority` tinyint(2) NOT NULL,
  `is_full_course` tinyint(1) NOT NULL,
  `subject_limit_type` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `marks_limit_type` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 08:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `role_master`
--

CREATE TABLE IF NOT EXISTS `role_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `role_id` smallint(5) NOT NULL,
  `role_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `parent_id` smallint(5) NOT NULL,
  `role_level` tinyint(2) NOT NULL,
  `role_name` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `role_display_name` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `role_desc` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `role_abbr` varchar(3) COLLATE utf8_unicode_ci NOT NULL,
  `is_default` tinyint(1) NOT NULL,
  `inst_alerts_allowed` tinyint(1) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 08:59:59',
  `created_by` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `role_txn_map`
--

CREATE TABLE IF NOT EXISTS `role_txn_map` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `role_id` smallint(5) NOT NULL,
  `txn_id` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `is_txn_allowed` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'N',
  `is_create_allowed` char(1) COLLATE utf8_unicode_ci DEFAULT 'N',
  `is_read_allowed` char(1) COLLATE utf8_unicode_ci DEFAULT 'Y',
  `is_update_allowed` char(1) COLLATE utf8_unicode_ci DEFAULT 'N',
  `is_delete_allowed` char(1) COLLATE utf8_unicode_ci DEFAULT 'N',
  `create_auth_type` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `update_auth_type` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `delete_auth_type` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 09:29:59',
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `rough_work_temp_student_master`
--

CREATE TABLE IF NOT EXISTS `rough_work_temp_student_master` (
  `id` int(11) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E.g. 2015-16',
  `inst_id` smallint(5) NOT NULL COMMENT 'E.g. INDMAHPUNEORBB0001',
  `student_id` mediumint(8) NOT NULL,
  `c1` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c2` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c3` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c4` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c5` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c6` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c7` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c8` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c9` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c10` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c11` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c12` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c13` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c14` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c15` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c16` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c17` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c18` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c19` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c20` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c21` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c22` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c23` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c24` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `c25` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `school_document_details`
--

CREATE TABLE IF NOT EXISTS `school_document_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `doc_id` mediumint(8) NOT NULL,
  `date` date NOT NULL,
  `group_type` char(5) COLLATE utf16_bin NOT NULL,
  `emp_id` mediumint(8) NOT NULL,
  `class_id` varchar(8) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `standard_id` char(2) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `division_id` char(1) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `title` varchar(250) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `comment` varchar(250) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `document_upload_id` varchar(25) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `status` varchar(25) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-29 23:59:59',
  `created_by` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `updated_by` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_bin;

-- --------------------------------------------------------

--
-- Table structure for table `sequence_generator_master`
--

CREATE TABLE IF NOT EXISTS `sequence_generator_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `seq_gen_mst_id` smallint(5) NOT NULL,
  `entity_id` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `reset_freq` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `param_count` tinyint(2) NOT NULL,
  `seperator_char` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `op_code` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `seq_pattern` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `seq_seed_num` mediumint(8) NOT NULL,
  `seq_current_num` mediumint(8) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 09:29:59',
  `created_by` varchar(25) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `server_maintenance_log`
--

CREATE TABLE IF NOT EXISTS `server_maintenance_log` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `user_type` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `user_id` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `request_url` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `request_dump` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 03:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `service_provider_appl`
--

CREATE TABLE IF NOT EXISTS `service_provider_appl` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `data_type` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `data_key` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `data_value` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `data_desc` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `data_abbr` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `data_pos` tinyint(3) NOT NULL,
  `is_system_def` tinyint(1) NOT NULL,
  `is_editable` tinyint(1) NOT NULL,
  `is_validations` tinyint(1) NOT NULL,
  `is_notifaction` tinyint(1) NOT NULL DEFAULT '0',
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 03:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `service_provider_institute_mapping`
--

CREATE TABLE IF NOT EXISTS `service_provider_institute_mapping` (
  `id` int(11) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `service_prov_inst_map_id` mediumint(8) NOT NULL,
  `prov_id` mediumint(8) NOT NULL,
  `category` text COLLATE utf8_unicode_ci NOT NULL,
  `sub_category` text COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 23:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `service_provider_institute_mapping_seq_generator`
--

CREATE TABLE IF NOT EXISTS `service_provider_institute_mapping_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `service_provider_seq_generator`
--

CREATE TABLE IF NOT EXISTS `service_provider_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `setup_class_master`
--

CREATE TABLE IF NOT EXISTS `setup_class_master` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `division_id` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `class_id` char(8) COLLATE utf8_unicode_ci NOT NULL,
  `emp_id` mediumint(8) NOT NULL,
  `class_name` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `setup_division_master`
--

CREATE TABLE IF NOT EXISTS `setup_division_master` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `division_id` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `setup_employee_master`
--

CREATE TABLE IF NOT EXISTS `setup_employee_master` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `emp_id` mediumint(8) NOT NULL,
  `salutation` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `first_name` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `last_name` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `gender` enum('M','F','O') COLLATE utf8_unicode_ci NOT NULL,
  `mobile_phone_1` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `role` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `setup_standard_master`
--

CREATE TABLE IF NOT EXISTS `setup_standard_master` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `gradeset_mst_id` smallint(5) NOT NULL,
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `setup_student_master`
--

CREATE TABLE IF NOT EXISTS `setup_student_master` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `student_id` mediumint(8) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `class_id` char(8) COLLATE utf8_unicode_ci NOT NULL,
  `first_name` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `last_name` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `birth_date` date NOT NULL,
  `gender` enum('M','F','O') COLLATE utf8_unicode_ci NOT NULL,
  `mobile_phone_main` varchar(15) COLLATE utf8_unicode_ci DEFAULT '0',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `setup_stud_master_seq_generator`
--

CREATE TABLE IF NOT EXISTS `setup_stud_master_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `setup_subject_master`
--

CREATE TABLE IF NOT EXISTS `setup_subject_master` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `subject_id` smallint(8) DEFAULT NULL,
  `sub_std_map_id` mediumint(8) DEFAULT '0',
  `subject_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `setup_subject_teacher_map`
--

CREATE TABLE IF NOT EXISTS `setup_subject_teacher_map` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `division_id` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `class_id` char(8) COLLATE utf8_unicode_ci NOT NULL,
  `subject_id` mediumint(8) NOT NULL,
  `subject_id_new` mediumint(8) NOT NULL,
  `emp_id` mediumint(8) NOT NULL,
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `setup_tress_master`
--

CREATE TABLE IF NOT EXISTS `setup_tress_master` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `step_id` mediumint(8) NOT NULL,
  `status` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `sms_credit_history`
--

CREATE TABLE IF NOT EXISTS `sms_credit_history` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `sms_credit_id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `sms_credit_no` bigint(50) NOT NULL,
  `rate` bigint(30) NOT NULL,
  `amount` bigint(50) NOT NULL,
  `gst_rate` decimal(3,2) NOT NULL,
  `gst_amount` bigint(30) NOT NULL,
  `total_amount` bigint(50) NOT NULL,
  `payment_type` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `bank_account_no` bigint(30) NOT NULL,
  `bank_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `remark` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `credit_date` date DEFAULT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 05:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `sms_credit_plans`
--

CREATE TABLE IF NOT EXISTS `sms_credit_plans` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `sms_credit_plan_id` mediumint(8) NOT NULL,
  `plan_name` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `no_of_sms_credit` bigint(50) NOT NULL,
  `validity` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `amount` bigint(50) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-29 18:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `sms_credit_status`
--

CREATE TABLE IF NOT EXISTS `sms_credit_status` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `sms_credit_balance` bigint(50) NOT NULL,
  `rate` bigint(30) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 05:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Stand-in structure for view `sms_credit_usage_institutewise`
--
DROP VIEW IF EXISTS `sms_credit_usage_institutewise`;
CREATE TABLE IF NOT EXISTS `sms_credit_usage_institutewise` (
`inst_id` int(1)
,`inst_name` int(1)
,`Total_credit` int(1)
);

-- --------------------------------------------------------

--
-- Stand-in structure for view `sms_credit_usage_institutewise_archive`
--
DROP VIEW IF EXISTS `sms_credit_usage_institutewise_archive`;
CREATE TABLE IF NOT EXISTS `sms_credit_usage_institutewise_archive` (
`inst_id` int(1)
,`inst_name` int(1)
,`Total_credit` int(1)
);

-- --------------------------------------------------------

--
-- Stand-in structure for view `sms_credit_usage_monthwise`
--
DROP VIEW IF EXISTS `sms_credit_usage_monthwise`;
CREATE TABLE IF NOT EXISTS `sms_credit_usage_monthwise` (
`inst_id` int(1)
,`inst_name` int(1)
,`Month` int(1)
,`Total_credit` int(1)
);

-- --------------------------------------------------------

--
-- Stand-in structure for view `sms_credit_usage_monthwise_archive`
--
DROP VIEW IF EXISTS `sms_credit_usage_monthwise_archive`;
CREATE TABLE IF NOT EXISTS `sms_credit_usage_monthwise_archive` (
`inst_id` int(1)
,`inst_name` int(1)
,`Month` int(1)
,`Total_credit` int(1)
);

-- --------------------------------------------------------

--
-- Stand-in structure for view `sms_credit_usage_vidyalekha`
--
DROP VIEW IF EXISTS `sms_credit_usage_vidyalekha`;
CREATE TABLE IF NOT EXISTS `sms_credit_usage_vidyalekha` (
`date` int(1)
,`total_credits` int(1)
);

-- --------------------------------------------------------

--
-- Table structure for table `sms_log`
--

CREATE TABLE IF NOT EXISTS `sms_log` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `sms_message_id` int(11) NOT NULL,
  `sms_recipient_id` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `sms_message` varchar(175) COLLATE utf8_unicode_ci NOT NULL,
  `sms_sent_date` date NOT NULL,
  `sms_delivery_date` date NOT NULL,
  `sms_gateway_code` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `sms_retry_count` int(1) NOT NULL,
  `mobile_number` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `sms_gateway_response` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 08:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `sms_template_master`
--

CREATE TABLE IF NOT EXISTS `sms_template_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `txn_id` mediumint(8) NOT NULL,
  `recipient_type` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `sms_body` varchar(164) COLLATE utf8_unicode_ci NOT NULL,
  `param_count` tinyint(1) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 03:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `social_post`
--

CREATE TABLE IF NOT EXISTS `social_post` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `facebook_user_id` bigint(30) NOT NULL,
  `twitter_user_id` bigint(30) NOT NULL,
  `facebook_page_id` bigint(30) NOT NULL,
  `app_id` bigint(30) NOT NULL,
  `fb_app_secret` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `fb_default_graph_version` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `user_access_token` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `long_lived_access_token` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `state` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `facebook_page_name` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `page_access_token` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `token_update_date` date NOT NULL,
  `twitter_app name` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `consumer_key` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `consumer_secret` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `twitter_access_token` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `twitter_access_token_secret` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 05:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `standards_admission_config_master`
--

CREATE TABLE IF NOT EXISTS `standards_admission_config_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `admission_start_date` datetime NOT NULL,
  `admission_end_date` datetime NOT NULL,
  `intake` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `min_age_criteria` date DEFAULT NULL,
  `max_age_criteria` date DEFAULT NULL,
  `std_icon` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `std_color` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `note` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `hide_admission_dates` tinyint(1) NOT NULL DEFAULT '1',
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `standard_division_map`
--

CREATE TABLE IF NOT EXISTS `standard_division_map` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `std_div_map_id` mediumint(8) NOT NULL,
  `curriculum_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `grading_system` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `division_id` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `shift_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `division_name` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `division_desc` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `division_abbr` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 08:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `standard_division_map_seq_generator`
--

CREATE TABLE IF NOT EXISTS `standard_division_map_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `standard_inst_config`
--

CREATE TABLE IF NOT EXISTS `standard_inst_config` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` mediumint(5) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `ay_start_date` date NOT NULL,
  `ay_end_date` date NOT NULL,
  `in_time` time NOT NULL,
  `out_time` time NOT NULL,
  `week_off` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 05:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `standard_master`
--

CREATE TABLE IF NOT EXISTS `standard_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `curriculum_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL COMMENT 'appl_data_master : EDUCATION_BOARD',
  `grading_system` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `gradeset_mst_id` smallint(5) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `standard_name` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `standard_desc` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `standard_abbr` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `standard_stream_name` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `standard_seq` smallint(5) NOT NULL,
  `standard_strength` smallint(5) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 03:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `student_admission_history`
--

CREATE TABLE IF NOT EXISTS `student_admission_history` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `student_id` mediumint(8) NOT NULL,
  `updated_date_time` datetime NOT NULL,
  `stage_id` mediumint(8) NOT NULL,
  `status_id` mediumint(8) NOT NULL,
  `status_note` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status_description` text COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 05:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `student_assignment_details`
--

CREATE TABLE IF NOT EXISTS `student_assignment_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `assignment_mst_id` mediumint(8) NOT NULL,
  `assignment_dtl_id` mediumint(8) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `division_id` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `group_type` char(3) COLLATE utf8_unicode_ci NOT NULL,
  `group_id` varchar(8) COLLATE utf8_unicode_ci NOT NULL,
  `student_id` mediumint(8) NOT NULL,
  `assignment_done_date` date NOT NULL,
  `assignment_status` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `status_desc` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `remark` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `parent_remark` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `child_assignment_status` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 15:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `student_assignment_master`
--

CREATE TABLE IF NOT EXISTS `student_assignment_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `assignment_mst_id` mediumint(8) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `division_id` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `group_type` char(3) COLLATE utf8_unicode_ci NOT NULL,
  `group_id` varchar(8) COLLATE utf8_unicode_ci NOT NULL,
  `emp_id` mediumint(8) NOT NULL,
  `sub_std_map_id` mediumint(8) NOT NULL,
  `book_chpt_map_id` mediumint(8) NOT NULL,
  `assignment_title` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `assignment_desc` text COLLATE utf8_unicode_ci NOT NULL,
  `assignment_init_date` date NOT NULL,
  `assignment_target_date` date NOT NULL,
  `is_mandatory` tinyint(1) NOT NULL,
  `is_backdated` tinyint(1) NOT NULL,
  `assignment_file_1` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `assignment_file_2` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `assignment_file_3` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `status` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `status_desc` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 10:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `student_attendance_details`
--

CREATE TABLE IF NOT EXISTS `student_attendance_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `attendance_mst_id` mediumint(8) NOT NULL,
  `attendance_dtl_id` mediumint(8) NOT NULL,
  `student_id` mediumint(8) NOT NULL,
  `attendance_status` enum('P','A') COLLATE utf8_unicode_ci NOT NULL,
  `attendance_comments` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `stud_att_upload_type` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `bio_type_id` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 03:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `student_attendance_dtl_seq_generator`
--

CREATE TABLE IF NOT EXISTS `student_attendance_dtl_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `student_attendance_master`
--

CREATE TABLE IF NOT EXISTS `student_attendance_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E.g. 2015-16',
  `inst_id` smallint(5) NOT NULL,
  `attendance_mst_id` mediumint(8) NOT NULL,
  `group_type` char(3) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Valid Values = ''STD'', ''CLS'', ''GRP''',
  `group_id` varchar(8) COLLATE utf8_unicode_ci NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `division_id` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `opt_id` mediumint(5) DEFAULT NULL,
  `timetable_period_id` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `attendance_for` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sub_str_map_id` mediumint(8) DEFAULT NULL,
  `period_number` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `time_from` time DEFAULT NULL,
  `time_to` time DEFAULT NULL,
  `file_upload_id` mediumint(8) NOT NULL,
  `attendance_type` varchar(15) COLLATE utf8_unicode_ci NOT NULL COMMENT 'appl_data_master : STUD_ATTENDANCE_TYPE',
  `attendance_date` date NOT NULL,
  `class_count` mediumint(8) NOT NULL,
  `present_count` mediumint(8) NOT NULL,
  `absent_count` mediumint(8) NOT NULL,
  `attendance_comments` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `status` varchar(25) COLLATE utf8_unicode_ci NOT NULL COMMENT 'appl_data_master : STUD_ATTENDANCE_STATUS',
  `status_desc` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `attendance_upload_type` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `notification_status` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `student_attendance_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `student_attendance_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `student_attendance_summary`
--

CREATE TABLE IF NOT EXISTS `student_attendance_summary` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E.g. 2015-16',
  `inst_id` smallint(5) NOT NULL,
  `group_type` char(3) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Valid Values = ''STD'', ''CLS'', ''GRP''',
  `group_id` varchar(8) COLLATE utf8_unicode_ci NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `division_id` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `attendance_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL COMMENT 'appl_data_master : STUD_ATTENDANCE_TYPE',
  `attendance_name` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `term_num` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `working_days_count` tinyint(3) NOT NULL,
  `present_days_count` tinyint(3) NOT NULL,
  `absent_days_count` tinyint(3) NOT NULL,
  `attendence_comments` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `file_upload_id` mediumint(8) NOT NULL,
  `status` varchar(25) COLLATE utf8_unicode_ci NOT NULL COMMENT 'appl_data_master : STUD_ATTENDANCE_STATUS',
  `status_desc` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 10:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `student_attendance_summary_mig`
--

CREATE TABLE IF NOT EXISTS `student_attendance_summary_mig` (
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `division_id` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `last_name` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `first_name` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `term` tinyint(1) NOT NULL,
  `working_days` smallint(3) NOT NULL,
  `month` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `present_days` smallint(3) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `student_contact_mig`
--

CREATE TABLE IF NOT EXISTS `student_contact_mig` (
  `standard_id` char(3) COLLATE utf8_unicode_ci NOT NULL,
  `division_id` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `last_name` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `first_name` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `middle_name` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `contact_num` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `address` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `birth_date` varchar(15) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `student_elective_subject_map`
--

CREATE TABLE IF NOT EXISTS `student_elective_subject_map` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `division_id` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `class_id` char(8) COLLATE utf8_unicode_ci NOT NULL,
  `student_id` mediumint(8) NOT NULL,
  `subject_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 03:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `student_health_details`
--

CREATE TABLE IF NOT EXISTS `student_health_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `class_id` mediumint(8) NOT NULL,
  `student_id` mediumint(8) NOT NULL,
  `height` decimal(7,2) DEFAULT NULL,
  `weight` decimal(7,2) DEFAULT NULL,
  `chest` decimal(7,2) NOT NULL,
  `birth_mark` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `blood_group` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `eyesight_right` decimal(7,2) DEFAULT NULL,
  `eyesight_left` decimal(7,2) DEFAULT NULL,
  `added_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-28 20:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `student_homework_details`
--

CREATE TABLE IF NOT EXISTS `student_homework_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `stud_hw_mst_id` mediumint(8) NOT NULL,
  `stud_hw_dtl_id` mediumint(8) NOT NULL,
  `group_type` char(3) COLLATE utf8_unicode_ci NOT NULL,
  `group_id` varchar(8) COLLATE utf8_unicode_ci NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `division_id` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `student_id` mediumint(8) NOT NULL,
  `percent_complete` tinyint(3) NOT NULL,
  `percent_update_date` date NOT NULL,
  `hw_completion_date` date NOT NULL,
  `status` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `status_desc` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `remark` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `parent_remark` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `child_homework_status` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 03:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `student_homework_dtl_seq_generator`
--

CREATE TABLE IF NOT EXISTS `student_homework_dtl_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `student_homework_master`
--

CREATE TABLE IF NOT EXISTS `student_homework_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `stud_hw_mst_id` mediumint(8) NOT NULL,
  `hw_group_type` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `emp_id` mediumint(8) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `division_id` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `group_type` char(3) COLLATE utf8_unicode_ci NOT NULL,
  `group_id` varchar(8) COLLATE utf8_unicode_ci NOT NULL,
  `sub_std_map_id` mediumint(8) NOT NULL,
  `book_chpt_map_id` mediumint(8) NOT NULL,
  `hw_assign_date` date NOT NULL,
  `hw_target_date` date NOT NULL,
  `hw_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `hw_desc` text COLLATE utf8_unicode_ci NOT NULL,
  `is_mandatory` tinyint(1) NOT NULL,
  `is_backdated` tinyint(1) NOT NULL,
  `homework_file_1` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `homework_file_2` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `homework_file_3` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `status` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `status_desc` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 08:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `student_homework_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `student_homework_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `student_leave_details`
--

CREATE TABLE IF NOT EXISTS `student_leave_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `leave_id` mediumint(8) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `division_id` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `class_id` char(8) COLLATE utf8_unicode_ci NOT NULL,
  `student_id` mediumint(8) NOT NULL,
  `leave_type` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `leave_start_date` date NOT NULL,
  `leave_end_date` date NOT NULL,
  `is_back_dated` tinyint(1) NOT NULL,
  `leave_duration` int(3) DEFAULT '0',
  `leave_applied_on` date NOT NULL,
  `status` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `status_desc` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `initiated_by` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `initiator_comments` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `approved_on` date NOT NULL,
  `approved_by` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `approval_type` varchar(15) COLLATE utf8_unicode_ci DEFAULT 'AUTO_APPROVED',
  `approver_comments` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 08:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `student_leave_dtl_seq_generator`
--

CREATE TABLE IF NOT EXISTS `student_leave_dtl_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AVG_ROW_LENGTH=82;

-- --------------------------------------------------------

--
-- Table structure for table `student_master`
--

CREATE TABLE IF NOT EXISTS `student_master` (
  `id` int(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E.g. 2015-16',
  `inst_id` smallint(5) NOT NULL COMMENT 'E.g. INDMAHPUNEORBB0001',
  `student_id` mediumint(8) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci DEFAULT NULL,
  `division_id` char(1) COLLATE utf8_unicode_ci DEFAULT NULL,
  `class_id` char(8) COLLATE utf8_unicode_ci DEFAULT NULL,
  `house_id` smallint(5) DEFAULT '0',
  `file_upload_id` mediumint(8) DEFAULT NULL,
  `student_num` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
  `admission_num` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `admission_ref` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'appl_data_master : ADMISSION_REFERRAL_TYPE',
  `admission_ref_desc` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `enrollment_num` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `enquiry_date` date DEFAULT NULL,
  `enrollment_date` date NOT NULL,
  `enrolled_for_std` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `class_roll_num` smallint(5) DEFAULT NULL,
  `first_name` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `middle_name` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `last_name` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `birth_date` date NOT NULL,
  `gender` enum('M','F','O') COLLATE utf8_unicode_ci NOT NULL,
  `blood_group` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `birth_place` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `nationality` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `language` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `religion` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `student_category` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `student_subcategory` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `consession_category` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `disability` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `address_line_1` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
  `address_line_2` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
  `locality` int(4) DEFAULT NULL,
  `city` int(4) DEFAULT NULL,
  `district` int(4) DEFAULT NULL,
  `state` int(4) DEFAULT NULL,
  `country` int(4) DEFAULT NULL,
  `pincode` mediumint(8) DEFAULT NULL,
  `mobile_phone_main` varchar(15) COLLATE utf8_unicode_ci DEFAULT '0',
  `app_registration_id` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email_main` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `profile_logo_path` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `photo_content_type` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `photo_file_data` binary(255) DEFAULT NULL,
  `photo_file_path` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `photo_file_size` mediumint(8) DEFAULT NULL,
  `contact_id_1` mediumint(8) DEFAULT NULL,
  `contact_id_2` mediumint(8) DEFAULT NULL,
  `identification_mark_1` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `identification_mark_2` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `aadhar_card_num` varchar(12) COLLATE utf8_unicode_ci DEFAULT NULL,
  `passport_num` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `prev_school_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `prev_school_address` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `prev_school_board` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `emer_contact_name_1` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `emer_contact_1_relation` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `emer_contact_num_1` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `emer_contact_name_2` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `emer_contact_2_relation` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `emer_contact_num_2` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `dr_name` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `dr_hospital_name` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `dr_contact_off` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `dr_contact_mobile` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `is_stud_health_issue` tinyint(1) DEFAULT NULL,
  `health_issue_desc` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `height` smallint(3) DEFAULT '0',
  `weight` double(5,2) DEFAULT NULL,
  `dental_hygiene` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `vision_right` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `vision_left` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `stud_status` varchar(25) COLLATE utf8_unicode_ci NOT NULL COMMENT 'STUDENT_STATUS_TYPE, ADMISSION_STATUS',
  `status_desc` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bulk_upload_status` tinyint(3) NOT NULL,
  `stud_bulk_file_upload_id` mediumint(8) NOT NULL,
  `student_admission_score` smallint(5) NOT NULL,
  `admission_mode` varchar(60) COLLATE utf8_unicode_ci DEFAULT 'OFFLINE',
  `is_new_admission` tinyint(3) NOT NULL,
  `distance_from_school` smallint(5) NOT NULL,
  `special_interest` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `is_sibling` tinyint(3) DEFAULT '0',
  `sibling_detail` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `is_rte` tinyint(1) NOT NULL,
  `rte_category` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `boarding_type` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `course_group` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `gr_number` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `sts_number` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `gov_seq_no` int(11) DEFAULT '0',
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 10:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `student_migration_decision`
--

CREATE TABLE IF NOT EXISTS `student_migration_decision` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `student_id` mediumint(8) NOT NULL,
  `migrate_to_next_standard` tinyint(1) NOT NULL DEFAULT '0',
  `remark` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `student_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `student_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `stud_admissiom_score_master`
--

CREATE TABLE IF NOT EXISTS `stud_admissiom_score_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `category` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `data_type` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `data_key` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `data_value` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `score` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `data_desc` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `data_abbr` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `created_on` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `updated_on` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `is_active` tinyint(1) NOT NULL,
  `is_deleted` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `stud_admission_notif_templates`
--

CREATE TABLE IF NOT EXISTS `stud_admission_notif_templates` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `stud_template_id` mediumint(8) NOT NULL,
  `admission_status` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `subject` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `message_body` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='stud_admission_notif_templates';

-- --------------------------------------------------------

--
-- Table structure for table `stud_admission_rating_master`
--

CREATE TABLE IF NOT EXISTS `stud_admission_rating_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `student_id` mediumint(8) NOT NULL,
  `field_1` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `field_2` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `field_3` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `field_4` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `field_5` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `field_6` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `field_7` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `field_8` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `field_9` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `field_10` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `is_shortlisted` tinyint(1) NOT NULL,
  `note` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `udf_1` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `udf_2` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `udf_3` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `student_rate` tinyint(3) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 10:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `stud_assignment_dtl_seq_generator`
--

CREATE TABLE IF NOT EXISTS `stud_assignment_dtl_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AVG_ROW_LENGTH=82;

-- --------------------------------------------------------

--
-- Table structure for table `stud_assignment_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `stud_assignment_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AVG_ROW_LENGTH=82;

-- --------------------------------------------------------

--
-- Table structure for table `stud_attendance_dtl_seq_generator`
--

CREATE TABLE IF NOT EXISTS `stud_attendance_dtl_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AVG_ROW_LENGTH=82;

-- --------------------------------------------------------

--
-- Table structure for table `stud_attendance_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `stud_attendance_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AVG_ROW_LENGTH=82;

-- --------------------------------------------------------

--
-- Table structure for table `stud_interview_schedule_details`
--

CREATE TABLE IF NOT EXISTS `stud_interview_schedule_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `interview_schedule_id` mediumint(8) NOT NULL,
  `student_id` mediumint(8) NOT NULL,
  `interview_date` date NOT NULL,
  `from_slot` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `to_slot` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `is_confirmed` tinyint(3) NOT NULL,
  `stud_status` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `stud_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `stud_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `stud_subject_package_map`
--

CREATE TABLE IF NOT EXISTS `stud_subject_package_map` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `student_id` mediumint(8) NOT NULL,
  `package_id` mediumint(8) NOT NULL,
  `subject_id` mediumint(8) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `subject_book_map`
--

CREATE TABLE IF NOT EXISTS `subject_book_map` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `sub_book_map_id` mediumint(8) NOT NULL,
  `curriculum_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `sub_std_map_id` mediumint(8) NOT NULL,
  `book_id` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `is_system_def` tinyint(1) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 03:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `subject_book_map_seq_generator`
--

CREATE TABLE IF NOT EXISTS `subject_book_map_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `subject_master`
--

CREATE TABLE IF NOT EXISTS `subject_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `curriculum_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `grading_system` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `subject_id` mediumint(8) NOT NULL,
  `subject_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `subject_display_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `subject_desc` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `subject_abbr` char(4) COLLATE utf8_unicode_ci NOT NULL,
  `subject_group_name` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `is_system_def` tinyint(1) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 08:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AVG_ROW_LENGTH=780;

-- --------------------------------------------------------

--
-- Table structure for table `subject_master_seq_generator`
--

CREATE TABLE IF NOT EXISTS `subject_master_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `subject_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `subject_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `subject_package_details`
--

CREATE TABLE IF NOT EXISTS `subject_package_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `package_dtl_id` mediumint(8) NOT NULL,
  `package_id` mediumint(8) NOT NULL,
  `subject_id` mediumint(8) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `subject_package_master`
--

CREATE TABLE IF NOT EXISTS `subject_package_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `package_id` mediumint(8) NOT NULL,
  `package_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `package_display_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `package_desc` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `package_abbr` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `subject_standard_map`
--

CREATE TABLE IF NOT EXISTS `subject_standard_map` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `sub_std_map_id` mediumint(8) NOT NULL,
  `curriculum_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `grading_system` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `division_id` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `group_type` char(3) COLLATE utf8_unicode_ci NOT NULL,
  `group_id` varchar(8) COLLATE utf8_unicode_ci NOT NULL,
  `subject_id` mediumint(8) NOT NULL,
  `subject_type_id` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `subject_category_id` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `gradeset_mst_id` smallint(5) NOT NULL,
  `evaluation_type` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `subject_level` tinyint(2) DEFAULT NULL,
  `max_weekly_classes` tinyint(3) NOT NULL,
  `credit_hours` decimal(10,2) NOT NULL,
  `is_mandatory` tinyint(1) NOT NULL,
  `exam_type` char(1) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E - Exam; O - Observable; N - None',
  `is_book_based` tinyint(1) NOT NULL,
  `is_consecutive_preferred` tinyint(1) NOT NULL,
  `is_system_def` tinyint(1) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 08:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AVG_ROW_LENGTH=780;

-- --------------------------------------------------------

--
-- Table structure for table `subject_standard_map_seq_generator`
--

CREATE TABLE IF NOT EXISTS `subject_standard_map_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `subject_structure_map`
--

CREATE TABLE IF NOT EXISTS `subject_structure_map` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `sub_struct_map_id` mediumint(8) NOT NULL,
  `sub_std_map_id` mediumint(8) NOT NULL,
  `curriculum_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `grading_system` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `division_id` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `group_type` char(3) COLLATE utf8_unicode_ci NOT NULL,
  `group_id` varchar(8) COLLATE utf8_unicode_ci NOT NULL,
  `subject_id` mediumint(8) NOT NULL,
  `parent_id` smallint(5) NOT NULL,
  `subject_level` tinyint(2) DEFAULT NULL,
  `subject_pos` tinyint(2) NOT NULL,
  `is_system_def` tinyint(1) NOT NULL,
  `time_table_enabled` enum('Y','N','X') COLLATE utf8_unicode_ci NOT NULL,
  `exam_enabled` enum('Y','N','X') COLLATE utf8_unicode_ci NOT NULL,
  `homework_enabled` enum('Y','N','X') COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 08:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AVG_ROW_LENGTH=780;

-- --------------------------------------------------------

--
-- Table structure for table `subject_structure_map_seq_generator`
--

CREATE TABLE IF NOT EXISTS `subject_structure_map_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `subject_syllabus_map`
--

CREATE TABLE IF NOT EXISTS `subject_syllabus_map` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `sub_sylbs_map_id` mediumint(8) NOT NULL,
  `sub_std_map_id` mediumint(8) NOT NULL,
  `sub_book_map_id` mediumint(8) NOT NULL,
  `book_chpt_map_id` mediumint(8) NOT NULL,
  `term_num` tinyint(1) NOT NULL,
  `unit_number` mediumint(8) NOT NULL,
  `start_date` date NOT NULL,
  `target_date` date NOT NULL,
  `completion_date` date NOT NULL,
  `percent_complete` tinyint(3) NOT NULL,
  `percent_update_date` date NOT NULL,
  `status` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `status_desc` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 09:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `substitute_lecture_details`
--

CREATE TABLE IF NOT EXISTS `substitute_lecture_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `substitute_date` date NOT NULL,
  `emp_id` mediumint(8) NOT NULL,
  `timetable_period_id` smallint(5) NOT NULL,
  `timetable_id` smallint(5) NOT NULL,
  `timeslot_id` smallint(5) NOT NULL,
  `previous_emp_id` mediumint(8) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 03:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `sub_module_notif_config`
--

CREATE TABLE IF NOT EXISTS `sub_module_notif_config` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `module_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `module_display_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `role_id` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `role_users` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `send` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 21:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `sub_package_dtl_seq_generator`
--

CREATE TABLE IF NOT EXISTS `sub_package_dtl_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `sub_package_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `sub_package_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `sub_syllabus_map_seq_generator`
--

CREATE TABLE IF NOT EXISTS `sub_syllabus_map_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `TABLE 420`
--

CREATE TABLE IF NOT EXISTS `TABLE 420` (
  `COL 1` varchar(2) DEFAULT NULL,
  `COL 2` varchar(7) DEFAULT NULL,
  `COL 3` varchar(7) DEFAULT NULL,
  `COL 4` varchar(10) DEFAULT NULL,
  `COL 5` varchar(7) DEFAULT NULL,
  `COL 6` varchar(9) DEFAULT NULL,
  `COL 7` varchar(10) DEFAULT NULL,
  `COL 8` varchar(9) DEFAULT NULL,
  `COL 9` varchar(6) DEFAULT NULL,
  `COL 10` varchar(14) DEFAULT NULL,
  `COL 11` varchar(12) DEFAULT NULL,
  `COL 12` varchar(14) DEFAULT NULL,
  `COL 13` varchar(9) DEFAULT NULL,
  `COL 14` varchar(13) DEFAULT NULL,
  `COL 15` varchar(20) DEFAULT NULL,
  `COL 16` varchar(20) DEFAULT NULL,
  `COL 17` varchar(17) DEFAULT NULL,
  `COL 18` varchar(17) DEFAULT NULL,
  `COL 19` varchar(11) DEFAULT NULL,
  `COL 20` varchar(12) DEFAULT NULL,
  `COL 21` varchar(14) DEFAULT NULL,
  `COL 22` varchar(11) DEFAULT NULL,
  `COL 23` varchar(7) DEFAULT NULL,
  `COL 24` varchar(19) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `teacher_lecture_details`
--

CREATE TABLE IF NOT EXISTS `teacher_lecture_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `emp_id` mediumint(8) NOT NULL,
  `extra_lecture_count` mediumint(8) NOT NULL,
  `missed_lecture_count` mediumint(8) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 03:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `teacher_work_load`
--

CREATE TABLE IF NOT EXISTS `teacher_work_load` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E.g. 2015-16',
  `inst_id` smallint(5) NOT NULL,
  `workload_mst_id` mediumint(8) NOT NULL,
  `emp_id` mediumint(8) NOT NULL,
  `weekly_teacher_load` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `load_start_date` date NOT NULL,
  `load_end_date` date NOT NULL,
  `shift_type` enum('Morning','Afternoon','Evening') COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `temp_bio_table`
--

CREATE TABLE IF NOT EXISTS `temp_bio_table` (
  `id` mediumint(8) NOT NULL,
  `class_roll_num` mediumint(11) DEFAULT NULL,
  `device_log_id` varchar(20) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `temp_manage_students_roll_numbers`
--

CREATE TABLE IF NOT EXISTS `temp_manage_students_roll_numbers` (
  `id` int(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E.g. 2015-16',
  `inst_id` smallint(5) NOT NULL COMMENT 'E.g. INDMAHPUNEORBB0001',
  `class_id` char(8) COLLATE utf8_unicode_ci NOT NULL,
  `student_id` mediumint(8) NOT NULL,
  `class_roll_num` smallint(5) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-29 01:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `temp_rfid_data`
--

CREATE TABLE IF NOT EXISTS `temp_rfid_data` (
  `id` mediumint(8) NOT NULL,
  `device_id` smallint(6) NOT NULL,
  `rfid` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `old_rfid` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AVG_ROW_LENGTH=1;

-- --------------------------------------------------------

--
-- Table structure for table `temp_student_master`
--

CREATE TABLE IF NOT EXISTS `temp_student_master` (
  `id` int(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E.g. 2015-16',
  `inst_id` smallint(5) NOT NULL COMMENT 'E.g. INDMAHPUNEORBB0001',
  `student_id` mediumint(8) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci DEFAULT NULL,
  `division_id` char(1) COLLATE utf8_unicode_ci DEFAULT NULL,
  `class_id` char(8) COLLATE utf8_unicode_ci DEFAULT NULL,
  `house_id` smallint(5) DEFAULT '0',
  `file_upload_id` mediumint(8) DEFAULT NULL,
  `student_num` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
  `admission_num` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `admission_ref` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'appl_data_master : ADMISSION_REFERRAL_TYPE',
  `admission_ref_desc` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `enrollment_num` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `enrollment_date` date NOT NULL,
  `enrolled_for_std` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `class_roll_num` tinyint(3) DEFAULT NULL,
  `first_name` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `middle_name` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `last_name` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `birth_date` date NOT NULL,
  `gender` enum('M','F','O') COLLATE utf8_unicode_ci NOT NULL,
  `blood_group` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `birth_place` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `nationality` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `language` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `religion` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `student_category` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `student_subcategory` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `consession_category` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `disability` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `address_line_1` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `address_line_2` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `locality` int(4) NOT NULL,
  `city` int(4) NOT NULL,
  `district` int(4) NOT NULL,
  `state` int(4) NOT NULL,
  `country` int(4) NOT NULL,
  `pincode` mediumint(8) DEFAULT NULL,
  `mobile_phone_main` varchar(15) COLLATE utf8_unicode_ci DEFAULT '0',
  `email_main` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `profile_logo_path` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `photo_content_type` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `photo_file_data` binary(255) DEFAULT NULL,
  `photo_file_path` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `photo_file_size` mediumint(8) DEFAULT NULL,
  `contact_id_1` mediumint(8) DEFAULT NULL,
  `contact_id_2` mediumint(8) DEFAULT NULL,
  `identification_mark_1` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `identification_mark_2` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `aadhar_card_num` varchar(12) COLLATE utf8_unicode_ci DEFAULT NULL,
  `passport_num` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `prev_school_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `prev_school_address` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `prev_school_board` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `emer_contact_name_1` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `emer_contact_1_relation` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `emer_contact_num_1` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `emer_contact_name_2` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `emer_contact_2_relation` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `emer_contact_num_2` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `dr_name` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `dr_hospital_name` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `dr_contact_off` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `dr_contact_mobile` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `is_stud_health_issue` tinyint(1) DEFAULT NULL,
  `health_issue_desc` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `height` smallint(3) DEFAULT '0',
  `weight` double(5,2) DEFAULT NULL,
  `dental_hygiene` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `vision_right` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `vision_left` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `stud_status` varchar(25) COLLATE utf8_unicode_ci NOT NULL COMMENT 'STUDENT_STATUS_TYPE, ADMISSION_STATUS',
  `status_desc` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 05:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `temp_tb_use_to_update_student_info`
--

CREATE TABLE IF NOT EXISTS `temp_tb_use_to_update_student_info` (
  `id` mediumint(8) NOT NULL,
  `student_id` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `standard_id` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `division_id` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `first_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `middle_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `last_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `stud_bulk_file_upload_id` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `gr_number` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `religion` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `student_subcategory` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `student_category` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `birth_place` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `enrollment_date` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `nationality` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `sts_number` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `temp_teacher`
--

CREATE TABLE IF NOT EXISTS `temp_teacher` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E.g. 2015-16',
  `inst_id` smallint(5) NOT NULL,
  `emp_id` mediumint(8) NOT NULL,
  `name` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 05:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `temp_user_employee_master`
--

CREATE TABLE IF NOT EXISTS `temp_user_employee_master` (
  `id` int(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E.g. 2015-16',
  `inst_id` smallint(5) NOT NULL COMMENT 'E.g. INDMAHPUNEORBB0001',
  `emp_id` mediumint(8) NOT NULL,
  `login_name` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `password` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
  `mobile_phone_main` varchar(15) COLLATE utf8_unicode_ci DEFAULT '0',
  `email_main` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `emp_status` varchar(25) COLLATE utf8_unicode_ci NOT NULL COMMENT 'STUDENT_STATUS_TYPE, ADMISSION_STATUS',
  `bulk_upload_status` tinyint(3) NOT NULL,
  `notification_status` tinyint(3) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-29 01:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `temp_user_parent_master`
--

CREATE TABLE IF NOT EXISTS `temp_user_parent_master` (
  `id` int(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E.g. 2015-16',
  `inst_id` smallint(5) NOT NULL COMMENT 'E.g. INDMAHPUNEORBB0001',
  `parent_id` mediumint(8) NOT NULL,
  `login_name` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `password` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
  `mobile_phone_main` varchar(15) COLLATE utf8_unicode_ci DEFAULT '0',
  `email_main` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` varchar(25) COLLATE utf8_unicode_ci NOT NULL COMMENT 'STUDENT_STATUS_TYPE, ADMISSION_STATUS',
  `bulk_upload_status` tinyint(3) NOT NULL,
  `notification_status` tinyint(3) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-29 12:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `temp_user_student_master`
--

CREATE TABLE IF NOT EXISTS `temp_user_student_master` (
  `id` int(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E.g. 2015-16',
  `inst_id` smallint(5) NOT NULL COMMENT 'E.g. INDMAHPUNEORBB0001',
  `student_id` mediumint(8) NOT NULL,
  `login_name` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `password` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
  `mobile_phone_main` varchar(15) COLLATE utf8_unicode_ci DEFAULT '0',
  `email_main` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `stud_status` varchar(25) COLLATE utf8_unicode_ci NOT NULL COMMENT 'STUDENT_STATUS_TYPE, ADMISSION_STATUS',
  `bulk_upload_status` tinyint(3) NOT NULL,
  `notification_status` tinyint(3) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-29 18:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `timeslot_details`
--

CREATE TABLE IF NOT EXISTS `timeslot_details` (
  `id` int(11) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` mediumint(8) NOT NULL,
  `timeslot_mst_id` int(11) NOT NULL,
  `template_name` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
  `weekday` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `period_no` int(11) NOT NULL,
  `type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `units` int(11) NOT NULL,
  `duration` int(11) NOT NULL,
  `time_from` time NOT NULL,
  `time_to` time NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 05:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `timeslot_details_seq_generator`
--

CREATE TABLE IF NOT EXISTS `timeslot_details_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `timeslot_master`
--

CREATE TABLE IF NOT EXISTS `timeslot_master` (
  `id` smallint(5) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E.g. 2015-16',
  `inst_id` smallint(5) NOT NULL,
  `timeslot_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `timeslot_id` smallint(5) NOT NULL,
  `shift_type` enum('Morning','Afternoon','Evening') COLLATE utf8_unicode_ci NOT NULL,
  `class_group_type` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'appl_data_master : CLASS_GROUP_NAME',
  `timeslot_type` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'appl_data_master : TIMESLOT_TYPE',
  `timeslot_from` time DEFAULT NULL,
  `timeslot_duration` tinyint(2) NOT NULL,
  `timeslot_to` time DEFAULT NULL,
  `timeslot_valid_from` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `timeslot_valid_to` timestamp NULL DEFAULT '2037-12-30 21:59:59',
  `status` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status_desc` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `initiator_comments` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `approved_by` timestamp NULL DEFAULT NULL,
  `approved_on` date DEFAULT NULL,
  `approver_comments` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 21:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `timetable_emp_map`
--

CREATE TABLE IF NOT EXISTS `timetable_emp_map` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E.g. 2015-16',
  `inst_id` smallint(5) NOT NULL,
  `timetable_emp_id` mediumint(8) NOT NULL,
  `timetable_period_id` smallint(5) NOT NULL,
  `emp_id` smallint(5) NOT NULL,
  `emp_role` varchar(10) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E.g. 2015-16',
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 08:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AVG_ROW_LENGTH=655;

-- --------------------------------------------------------

--
-- Table structure for table `timetable_master`
--

CREATE TABLE IF NOT EXISTS `timetable_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E.g. 2015-16',
  `inst_id` smallint(5) NOT NULL,
  `timetable_meta_id` mediumint(8) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `division_id` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `class_id` char(8) COLLATE utf8_unicode_ci NOT NULL,
  `timetable_id` smallint(5) NOT NULL,
  `timeslot_mst_id` int(11) NOT NULL,
  `shift_type` enum('Morning','Afternoon','Evening') COLLATE utf8_unicode_ci NOT NULL,
  `class_group_type` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `timetable_title` varchar(80) COLLATE utf8_unicode_ci DEFAULT NULL,
  `timetable_desc` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `timetable_valid_from` date NOT NULL,
  `timetable_valid_to` date NOT NULL,
  `status` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status_desc` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `initiator_comments` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `approved_by` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `approved_on` date DEFAULT NULL,
  `approver_comments` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `timetable_status` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 21:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `timetable_meta`
--

CREATE TABLE IF NOT EXISTS `timetable_meta` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E.g. 2015-16',
  `inst_id` smallint(5) NOT NULL,
  `generation_mode` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `timetable_meta_id` mediumint(8) NOT NULL,
  `timeslot_mst_id` int(11) NOT NULL,
  `shift_type` enum('Morning','Afternoon','Evening') COLLATE utf8_unicode_ci NOT NULL,
  `group_type` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `group_id` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `workload_mst_id` mediumint(8) NOT NULL,
  `timetable_title` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  `timetable_valid_from` date NOT NULL,
  `timetable_valid_to` date NOT NULL,
  `status` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `initiator_comments` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `approved_by` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `approved_on` date DEFAULT NULL,
  `approver_comments` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `timetable_status` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `timetable_meta_seq_generator`
--

CREATE TABLE IF NOT EXISTS `timetable_meta_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `timetable_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `timetable_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `timetable_period_map`
--

CREATE TABLE IF NOT EXISTS `timetable_period_map` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E.g. 2015-16',
  `inst_id` smallint(5) NOT NULL,
  `timetable_period_id` smallint(5) NOT NULL,
  `timetable_id` smallint(5) NOT NULL,
  `timeslot_id` smallint(5) NOT NULL,
  `weekday_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `sub_std_map_id` mediumint(8) NOT NULL,
  `emp_id` smallint(5) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 03:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `timetable_period_map_seq_generator`
--

CREATE TABLE IF NOT EXISTS `timetable_period_map_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `trans_driver_details`
--

CREATE TABLE IF NOT EXISTS `trans_driver_details` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `driver_id` mediumint(8) NOT NULL,
  `licence_no` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `licence_expiry_date` date NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `trans_fees_details`
--

CREATE TABLE IF NOT EXISTS `trans_fees_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `stud_stop_fee_id` mediumint(8) NOT NULL,
  `stud_route_stop_map_id` mediumint(8) NOT NULL,
  `fee_date_from` date NOT NULL,
  `fee_date_to` date NOT NULL,
  `fee_due_date` date NOT NULL,
  `fee_grace_period` tinyint(3) NOT NULL,
  `installment_name` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `installment_num` tinyint(2) NOT NULL,
  `fee_amt` double(12,2) NOT NULL,
  `disc_desc` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `disc_amt` double(10,2) NOT NULL,
  `net_fee_amt` double(10,2) NOT NULL,
  `tax_amt` double(10,2) NOT NULL,
  `total_fee_amt` double(12,2) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 21:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `trans_fee_config_details`
--

CREATE TABLE IF NOT EXISTS `trans_fee_config_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `trp_due_date` date NOT NULL,
  `grace_period` mediumint(8) DEFAULT NULL,
  `final_date` date NOT NULL,
  `number_of_installment` tinyint(2) DEFAULT NULL,
  `fin_acct_id` smallint(5) NOT NULL,
  `acct_head_id` smallint(5) NOT NULL,
  `default_applicable_from_date` date NOT NULL,
  `default_applicable_to_date` date NOT NULL,
  `fee_assign_type` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 21:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `trans_fee_installments_details`
--

CREATE TABLE IF NOT EXISTS `trans_fee_installments_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `stop_id` mediumint(8) NOT NULL,
  `trp_type` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `installment_num` smallint(5) NOT NULL,
  `amount` double(10,2) NOT NULL,
  `inst_due_date` date NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `trans_fee_struct_master`
--

CREATE TABLE IF NOT EXISTS `trans_fee_struct_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `stop_id` mediumint(8) NOT NULL,
  `pickup_charges` double(10,2) NOT NULL,
  `pickup_charges_tax` double(10,2) NOT NULL,
  `drop_charges` double(10,2) NOT NULL,
  `drop_charges_tax` double(10,2) NOT NULL,
  `both_way_charges` double(10,2) NOT NULL,
  `both_way_charges_tax` double(10,2) NOT NULL,
  `total_fee_amt` double(12,2) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 21:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `trans_gps_device_master`
--

CREATE TABLE IF NOT EXISTS `trans_gps_device_master` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `device_id` mediumint(8) NOT NULL,
  `device_name` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `model_number` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `description` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `imei_number` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `sim_number` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `product_dimension` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `batteries_included` tinyint(1) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `trans_gps_device_master_seq_generator`
--

CREATE TABLE IF NOT EXISTS `trans_gps_device_master_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `trans_gps_tracker`
--

CREATE TABLE IF NOT EXISTS `trans_gps_tracker` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `device_id` mediumint(8) NOT NULL,
  `longitude` mediumint(8) NOT NULL,
  `latitude` mediumint(8) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `trans_route_master`
--

CREATE TABLE IF NOT EXISTS `trans_route_master` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `route_id` mediumint(8) NOT NULL,
  `route_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `route_code` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `description` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `start_point` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `end_point` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `shift_type` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `stops_count` tinyint(3) NOT NULL,
  `vehicle_id` mediumint(8) NOT NULL,
  `contact_num_1` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `contact_num_2` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `trans_route_master_seq_generator`
--

CREATE TABLE IF NOT EXISTS `trans_route_master_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `trans_route_stops_map`
--

CREATE TABLE IF NOT EXISTS `trans_route_stops_map` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `route_stop_map_id` mediumint(8) NOT NULL,
  `route_id` mediumint(8) NOT NULL,
  `route_for` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `stop_id` mediumint(8) NOT NULL,
  `stop_seq` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `time_to_reach_at_stop` time DEFAULT NULL,
  `halts_in_second` time NOT NULL,
  `inter_point_travel_time_in_mins` time NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `trans_route_stops_master`
--

CREATE TABLE IF NOT EXISTS `trans_route_stops_master` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `route_stop_map_id` mediumint(8) NOT NULL,
  `route_id` mediumint(8) NOT NULL,
  `route_for` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `stop_id` mediumint(8) NOT NULL,
  `stop_seq` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `time_to_reach_at_stop` time DEFAULT NULL,
  `halts_in_second` time NOT NULL,
  `inter_point_travel_time_in_mins` time NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `trans_route_stops_master_seq_generator`
--

CREATE TABLE IF NOT EXISTS `trans_route_stops_master_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `trans_stop_master`
--

CREATE TABLE IF NOT EXISTS `trans_stop_master` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `stop_id` mediumint(8) NOT NULL,
  `stop_name` varchar(150) COLLATE utf8_unicode_ci NOT NULL,
  `stop_address` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `longitude` mediumint(8) DEFAULT NULL,
  `latitude` mediumint(8) DEFAULT NULL,
  `distance_from_school` double NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `trans_stop_master_seq_generator`
--

CREATE TABLE IF NOT EXISTS `trans_stop_master_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `trans_student_route_stop_details`
--

CREATE TABLE IF NOT EXISTS `trans_student_route_stop_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `stud_route_stop_mst_id` mediumint(5) NOT NULL,
  `pickup_drop_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `route_id` mediumint(5) NOT NULL,
  `stop_id` mediumint(8) NOT NULL,
  `contact_persons_no` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `is_default_route` tinyint(1) NOT NULL DEFAULT '1',
  `route_valid_from` date DEFAULT NULL,
  `route_valid_to` date DEFAULT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 10:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `trans_student_route_stop_master`
--

CREATE TABLE IF NOT EXISTS `trans_student_route_stop_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `stud_route_stop_mst_id` mediumint(5) NOT NULL,
  `student_id` mediumint(8) NOT NULL,
  `fee_amt` double NOT NULL,
  `discount_amount` double NOT NULL,
  `discount_comment` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `total_fee_amount` double NOT NULL,
  `fee_due_date` date NOT NULL,
  `fee_status` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `fin_acct_id` smallint(6) NOT NULL DEFAULT '1',
  `transport_type` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `acct_head_id` smallint(5) NOT NULL,
  `trp_applicable_from_date` date NOT NULL,
  `trp_applicable_to_date` date NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 10:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `trans_stud_route_stops_master_seq_generator`
--

CREATE TABLE IF NOT EXISTS `trans_stud_route_stops_master_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AVG_ROW_LENGTH=82;

-- --------------------------------------------------------

--
-- Table structure for table `trans_vehicle_driver_map`
--

CREATE TABLE IF NOT EXISTS `trans_vehicle_driver_map` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `vehicle_driver_map_id` mediumint(8) NOT NULL,
  `vehicle_id` mediumint(8) NOT NULL,
  `driver_emp_id` mediumint(8) NOT NULL,
  `attendant_emp_id` mediumint(8) NOT NULL,
  `is_temporary` tinyint(1) NOT NULL DEFAULT '0',
  `temporary_from_date` date DEFAULT NULL,
  `temporary_to_date` date DEFAULT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `trans_vehicle_driver_map_seq_generator`
--

CREATE TABLE IF NOT EXISTS `trans_vehicle_driver_map_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `trans_vehicle_master`
--

CREATE TABLE IF NOT EXISTS `trans_vehicle_master` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `vehicle_id` mediumint(8) NOT NULL,
  `vehicle_name` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `vehicle_code` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `description` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `seat_capacity` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `is_standing_allowed` tinyint(1) NOT NULL,
  `standing_capacity` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `total_capacity` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `ownership` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `vendor_emp_id` mediumint(8) NOT NULL,
  `registration_number` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `registration_date` date NOT NULL,
  `registration_expiry_date` date NOT NULL,
  `year_of_manufacture` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `has_accident_history` tinyint(1) NOT NULL,
  `insurance_details` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `insurance_expiry_date` date NOT NULL,
  `puc_expiry_date` date NOT NULL,
  `fuel_type` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `is_gps_enabled` tinyint(1) DEFAULT '0',
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `trans_vehicle_master_seq_generator`
--

CREATE TABLE IF NOT EXISTS `trans_vehicle_master_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `trans_vehicle_substitution`
--

CREATE TABLE IF NOT EXISTS `trans_vehicle_substitution` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `vehicle_id` mediumint(8) NOT NULL,
  `substitute_vehicle_id` mediumint(8) NOT NULL,
  `route_id` mediumint(8) NOT NULL,
  `reason` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `substitution_valid_from` datetime DEFAULT NULL,
  `substitution_valid_to` datetime DEFAULT NULL,
  `substitution_type` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `txn_alert_config`
--

CREATE TABLE IF NOT EXISTS `txn_alert_config` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `txn_id` mediumint(8) NOT NULL,
  `is_app_enabled` tinyint(1) NOT NULL,
  `app_reminder_count` tinyint(1) DEFAULT '1',
  `is_email_enabled` tinyint(1) NOT NULL,
  `email_reminder_count` tinyint(1) DEFAULT '1',
  `is_portal_enabled` tinyint(1) NOT NULL,
  `portal_reminder_count` tinyint(1) DEFAULT '1',
  `is_sms_enabled` tinyint(1) NOT NULL,
  `sms_reminder_count` tinyint(1) DEFAULT '1',
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 03:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `txn_field_validation`
--

CREATE TABLE IF NOT EXISTS `txn_field_validation` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `txn_id` smallint(5) NOT NULL,
  `category` text COLLATE utf8_unicode_ci NOT NULL,
  `sub_category` text COLLATE utf8_unicode_ci NOT NULL,
  `field_id` text COLLATE utf8_unicode_ci NOT NULL,
  `label_id` text COLLATE utf8_unicode_ci NOT NULL,
  `data_type` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `is_mandatory` tinyint(1) NOT NULL DEFAULT '1',
  `min_length` int(11) DEFAULT NULL,
  `max_length` int(11) DEFAULT NULL,
  `validator_class` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `regex_pattern` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `error_code_id` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `error_msg_id` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `highlight_color_code` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 21:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `user_alert_config`
--

CREATE TABLE IF NOT EXISTS `user_alert_config` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `txn_id` mediumint(8) NOT NULL,
  `user_id` mediumint(8) NOT NULL,
  `user_type` char(3) COLLATE utf8_unicode_ci NOT NULL,
  `is_app_enabled` tinyint(1) NOT NULL,
  `is_email_enabled` tinyint(1) NOT NULL,
  `is_portal_enabled` tinyint(1) NOT NULL,
  `is_sms_enabled` tinyint(1) NOT NULL,
  `is_voice_enabled` tinyint(1) NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 08:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `user_app_registration_mapping`
--

CREATE TABLE IF NOT EXISTS `user_app_registration_mapping` (
  `id` mediumint(8) NOT NULL,
  `inst_id` mediumint(8) NOT NULL,
  `user_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `user_id` mediumint(8) NOT NULL,
  `app_registration_id` varchar(2000) COLLATE utf8_unicode_ci DEFAULT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 10:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `user_device_map`
--

CREATE TABLE IF NOT EXISTS `user_device_map` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `device_reg_id` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `user_id` mediumint(8) NOT NULL,
  `user_type` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `RFID_code` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-29 23:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `user_entitlements`
--

CREATE TABLE IF NOT EXISTS `user_entitlements` (
  `id` int(11) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `user_type` char(3) COLLATE utf8_unicode_ci NOT NULL,
  `user_id` mediumint(8) NOT NULL,
  `role_id` smallint(5) DEFAULT NULL,
  `txn_id` mediumint(8) NOT NULL,
  `is_create_allowed` tinyint(1) NOT NULL,
  `is_read_allowed` tinyint(1) NOT NULL,
  `is_update_allowed` tinyint(1) NOT NULL,
  `is_delete_allowed` tinyint(1) NOT NULL,
  `create_auth_type` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `update_auth_type` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `delete_auth_type` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `is_user_specific` tinyint(1) DEFAULT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 08:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `user_groups_master`
--

CREATE TABLE IF NOT EXISTS `user_groups_master` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `grp_name` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `grp_type` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `grp_display_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `grp_icon` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `grp_class` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `grp_order` smallint(5) NOT NULL,
  `group_module` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 21:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `user_management`
--

CREATE TABLE IF NOT EXISTS `user_management` (
  `id` mediumint(8) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `user_id` mediumint(8) NOT NULL,
  `user_group_id` mediumint(8) NOT NULL,
  `user_group_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `mobile_phone` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `salutation` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `first_name` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `middle_name` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `last_name` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `column_1` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `column_2` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `column_3` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `column_4` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `column_5` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `column_6` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `column_7` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `column_8` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `column_9` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `column_10` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-29 12:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `user_management_seq_generator`
--

CREATE TABLE IF NOT EXISTS `user_management_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `user_master`
--

CREATE TABLE IF NOT EXISTS `user_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `user_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `user_id` mediumint(8) NOT NULL,
  `role_id` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `login_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL COMMENT ' Username is "admin" for the super-admin that is created automatically, admission no. for students and employee ids for employees.',
  `password` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
  `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `api_token` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `is_token_verified` tinyint(1) DEFAULT '0',
  `is_web_enabled` tinyint(1) DEFAULT '0',
  `is_app_enabled` tinyint(1) DEFAULT '0',
  `reset_pwd_hint` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'The reset password code sent to the email of user for resetting password after user fills out the forgot password form.',
  `reset_pwd_ans` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `pwd_valid_from` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Expiry date for the reset password option ',
  `pwd_valid_to` timestamp NULL DEFAULT '2037-12-30 08:59:59',
  `last_successful_login` timestamp NULL DEFAULT NULL,
  `last_failed_login` timestamp NULL DEFAULT NULL,
  `failed_login_attempts` tinyint(1) DEFAULT '0',
  `force_change_pwd_flag` tinyint(1) DEFAULT '0',
  `is_locked` tinyint(1) DEFAULT '0',
  `lock_reason` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 08:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `user_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `user_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `user_otp_details`
--

CREATE TABLE IF NOT EXISTS `user_otp_details` (
  `id` mediumint(8) NOT NULL,
  `mobile_number` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `otp_token` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `expiry_time_limit` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `user_role_map`
--

CREATE TABLE IF NOT EXISTS `user_role_map` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `user_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `user_id` mediumint(8) NOT NULL,
  `role_id` mediumint(8) NOT NULL,
  `status` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `status_desc` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 21:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `value_added_categories`
--

CREATE TABLE IF NOT EXISTS `value_added_categories` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `cat_id` mediumint(5) NOT NULL,
  `cat_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `cat_display_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `cat_desc` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `cat_abbr` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `cat_pos` smallint(5) NOT NULL,
  `image_name` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 03:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `value_added_service_providers`
--

CREATE TABLE IF NOT EXISTS `value_added_service_providers` (
  `ID` int(11) NOT NULL,
  `INST_ID` smallint(5) NOT NULL,
  `FLD_VAS_PROV_ID` mediumint(8) NOT NULL,
  `CATEGORY` text COLLATE utf8_unicode_ci NOT NULL,
  `SUB_CATEGORY` text COLLATE utf8_unicode_ci NOT NULL,
  `FLD_VAS_OWNER_NAME` text COLLATE utf8_unicode_ci,
  `FLD_VAS_CONTACT_NAME` text COLLATE utf8_unicode_ci,
  `FLD_VAS_TITLE` text COLLATE utf8_unicode_ci,
  `FLD_VAS_DESIGNATION` text COLLATE utf8_unicode_ci,
  `FLD_VAS_REG_NUM` text COLLATE utf8_unicode_ci,
  `FLD_VAS_QUAL` text COLLATE utf8_unicode_ci,
  `FLD_VAS_DESC` text COLLATE utf8_unicode_ci,
  `FLD_VAS_SPECIALIST` text COLLATE utf8_unicode_ci,
  `FLD_VAS_PHOTO_URL` text COLLATE utf8_unicode_ci,
  `FLD_VAS_THUMBNAIL_URL` text COLLATE utf8_unicode_ci,
  `FLD_VAS_YEAR_STARTED` text COLLATE utf8_unicode_ci,
  `FLD_VAS_ADDRESS` text COLLATE utf8_unicode_ci,
  `FLD_VAS_PINCODE` text COLLATE utf8_unicode_ci,
  `FLD_VAS_AREA` text COLLATE utf8_unicode_ci,
  `FLD_VAS_TIMINGS_1` text COLLATE utf8_unicode_ci,
  `FLD_VAS_TIMINGS_2` text COLLATE utf8_unicode_ci,
  `FLD_VAS_TIMINGS_3` text COLLATE utf8_unicode_ci,
  `FLD_VAS_CLOSED_ON` text COLLATE utf8_unicode_ci,
  `FLD_VAS_PHONE_1` text COLLATE utf8_unicode_ci,
  `FLD_VAS_PHONE_2` text COLLATE utf8_unicode_ci,
  `FLD_VAS_MOBILE_1` text COLLATE utf8_unicode_ci,
  `FLD_VAS_MOBILE_2` text COLLATE utf8_unicode_ci,
  `FLD_VAS_FAX_1` text COLLATE utf8_unicode_ci,
  `FLD_VAS_FAX_2` text COLLATE utf8_unicode_ci,
  `FLD_VAS_EMAIL_1` text COLLATE utf8_unicode_ci,
  `FLD_VAS_EMAIL_2` text COLLATE utf8_unicode_ci,
  `FLD_VAS_WEBSITE_1` text COLLATE utf8_unicode_ci,
  `FLD_VAS_WEBSITE_2` text COLLATE utf8_unicode_ci,
  `FLD_VAS_PREMIUM_MEMBER` text COLLATE utf8_unicode_ci,
  `FLD_VAS_AFFILIATED_TO` text COLLATE utf8_unicode_ci,
  `FLD_VAS_APPOINTMENT_REQD` text COLLATE utf8_unicode_ci,
  `FLD_VAS_RATE_1` text COLLATE utf8_unicode_ci,
  `FLD_VAS_RATE_2` text COLLATE utf8_unicode_ci,
  `FLD_VAS_RATE_3` text COLLATE utf8_unicode_ci,
  `FLD_VAS_RATING` text COLLATE utf8_unicode_ci,
  `FLD_VAS_REVIEW` text COLLATE utf8_unicode_ci,
  `FLD_VAS_CAPACITY` text COLLATE utf8_unicode_ci,
  `FLD_VAS_TERMS_CONDITIONS` text COLLATE utf8_unicode_ci,
  `status` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 04:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `value_added_service_providers_listing`
--

CREATE TABLE IF NOT EXISTS `value_added_service_providers_listing` (
  `id` int(11) NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `fld_vas_prov_id` mediumint(8) NOT NULL,
  `category_id` mediumint(8) NOT NULL,
  `sub_category_id` mediumint(8) NOT NULL,
  `fld_vas_owner_name` text COLLATE utf8_unicode_ci,
  `fld_vas_contact_name` text COLLATE utf8_unicode_ci,
  `fld_vas_title` text COLLATE utf8_unicode_ci,
  `fld_vas_designation` text COLLATE utf8_unicode_ci,
  `fld_vas_reg_num` text COLLATE utf8_unicode_ci,
  `fld_vas_qual` text COLLATE utf8_unicode_ci,
  `fld_vas_desc` text COLLATE utf8_unicode_ci,
  `fld_vas_specialist` text COLLATE utf8_unicode_ci,
  `fld_vas_photo_url` text COLLATE utf8_unicode_ci,
  `fld_vas_thumbnail_url` text COLLATE utf8_unicode_ci,
  `fld_vas_year_started` text COLLATE utf8_unicode_ci,
  `fld_vas_address` text COLLATE utf8_unicode_ci,
  `fld_vas_pincode` text COLLATE utf8_unicode_ci,
  `fld_vas_area` text COLLATE utf8_unicode_ci,
  `fld_vas_timings_1` text COLLATE utf8_unicode_ci,
  `fld_vas_timings_2` text COLLATE utf8_unicode_ci,
  `fld_vas_timings_3` text COLLATE utf8_unicode_ci,
  `fld_vas_closed_on` text COLLATE utf8_unicode_ci,
  `fld_vas_phone_1` text COLLATE utf8_unicode_ci,
  `fld_vas_phone_2` text COLLATE utf8_unicode_ci,
  `fld_vas_mobile_1` text COLLATE utf8_unicode_ci,
  `fld_vas_mobile_2` text COLLATE utf8_unicode_ci,
  `fld_vas_fax_1` text COLLATE utf8_unicode_ci,
  `fld_vas_fax_2` text COLLATE utf8_unicode_ci,
  `fld_vas_email_1` text COLLATE utf8_unicode_ci,
  `fld_vas_email_2` text COLLATE utf8_unicode_ci,
  `fld_vas_website_1` text COLLATE utf8_unicode_ci,
  `fld_vas_website_2` text COLLATE utf8_unicode_ci,
  `fld_vas_premium_member` text COLLATE utf8_unicode_ci,
  `fld_vas_affiliated_to` text COLLATE utf8_unicode_ci,
  `fld_vas_appointment_reqd` text COLLATE utf8_unicode_ci,
  `fld_vas_rate_1` text COLLATE utf8_unicode_ci,
  `fld_vas_rate_2` text COLLATE utf8_unicode_ci,
  `fld_vas_rate_3` text COLLATE utf8_unicode_ci,
  `fld_vas_rating` text COLLATE utf8_unicode_ci,
  `fld_vas_review` text COLLATE utf8_unicode_ci,
  `fld_vas_capacity` text COLLATE utf8_unicode_ci,
  `fld_vas_terms_conditions` text COLLATE utf8_unicode_ci,
  `status` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 23:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'system',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'system',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `value_added_sub_categories`
--

CREATE TABLE IF NOT EXISTS `value_added_sub_categories` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `cat_id` mediumint(5) NOT NULL,
  `sub_cat_id` mediumint(5) NOT NULL,
  `sub_cat_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `sub_cat_display_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `sub_cat_desc` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `sub_cat_abbr` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `sub_cat_pos` smallint(5) NOT NULL,
  `image_name` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-31 03:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `videopost_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `videopost_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AVG_ROW_LENGTH=82;

-- --------------------------------------------------------

--
-- Table structure for table `video_posts`
--

CREATE TABLE IF NOT EXISTS `video_posts` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `video_id` mediumint(8) NOT NULL,
  `video_title` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `post_slug` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `video_content` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `post_date` date NOT NULL,
  `post_video` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `original_video_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `comments_enabled` tinyint(2) NOT NULL DEFAULT '1',
  `scope` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `is_social_media` char(1) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `status` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 05:29:59',
  `created_by` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `updated_by` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_bin AVG_ROW_LENGTH=744;

-- --------------------------------------------------------

--
-- Table structure for table `virtual_classroom_post_details`
--

CREATE TABLE IF NOT EXISTS `virtual_classroom_post_details` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E.g. 2015-16',
  `inst_id` smallint(5) NOT NULL,
  `vir_classroom_post_id` int(11) NOT NULL,
  `type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `value` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-29 23:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `virtual_classroom_post_master`
--

CREATE TABLE IF NOT EXISTS `virtual_classroom_post_master` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` smallint(5) NOT NULL,
  `vir_classroom_post_id` int(11) NOT NULL,
  `emp_id` mediumint(8) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `division_id` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `group_type` char(3) COLLATE utf8_unicode_ci NOT NULL,
  `group_id` varchar(8) COLLATE utf8_unicode_ci NOT NULL,
  `classroom_topic` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `sub_struct_map_id` mediumint(8) DEFAULT NULL,
  `assigned_date` date NOT NULL,
  `target_date` date DEFAULT NULL,
  `description` text COLLATE utf8_unicode_ci NOT NULL,
  `session_start_date_time` datetime DEFAULT NULL,
  `duration_hour` tinyint(3) DEFAULT NULL,
  `duration_minute` tinyint(3) DEFAULT NULL,
  `send_reminder_notif` tinyint(1) DEFAULT NULL,
  `notif_reminder_period` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
  `rem_notification_id` int(11) DEFAULT NULL,
  `is_mandatory` tinyint(1) DEFAULT NULL,
  `is_backdated` tinyint(1) DEFAULT NULL,
  `status` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `status_desc` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 21:59:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `virtual_class_post_mst_seq_generator`
--

CREATE TABLE IF NOT EXISTS `virtual_class_post_mst_seq_generator` (
  `id_num` mediumint(8) NOT NULL,
  `id_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `weekly_subject_load`
--

CREATE TABLE IF NOT EXISTS `weekly_subject_load` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E.g. 2015-16',
  `inst_id` smallint(5) NOT NULL,
  `workload_mst_id` mediumint(8) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `class_id` char(8) COLLATE utf8_unicode_ci NOT NULL,
  `sub_struct_map_id` mediumint(8) NOT NULL,
  `weekly_subject_load` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `total_weekly_sub_load` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `sub_load_start_date` date NOT NULL,
  `sub_load_end_date` date NOT NULL,
  `shift_type` enum('Morning','Afternoon','Evening') COLLATE utf8_unicode_ci NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `weekly_teacher_work_load`
--

CREATE TABLE IF NOT EXISTS `weekly_teacher_work_load` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E.g. 2015-16',
  `inst_id` smallint(5) NOT NULL,
  `workload_mst_id` mediumint(8) NOT NULL,
  `teacher_load_id` mediumint(8) NOT NULL,
  `standard_id` char(2) COLLATE utf8_unicode_ci NOT NULL,
  `emp_id` mediumint(8) NOT NULL,
  `class_id` char(8) COLLATE utf8_unicode_ci NOT NULL,
  `sub_struct_map_id` mediumint(8) NOT NULL,
  `weekly_teacher_load` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `shift_type` enum('Morning','Afternoon','Evening') COLLATE utf8_unicode_ci NOT NULL,
  `load_start_date` date NOT NULL,
  `load_end_date` date NOT NULL,
  `valid_from` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 16:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `workload_mst_table`
--

CREATE TABLE IF NOT EXISTS `workload_mst_table` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL COMMENT 'E.g. 2015-16',
  `inst_id` smallint(5) NOT NULL,
  `workload_mst_id` mediumint(8) NOT NULL,
  `workload_title` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `valid_to` timestamp NOT NULL DEFAULT '2037-12-30 05:29:59',
  `created_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'SYSTEM',
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Structure for view `sms_credit_usage_institutewise`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `sms_credit_usage_institutewise` AS select 1 AS `inst_id`,1 AS `inst_name`,1 AS `Total_credit`;

-- --------------------------------------------------------

--
-- Structure for view `sms_credit_usage_institutewise_archive`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `sms_credit_usage_institutewise_archive` AS select 1 AS `inst_id`,1 AS `inst_name`,1 AS `Total_credit`;

-- --------------------------------------------------------

--
-- Structure for view `sms_credit_usage_monthwise`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `sms_credit_usage_monthwise` AS select 1 AS `inst_id`,1 AS `inst_name`,1 AS `Month`,1 AS `Total_credit`;

-- --------------------------------------------------------

--
-- Structure for view `sms_credit_usage_monthwise_archive`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `sms_credit_usage_monthwise_archive` AS select 1 AS `inst_id`,1 AS `inst_name`,1 AS `Month`,1 AS `Total_credit`;

-- --------------------------------------------------------

--
-- Structure for view `sms_credit_usage_vidyalekha`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `sms_credit_usage_vidyalekha` AS select 1 AS `date`,1 AS `total_credits`;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `account_head_master`
--
ALTER TABLE `account_head_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_account_head_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_account_head_master_is_active` (`is_active`),
  ADD KEY `idx_account_head_master_acct_head_id` (`acct_head_id`),
  ADD KEY `idx_account_head_master_acct_head_type` (`acct_head_type`),
  ADD KEY `idx_account_head_master_acct_head_name` (`acct_head_name`),
  ADD KEY `idx_account_head_master_acct_head_display_name` (`acct_head_display_name`);

--
-- Indexes for table `acct_head_mst_seq_generator`
--
ALTER TABLE `acct_head_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `add_account_head_seq_generator`
--
ALTER TABLE `add_account_head_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `add_bank_account_seq_generator`
--
ALTER TABLE `add_bank_account_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `add_new_library_book_mst_seq_generator`
--
ALTER TABLE `add_new_library_book_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `add_party_master_seq_generator`
--
ALTER TABLE `add_party_master_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `add_sms_credit_mst_seq_generator`
--
ALTER TABLE `add_sms_credit_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `admission_fees_config`
--
ALTER TABLE `admission_fees_config`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `admission_stage_master`
--
ALTER TABLE `admission_stage_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `admission_stage_status_master`
--
ALTER TABLE `admission_stage_status_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `admisssion_stage_mst_seq_generator`
--
ALTER TABLE `admisssion_stage_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `alert_master`
--
ALTER TABLE `alert_master`
  ADD KEY `idx_alert_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_alert_master_is_active` (`is_active`),
  ADD KEY `idx_alert_master_alert_id` (`alert_id`);

--
-- Indexes for table `alert_msg_queue`
--
ALTER TABLE `alert_msg_queue`
  ADD KEY `idx_alert_msg_queue_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_alert_msg_queue_is_active` (`is_active`),
  ADD KEY `idx_alert_msg_queue_alert_id` (`alert_id`),
  ADD KEY `idx_alert_msg_queue_created_on` (`created_on`),
  ADD KEY `idx_alert_msg_queue_sent_on` (`sent_on`);

--
-- Indexes for table `appl_data_master`
--
ALTER TABLE `appl_data_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_appl_data_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_appl_data_master_is_active` (`is_active`),
  ADD KEY `idx_appl_data_master_data_type` (`data_type`),
  ADD KEY `idx_appl_data_master_data_key` (`data_key`),
  ADD KEY `idx_appl_data_master_data_value` (`data_value`(255));

--
-- Indexes for table `appl_data_notif_templates`
--
ALTER TABLE `appl_data_notif_templates`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `appl_license_master`
--
ALTER TABLE `appl_license_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_appl_license_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_appl_license_master_is_active` (`is_active`),
  ADD KEY `idx_appl_license_master_lic_start_end_date` (`license_start_date`,`license_end_date`),
  ADD KEY `idx_appl_license_master_lic_end_date` (`license_end_date`);

--
-- Indexes for table `appl_location_master`
--
ALTER TABLE `appl_location_master`
  ADD PRIMARY KEY (`location_id`),
  ADD KEY `idx_appl_location_master_is_deleted` (`is_deleted`),
  ADD KEY `idx_appl_location_master_is_active` (`is_active`),
  ADD KEY `idx_appl_location_master_location_id` (`location_id`),
  ADD KEY `idx_appl_location_master_parent_id` (`parent_id`),
  ADD KEY `idx_appl_location_master_location_name` (`location_name`),
  ADD KEY `idx_appl_location_master_location_type` (`location_type`);

--
-- Indexes for table `appl_txn_master`
--
ALTER TABLE `appl_txn_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_appl_txn_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_appl_txn_master_is_active` (`is_active`),
  ADD KEY `idx_appl_txn_master_txn_id` (`txn_id`),
  ADD KEY `idx_appl_txn_master_parent_id` (`parent_id`),
  ADD KEY `idx_appl_txn_master_txn_type` (`txn_type`),
  ADD KEY `idx_appl_txn_master_txn_name` (`txn_name`);

--
-- Indexes for table `assessment_score_details`
--
ALTER TABLE `assessment_score_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_assessment_score_details_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_assessment_score_details_is_active` (`is_active`),
  ADD KEY `idx_assessment_score_details_score_id` (`score_id`),
  ADD KEY `idx_assessment_score_details_exam_id` (`exam_id`),
  ADD KEY `idx_assessment_score_details_student_id` (`student_id`);

--
-- Indexes for table `asset_master`
--
ALTER TABLE `asset_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_asset_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_asset_master_is_active` (`is_active`),
  ADD KEY `idx_asset_master_asset_id` (`asset_id`),
  ADD KEY `idx_asset_master_asset_name` (`asset_name`);

--
-- Indexes for table `attendance_config`
--
ALTER TABLE `attendance_config`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `audit_history`
--
ALTER TABLE `audit_history`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `bank_book_mst_seq_generator`
--
ALTER TABLE `bank_book_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `bank_branch_map`
--
ALTER TABLE `bank_branch_map`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_bank_branch_map_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_bank_branch_map_is_active` (`is_active`),
  ADD KEY `idx_bank_branch_map_bank_branch_id` (`bank_id`,`branch_id`),
  ADD KEY `idx_bank_branch_map_branch_id` (`branch_id`),
  ADD KEY `idx_bank_branch_map_branch_name` (`branch_name`),
  ADD KEY `idx_bank_branch_map_ifsc_code` (`ifsc_code`),
  ADD KEY `idx_bank_branch_map_ifsc_city` (`city`);

--
-- Indexes for table `bank_master`
--
ALTER TABLE `bank_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_bank_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_bank_master_is_active` (`is_active`),
  ADD KEY `idx_bank_master_bank_id` (`bank_id`),
  ADD KEY `idx_bank_master_bank_name` (`bank_name`);

--
-- Indexes for table `base_table`
--
ALTER TABLE `base_table`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `biomatric_attendance_details`
--
ALTER TABLE `biomatric_attendance_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `emp_bio_attendance` (`inst_id`,`is_active`,`is_deleted`,`employee_code`,`biometric_att_date`);

--
-- Indexes for table `book_chapter_map`
--
ALTER TABLE `book_chapter_map`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_book_chapter_map_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_book_chapter_map_is_active` (`is_active`),
  ADD KEY `idx_book_chapter_map_book_chpt_map_id` (`book_chpt_map_id`),
  ADD KEY `idx_book_chapter_map_book_id` (`book_id`),
  ADD KEY `idx_book_chapter_map_chapter_name` (`chapter_name`),
  ADD KEY `idx_book_chapter_map_chapter_num` (`chapter_num`),
  ADD KEY `bcm_stud_dash` (`ay_id`,`inst_id`,`is_active`,`is_deleted`);

--
-- Indexes for table `book_chapter_map_seq_generator`
--
ALTER TABLE `book_chapter_map_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `book_master`
--
ALTER TABLE `book_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_book_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_book_master_is_active` (`is_active`),
  ADD KEY `idx_book_master_book_id` (`book_id`),
  ADD KEY `idx_book_master_standard_id` (`standard_id`),
  ADD KEY `idx_book_master_book_name` (`book_name`),
  ADD KEY `idx_book_master_book_display_name` (`book_display_name`);

--
-- Indexes for table `book_mst_seq_generator`
--
ALTER TABLE `book_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `campaign_history`
--
ALTER TABLE `campaign_history`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `certificates_generation_config`
--
ALTER TABLE `certificates_generation_config`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `certificates_issue_history`
--
ALTER TABLE `certificates_issue_history`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `certificates_optional_field_config`
--
ALTER TABLE `certificates_optional_field_config`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `channel_partner_details`
--
ALTER TABLE `channel_partner_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `channel_part_details_seq_generator`
--
ALTER TABLE `channel_part_details_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `class_definition_master`
--
ALTER TABLE `class_definition_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_class_definition_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_class_definition_master_is_active` (`is_active`),
  ADD KEY `idx_class_definition_master_class_def_id` (`class_def_id`),
  ADD KEY `idx_class_definition_master_class_def_name` (`class_def_name`);

--
-- Indexes for table `class_homework_details`
--
ALTER TABLE `class_homework_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `class_master`
--
ALTER TABLE `class_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_class_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_class_master_is_active` (`is_active`),
  ADD KEY `idx_class_master_std_div_id` (`standard_id`,`division_id`),
  ADD KEY `idx_class_master_class_id` (`class_id`),
  ADD KEY `idx_class_master_class_name` (`class_name`),
  ADD KEY `idx_class_master_emp_id` (`emp_id`);

--
-- Indexes for table `class_teacher_mentor_map`
--
ALTER TABLE `class_teacher_mentor_map`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `collection_details`
--
ALTER TABLE `collection_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_collection_details_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_collection_details_is_active` (`is_active`),
  ADD KEY `idx_collection_details_collection_mst_dtl_id` (`collection_mst_id`,`collection_dtl_id`),
  ADD KEY `idx_collection_details_collection_dtl_id` (`collection_dtl_id`),
  ADD KEY `idx_collection_details_demand_grp_id` (`demand_grp_id`),
  ADD KEY `idx_collection_details_pmt_amt` (`pmt_amt`);

--
-- Indexes for table `collection_dtls_seq_generator`
--
ALTER TABLE `collection_dtls_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `collection_master`
--
ALTER TABLE `collection_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_collection_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_collection_master_is_active` (`is_active`),
  ADD KEY `idx_collection_master_collection_mst_id` (`collection_mst_id`),
  ADD KEY `idx_collection_master_demand_grp_id` (`demand_grp_id`),
  ADD KEY `idx_collection_master_party_type_id` (`party_type`,`party_id`),
  ADD KEY `idx_collection_master_party_name` (`party_name`),
  ADD KEY `idx_collection_master_pmt_date` (`pmt_date`),
  ADD KEY `idx_collection_master_pmt_amt` (`pmt_amt`),
  ADD KEY `idx_collection_master_status` (`status`);

--
-- Indexes for table `collection_mst_seq_generator`
--
ALTER TABLE `collection_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `complaint_details`
--
ALTER TABLE `complaint_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_complaint_details_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_complaint_details_is_active` (`is_active`),
  ADD KEY `idx_complaint_details_complaint_id` (`complaint_id`),
  ADD KEY `idx_complaint_details_raised_on` (`raised_on`),
  ADD KEY `idx_complaint_details_raised_by` (`raised_by`),
  ADD KEY `idx_complaint_details_category_sub_id` (`category_id`,`sub_category_id`),
  ADD KEY `idx_complaint_details_subject_name` (`subject_name`),
  ADD KEY `idx_complaint_details_status` (`status`);

--
-- Indexes for table `contract_and_renewal`
--
ALTER TABLE `contract_and_renewal`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_contract_and_renewal_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_contract_and_renewal_is_active` (`is_active`);

--
-- Indexes for table `contract_and_renew_seq_generator`
--
ALTER TABLE `contract_and_renew_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `custom_group_details`
--
ALTER TABLE `custom_group_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `custom_group_master`
--
ALTER TABLE `custom_group_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `db_error_log`
--
ALTER TABLE `db_error_log`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `demand_details`
--
ALTER TABLE `demand_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_demand_details_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_demand_details_is_active` (`is_active`),
  ADD KEY `idx_demand_details_demand_mst_dtl_grp_id` (`demand_mst_id`,`demand_dtl_id`,`demand_grp_id`),
  ADD KEY `idx_demand_details_demand_dtl_id` (`demand_dtl_id`),
  ADD KEY `idx_demand_details_demand_grp_id` (`demand_grp_id`),
  ADD KEY `idx_demand_details_txn_id` (`txn_id`),
  ADD KEY `idx_demand_details_party_type_id` (`party_type`,`party_id`),
  ADD KEY `idx_demand_details_demand_num` (`demand_num`),
  ADD KEY `idx_demand_details_due_date` (`due_date`),
  ADD KEY `idx_demand_details_amt_due` (`amt_due`);

--
-- Indexes for table `demand_dtl_seq_generator`
--
ALTER TABLE `demand_dtl_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `demand_grp_seq_generator`
--
ALTER TABLE `demand_grp_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `demand_master`
--
ALTER TABLE `demand_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_demand_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_demand_master_is_active` (`is_active`),
  ADD KEY `idx_demand_master_demand_mst_grp_id_type` (`demand_mst_id`,`demand_grp_id`,`demand_type`),
  ADD KEY `idx_demand_master_demand_num` (`demand_num`),
  ADD KEY `idx_demand_master_txn_id` (`txn_id`),
  ADD KEY `idx_demand_master_party_type_id` (`party_type`,`party_id`),
  ADD KEY `idx_demand_master_amt_due` (`amt_due`),
  ADD KEY `idx_demand_master_status` (`status`),
  ADD KEY `due_date` (`due_date`),
  ADD KEY `party_id` (`party_id`);

--
-- Indexes for table `demand_mst_seq_generator`
--
ALTER TABLE `demand_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `department_master`
--
ALTER TABLE `department_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_department_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_department_master_is_active` (`is_active`),
  ADD KEY `idx_department_master_dept_parent_id` (`dept_id`,`parent_id`),
  ADD KEY `idx_department_master_dept_name` (`dept_name`),
  ADD KEY `idx_department_master_dept_display_name` (`dept_display_name`);

--
-- Indexes for table `dept_mst_seq_generator`
--
ALTER TABLE `dept_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `division_master`
--
ALTER TABLE `division_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_division_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_division_master_is_active` (`is_active`),
  ADD KEY `idx_division_master_division_id` (`division_id`),
  ADD KEY `idx_division_master_division_name` (`division_name`);

--
-- Indexes for table `document_master`
--
ALTER TABLE `document_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_document_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_document_master_is_active` (`is_active`),
  ADD KEY `idx_document_master_entity_type_id` (`entity_type`,`entity_id`),
  ADD KEY `idx_document_master_module_name` (`module_name`),
  ADD KEY `idx_document_master_doc_category_sub` (`doc_category`,`doc_subcategory`),
  ADD KEY `idx_document_master_doc_name` (`doc_name`),
  ADD KEY `idx_document_master_doc_upload_status` (`doc_upload_status`),
  ADD KEY `idx_document_master_doc_submit_status` (`doc_submit_status`);

--
-- Indexes for table `email_template_master`
--
ALTER TABLE `email_template_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_email_template_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_email_template_master_is_active` (`is_active`),
  ADD KEY `idx_email_template_master_txn_id` (`txn_id`),
  ADD KEY `idx_email_template_master_recipient_type` (`recipient_type`),
  ADD KEY `idx_email_template_master_email_title` (`email_title`);

--
-- Indexes for table `employee_master`
--
ALTER TABLE `employee_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_employee_master_ay_id_inst_id_is_deleted` (`inst_id`,`is_deleted`),
  ADD KEY `idx_employee_master_is_active` (`is_active`),
  ADD KEY `idx_employee_master_emp_id` (`emp_id`),
  ADD KEY `idx_employee_master_dept_id` (`dept_id`),
  ADD KEY `idx_employee_master_first_middle_last_name` (`first_name`,`middle_name`,`last_name`),
  ADD KEY `idx_employee_master_last_first_middle` (`last_name`,`first_name`,`middle_name`),
  ADD KEY `idx_employee_master_emp_status` (`emp_status`);

--
-- Indexes for table `employee_shift_details`
--
ALTER TABLE `employee_shift_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `emp_attendance_details`
--
ALTER TABLE `emp_attendance_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_emp_attendance_details_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_emp_attendance_details_is_active` (`is_active`),
  ADD KEY `idx_emp_attendance_details_attendance_id` (`attendance_mst_id`),
  ADD KEY `idx_emp_attendance_details_emp_id` (`emp_id`),
  ADD KEY `idx_emp_attendance_details_attendance_status` (`attendance_status`);

--
-- Indexes for table `emp_attendance_details_seq_generator`
--
ALTER TABLE `emp_attendance_details_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `emp_attendance_master`
--
ALTER TABLE `emp_attendance_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_emp_attendance_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_emp_attendance_master_is_active` (`is_active`),
  ADD KEY `idx_emp_attendance_master_attendance_id` (`attendance_mst_id`),
  ADD KEY `idx_emp_attendance_master_attendence_date` (`attendance_date`),
  ADD KEY `idx_emp_attendance_master_status` (`status`);

--
-- Indexes for table `emp_attendance_master_seq_generator`
--
ALTER TABLE `emp_attendance_master_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `emp_bank_account_details`
--
ALTER TABLE `emp_bank_account_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_emp_bank_account_details_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_emp_bank_account_details_is_active` (`is_active`),
  ADD KEY `idx_emp_bank_account_details_emp_id` (`emp_id`),
  ADD KEY `idx_emp_bank_account_details_branch_id` (`branch_id`),
  ADD KEY `idx_emp_bank_account_details_account_num` (`account_num`);

--
-- Indexes for table `emp_dept_event_details`
--
ALTER TABLE `emp_dept_event_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_emp_dept_event_details_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_emp_dept_event_details_is_active` (`is_active`),
  ADD KEY `idx_emp_dept_event_details_emp_dept_event_id` (`emp_dept_event_id`),
  ADD KEY `idx_emp_dept_event_details_event_id` (`event_id`),
  ADD KEY `idx_emp_dept_event_details_emp_dept_id` (`emp_dept_id`);

--
-- Indexes for table `emp_dept_map`
--
ALTER TABLE `emp_dept_map`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_emp_dept_map_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_emp_dept_map_is_active` (`is_active`),
  ADD KEY `idx_emp_dept_map_emp_dept_id` (`emp_id`,`dept_id`),
  ADD KEY `idx_emp_dept_map_allocation_start_end_date` (`allocation_start_date`,`allocation_end_date`),
  ADD KEY `idx_emp_dept_map_status` (`status`);

--
-- Indexes for table `emp_leave_details`
--
ALTER TABLE `emp_leave_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_emp_leave_details_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_emp_leave_details_is_active` (`is_active`),
  ADD KEY `idx_emp_leave_details_emp_id` (`emp_id`),
  ADD KEY `idx_emp_leave_details_supervisor_id` (`supervisor_id`),
  ADD KEY `idx_emp_leave_details_leave_applied_on` (`leave_applied_on`),
  ADD KEY `idx_emp_leave_details_leave_start_end_date` (`leave_start_date`,`leave_end_date`);

--
-- Indexes for table `emp_leave_dtl_seq_generator`
--
ALTER TABLE `emp_leave_dtl_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `emp_leave_package_details`
--
ALTER TABLE `emp_leave_package_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `emp_leave_package_history`
--
ALTER TABLE `emp_leave_package_history`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `emp_leave_package_map`
--
ALTER TABLE `emp_leave_package_map`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `emp_leave_package_master`
--
ALTER TABLE `emp_leave_package_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `emp_leave_pack_dtl_seq_generator`
--
ALTER TABLE `emp_leave_pack_dtl_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `emp_leave_pack_map_seq_generator`
--
ALTER TABLE `emp_leave_pack_map_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `emp_leave_pack_mst_seq_generator`
--
ALTER TABLE `emp_leave_pack_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `emp_mst_seq_generator`
--
ALTER TABLE `emp_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `emp_subject_map`
--
ALTER TABLE `emp_subject_map`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_emp_subject_map_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_emp_subject_map_is_active` (`is_active`),
  ADD KEY `idx_emp_subject_map_emp_sub_map_id` (`emp_sub_map_id`),
  ADD KEY `idx_emp_subject_map_std_div_id` (`standard_id`,`division_id`),
  ADD KEY `idx_emp_subject_map_group_type_id` (`group_type`,`group_id`),
  ADD KEY `idx_emp_subject_map_sub_std_map_id` (`sub_std_map_id`),
  ADD KEY `idx_emp_subject_map_allocation_start_end_date` (`allocation_start_date`,`allocation_end_date`);

--
-- Indexes for table `emp_subject_map_seq_generator`
--
ALTER TABLE `emp_subject_map_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `event_calendar_category`
--
ALTER TABLE `event_calendar_category`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_ecc_isactive_isdeleted` (`is_active`,`is_deleted`);

--
-- Indexes for table `event_calendar_master`
--
ALTER TABLE `event_calendar_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_event_master_ay_id_inst_id_is_del` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_event_master_is_active` (`is_active`),
  ADD KEY `idx_event_master_ay_id_inst_id_is_del_is_active` (`ay_id`,`inst_id`,`is_deleted`,`is_active`),
  ADD KEY `idx_event_master_ay_id_inst_id_is_del_is_active_cat` (`ay_id`,`inst_id`,`event_cat`,`is_deleted`,`is_active`);

--
-- Indexes for table `event_calendar_seq_generator`
--
ALTER TABLE `event_calendar_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `event_calendar_subcategory`
--
ALTER TABLE `event_calendar_subcategory`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_ecsc_isactive_isdeleted` (`is_active`,`is_deleted`);

--
-- Indexes for table `event_participant_map`
--
ALTER TABLE `event_participant_map`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_event_participant_map_ay_id_inst_id_is_del` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_event_participant_map_is_active` (`is_active`);

--
-- Indexes for table `exam_category_master`
--
ALTER TABLE `exam_category_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_exam_category_master_is_active` (`is_active`),
  ADD KEY `idx_exam_category_master_exam_cat_id` (`exam_cat_id`),
  ADD KEY `idx_exam_category_master_exam_cat_name` (`exam_cat_name`),
  ADD KEY `idx_exam_category_master_exam_cat_display_name` (`exam_cat_display_name`),
  ADD KEY `idx_exam_category_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`,`is_active`) USING BTREE;

--
-- Indexes for table `exam_details`
--
ALTER TABLE `exam_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_exam_details_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_exam_details_is_active` (`is_active`),
  ADD KEY `idx_exam_details_exam_mst_dtl_id` (`exam_mst_id`,`exam_dtl_id`),
  ADD KEY `idx_exam_details_exam_dtl_id` (`exam_dtl_id`),
  ADD KEY `idx_exam_details_group_type_id` (`group_type`,`group_id`),
  ADD KEY `idx_exam_details_std_div_id` (`standard_id`,`division_id`),
  ADD KEY `idx_exam_details_sub_std_map_id` (`sub_std_map_id`),
  ADD KEY `idx_exam_details_exam_name` (`exam_name`),
  ADD KEY `idx_exam_details_exam_start_end_time` (`exam_start_time`,`exam_end_time`),
  ADD KEY `idx_exam_details_status` (`status`);

--
-- Indexes for table `exam_dtl_seq_generator`
--
ALTER TABLE `exam_dtl_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `exam_group_details`
--
ALTER TABLE `exam_group_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_exam_group_details_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_exam_group_details_is_active` (`is_active`),
  ADD KEY `idx_exam_group_details_exam_grp_mst_dtl_id` (`exam_grp_mst_id`,`exam_grp_dtl_id`),
  ADD KEY `idx_exam_group_details_exam_mst_id` (`exam_mst_id`),
  ADD KEY `idx_exam_group_details_exam_grp_dtl_id` (`exam_grp_dtl_id`);

--
-- Indexes for table `exam_group_master`
--
ALTER TABLE `exam_group_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_exam_group_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_exam_group_master_is_active` (`is_active`),
  ADD KEY `idx_exam_group_master_group_type_id` (`group_type`,`group_id`),
  ADD KEY `idx_exam_group_master_exam_grp_mst_id` (`exam_grp_mst_id`),
  ADD KEY `idx_exam_group_master_exam_grp_name` (`exam_grp_name`),
  ADD KEY `idx_exam_group_master_exam_grp_display_name` (`exam_grp_display_name`),
  ADD KEY `idx_exam_group_master_status` (`status`);

--
-- Indexes for table `exam_group_score_details`
--
ALTER TABLE `exam_group_score_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_exam_group_score_details_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_exam_group_score_details_is_active` (`is_active`),
  ADD KEY `idx_exam_group_score_details_exam_grp_mst_id` (`exam_grp_mst_id`),
  ADD KEY `idx_exam_group_score_details_sub_std_map_id` (`sub_std_map_id`),
  ADD KEY `idx_exam_group_score_details_student_id` (`student_id`),
  ADD KEY `idx_exam_group_score_details_is_fail` (`is_fail`);

--
-- Indexes for table `exam_group_summary`
--
ALTER TABLE `exam_group_summary`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_exam_group_summary_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`),
  ADD KEY `idx_exam_group_summary_exam_grp_mst_id` (`exam_grp_mst_id`),
  ADD KEY `idx_exam_group_summary_exam_group_name` (`exam_group_name`),
  ADD KEY `idx_exam_group_summary_group_type_id` (`group_type`,`group_id`),
  ADD KEY `idx_exam_group_summary_class_name` (`class_name`),
  ADD KEY `idx_exam_group_summary_status` (`status`);

--
-- Indexes for table `exam_grp_dtls_seq_generator`
--
ALTER TABLE `exam_grp_dtls_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `exam_grp_mst_seq_generator`
--
ALTER TABLE `exam_grp_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `exam_master`
--
ALTER TABLE `exam_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_exam_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_exam_master_is_active` (`is_active`),
  ADD KEY `idx_exam_master_exam_mst_id` (`exam_mst_id`),
  ADD KEY `idx_exam_master_group_type_id` (`group_type`,`group_id`),
  ADD KEY `idx_exam_master_exam_cat_id` (`exam_cat_id`),
  ADD KEY `idx_exam_master_exam_name` (`exam_name`),
  ADD KEY `idx_exam_master_exam_start_end_date` (`exam_start_date`,`exam_end_date`),
  ADD KEY `idx_exam_master_status` (`status`),
  ADD KEY `is_active` (`is_active`);

--
-- Indexes for table `exam_mst_seq_generator`
--
ALTER TABLE `exam_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `exam_remarks`
--
ALTER TABLE `exam_remarks`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `exam_results_summary`
--
ALTER TABLE `exam_results_summary`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `exam_result_meta`
--
ALTER TABLE `exam_result_meta`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `exam_result_meta_details`
--
ALTER TABLE `exam_result_meta_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `exam_result_meta_seq_generator`
--
ALTER TABLE `exam_result_meta_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `exam_score_details`
--
ALTER TABLE `exam_score_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_exam_score_details_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_exam_score_details_is_active` (`is_active`),
  ADD KEY `idx_exam_score_details_exam_dtl_id` (`exam_dtl_id`),
  ADD KEY `idx_exam_score_details_student_id` (`student_id`),
  ADD KEY `idx_exam_score_details_exam_status` (`exam_status`);

--
-- Indexes for table `exam_student_code_details`
--
ALTER TABLE `exam_student_code_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_failed_jobs_id` (`id`),
  ADD KEY `idx_failed_jobs_payload` (`payload`(255)) USING BTREE;

--
-- Indexes for table `feedback_complaint_attachements`
--
ALTER TABLE `feedback_complaint_attachements`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `feedback_dtl_seq_generator`
--
ALTER TABLE `feedback_dtl_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `feedback_management_master`
--
ALTER TABLE `feedback_management_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fee_demand_dtls_seq_generator`
--
ALTER TABLE `fee_demand_dtls_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `fee_demand_grp_seq_generator`
--
ALTER TABLE `fee_demand_grp_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `fee_demand_mst_seq_generator`
--
ALTER TABLE `fee_demand_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `fee_quickpay_dtl_seq_generator`
--
ALTER TABLE `fee_quickpay_dtl_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `fee_quickpay_mst_seq_generator`
--
ALTER TABLE `fee_quickpay_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `fee_structure_details`
--
ALTER TABLE `fee_structure_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_fee_structure_details_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_fee_structure_details_is_active` (`is_active`),
  ADD KEY `idx_fee_structure_details_fee_struct_mst_dtl_id` (`fee_struct_mst_id`,`fee_struct_dtl_id`),
  ADD KEY `idx_fee_structure_details_acct_head_id` (`acct_head_id`),
  ADD KEY `idx_fee_structure_details_student_cat_id` (`student_cat_id`),
  ADD KEY `idx_fee_structure_details_fee_date_from_to` (`fee_date_from`,`fee_date_to`);

--
-- Indexes for table `fee_structure_dtl_seq_generator`
--
ALTER TABLE `fee_structure_dtl_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `fee_structure_master`
--
ALTER TABLE `fee_structure_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_fee_structure_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_fee_structure_master_is_active` (`is_active`),
  ADD KEY `idx_fee_structure_master_fee_struct_mst_id` (`fee_struct_mst_id`),
  ADD KEY `idx_fee_structure_master_group_type_id` (`group_type`,`group_id`),
  ADD KEY `idx_fee_structure_master_fee_date_from_to` (`fee_date_from`,`fee_date_to`),
  ADD KEY `idx_fee_structure_master_fee_struct_name` (`fee_struct_name`);

--
-- Indexes for table `fee_structure_mst_seq_generator`
--
ALTER TABLE `fee_structure_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `fee_struct_dtl_seq_generator`
--
ALTER TABLE `fee_struct_dtl_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `fee_struct_mst_seq_generator`
--
ALTER TABLE `fee_struct_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `fee_type_master_seq_generator`
--
ALTER TABLE `fee_type_master_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `file_uploads`
--
ALTER TABLE `file_uploads`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_file_uploads_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_file_uploads_is_active` (`is_active`),
  ADD KEY `idx_file_uploads_file_upload_id` (`file_upload_id`),
  ADD KEY `idx_file_uploads_file_name` (`file_name`),
  ADD KEY `idx_file_uploads_file_category` (`file_category`),
  ADD KEY `idx_file_uploads_original_file_name` (`original_file_name`),
  ADD KEY `idx_file_uploads_file_type` (`file_type`);

--
-- Indexes for table `file_upload_details`
--
ALTER TABLE `file_upload_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_file_upload_details_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_file_upload_details_is_active` (`is_active`),
  ADD KEY `idx_file_upload_details_file_upload_id` (`file_upload_id`),
  ADD KEY `idx_file_upload_details_class_id` (`class_id`),
  ADD KEY `idx_file_upload_details_file_name` (`file_name`),
  ADD KEY `idx_file_upload_details_file_type` (`file_type`),
  ADD KEY `idx_file_upload_details_status` (`status`);

--
-- Indexes for table `file_upload_mst_seq_generator`
--
ALTER TABLE `file_upload_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `file_upload_seq_generator`
--
ALTER TABLE `file_upload_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `fin_accounts`
--
ALTER TABLE `fin_accounts`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fin_arrears_details`
--
ALTER TABLE `fin_arrears_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fin_arrears_master`
--
ALTER TABLE `fin_arrears_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fin_arrear_dtl_seq_generator`
--
ALTER TABLE `fin_arrear_dtl_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `fin_arrear_mst_seq_generator`
--
ALTER TABLE `fin_arrear_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `fin_bank_account_master`
--
ALTER TABLE `fin_bank_account_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fin_bank_book`
--
ALTER TABLE `fin_bank_book`
  ADD PRIMARY KEY (`id`),
  ADD KEY `bank_book_mst_id` (`bank_book_mst_id`),
  ADD KEY `inst_id` (`inst_id`),
  ADD KEY `bank_mst_id` (`bank_mst_id`);

--
-- Indexes for table `fin_debit_demand_group_seq_generator`
--
ALTER TABLE `fin_debit_demand_group_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `fin_debit_demand_master`
--
ALTER TABLE `fin_debit_demand_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_fin_debit_demand_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_fin_debit_demand_master_is_active` (`is_active`),
  ADD KEY `idx_fin_debit_demand_master_demand_mst_grp_id_type` (`debit_demand_mst_id`,`debit_demand_grp_id`,`user_type`),
  ADD KEY `idx_fin_debit_demand_master_demand_num` (`debit_demand_num`),
  ADD KEY `idx_fin_debit_demand_master_txn_id` (`txn_id`),
  ADD KEY `idx_fin_debit_demand_master_party_type_id` (`party_type`,`party_id`),
  ADD KEY `idx_fin_debit_demand_master_amt_payble` (`amt_payble`),
  ADD KEY `idx_fin_debit_demand_master_status` (`status`);

--
-- Indexes for table `fin_debit_demand_master_seq_generator`
--
ALTER TABLE `fin_debit_demand_master_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `fin_debit_details`
--
ALTER TABLE `fin_debit_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_fin_debit_details_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_fin_debit_details_is_active` (`is_active`),
  ADD KEY `idx_fin_debit_details_debit_mst_dtl_id` (`debit_mst_id`,`debit_dtl_id`),
  ADD KEY `idx_fin_debit_details_debit_dtl_id` (`debit_dtl_id`),
  ADD KEY `idx_fin_debit_details_debit_demand_grp_id` (`debit_demand_grp_id`),
  ADD KEY `idx_fin_debit_details_pmt_amt` (`pmt_amt`);

--
-- Indexes for table `fin_debit_details_seq_generator`
--
ALTER TABLE `fin_debit_details_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `fin_debit_master`
--
ALTER TABLE `fin_debit_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_fin_debit_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_fin_debit_master_is_active` (`is_active`),
  ADD KEY `idx_fin_debit_master_debit_mst_id` (`debit_mst_id`),
  ADD KEY `idx_fin_debit_master_debit_demand_grp_id` (`debit_demand_grp_id`),
  ADD KEY `idx_fin_debit_master_party_type_id` (`party_type`,`party_id`),
  ADD KEY `idx_fin_debit_master_party_name` (`party_name`),
  ADD KEY `idx_fin_debit_master_pmt_date` (`pmt_date`),
  ADD KEY `idx_fin_debit_master_pmt_amt` (`pmt_amt`),
  ADD KEY `idx_fin_debit_master_status` (`status`);

--
-- Indexes for table `fin_debit_master_seq_generator`
--
ALTER TABLE `fin_debit_master_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `fin_default_fee_strct_id_config`
--
ALTER TABLE `fin_default_fee_strct_id_config`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fin_emp_payroll_details_seq_generator`
--
ALTER TABLE `fin_emp_payroll_details_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `fin_emp_payroll_master`
--
ALTER TABLE `fin_emp_payroll_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fin_emp_payroll_mst_seq_generator`
--
ALTER TABLE `fin_emp_payroll_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `fin_emp_salary_details_seq_generator`
--
ALTER TABLE `fin_emp_salary_details_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `fin_emp_salary_mst_seq_generator`
--
ALTER TABLE `fin_emp_salary_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `fin_generic_setting`
--
ALTER TABLE `fin_generic_setting`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fin_invoice_details`
--
ALTER TABLE `fin_invoice_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fin_invoice_details_seq_generator`
--
ALTER TABLE `fin_invoice_details_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `fin_invoice_master`
--
ALTER TABLE `fin_invoice_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fin_invoice_mst_seq_generator`
--
ALTER TABLE `fin_invoice_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `fin_modulewise_config`
--
ALTER TABLE `fin_modulewise_config`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fin_party_master`
--
ALTER TABLE `fin_party_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fin_payment_recovery`
--
ALTER TABLE `fin_payment_recovery`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fin_payroll_template_details`
--
ALTER TABLE `fin_payroll_template_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fin_payroll_template_master`
--
ALTER TABLE `fin_payroll_template_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fin_processing_user_list`
--
ALTER TABLE `fin_processing_user_list`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fin_salary_component`
--
ALTER TABLE `fin_salary_component`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fin_salary_details`
--
ALTER TABLE `fin_salary_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fin_salary_details_components`
--
ALTER TABLE `fin_salary_details_components`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fin_salary_generic_setting`
--
ALTER TABLE `fin_salary_generic_setting`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fin_salary_master`
--
ALTER TABLE `fin_salary_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `fin_user_manual_leave`
--
ALTER TABLE `fin_user_manual_leave`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `form_data_details_seq_generator`
--
ALTER TABLE `form_data_details_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `form_field_data_details`
--
ALTER TABLE `form_field_data_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `form_field_master`
--
ALTER TABLE `form_field_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `gallery_album`
--
ALTER TABLE `gallery_album`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `gallery_album_seq_generator`
--
ALTER TABLE `gallery_album_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `gallery_participant_map`
--
ALTER TABLE `gallery_participant_map`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_gallery_participant_map_ay_id_inst_id_is_del` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_gallery_participant_map_is_active` (`is_active`);

--
-- Indexes for table `gallery_photos`
--
ALTER TABLE `gallery_photos`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `gallery_photos_seq_generator`
--
ALTER TABLE `gallery_photos_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `gradedetails_mst_seq_generator`
--
ALTER TABLE `gradedetails_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `gradeset_details`
--
ALTER TABLE `gradeset_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_gradeset_details_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_gradeset_details_is_active` (`is_active`),
  ADD KEY `idx_gradeset_details_gradeset_mst_dtl_id` (`gradeset_mst_id`,`gradeset_dtl_id`),
  ADD KEY `idx_gradeset_details_gradeset_dtl_id` (`gradeset_dtl_id`),
  ADD KEY `idx_gradeset_details_grade_name` (`grade_name`);

--
-- Indexes for table `gradeset_master`
--
ALTER TABLE `gradeset_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_gradeset_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_gradeset_master_is_active` (`is_active`),
  ADD KEY `idx_gradeset_master_gradeset_mst_id` (`gradeset_mst_id`),
  ADD KEY `idx_gradeset_master_gradeset_name` (`gradeset_name`),
  ADD KEY `idx_gradeset_master_gradeset_display_name` (`gradeset_display_name`),
  ADD KEY `idx_gradeset_master_curriculum_type_grading_system` (`curriculum_type`,`grading_system`),
  ADD KEY `idx_gradeset_master_grading_system` (`grading_system`);

--
-- Indexes for table `gradeset_mst_seq_generator`
--
ALTER TABLE `gradeset_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `group_dtl_seq_generator`
--
ALTER TABLE `group_dtl_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `group_mst_seq_generator`
--
ALTER TABLE `group_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `holiday_master`
--
ALTER TABLE `holiday_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_holiday_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_holiday_master_is_active` (`is_active`),
  ADD KEY `idx_holiday_master_holiday_id` (`holiday_id`),
  ADD KEY `idx_holiday_master_holiday_name` (`holiday_name`),
  ADD KEY `idx_holiday_master_holiday_start_end_date` (`holiday_start_date`,`holiday_end_date`);

--
-- Indexes for table `holiday_mst_seq_generator`
--
ALTER TABLE `holiday_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `house_master`
--
ALTER TABLE `house_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_house_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_house_master_is_active` (`is_active`),
  ADD KEY `idx_house_master_house_id` (`house_id`),
  ADD KEY `idx_house_master_house_name` (`house_name`);

--
-- Indexes for table `house_mst_seq_generator`
--
ALTER TABLE `house_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `inbound_communication_details`
--
ALTER TABLE `inbound_communication_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_inbound_communication_details_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_inbound_communication_details_is_active` (`is_active`);

--
-- Indexes for table `information_category`
--
ALTER TABLE `information_category`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `information_posts`
--
ALTER TABLE `information_posts`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `information_post_seq_generator`
--
ALTER TABLE `information_post_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `institute_device_map`
--
ALTER TABLE `institute_device_map`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `institution_config`
--
ALTER TABLE `institution_config`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_institution_config_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_institution_config_is_active` (`is_active`),
  ADD KEY `instid_is_active_is_deleted` (`inst_id`,`is_active`,`is_deleted`);

--
-- Indexes for table `institution_gps_config`
--
ALTER TABLE `institution_gps_config`
  ADD PRIMARY KEY (`id`),
  ADD KEY `instid_isactive_isdeleted` (`inst_id`,`is_active`,`is_deleted`);

--
-- Indexes for table `institution_master`
--
ALTER TABLE `institution_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_institution_master_ay_id_inst_id_is_deleted` (`inst_id`,`is_deleted`),
  ADD KEY `idx_institution_master_org_id` (`org_id`),
  ADD KEY `idx_institution_master_inst_name` (`inst_name`),
  ADD KEY `idx_institution_master_inst_display_name` (`inst_display_name`),
  ADD KEY `idx_institution_master_city` (`city`);

--
-- Indexes for table `institution_mst_seq_generator`
--
ALTER TABLE `institution_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `institution_payment_gateway_config`
--
ALTER TABLE `institution_payment_gateway_config`
  ADD PRIMARY KEY (`id`),
  ADD KEY `instid_isactive_isdeleted` (`inst_id`,`is_active`,`is_deleted`);

--
-- Indexes for table `institution_sequence_params`
--
ALTER TABLE `institution_sequence_params`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_institution_sequence_params_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_institution_sequence_params_is_active` (`is_active`);

--
-- Indexes for table `institution_sub_config`
--
ALTER TABLE `institution_sub_config`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `inst_autojob_config`
--
ALTER TABLE `inst_autojob_config`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `inst_homework_grp_status`
--
ALTER TABLE `inst_homework_grp_status`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `inst_msg91_account_info`
--
ALTER TABLE `inst_msg91_account_info`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `inst_mst_seq_generator`
--
ALTER TABLE `inst_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `inst_rule_config`
--
ALTER TABLE `inst_rule_config`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `interview_schedule_mst_seq_generator`
--
ALTER TABLE `interview_schedule_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `inventory_department_master`
--
ALTER TABLE `inventory_department_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `inventory_issue_details`
--
ALTER TABLE `inventory_issue_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `issue_mst_id` (`issue_mst_id`);

--
-- Indexes for table `inventory_issue_item_details_seq_generator`
--
ALTER TABLE `inventory_issue_item_details_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `inventory_issue_item_master_seq_generator`
--
ALTER TABLE `inventory_issue_item_master_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `inventory_issue_master`
--
ALTER TABLE `inventory_issue_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `issue_mst_id` (`issue_mst_id`);

--
-- Indexes for table `inventory_item_category`
--
ALTER TABLE `inventory_item_category`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `inventory_item_category_seq_generator`
--
ALTER TABLE `inventory_item_category_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `inventory_item_master`
--
ALTER TABLE `inventory_item_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `item_id` (`item_id`);

--
-- Indexes for table `inventory_item_mst_seq_generator`
--
ALTER TABLE `inventory_item_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `inventory_order_details`
--
ALTER TABLE `inventory_order_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `inventory_order_dtl_seq_generator`
--
ALTER TABLE `inventory_order_dtl_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `inventory_order_master`
--
ALTER TABLE `inventory_order_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `inventory_order_mst_seq_generator`
--
ALTER TABLE `inventory_order_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `inventory_party_master`
--
ALTER TABLE `inventory_party_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `inventory_pocket_money`
--
ALTER TABLE `inventory_pocket_money`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_id` (`user_id`);

--
-- Indexes for table `inventory_stock_balance`
--
ALTER TABLE `inventory_stock_balance`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `inventory_user_pocket_history`
--
ALTER TABLE `inventory_user_pocket_history`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `jobs`
--
ALTER TABLE `jobs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `jobs_queue_reserved_reserved_at_index` (`queue`,`reserved`,`reserved_at`);

--
-- Indexes for table `json_template_master`
--
ALTER TABLE `json_template_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_json_template_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_json_template_master_is_active` (`is_active`),
  ADD KEY `idx_json_template_master_json_template_id` (`json_template_id`),
  ADD KEY `idx_json_template_master_tbl_name` (`tbl_name`);

--
-- Indexes for table `kitchen_item_master`
--
ALTER TABLE `kitchen_item_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `kitchen_item_mst_seq_generator`
--
ALTER TABLE `kitchen_item_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `leave_package_emp_history`
--
ALTER TABLE `leave_package_emp_history`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `leave_package_emp_map`
--
ALTER TABLE `leave_package_emp_map`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `leave_real_time_emp_balance`
--
ALTER TABLE `leave_real_time_emp_balance`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `liability_master`
--
ALTER TABLE `liability_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_liability_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_liability_master_is_active` (`is_active`),
  ADD KEY `idx_liability_master_liability_id` (`liability_id`),
  ADD KEY `idx_liability_master_liability_name` (`liability_name`);

--
-- Indexes for table `library_accounts`
--
ALTER TABLE `library_accounts`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `library_account_seq_generator`
--
ALTER TABLE `library_account_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `library_book_details`
--
ALTER TABLE `library_book_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `instid_isactive_isdeleted` (`inst_id`,`is_active`,`is_deleted`),
  ADD KEY `bookid` (`book_id`);

--
-- Indexes for table `library_book_issue`
--
ALTER TABLE `library_book_issue`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `library_book_master`
--
ALTER TABLE `library_book_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `book_id` (`book_id`),
  ADD KEY `instid_isdeleted_isactive` (`inst_id`,`is_deleted`,`is_active`);

--
-- Indexes for table `meal_calendar_details`
--
ALTER TABLE `meal_calendar_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `meal_calendar_dtl_seq_generator`
--
ALTER TABLE `meal_calendar_dtl_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `meal_calendar_master`
--
ALTER TABLE `meal_calendar_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `meal_calendar_mst_seq_generator`
--
ALTER TABLE `meal_calendar_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `migration_std_div_map_inputs`
--
ALTER TABLE `migration_std_div_map_inputs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `mobile_account_mapping`
--
ALTER TABLE `mobile_account_mapping`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_ownermobilenumber` (`owner_mobile_phone`),
  ADD KEY `idx_ownermobilenumber_isactive_isdeleted` (`owner_mobile_phone`,`is_active`,`is_deleted`);

--
-- Indexes for table `module_user_master`
--
ALTER TABLE `module_user_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `news_category`
--
ALTER TABLE `news_category`
  ADD PRIMARY KEY (`id`),
  ADD KEY `id` (`id`),
  ADD KEY `category_id` (`category_id`);

--
-- Indexes for table `news_posts`
--
ALTER TABLE `news_posts`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `news_post_seq_generator`
--
ALTER TABLE `news_post_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `notification_config`
--
ALTER TABLE `notification_config`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_notification_config_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_notification_config_is_active` (`is_active`),
  ADD KEY `idx_notification_config_ay_notif_template_id` (`notif_template_id`),
  ADD KEY `idx_notification_config_notif_name` (`notif_name`),
  ADD KEY `idx_notification_config_txn_id` (`txn_id`),
  ADD KEY `idx_notification_config_txn_category_sub` (`txn_category`,`txn_sub_category`);

--
-- Indexes for table `notification_master`
--
ALTER TABLE `notification_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_notification_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_notification_master_is_active` (`is_active`),
  ADD KEY `idx_notification_master_notification_id` (`notification_id`),
  ADD KEY `idx_notification_master_notif_template_id` (`notif_template_id`),
  ADD KEY `idx_notification_master_notif_datetime` (`notif_datetime`),
  ADD KEY `idx_notification_master_status` (`status`);

--
-- Indexes for table `notification_mst_seq_generator`
--
ALTER TABLE `notification_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `notif_app_log`
--
ALTER TABLE `notif_app_log`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_notif_app_log_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_notif_app_log_is_active` (`is_active`),
  ADD KEY `idx_notif_app_log_notification_id` (`notification_id`),
  ADD KEY `idx_notif_app_log_user_type_id` (`user_type`,`user_id`),
  ADD KEY `idx_notif_app_log_push_message` (`push_message`(255)),
  ADD KEY `idx_notif_app_log_status` (`status`),
  ADD KEY `stud_notif_data_app_dashboard1` (`user_id`,`user_type`,`is_deleted`,`is_active`,`inst_id`);

--
-- Indexes for table `notif_app_template_master`
--
ALTER TABLE `notif_app_template_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_notif_app_template_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_notif_app_template_master_is_active` (`is_active`),
  ADD KEY `idx_notif_app_template_master_push_message` (`push_message`(255)),
  ADD KEY `idx_notif_app_template_master_push_title_subtitle` (`push_title`,`push_subtitle`),
  ADD KEY `idx_notif_app_template_master_recipient_type` (`recipient_type`);

--
-- Indexes for table `notif_email_log`
--
ALTER TABLE `notif_email_log`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_notif_email_log_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_notif_email_log_is_active` (`is_active`),
  ADD KEY `idx_notif_email_log_notification_id` (`notification_id`),
  ADD KEY `idx_notif_email_log_user_type_id` (`user_type`,`user_id`),
  ADD KEY `idx_notif_email_log_email_subject` (`email_subject`),
  ADD KEY `idx_notif_email_log_status` (`status`),
  ADD KEY `stud_notif_email_data_app_dashboard1` (`user_id`,`user_type`,`is_deleted`,`is_active`,`inst_id`);

--
-- Indexes for table `notif_email_template_master`
--
ALTER TABLE `notif_email_template_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_notif_email_template_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_notif_email_template_master_is_active` (`is_active`),
  ADD KEY `idx_notif_email_template_master_email_subject` (`email_subject`),
  ADD KEY `idx_notif_email_template_master_recipient_type` (`recipient_type`);

--
-- Indexes for table `notif_file_attachments`
--
ALTER TABLE `notif_file_attachments`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `notif_sms_log`
--
ALTER TABLE `notif_sms_log`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_notif_sms_log_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_notif_sms_log_is_active` (`is_active`),
  ADD KEY `idx_notif_sms_log_notification_id` (`notification_id`),
  ADD KEY `idx_notif_sms_log_user_type_id` (`user_type`,`user_id`),
  ADD KEY `idx_notif_sms_log_sent_on` (`sent_on`),
  ADD KEY `idx_notif_sms_log_status` (`status`),
  ADD KEY `stud_notif_data_app_dashboard1` (`user_id`,`user_type`,`is_deleted`,`is_active`,`inst_id`),
  ADD KEY `idx_nsl_createdon_inst_active_deleted` (`created_on`,`inst_id`,`is_active`,`is_deleted`),
  ADD KEY `idx_smssummary_status_2` (`created_on`,`inst_id`,`is_active`,`is_deleted`),
  ADD KEY `idx_smscredit_history` (`inst_id`,`is_active`,`is_deleted`) USING BTREE;

--
-- Indexes for table `notif_sms_log_archive`
--
ALTER TABLE `notif_sms_log_archive`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_notif_sms_log_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_notif_sms_log_is_active` (`is_active`),
  ADD KEY `idx_notif_sms_log_notification_id` (`notification_id`),
  ADD KEY `idx_notif_sms_log_user_type_id` (`user_type`,`user_id`),
  ADD KEY `idx_notif_sms_log_sent_on` (`sent_on`),
  ADD KEY `idx_notif_sms_log_status` (`status`),
  ADD KEY `stud_notif_data_app_dashboard1` (`user_id`,`user_type`,`is_deleted`,`is_active`,`inst_id`),
  ADD KEY `idx_nsl_createdon_inst_active_deleted` (`created_on`,`inst_id`,`is_active`,`is_deleted`),
  ADD KEY `idx_smssummary_status_2` (`created_on`,`inst_id`,`is_active`,`is_deleted`),
  ADD KEY `idx_smscredit_history` (`inst_id`,`is_active`,`is_deleted`);

--
-- Indexes for table `notif_sms_template_master`
--
ALTER TABLE `notif_sms_template_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_notif_sms_template_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_notif_sms_template_master_is_active` (`is_active`),
  ADD KEY `idx_notif_sms_template_master_sms_from_mobile_no` (`sms_from_mobile_no`),
  ADD KEY `idx_notif_sms_template_master_recipient_type` (`recipient_type`);

--
-- Indexes for table `notif_web_log`
--
ALTER TABLE `notif_web_log`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_notif_web_log_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_notif_web_log_is_active` (`is_active`),
  ADD KEY `idx_notif_web_log_notification_id` (`notification_id`),
  ADD KEY `idx_notif_web_log_user_type_id` (`user_type`,`user_id`),
  ADD KEY `idx_notif_web_log_web_subject` (`web_subject`),
  ADD KEY `idx_notif_web_log_sent_on` (`sent_on`),
  ADD KEY `idx_notif_web_log_status` (`status`),
  ADD KEY `userid_instid_usertype_isdeleted_isactive` (`user_id`,`inst_id`,`user_type`,`is_deleted`,`is_active`) USING BTREE;

--
-- Indexes for table `notif_web_log_archive`
--
ALTER TABLE `notif_web_log_archive`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_notif_web_log_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_notif_web_log_is_active` (`is_active`),
  ADD KEY `idx_notif_web_log_notification_id` (`notification_id`),
  ADD KEY `idx_notif_web_log_user_type_id` (`user_type`,`user_id`),
  ADD KEY `idx_notif_web_log_web_subject` (`web_subject`),
  ADD KEY `idx_notif_web_log_sent_on` (`sent_on`),
  ADD KEY `idx_notif_web_log_status` (`status`),
  ADD KEY `userid_instid_usertype_isdeleted_isactive` (`user_id`,`inst_id`,`user_type`,`is_deleted`,`is_active`) USING BTREE;

--
-- Indexes for table `notif_web_template_master`
--
ALTER TABLE `notif_web_template_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_notif_web_template_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_notif_web_template_master_is_active` (`is_active`),
  ADD KEY `idx_notif_web_template_master_web_subject` (`web_subject`),
  ADD KEY `idx_notif_web_template_master_recipient_type` (`recipient_type`);

--
-- Indexes for table `optional_field_appl_master`
--
ALTER TABLE `optional_field_appl_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `optional_field_details`
--
ALTER TABLE `optional_field_details`
  ADD UNIQUE KEY `id` (`id`);

--
-- Indexes for table `optional_field_master`
--
ALTER TABLE `optional_field_master`
  ADD UNIQUE KEY `id` (`id`);

--
-- Indexes for table `order_details`
--
ALTER TABLE `order_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `order_dtl_seq_generator`
--
ALTER TABLE `order_dtl_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `order_master`
--
ALTER TABLE `order_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `order_mst_seq_generator`
--
ALTER TABLE `order_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `organization_master`
--
ALTER TABLE `organization_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_organization_master_ay_id_inst_id_is_deleted` (`is_deleted`),
  ADD KEY `idx_organization_master_org_id` (`org_id`),
  ADD KEY `idx_organization_master_org_type` (`org_type`),
  ADD KEY `idx_organization_master_org_name` (`org_name`),
  ADD KEY `idx_organization_master_org_display_name` (`org_display_name`),
  ADD KEY `idx_organization_master_city` (`city`);

--
-- Indexes for table `organization_mst_seq_generator`
--
ALTER TABLE `organization_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `outbound_communication_details`
--
ALTER TABLE `outbound_communication_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_outbound_communication_details_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_outbound_communication_details_is_active` (`is_active`),
  ADD KEY `idx_outbound_communication_details_outbound_communication_id` (`outbound_communication_id`),
  ADD KEY `idx_outbound_communication_details_status` (`status`);

--
-- Indexes for table `parent_master`
--
ALTER TABLE `parent_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_parent_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_parent_master_is_active` (`is_active`),
  ADD KEY `idx_parent_master_parent_id` (`parent_id`),
  ADD KEY `idx_parent_master_first_middle_last_name` (`first_name`,`middle_name`,`last_name`),
  ADD KEY `idx_parent_master_last_first_middle_name` (`last_name`,`first_name`,`middle_name`),
  ADD KEY `idx_parent_master_relation_type` (`relation_type`),
  ADD KEY `idx_parent_master_mobile_phone_1` (`mobile_phone_1`),
  ADD KEY `idx_parent_master_mobile_phone_2` (`mobile_phone_2`),
  ADD KEY `idx_parent_master_mobile_phone_chk` (`mobile_phone_1`,`is_active`,`is_deleted`);

--
-- Indexes for table `parent_mst_seq_generator`
--
ALTER TABLE `parent_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `pmt_gateway_billdesk_response`
--
ALTER TABLE `pmt_gateway_billdesk_response`
  ADD PRIMARY KEY (`id`),
  ADD KEY `merchanid_txnrefrence` (`merchant_id`,`billdesk_txn_reference`,`is_active`,`is_deleted`),
  ADD KEY `merchanid_txnrefrence_txnamt` (`merchant_id`,`billdesk_txn_reference`,`txn_amount`,`is_active`,`is_deleted`),
  ADD KEY `merchanid_bankrefrence` (`merchant_id`,`bank_reference_no`,`is_active`,`is_deleted`);

--
-- Indexes for table `pmt_gateway_master`
--
ALTER TABLE `pmt_gateway_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_pmt_gateway_master_inst_id_is_deleted` (`inst_id`,`is_deleted`),
  ADD KEY `idx_pmt_gateway_master_is_active` (`is_active`),
  ADD KEY `idx_pmt_gateway_master_txn_reference` (`txn_reference`),
  ADD KEY `idx_pmt_gateway_master_status` (`status`),
  ADD KEY `idx_pmt_gateway_master_inst_id_qp_code` (`inst_id`,`qp_code`);

--
-- Indexes for table `pmt_gateway_payumoney_response`
--
ALTER TABLE `pmt_gateway_payumoney_response`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_online_payment_response_is_active` (`is_active`),
  ADD KEY `idx_online_payment_response_txn_reference` (`txn_reference`),
  ADD KEY `idx_online_payment_response_status` (`response_status`);

--
-- Indexes for table `pmt_gateway_razorpay_response`
--
ALTER TABLE `pmt_gateway_razorpay_response`
  ADD PRIMARY KEY (`id`),
  ADD KEY `merchanid_txnrefrence` (`merchant_id`,`razorpay_order_id`,`is_active`,`is_deleted`),
  ADD KEY `merchanid_txnrefrence_txnamt` (`merchant_id`,`razorpay_order_id`,`currency_name`,`is_active`,`is_deleted`),
  ADD KEY `merchanid_bankrefrence` (`merchant_id`,`txn_amount`,`is_active`,`is_deleted`);

--
-- Indexes for table `pmt_quick_pay_details`
--
ALTER TABLE `pmt_quick_pay_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_pmt_quick_pay_details_is_active` (`is_active`,`is_deleted`),
  ADD KEY `idx_pmt_quick_pay_details_main` (`ay_id`,`inst_id`,`is_active`,`is_deleted`,`demand_mst_id`,`demand_grp_id`),
  ADD KEY `idx_pmt_quick_pay_details_main2` (`ay_id`,`inst_id`,`qp_mst_id`);

--
-- Indexes for table `pmt_quick_pay_master`
--
ALTER TABLE `pmt_quick_pay_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_pmt_quick_pay_master_isactive` (`is_active`,`is_deleted`),
  ADD KEY `idx_pmt_quick_pay_master_main1` (`ay_id`,`inst_id`,`qp_mst_id`),
  ADD KEY `idx_pmt_quick_pay_master_qp_code` (`qp_code`);

--
-- Indexes for table `proc_error_logs`
--
ALTER TABLE `proc_error_logs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `qams_actor_master`
--
ALTER TABLE `qams_actor_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_qams_actor_master_inst_id_is_active_is_deleted` (`inst_id`,`is_active`,`is_deleted`);

--
-- Indexes for table `qams_asset_master`
--
ALTER TABLE `qams_asset_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_qams_asset_master_inst_id_is_active_is_deleted` (`inst_id`,`is_active`,`is_deleted`);

--
-- Indexes for table `qams_asset_master_seq_generator`
--
ALTER TABLE `qams_asset_master_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `qams_incident_data_details`
--
ALTER TABLE `qams_incident_data_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_qams_incident_data_details_ay_id_inst_id_is_active_is_delete` (`ay_id`,`inst_id`,`is_active`,`is_deleted`),
  ADD KEY `idx_ams_incident_data_details_ay_inst_uid_utype_active_deleted` (`ay_id`,`inst_id`,`user_id`,`user_type`,`is_active`,`is_deleted`);

--
-- Indexes for table `qams_incident_data_master`
--
ALTER TABLE `qams_incident_data_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_qams_incident_data_master_ay_id_inst_id_is_active_is_deleted` (`ay_id`,`inst_id`,`is_active`,`is_deleted`),
  ADD KEY `idx_qamsInciDataMst_ayid_instid_date_inciid_actId_active_deleted` (`ay_id`,`inst_id`,`date`,`incident_id`,`actor_id`,`is_active`,`is_deleted`);

--
-- Indexes for table `qams_incident_data_mst_seq_generator`
--
ALTER TABLE `qams_incident_data_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `qams_incident_master`
--
ALTER TABLE `qams_incident_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_qams_incident_master_inst_id_is_active_is_deleted` (`inst_id`,`is_active`,`is_deleted`);

--
-- Indexes for table `qams_incident_mst_seq_generator`
--
ALTER TABLE `qams_incident_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `qams_other_users_master`
--
ALTER TABLE `qams_other_users_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `qams_other_user_seq_generator`
--
ALTER TABLE `qams_other_user_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `qms_category_master`
--
ALTER TABLE `qms_category_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `qms_task_data_details`
--
ALTER TABLE `qms_task_data_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `qms_task_data_master`
--
ALTER TABLE `qms_task_data_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `qms_task_data_seq_generator`
--
ALTER TABLE `qms_task_data_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `qms_task_master`
--
ALTER TABLE `qms_task_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `queue_gate_pass_data`
--
ALTER TABLE `queue_gate_pass_data`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `ranking_level_master`
--
ALTER TABLE `ranking_level_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_ranking_level_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_ranking_level_master_is_active` (`is_active`),
  ADD KEY `idx_ranking_level_master_ranking_lvl_id` (`ranking_lvl_id`),
  ADD KEY `idx_ranking_level_master_standard_id` (`standard_id`),
  ADD KEY `idx_ranking_level_master_grading_system` (`grading_system`),
  ADD KEY `idx_ranking_level_master_level_name` (`level_name`);

--
-- Indexes for table `role_master`
--
ALTER TABLE `role_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_role_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_role_master_is_active` (`is_active`),
  ADD KEY `idx_role_master_role_parent_id` (`role_id`,`parent_id`),
  ADD KEY `idx_role_master_parent_id` (`parent_id`),
  ADD KEY `idx_role_master_role_name` (`role_name`),
  ADD KEY `idx_role_master_role_display_name` (`role_display_name`);

--
-- Indexes for table `role_txn_map`
--
ALTER TABLE `role_txn_map`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_role_txn_map_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_role_txn_map_is_active` (`is_active`),
  ADD KEY `idx_role_txn_map_role_id` (`role_id`),
  ADD KEY `idx_role_txn_map_txn_id` (`txn_id`),
  ADD KEY `user_entitlements_copy` (`role_id`,`txn_id`,`inst_id`,`is_deleted`,`is_active`);

--
-- Indexes for table `rough_work_temp_student_master`
--
ALTER TABLE `rough_work_temp_student_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `school_document_details`
--
ALTER TABLE `school_document_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sequence_generator_master`
--
ALTER TABLE `sequence_generator_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_sequence_generator_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_sequence_generator_master_is_active` (`is_active`),
  ADD KEY `idx_sequence_generator_master_seq_gen_mst_id` (`seq_gen_mst_id`),
  ADD KEY `idx_sequence_generator_master_entity_id` (`entity_id`);

--
-- Indexes for table `server_maintenance_log`
--
ALTER TABLE `server_maintenance_log`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `service_provider_institute_mapping`
--
ALTER TABLE `service_provider_institute_mapping`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `service_provider_institute_mapping_seq_generator`
--
ALTER TABLE `service_provider_institute_mapping_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `service_provider_seq_generator`
--
ALTER TABLE `service_provider_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `setup_class_master`
--
ALTER TABLE `setup_class_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `setup_division_master`
--
ALTER TABLE `setup_division_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `setup_employee_master`
--
ALTER TABLE `setup_employee_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `setup_standard_master`
--
ALTER TABLE `setup_standard_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `setup_student_master`
--
ALTER TABLE `setup_student_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `setup_stud_master_seq_generator`
--
ALTER TABLE `setup_stud_master_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `setup_subject_master`
--
ALTER TABLE `setup_subject_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `setup_subject_teacher_map`
--
ALTER TABLE `setup_subject_teacher_map`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `setup_tress_master`
--
ALTER TABLE `setup_tress_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sms_credit_history`
--
ALTER TABLE `sms_credit_history`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sms_credit_plans`
--
ALTER TABLE `sms_credit_plans`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sms_credit_status`
--
ALTER TABLE `sms_credit_status`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_scs` (`is_active`,`is_deleted`,`inst_id`);

--
-- Indexes for table `sms_log`
--
ALTER TABLE `sms_log`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_sms_log_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_sms_log_is_active` (`is_active`),
  ADD KEY `idx_sms_log_sms_message_id` (`sms_message_id`),
  ADD KEY `idx_sms_log_sms_recipient_id` (`sms_recipient_id`),
  ADD KEY `idx_sms_log_sms_sent_delivery_date` (`sms_sent_date`,`sms_delivery_date`),
  ADD KEY `idx_sms_log_sms_delivery_date` (`sms_delivery_date`),
  ADD KEY `idx_sms_log_mobile_number` (`mobile_number`);

--
-- Indexes for table `sms_template_master`
--
ALTER TABLE `sms_template_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_sms_template_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_sms_template_master_is_active` (`is_active`),
  ADD KEY `idx_sms_template_master_txn_id` (`txn_id`),
  ADD KEY `idx_sms_template_master_recipient_type` (`recipient_type`);

--
-- Indexes for table `social_post`
--
ALTER TABLE `social_post`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `standards_admission_config_master`
--
ALTER TABLE `standards_admission_config_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `standard_division_map`
--
ALTER TABLE `standard_division_map`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_standard_division_map_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_standard_division_map_is_active` (`is_active`),
  ADD KEY `idx_standard_division_map_std_div_map_id` (`std_div_map_id`),
  ADD KEY `idx_standard_division_map_std_div_id` (`standard_id`,`division_id`);

--
-- Indexes for table `standard_division_map_seq_generator`
--
ALTER TABLE `standard_division_map_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `standard_inst_config`
--
ALTER TABLE `standard_inst_config`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `standard_master`
--
ALTER TABLE `standard_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_standard_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_standard_master_is_active` (`is_active`),
  ADD KEY `idx_standard_master_standard_id` (`standard_id`),
  ADD KEY `idx_standard_master_standard_name` (`standard_name`),
  ADD KEY `idx_inst_ayid_active_deleted` (`inst_id`,`ay_id`,`is_active`,`is_deleted`);

--
-- Indexes for table `student_admission_history`
--
ALTER TABLE `student_admission_history`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `student_assignment_details`
--
ALTER TABLE `student_assignment_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `student_assignment_master`
--
ALTER TABLE `student_assignment_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `student_attendance_details`
--
ALTER TABLE `student_attendance_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_student_attendance_details_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_student_attendance_details_is_active` (`is_active`),
  ADD KEY `idx_student_attendance_details_attd_mst_id` (`attendance_mst_id`),
  ADD KEY `idx_student_attendance_details_student_id` (`student_id`),
  ADD KEY `idx_student_attendance_details_attd_status` (`attendance_status`);

--
-- Indexes for table `student_attendance_dtl_seq_generator`
--
ALTER TABLE `student_attendance_dtl_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `student_attendance_master`
--
ALTER TABLE `student_attendance_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_student_attendance_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_student_attendance_master_is_active` (`is_active`),
  ADD KEY `idx_student_attendance_master_attd_mst_id` (`attendance_mst_id`),
  ADD KEY `idx_student_attendance_master_grp_type_id` (`group_type`,`group_id`),
  ADD KEY `idx_student_attendance_master_std_div_id` (`standard_id`,`division_id`),
  ADD KEY `idx_student_attendance_master_attd_date` (`attendance_date`),
  ADD KEY `idx_student_attendance_master_status` (`status`),
  ADD KEY `idx_sam_ay_id_inst_id_is_deleted_active_status` (`inst_id`,`ay_id`,`is_active`,`is_deleted`,`status`);

--
-- Indexes for table `student_attendance_mst_seq_generator`
--
ALTER TABLE `student_attendance_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `student_attendance_summary`
--
ALTER TABLE `student_attendance_summary`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_student_attendance_summary_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_student_attendance_summary_is_active` (`is_active`),
  ADD KEY `idx_student_attendance_summary_grp_type_id` (`group_type`,`group_id`),
  ADD KEY `idx_student_attendance_summary_std_div_id` (`standard_id`,`division_id`),
  ADD KEY `idx_student_attendance_summary_status` (`status`);

--
-- Indexes for table `student_elective_subject_map`
--
ALTER TABLE `student_elective_subject_map`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_student_elective_subject_map_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_student_elective_subject_map_is_active` (`is_active`);

--
-- Indexes for table `student_health_details`
--
ALTER TABLE `student_health_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `student_homework_details`
--
ALTER TABLE `student_homework_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_student_homework_details_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_student_homework_details_is_active` (`is_active`),
  ADD KEY `idx_student_homework_details_stud_hw_mst_id` (`stud_hw_mst_id`),
  ADD KEY `idx_student_homework_details_stud_hw_dtl_id` (`stud_hw_dtl_id`),
  ADD KEY `idx_student_homework_details_group_type_id` (`group_type`,`group_id`),
  ADD KEY `idx_student_homework_details_student_id` (`student_id`),
  ADD KEY `idx_student_homework_details_status` (`status`);

--
-- Indexes for table `student_homework_dtl_seq_generator`
--
ALTER TABLE `student_homework_dtl_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `student_homework_master`
--
ALTER TABLE `student_homework_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_student_homework_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_student_homework_master_is_active` (`is_active`),
  ADD KEY `idx_student_homework_master_stud_hw_mst_id` (`stud_hw_mst_id`),
  ADD KEY `idx_student_homework_master_stud_emp_id` (`emp_id`),
  ADD KEY `idx_student_homework_master_stud_group_type_id` (`group_type`,`group_id`),
  ADD KEY `idx_student_homework_master_stud_std_div_id` (`standard_id`,`division_id`),
  ADD KEY `idx_student_homework_master_sub_std_map_id` (`sub_std_map_id`),
  ADD KEY `idx_student_homework_master_hw_assign_target_date` (`hw_assign_date`,`hw_target_date`),
  ADD KEY `idx_student_homework_master_hw_target_date` (`hw_target_date`),
  ADD KEY `idx_student_homework_master_status` (`status`),
  ADD KEY `stud_hw_data_app_dashboard1` (`status`,`ay_id`,`inst_id`,`emp_id`,`is_active`,`is_deleted`),
  ADD KEY `stud_hw_data_app_dashboard2` (`status`,`ay_id`,`inst_id`,`emp_id`,`is_active`,`is_deleted`,`hw_assign_date`),
  ADD KEY `stud_hw_data_app_dashboard3` (`status`,`ay_id`,`inst_id`,`emp_id`,`is_active`,`is_deleted`,`sub_std_map_id`);

--
-- Indexes for table `student_homework_mst_seq_generator`
--
ALTER TABLE `student_homework_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `student_leave_details`
--
ALTER TABLE `student_leave_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_student_leave_details_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_student_leave_details_is_active` (`is_active`),
  ADD KEY `idx_student_leave_details_class_id` (`class_id`),
  ADD KEY `idx_student_leave_details_student_id` (`student_id`),
  ADD KEY `idx_student_leave_details_leave_type` (`leave_type`),
  ADD KEY `idx_student_leave_details_leave_start_end_date` (`leave_start_date`,`leave_end_date`);

--
-- Indexes for table `student_leave_dtl_seq_generator`
--
ALTER TABLE `student_leave_dtl_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `student_master`
--
ALTER TABLE `student_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_student_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_student_master_is_active` (`is_active`),
  ADD KEY `idx_student_master_student_id` (`student_id`),
  ADD KEY `idx_student_master_std_id_div_id` (`standard_id`,`division_id`),
  ADD KEY `idx_student_master_class_id` (`class_id`),
  ADD KEY `idx_student_master_student_num` (`student_num`),
  ADD KEY `idx_student_master_admission_num` (`admission_num`),
  ADD KEY `idx_student_master_first_middle_last_name` (`first_name`,`middle_name`,`last_name`),
  ADD KEY `idx_student_master_last_first_middle_name` (`last_name`,`first_name`,`middle_name`),
  ADD KEY `idx_student_master_birth_date` (`birth_date`),
  ADD KEY `idx_student_master_student_cat_subcat` (`student_category`,`student_subcategory`),
  ADD KEY `idx_student_master_consession_category` (`consession_category`),
  ADD KEY `idx_student_login_chk` (`is_active`,`is_deleted`,`stud_status`,`class_id`,`mobile_phone_main`),
  ADD KEY `idx_stud_login_chk2` (`is_active`,`is_deleted`,`stud_status`,`contact_id_1`,`contact_id_2`),
  ADD KEY `idx_admission_enquiry` (`enrolled_for_std`,`stud_status`,`is_deleted`,`is_active`,`inst_id`,`created_on`),
  ADD KEY `idx_admission_status` (`standard_id`,`stud_status`,`is_deleted`,`is_active`,`inst_id`,`created_on`) USING BTREE,
  ADD KEY `idx_student_master_inst_id_ayid_studentid_is_active_is_deleted` (`inst_id`,`ay_id`,`student_id`,`is_active`,`is_deleted`) USING BTREE;

--
-- Indexes for table `student_migration_decision`
--
ALTER TABLE `student_migration_decision`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `student_mst_seq_generator`
--
ALTER TABLE `student_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `stud_admissiom_score_master`
--
ALTER TABLE `stud_admissiom_score_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `stud_admission_notif_templates`
--
ALTER TABLE `stud_admission_notif_templates`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `stud_admission_rating_master`
--
ALTER TABLE `stud_admission_rating_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `stud_assignment_dtl_seq_generator`
--
ALTER TABLE `stud_assignment_dtl_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `stud_assignment_mst_seq_generator`
--
ALTER TABLE `stud_assignment_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `stud_attendance_dtl_seq_generator`
--
ALTER TABLE `stud_attendance_dtl_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `stud_attendance_mst_seq_generator`
--
ALTER TABLE `stud_attendance_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `stud_interview_schedule_details`
--
ALTER TABLE `stud_interview_schedule_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `stud_mst_seq_generator`
--
ALTER TABLE `stud_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `stud_subject_package_map`
--
ALTER TABLE `stud_subject_package_map`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `subject_book_map`
--
ALTER TABLE `subject_book_map`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_subject_book_map_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_subject_book_map_is_active` (`is_active`),
  ADD KEY `idx_subject_book_map_sub_book_map_id` (`sub_book_map_id`),
  ADD KEY `idx_subject_book_map_sub_std_map_id` (`sub_std_map_id`),
  ADD KEY `idx_subject_book_map_book_id` (`book_id`);

--
-- Indexes for table `subject_book_map_seq_generator`
--
ALTER TABLE `subject_book_map_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `subject_master`
--
ALTER TABLE `subject_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_subject_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_subject_master_is_active` (`is_active`),
  ADD KEY `idx_subject_master_subject_id` (`subject_id`),
  ADD KEY `idx_subject_master_subject_name` (`subject_name`),
  ADD KEY `idx_subject_master_subject_display_name` (`subject_display_name`);

--
-- Indexes for table `subject_master_seq_generator`
--
ALTER TABLE `subject_master_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `subject_mst_seq_generator`
--
ALTER TABLE `subject_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `subject_package_details`
--
ALTER TABLE `subject_package_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `subject_package_master`
--
ALTER TABLE `subject_package_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `subject_standard_map`
--
ALTER TABLE `subject_standard_map`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_subject_standard_map_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_subject_standard_map_is_active` (`is_active`),
  ADD KEY `idx_subject_standard_map_sub_std_map_id` (`sub_std_map_id`),
  ADD KEY `idx_subject_standard_map_std_id_div_id` (`standard_id`,`division_id`),
  ADD KEY `idx_subject_standard_map_group_type_group_id` (`group_type`,`group_id`);

--
-- Indexes for table `subject_standard_map_seq_generator`
--
ALTER TABLE `subject_standard_map_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `subject_structure_map`
--
ALTER TABLE `subject_structure_map`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_subject_structure_map_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_subject_structure_map_is_active` (`is_active`),
  ADD KEY `idx_subject_structure_map_sub_struct_map_id` (`sub_struct_map_id`),
  ADD KEY `idx_subject_structure_map_sub_std_map_id` (`sub_std_map_id`),
  ADD KEY `idx_subject_structure_map_std_id_div_id` (`standard_id`,`division_id`),
  ADD KEY `idx_subject_structure_map_group_type_group_id` (`group_type`,`group_id`);

--
-- Indexes for table `subject_structure_map_seq_generator`
--
ALTER TABLE `subject_structure_map_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `subject_syllabus_map`
--
ALTER TABLE `subject_syllabus_map`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_subject_syllabus_map_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_subject_syllabus_map_is_active` (`is_active`),
  ADD KEY `idx_subject_syllabus_map_sub_sylbs_map_id` (`sub_sylbs_map_id`),
  ADD KEY `idx_subject_syllabus_map_sub_std_map_id` (`sub_std_map_id`),
  ADD KEY `idx_subject_syllabus_map_sub_book_map_id_book_chpt_map_id` (`sub_book_map_id`,`book_chpt_map_id`);

--
-- Indexes for table `substitute_lecture_details`
--
ALTER TABLE `substitute_lecture_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sub_module_notif_config`
--
ALTER TABLE `sub_module_notif_config`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sub_package_dtl_seq_generator`
--
ALTER TABLE `sub_package_dtl_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `sub_package_mst_seq_generator`
--
ALTER TABLE `sub_package_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `sub_syllabus_map_seq_generator`
--
ALTER TABLE `sub_syllabus_map_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `teacher_lecture_details`
--
ALTER TABLE `teacher_lecture_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `teacher_work_load`
--
ALTER TABLE `teacher_work_load`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `temp_bio_table`
--
ALTER TABLE `temp_bio_table`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `temp_manage_students_roll_numbers`
--
ALTER TABLE `temp_manage_students_roll_numbers`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `temp_rfid_data`
--
ALTER TABLE `temp_rfid_data`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `temp_student_master`
--
ALTER TABLE `temp_student_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_student_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_student_master_is_active` (`is_active`),
  ADD KEY `idx_student_master_student_id` (`student_id`),
  ADD KEY `idx_student_master_std_id_div_id` (`standard_id`,`division_id`),
  ADD KEY `idx_student_master_class_id` (`class_id`),
  ADD KEY `idx_student_master_student_num` (`student_num`),
  ADD KEY `idx_student_master_admission_num` (`admission_num`),
  ADD KEY `idx_student_master_first_middle_last_name` (`first_name`,`middle_name`,`last_name`),
  ADD KEY `idx_student_master_last_first_middle_name` (`last_name`,`first_name`,`middle_name`),
  ADD KEY `idx_student_master_birth_date` (`birth_date`),
  ADD KEY `idx_student_master_student_cat_subcat` (`student_category`,`student_subcategory`),
  ADD KEY `idx_student_master_consession_category` (`consession_category`);

--
-- Indexes for table `temp_tb_use_to_update_student_info`
--
ALTER TABLE `temp_tb_use_to_update_student_info`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `temp_teacher`
--
ALTER TABLE `temp_teacher`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `temp_user_employee_master`
--
ALTER TABLE `temp_user_employee_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `temp_user_parent_master`
--
ALTER TABLE `temp_user_parent_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `temp_user_student_master`
--
ALTER TABLE `temp_user_student_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `timeslot_details`
--
ALTER TABLE `timeslot_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `timeslot_details_seq_generator`
--
ALTER TABLE `timeslot_details_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `timeslot_master`
--
ALTER TABLE `timeslot_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_timeslot_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_timeslot_master_is_active` (`is_active`),
  ADD KEY `idx_timeslot_master_timeslot_id` (`timeslot_id`),
  ADD KEY `idx_timeslot_master_timeslot_type` (`timeslot_type`);

--
-- Indexes for table `timetable_emp_map`
--
ALTER TABLE `timetable_emp_map`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_timetable_emp_map_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_timetable_emp_map_is_active` (`is_active`),
  ADD KEY `idx_timetable_emp_map_tt_period_id` (`timetable_period_id`),
  ADD KEY `idx_timetable_emp_map_emp_id_emp_role` (`emp_id`,`emp_role`);

--
-- Indexes for table `timetable_master`
--
ALTER TABLE `timetable_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_timetable_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_timetable_master_is_active` (`is_active`),
  ADD KEY `idx_timetable_master_std_id_div_id` (`standard_id`,`division_id`),
  ADD KEY `idx_timetable_master_cls_id` (`class_id`),
  ADD KEY `idx_timetable_master_timetable_id` (`timetable_id`);

--
-- Indexes for table `timetable_meta`
--
ALTER TABLE `timetable_meta`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_timetable_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_timetable_master_is_active` (`is_active`);

--
-- Indexes for table `timetable_meta_seq_generator`
--
ALTER TABLE `timetable_meta_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `timetable_mst_seq_generator`
--
ALTER TABLE `timetable_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `timetable_period_map`
--
ALTER TABLE `timetable_period_map`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_timetable_period_map_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_timetable_period_map_is_active` (`is_active`),
  ADD KEY `idx_timetable_period_map_timetable_id` (`timetable_id`),
  ADD KEY `idx_timetable_period_map_timeslot_id` (`timeslot_id`),
  ADD KEY `idx_timetable_period_map_weekday_id` (`weekday_id`),
  ADD KEY `idx_timetable_period_map_sub_std_map_id` (`sub_std_map_id`);

--
-- Indexes for table `timetable_period_map_seq_generator`
--
ALTER TABLE `timetable_period_map_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `trans_driver_details`
--
ALTER TABLE `trans_driver_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `trans_fees_details`
--
ALTER TABLE `trans_fees_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `trans_fee_config_details`
--
ALTER TABLE `trans_fee_config_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `trans_fee_installments_details`
--
ALTER TABLE `trans_fee_installments_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `trans_fee_struct_master`
--
ALTER TABLE `trans_fee_struct_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `trans_gps_device_master`
--
ALTER TABLE `trans_gps_device_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `trans_gps_device_master_seq_generator`
--
ALTER TABLE `trans_gps_device_master_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `trans_gps_tracker`
--
ALTER TABLE `trans_gps_tracker`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `trans_route_master`
--
ALTER TABLE `trans_route_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx1` (`route_id`,`inst_id`,`is_active`,`is_deleted`);

--
-- Indexes for table `trans_route_master_seq_generator`
--
ALTER TABLE `trans_route_master_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `trans_route_stops_map`
--
ALTER TABLE `trans_route_stops_map`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `trans_route_stops_master`
--
ALTER TABLE `trans_route_stops_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `trans_route_stops_master_seq_generator`
--
ALTER TABLE `trans_route_stops_master_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `trans_stop_master`
--
ALTER TABLE `trans_stop_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `trans_stop_master_seq_generator`
--
ALTER TABLE `trans_stop_master_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `trans_student_route_stop_details`
--
ALTER TABLE `trans_student_route_stop_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx1` (`inst_id`,`pickup_drop_type`,`stop_id`,`is_active`,`is_deleted`) USING BTREE,
  ADD KEY `idx2` (`inst_id`,`stop_id`,`is_active`,`is_deleted`);

--
-- Indexes for table `trans_student_route_stop_master`
--
ALTER TABLE `trans_student_route_stop_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx1` (`stud_route_stop_mst_id`,`student_id`,`inst_id`,`ay_id`,`is_active`,`is_deleted`),
  ADD KEY `idx2` (`inst_id`,`ay_id`,`student_id`,`is_active`,`is_deleted`);

--
-- Indexes for table `trans_stud_route_stops_master_seq_generator`
--
ALTER TABLE `trans_stud_route_stops_master_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `trans_vehicle_driver_map`
--
ALTER TABLE `trans_vehicle_driver_map`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `trans_vehicle_driver_map_seq_generator`
--
ALTER TABLE `trans_vehicle_driver_map_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `trans_vehicle_master`
--
ALTER TABLE `trans_vehicle_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `trans_vehicle_master_seq_generator`
--
ALTER TABLE `trans_vehicle_master_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `trans_vehicle_substitution`
--
ALTER TABLE `trans_vehicle_substitution`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `txn_alert_config`
--
ALTER TABLE `txn_alert_config`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_txn_alert_config_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_txn_alert_config_is_active` (`is_active`),
  ADD KEY `idx_txn_alert_config_txn_id` (`txn_id`);

--
-- Indexes for table `txn_field_validation`
--
ALTER TABLE `txn_field_validation`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `user_alert_config`
--
ALTER TABLE `user_alert_config`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_user_alert_config_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_user_alert_config_is_active` (`is_active`),
  ADD KEY `idx_user_alert_config_user_type_user_id` (`user_type`,`user_id`),
  ADD KEY `idx_user_alert_config_txn_id` (`txn_id`);

--
-- Indexes for table `user_app_registration_mapping`
--
ALTER TABLE `user_app_registration_mapping`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_instid_usertype_userid_isactive_isdeleted` (`inst_id`,`user_type`,`user_id`,`is_active`,`is_deleted`),
  ADD KEY `appregistrationid` (`app_registration_id`(255)),
  ADD KEY `app_registration_id_is_active_is_deleted` (`app_registration_id`(255),`is_active`,`is_deleted`);

--
-- Indexes for table `user_device_map`
--
ALTER TABLE `user_device_map`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `user_entitlements`
--
ALTER TABLE `user_entitlements`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_user_entitlements_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_user_entitlements_is_active` (`is_active`),
  ADD KEY `idx_user_entitlements_txn_id` (`txn_id`),
  ADD KEY `idx_user_entitlements_user_type_user_id` (`inst_id`,`user_id`,`user_type`,`is_active`,`is_deleted`) USING BTREE;

--
-- Indexes for table `user_groups_master`
--
ALTER TABLE `user_groups_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_groups_master` (`is_active`,`is_deleted`),
  ADD KEY `inst_id` (`inst_id`);

--
-- Indexes for table `user_management`
--
ALTER TABLE `user_management`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `user_management_seq_generator`
--
ALTER TABLE `user_management_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `user_master`
--
ALTER TABLE `user_master`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_user_master_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_user_master_is_active` (`is_active`),
  ADD KEY `idx_user_master_user_type_user_id` (`user_type`,`user_id`),
  ADD KEY `idx_user_master_role_id` (`role_id`),
  ADD KEY `idx_user_master_login_name` (`login_name`),
  ADD KEY `idx_user_master_is_deleted` (`is_deleted`),
  ADD KEY `idx_user_master_login_check` (`inst_id`,`user_type`,`user_id`,`is_active`,`is_deleted`) USING BTREE,
  ADD KEY `inst_id` (`inst_id`);

--
-- Indexes for table `user_mst_seq_generator`
--
ALTER TABLE `user_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `user_otp_details`
--
ALTER TABLE `user_otp_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `user_role_map`
--
ALTER TABLE `user_role_map`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_user_role_map_ay_id_inst_id_is_deleted` (`ay_id`,`inst_id`,`is_deleted`),
  ADD KEY `idx_user_role_map_is_active` (`is_active`),
  ADD KEY `idx_user_role_map_user_type_user_id` (`user_type`,`user_id`),
  ADD KEY `idx_user_role_map_role_id` (`role_id`),
  ADD KEY `user_entitlements_copy` (`user_id`,`user_type`,`role_id`,`inst_id`,`is_deleted`,`is_active`);

--
-- Indexes for table `value_added_categories`
--
ALTER TABLE `value_added_categories`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `value_added_service_providers`
--
ALTER TABLE `value_added_service_providers`
  ADD PRIMARY KEY (`ID`);

--
-- Indexes for table `value_added_service_providers_listing`
--
ALTER TABLE `value_added_service_providers_listing`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `value_added_sub_categories`
--
ALTER TABLE `value_added_sub_categories`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `videopost_mst_seq_generator`
--
ALTER TABLE `videopost_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `video_posts`
--
ALTER TABLE `video_posts`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `virtual_classroom_post_details`
--
ALTER TABLE `virtual_classroom_post_details`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `virtual_classroom_post_master`
--
ALTER TABLE `virtual_classroom_post_master`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `virtual_class_post_mst_seq_generator`
--
ALTER TABLE `virtual_class_post_mst_seq_generator`
  ADD PRIMARY KEY (`id_num`);

--
-- Indexes for table `weekly_subject_load`
--
ALTER TABLE `weekly_subject_load`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `weekly_teacher_work_load`
--
ALTER TABLE `weekly_teacher_work_load`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `workload_mst_table`
--
ALTER TABLE `workload_mst_table`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `account_head_master`
--
ALTER TABLE `account_head_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `acct_head_mst_seq_generator`
--
ALTER TABLE `acct_head_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `add_account_head_seq_generator`
--
ALTER TABLE `add_account_head_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `add_bank_account_seq_generator`
--
ALTER TABLE `add_bank_account_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `add_new_library_book_mst_seq_generator`
--
ALTER TABLE `add_new_library_book_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `add_party_master_seq_generator`
--
ALTER TABLE `add_party_master_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `add_sms_credit_mst_seq_generator`
--
ALTER TABLE `add_sms_credit_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `admission_fees_config`
--
ALTER TABLE `admission_fees_config`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `admission_stage_master`
--
ALTER TABLE `admission_stage_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `admission_stage_status_master`
--
ALTER TABLE `admission_stage_status_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `admisssion_stage_mst_seq_generator`
--
ALTER TABLE `admisssion_stage_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `appl_data_master`
--
ALTER TABLE `appl_data_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `appl_data_notif_templates`
--
ALTER TABLE `appl_data_notif_templates`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `appl_license_master`
--
ALTER TABLE `appl_license_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `appl_location_master`
--
ALTER TABLE `appl_location_master`
  MODIFY `location_id` int(9) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `appl_txn_master`
--
ALTER TABLE `appl_txn_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `assessment_score_details`
--
ALTER TABLE `assessment_score_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `asset_master`
--
ALTER TABLE `asset_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `attendance_config`
--
ALTER TABLE `attendance_config`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `audit_history`
--
ALTER TABLE `audit_history`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `bank_book_mst_seq_generator`
--
ALTER TABLE `bank_book_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `bank_branch_map`
--
ALTER TABLE `bank_branch_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `bank_master`
--
ALTER TABLE `bank_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `base_table`
--
ALTER TABLE `base_table`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `biomatric_attendance_details`
--
ALTER TABLE `biomatric_attendance_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `book_chapter_map`
--
ALTER TABLE `book_chapter_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `book_chapter_map_seq_generator`
--
ALTER TABLE `book_chapter_map_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `book_master`
--
ALTER TABLE `book_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `book_mst_seq_generator`
--
ALTER TABLE `book_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `campaign_history`
--
ALTER TABLE `campaign_history`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `certificates_generation_config`
--
ALTER TABLE `certificates_generation_config`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `certificates_issue_history`
--
ALTER TABLE `certificates_issue_history`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `certificates_optional_field_config`
--
ALTER TABLE `certificates_optional_field_config`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `channel_partner_details`
--
ALTER TABLE `channel_partner_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `channel_part_details_seq_generator`
--
ALTER TABLE `channel_part_details_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `class_definition_master`
--
ALTER TABLE `class_definition_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `class_homework_details`
--
ALTER TABLE `class_homework_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `class_master`
--
ALTER TABLE `class_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `class_teacher_mentor_map`
--
ALTER TABLE `class_teacher_mentor_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `collection_details`
--
ALTER TABLE `collection_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `collection_dtls_seq_generator`
--
ALTER TABLE `collection_dtls_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `collection_master`
--
ALTER TABLE `collection_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `collection_mst_seq_generator`
--
ALTER TABLE `collection_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `complaint_details`
--
ALTER TABLE `complaint_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `contract_and_renewal`
--
ALTER TABLE `contract_and_renewal`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `contract_and_renew_seq_generator`
--
ALTER TABLE `contract_and_renew_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `custom_group_details`
--
ALTER TABLE `custom_group_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `custom_group_master`
--
ALTER TABLE `custom_group_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `db_error_log`
--
ALTER TABLE `db_error_log`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `demand_details`
--
ALTER TABLE `demand_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `demand_dtl_seq_generator`
--
ALTER TABLE `demand_dtl_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `demand_grp_seq_generator`
--
ALTER TABLE `demand_grp_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `demand_master`
--
ALTER TABLE `demand_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `demand_mst_seq_generator`
--
ALTER TABLE `demand_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `department_master`
--
ALTER TABLE `department_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `dept_mst_seq_generator`
--
ALTER TABLE `dept_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `division_master`
--
ALTER TABLE `division_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `document_master`
--
ALTER TABLE `document_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `email_template_master`
--
ALTER TABLE `email_template_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `employee_master`
--
ALTER TABLE `employee_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `employee_shift_details`
--
ALTER TABLE `employee_shift_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `emp_attendance_details`
--
ALTER TABLE `emp_attendance_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `emp_attendance_details_seq_generator`
--
ALTER TABLE `emp_attendance_details_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `emp_attendance_master`
--
ALTER TABLE `emp_attendance_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `emp_attendance_master_seq_generator`
--
ALTER TABLE `emp_attendance_master_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `emp_bank_account_details`
--
ALTER TABLE `emp_bank_account_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `emp_dept_event_details`
--
ALTER TABLE `emp_dept_event_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `emp_dept_map`
--
ALTER TABLE `emp_dept_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `emp_leave_details`
--
ALTER TABLE `emp_leave_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `emp_leave_dtl_seq_generator`
--
ALTER TABLE `emp_leave_dtl_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `emp_leave_package_details`
--
ALTER TABLE `emp_leave_package_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `emp_leave_package_history`
--
ALTER TABLE `emp_leave_package_history`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `emp_leave_package_map`
--
ALTER TABLE `emp_leave_package_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `emp_leave_package_master`
--
ALTER TABLE `emp_leave_package_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `emp_leave_pack_dtl_seq_generator`
--
ALTER TABLE `emp_leave_pack_dtl_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `emp_leave_pack_map_seq_generator`
--
ALTER TABLE `emp_leave_pack_map_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `emp_leave_pack_mst_seq_generator`
--
ALTER TABLE `emp_leave_pack_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `emp_mst_seq_generator`
--
ALTER TABLE `emp_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `emp_subject_map`
--
ALTER TABLE `emp_subject_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `emp_subject_map_seq_generator`
--
ALTER TABLE `emp_subject_map_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `event_calendar_category`
--
ALTER TABLE `event_calendar_category`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `event_calendar_master`
--
ALTER TABLE `event_calendar_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `event_calendar_seq_generator`
--
ALTER TABLE `event_calendar_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `event_calendar_subcategory`
--
ALTER TABLE `event_calendar_subcategory`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `event_participant_map`
--
ALTER TABLE `event_participant_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `exam_category_master`
--
ALTER TABLE `exam_category_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `exam_details`
--
ALTER TABLE `exam_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `exam_dtl_seq_generator`
--
ALTER TABLE `exam_dtl_seq_generator`
  MODIFY `id_num` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `exam_group_details`
--
ALTER TABLE `exam_group_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `exam_group_master`
--
ALTER TABLE `exam_group_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `exam_group_score_details`
--
ALTER TABLE `exam_group_score_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `exam_group_summary`
--
ALTER TABLE `exam_group_summary`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `exam_grp_dtls_seq_generator`
--
ALTER TABLE `exam_grp_dtls_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `exam_grp_mst_seq_generator`
--
ALTER TABLE `exam_grp_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `exam_master`
--
ALTER TABLE `exam_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `exam_mst_seq_generator`
--
ALTER TABLE `exam_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `exam_remarks`
--
ALTER TABLE `exam_remarks`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `exam_results_summary`
--
ALTER TABLE `exam_results_summary`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `exam_result_meta`
--
ALTER TABLE `exam_result_meta`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `exam_result_meta_details`
--
ALTER TABLE `exam_result_meta_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `exam_result_meta_seq_generator`
--
ALTER TABLE `exam_result_meta_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `exam_score_details`
--
ALTER TABLE `exam_score_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `exam_student_code_details`
--
ALTER TABLE `exam_student_code_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `feedback_complaint_attachements`
--
ALTER TABLE `feedback_complaint_attachements`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `feedback_dtl_seq_generator`
--
ALTER TABLE `feedback_dtl_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `feedback_management_master`
--
ALTER TABLE `feedback_management_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fee_demand_dtls_seq_generator`
--
ALTER TABLE `fee_demand_dtls_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fee_demand_grp_seq_generator`
--
ALTER TABLE `fee_demand_grp_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fee_demand_mst_seq_generator`
--
ALTER TABLE `fee_demand_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fee_quickpay_dtl_seq_generator`
--
ALTER TABLE `fee_quickpay_dtl_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fee_quickpay_mst_seq_generator`
--
ALTER TABLE `fee_quickpay_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fee_structure_details`
--
ALTER TABLE `fee_structure_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fee_structure_dtl_seq_generator`
--
ALTER TABLE `fee_structure_dtl_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fee_structure_master`
--
ALTER TABLE `fee_structure_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fee_structure_mst_seq_generator`
--
ALTER TABLE `fee_structure_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fee_struct_dtl_seq_generator`
--
ALTER TABLE `fee_struct_dtl_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fee_struct_mst_seq_generator`
--
ALTER TABLE `fee_struct_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fee_type_master_seq_generator`
--
ALTER TABLE `fee_type_master_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `file_uploads`
--
ALTER TABLE `file_uploads`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `file_upload_details`
--
ALTER TABLE `file_upload_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `file_upload_mst_seq_generator`
--
ALTER TABLE `file_upload_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `file_upload_seq_generator`
--
ALTER TABLE `file_upload_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_accounts`
--
ALTER TABLE `fin_accounts`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_arrears_details`
--
ALTER TABLE `fin_arrears_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_arrears_master`
--
ALTER TABLE `fin_arrears_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_arrear_dtl_seq_generator`
--
ALTER TABLE `fin_arrear_dtl_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_arrear_mst_seq_generator`
--
ALTER TABLE `fin_arrear_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_bank_account_master`
--
ALTER TABLE `fin_bank_account_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_bank_book`
--
ALTER TABLE `fin_bank_book`
  MODIFY `id` mediumint(9) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_debit_demand_group_seq_generator`
--
ALTER TABLE `fin_debit_demand_group_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_debit_demand_master`
--
ALTER TABLE `fin_debit_demand_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_debit_demand_master_seq_generator`
--
ALTER TABLE `fin_debit_demand_master_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_debit_details`
--
ALTER TABLE `fin_debit_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_debit_details_seq_generator`
--
ALTER TABLE `fin_debit_details_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_debit_master`
--
ALTER TABLE `fin_debit_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_debit_master_seq_generator`
--
ALTER TABLE `fin_debit_master_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_default_fee_strct_id_config`
--
ALTER TABLE `fin_default_fee_strct_id_config`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_emp_payroll_details_seq_generator`
--
ALTER TABLE `fin_emp_payroll_details_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_emp_payroll_master`
--
ALTER TABLE `fin_emp_payroll_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_emp_payroll_mst_seq_generator`
--
ALTER TABLE `fin_emp_payroll_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_emp_salary_details_seq_generator`
--
ALTER TABLE `fin_emp_salary_details_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_emp_salary_mst_seq_generator`
--
ALTER TABLE `fin_emp_salary_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_generic_setting`
--
ALTER TABLE `fin_generic_setting`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_invoice_details`
--
ALTER TABLE `fin_invoice_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_invoice_details_seq_generator`
--
ALTER TABLE `fin_invoice_details_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_invoice_master`
--
ALTER TABLE `fin_invoice_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_invoice_mst_seq_generator`
--
ALTER TABLE `fin_invoice_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_modulewise_config`
--
ALTER TABLE `fin_modulewise_config`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_party_master`
--
ALTER TABLE `fin_party_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_payment_recovery`
--
ALTER TABLE `fin_payment_recovery`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_payroll_template_details`
--
ALTER TABLE `fin_payroll_template_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_payroll_template_master`
--
ALTER TABLE `fin_payroll_template_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_processing_user_list`
--
ALTER TABLE `fin_processing_user_list`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_salary_component`
--
ALTER TABLE `fin_salary_component`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_salary_details`
--
ALTER TABLE `fin_salary_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_salary_details_components`
--
ALTER TABLE `fin_salary_details_components`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_salary_generic_setting`
--
ALTER TABLE `fin_salary_generic_setting`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_salary_master`
--
ALTER TABLE `fin_salary_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fin_user_manual_leave`
--
ALTER TABLE `fin_user_manual_leave`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `form_data_details_seq_generator`
--
ALTER TABLE `form_data_details_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `form_field_data_details`
--
ALTER TABLE `form_field_data_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `form_field_master`
--
ALTER TABLE `form_field_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `gallery_album`
--
ALTER TABLE `gallery_album`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `gallery_album_seq_generator`
--
ALTER TABLE `gallery_album_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `gallery_participant_map`
--
ALTER TABLE `gallery_participant_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `gallery_photos`
--
ALTER TABLE `gallery_photos`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `gallery_photos_seq_generator`
--
ALTER TABLE `gallery_photos_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `gradedetails_mst_seq_generator`
--
ALTER TABLE `gradedetails_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `gradeset_details`
--
ALTER TABLE `gradeset_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `gradeset_master`
--
ALTER TABLE `gradeset_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `gradeset_mst_seq_generator`
--
ALTER TABLE `gradeset_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `group_dtl_seq_generator`
--
ALTER TABLE `group_dtl_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `group_mst_seq_generator`
--
ALTER TABLE `group_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `holiday_master`
--
ALTER TABLE `holiday_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `holiday_mst_seq_generator`
--
ALTER TABLE `holiday_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `house_master`
--
ALTER TABLE `house_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `house_mst_seq_generator`
--
ALTER TABLE `house_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `inbound_communication_details`
--
ALTER TABLE `inbound_communication_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `information_category`
--
ALTER TABLE `information_category`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `information_posts`
--
ALTER TABLE `information_posts`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `information_post_seq_generator`
--
ALTER TABLE `information_post_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `institute_device_map`
--
ALTER TABLE `institute_device_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `institution_config`
--
ALTER TABLE `institution_config`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `institution_gps_config`
--
ALTER TABLE `institution_gps_config`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `institution_master`
--
ALTER TABLE `institution_master`
  MODIFY `id` mediumint(9) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `institution_mst_seq_generator`
--
ALTER TABLE `institution_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `institution_payment_gateway_config`
--
ALTER TABLE `institution_payment_gateway_config`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `institution_sequence_params`
--
ALTER TABLE `institution_sequence_params`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `institution_sub_config`
--
ALTER TABLE `institution_sub_config`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `inst_autojob_config`
--
ALTER TABLE `inst_autojob_config`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `inst_homework_grp_status`
--
ALTER TABLE `inst_homework_grp_status`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `inst_msg91_account_info`
--
ALTER TABLE `inst_msg91_account_info`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `inst_mst_seq_generator`
--
ALTER TABLE `inst_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `inst_rule_config`
--
ALTER TABLE `inst_rule_config`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `interview_schedule_mst_seq_generator`
--
ALTER TABLE `interview_schedule_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `inventory_department_master`
--
ALTER TABLE `inventory_department_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `inventory_issue_details`
--
ALTER TABLE `inventory_issue_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `inventory_issue_item_details_seq_generator`
--
ALTER TABLE `inventory_issue_item_details_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `inventory_issue_item_master_seq_generator`
--
ALTER TABLE `inventory_issue_item_master_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `inventory_issue_master`
--
ALTER TABLE `inventory_issue_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `inventory_item_category`
--
ALTER TABLE `inventory_item_category`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `inventory_item_category_seq_generator`
--
ALTER TABLE `inventory_item_category_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `inventory_item_master`
--
ALTER TABLE `inventory_item_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `inventory_item_mst_seq_generator`
--
ALTER TABLE `inventory_item_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `inventory_order_details`
--
ALTER TABLE `inventory_order_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `inventory_order_dtl_seq_generator`
--
ALTER TABLE `inventory_order_dtl_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `inventory_order_master`
--
ALTER TABLE `inventory_order_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `inventory_order_mst_seq_generator`
--
ALTER TABLE `inventory_order_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `inventory_party_master`
--
ALTER TABLE `inventory_party_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `inventory_pocket_money`
--
ALTER TABLE `inventory_pocket_money`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `inventory_stock_balance`
--
ALTER TABLE `inventory_stock_balance`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `inventory_user_pocket_history`
--
ALTER TABLE `inventory_user_pocket_history`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `jobs`
--
ALTER TABLE `jobs`
  MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `json_template_master`
--
ALTER TABLE `json_template_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `kitchen_item_master`
--
ALTER TABLE `kitchen_item_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `kitchen_item_mst_seq_generator`
--
ALTER TABLE `kitchen_item_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `leave_package_emp_history`
--
ALTER TABLE `leave_package_emp_history`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `leave_package_emp_map`
--
ALTER TABLE `leave_package_emp_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `leave_real_time_emp_balance`
--
ALTER TABLE `leave_real_time_emp_balance`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `liability_master`
--
ALTER TABLE `liability_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `library_accounts`
--
ALTER TABLE `library_accounts`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `library_account_seq_generator`
--
ALTER TABLE `library_account_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `library_book_details`
--
ALTER TABLE `library_book_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `library_book_issue`
--
ALTER TABLE `library_book_issue`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `library_book_master`
--
ALTER TABLE `library_book_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `meal_calendar_details`
--
ALTER TABLE `meal_calendar_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `meal_calendar_dtl_seq_generator`
--
ALTER TABLE `meal_calendar_dtl_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `meal_calendar_master`
--
ALTER TABLE `meal_calendar_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `meal_calendar_mst_seq_generator`
--
ALTER TABLE `meal_calendar_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `migration_std_div_map_inputs`
--
ALTER TABLE `migration_std_div_map_inputs`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mobile_account_mapping`
--
ALTER TABLE `mobile_account_mapping`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `module_user_master`
--
ALTER TABLE `module_user_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `news_category`
--
ALTER TABLE `news_category`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `news_posts`
--
ALTER TABLE `news_posts`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `news_post_seq_generator`
--
ALTER TABLE `news_post_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `notification_config`
--
ALTER TABLE `notification_config`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `notification_master`
--
ALTER TABLE `notification_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `notification_mst_seq_generator`
--
ALTER TABLE `notification_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `notif_app_log`
--
ALTER TABLE `notif_app_log`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `notif_app_template_master`
--
ALTER TABLE `notif_app_template_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `notif_email_log`
--
ALTER TABLE `notif_email_log`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `notif_email_template_master`
--
ALTER TABLE `notif_email_template_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `notif_file_attachments`
--
ALTER TABLE `notif_file_attachments`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `notif_sms_log`
--
ALTER TABLE `notif_sms_log`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `notif_sms_log_archive`
--
ALTER TABLE `notif_sms_log_archive`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `notif_sms_template_master`
--
ALTER TABLE `notif_sms_template_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `notif_web_log`
--
ALTER TABLE `notif_web_log`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `notif_web_log_archive`
--
ALTER TABLE `notif_web_log_archive`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `notif_web_template_master`
--
ALTER TABLE `notif_web_template_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `optional_field_appl_master`
--
ALTER TABLE `optional_field_appl_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `optional_field_details`
--
ALTER TABLE `optional_field_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `optional_field_master`
--
ALTER TABLE `optional_field_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `order_details`
--
ALTER TABLE `order_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `order_dtl_seq_generator`
--
ALTER TABLE `order_dtl_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `order_master`
--
ALTER TABLE `order_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `order_mst_seq_generator`
--
ALTER TABLE `order_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `organization_master`
--
ALTER TABLE `organization_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `organization_mst_seq_generator`
--
ALTER TABLE `organization_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `outbound_communication_details`
--
ALTER TABLE `outbound_communication_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `parent_master`
--
ALTER TABLE `parent_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `parent_mst_seq_generator`
--
ALTER TABLE `parent_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `pmt_gateway_billdesk_response`
--
ALTER TABLE `pmt_gateway_billdesk_response`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `pmt_gateway_master`
--
ALTER TABLE `pmt_gateway_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `pmt_gateway_payumoney_response`
--
ALTER TABLE `pmt_gateway_payumoney_response`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `pmt_gateway_razorpay_response`
--
ALTER TABLE `pmt_gateway_razorpay_response`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `pmt_quick_pay_details`
--
ALTER TABLE `pmt_quick_pay_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `pmt_quick_pay_master`
--
ALTER TABLE `pmt_quick_pay_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `proc_error_logs`
--
ALTER TABLE `proc_error_logs`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `qams_actor_master`
--
ALTER TABLE `qams_actor_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `qams_asset_master`
--
ALTER TABLE `qams_asset_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `qams_asset_master_seq_generator`
--
ALTER TABLE `qams_asset_master_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `qams_incident_data_details`
--
ALTER TABLE `qams_incident_data_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `qams_incident_data_master`
--
ALTER TABLE `qams_incident_data_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `qams_incident_data_mst_seq_generator`
--
ALTER TABLE `qams_incident_data_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `qams_incident_master`
--
ALTER TABLE `qams_incident_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `qams_incident_mst_seq_generator`
--
ALTER TABLE `qams_incident_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `qams_other_users_master`
--
ALTER TABLE `qams_other_users_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `qams_other_user_seq_generator`
--
ALTER TABLE `qams_other_user_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `qms_category_master`
--
ALTER TABLE `qms_category_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `qms_task_data_details`
--
ALTER TABLE `qms_task_data_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `qms_task_data_master`
--
ALTER TABLE `qms_task_data_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `qms_task_data_seq_generator`
--
ALTER TABLE `qms_task_data_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `qms_task_master`
--
ALTER TABLE `qms_task_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `queue_gate_pass_data`
--
ALTER TABLE `queue_gate_pass_data`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `ranking_level_master`
--
ALTER TABLE `ranking_level_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `role_master`
--
ALTER TABLE `role_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `role_txn_map`
--
ALTER TABLE `role_txn_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `rough_work_temp_student_master`
--
ALTER TABLE `rough_work_temp_student_master`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `school_document_details`
--
ALTER TABLE `school_document_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sequence_generator_master`
--
ALTER TABLE `sequence_generator_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `server_maintenance_log`
--
ALTER TABLE `server_maintenance_log`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `service_provider_institute_mapping`
--
ALTER TABLE `service_provider_institute_mapping`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `service_provider_institute_mapping_seq_generator`
--
ALTER TABLE `service_provider_institute_mapping_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `service_provider_seq_generator`
--
ALTER TABLE `service_provider_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `setup_class_master`
--
ALTER TABLE `setup_class_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `setup_division_master`
--
ALTER TABLE `setup_division_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `setup_employee_master`
--
ALTER TABLE `setup_employee_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `setup_standard_master`
--
ALTER TABLE `setup_standard_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `setup_student_master`
--
ALTER TABLE `setup_student_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `setup_stud_master_seq_generator`
--
ALTER TABLE `setup_stud_master_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `setup_subject_master`
--
ALTER TABLE `setup_subject_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `setup_subject_teacher_map`
--
ALTER TABLE `setup_subject_teacher_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `setup_tress_master`
--
ALTER TABLE `setup_tress_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sms_credit_history`
--
ALTER TABLE `sms_credit_history`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sms_credit_plans`
--
ALTER TABLE `sms_credit_plans`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sms_credit_status`
--
ALTER TABLE `sms_credit_status`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sms_log`
--
ALTER TABLE `sms_log`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sms_template_master`
--
ALTER TABLE `sms_template_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `social_post`
--
ALTER TABLE `social_post`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `standards_admission_config_master`
--
ALTER TABLE `standards_admission_config_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `standard_division_map`
--
ALTER TABLE `standard_division_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `standard_division_map_seq_generator`
--
ALTER TABLE `standard_division_map_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `standard_inst_config`
--
ALTER TABLE `standard_inst_config`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `standard_master`
--
ALTER TABLE `standard_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `student_admission_history`
--
ALTER TABLE `student_admission_history`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `student_assignment_details`
--
ALTER TABLE `student_assignment_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `student_assignment_master`
--
ALTER TABLE `student_assignment_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `student_attendance_details`
--
ALTER TABLE `student_attendance_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `student_attendance_dtl_seq_generator`
--
ALTER TABLE `student_attendance_dtl_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `student_attendance_master`
--
ALTER TABLE `student_attendance_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `student_attendance_mst_seq_generator`
--
ALTER TABLE `student_attendance_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `student_attendance_summary`
--
ALTER TABLE `student_attendance_summary`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `student_elective_subject_map`
--
ALTER TABLE `student_elective_subject_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `student_health_details`
--
ALTER TABLE `student_health_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `student_homework_details`
--
ALTER TABLE `student_homework_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `student_homework_dtl_seq_generator`
--
ALTER TABLE `student_homework_dtl_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `student_homework_master`
--
ALTER TABLE `student_homework_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `student_homework_mst_seq_generator`
--
ALTER TABLE `student_homework_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `student_leave_details`
--
ALTER TABLE `student_leave_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `student_leave_dtl_seq_generator`
--
ALTER TABLE `student_leave_dtl_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `student_master`
--
ALTER TABLE `student_master`
  MODIFY `id` int(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `student_migration_decision`
--
ALTER TABLE `student_migration_decision`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `student_mst_seq_generator`
--
ALTER TABLE `student_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stud_admissiom_score_master`
--
ALTER TABLE `stud_admissiom_score_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stud_admission_notif_templates`
--
ALTER TABLE `stud_admission_notif_templates`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stud_admission_rating_master`
--
ALTER TABLE `stud_admission_rating_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stud_assignment_dtl_seq_generator`
--
ALTER TABLE `stud_assignment_dtl_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stud_assignment_mst_seq_generator`
--
ALTER TABLE `stud_assignment_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stud_attendance_dtl_seq_generator`
--
ALTER TABLE `stud_attendance_dtl_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stud_attendance_mst_seq_generator`
--
ALTER TABLE `stud_attendance_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stud_interview_schedule_details`
--
ALTER TABLE `stud_interview_schedule_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stud_mst_seq_generator`
--
ALTER TABLE `stud_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stud_subject_package_map`
--
ALTER TABLE `stud_subject_package_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `subject_book_map`
--
ALTER TABLE `subject_book_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `subject_book_map_seq_generator`
--
ALTER TABLE `subject_book_map_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `subject_master`
--
ALTER TABLE `subject_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `subject_master_seq_generator`
--
ALTER TABLE `subject_master_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `subject_mst_seq_generator`
--
ALTER TABLE `subject_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `subject_package_details`
--
ALTER TABLE `subject_package_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `subject_package_master`
--
ALTER TABLE `subject_package_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `subject_standard_map`
--
ALTER TABLE `subject_standard_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `subject_standard_map_seq_generator`
--
ALTER TABLE `subject_standard_map_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `subject_structure_map`
--
ALTER TABLE `subject_structure_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `subject_structure_map_seq_generator`
--
ALTER TABLE `subject_structure_map_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `subject_syllabus_map`
--
ALTER TABLE `subject_syllabus_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `substitute_lecture_details`
--
ALTER TABLE `substitute_lecture_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sub_module_notif_config`
--
ALTER TABLE `sub_module_notif_config`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sub_package_dtl_seq_generator`
--
ALTER TABLE `sub_package_dtl_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sub_package_mst_seq_generator`
--
ALTER TABLE `sub_package_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sub_syllabus_map_seq_generator`
--
ALTER TABLE `sub_syllabus_map_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `teacher_lecture_details`
--
ALTER TABLE `teacher_lecture_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `teacher_work_load`
--
ALTER TABLE `teacher_work_load`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `temp_bio_table`
--
ALTER TABLE `temp_bio_table`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `temp_manage_students_roll_numbers`
--
ALTER TABLE `temp_manage_students_roll_numbers`
  MODIFY `id` int(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `temp_rfid_data`
--
ALTER TABLE `temp_rfid_data`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `temp_student_master`
--
ALTER TABLE `temp_student_master`
  MODIFY `id` int(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `temp_tb_use_to_update_student_info`
--
ALTER TABLE `temp_tb_use_to_update_student_info`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `temp_teacher`
--
ALTER TABLE `temp_teacher`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `temp_user_employee_master`
--
ALTER TABLE `temp_user_employee_master`
  MODIFY `id` int(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `temp_user_parent_master`
--
ALTER TABLE `temp_user_parent_master`
  MODIFY `id` int(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `temp_user_student_master`
--
ALTER TABLE `temp_user_student_master`
  MODIFY `id` int(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `timeslot_details`
--
ALTER TABLE `timeslot_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `timeslot_details_seq_generator`
--
ALTER TABLE `timeslot_details_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `timeslot_master`
--
ALTER TABLE `timeslot_master`
  MODIFY `id` smallint(5) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `timetable_emp_map`
--
ALTER TABLE `timetable_emp_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `timetable_master`
--
ALTER TABLE `timetable_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `timetable_meta`
--
ALTER TABLE `timetable_meta`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `timetable_meta_seq_generator`
--
ALTER TABLE `timetable_meta_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `timetable_mst_seq_generator`
--
ALTER TABLE `timetable_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `timetable_period_map`
--
ALTER TABLE `timetable_period_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `timetable_period_map_seq_generator`
--
ALTER TABLE `timetable_period_map_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `trans_driver_details`
--
ALTER TABLE `trans_driver_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `trans_fee_config_details`
--
ALTER TABLE `trans_fee_config_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `trans_fee_installments_details`
--
ALTER TABLE `trans_fee_installments_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `trans_fee_struct_master`
--
ALTER TABLE `trans_fee_struct_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `trans_gps_device_master`
--
ALTER TABLE `trans_gps_device_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `trans_gps_device_master_seq_generator`
--
ALTER TABLE `trans_gps_device_master_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `trans_gps_tracker`
--
ALTER TABLE `trans_gps_tracker`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `trans_route_master`
--
ALTER TABLE `trans_route_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `trans_route_master_seq_generator`
--
ALTER TABLE `trans_route_master_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `trans_route_stops_map`
--
ALTER TABLE `trans_route_stops_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `trans_route_stops_master`
--
ALTER TABLE `trans_route_stops_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `trans_route_stops_master_seq_generator`
--
ALTER TABLE `trans_route_stops_master_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `trans_stop_master`
--
ALTER TABLE `trans_stop_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `trans_stop_master_seq_generator`
--
ALTER TABLE `trans_stop_master_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `trans_student_route_stop_details`
--
ALTER TABLE `trans_student_route_stop_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `trans_student_route_stop_master`
--
ALTER TABLE `trans_student_route_stop_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `trans_stud_route_stops_master_seq_generator`
--
ALTER TABLE `trans_stud_route_stops_master_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `trans_vehicle_driver_map`
--
ALTER TABLE `trans_vehicle_driver_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `trans_vehicle_driver_map_seq_generator`
--
ALTER TABLE `trans_vehicle_driver_map_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `trans_vehicle_master`
--
ALTER TABLE `trans_vehicle_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `trans_vehicle_master_seq_generator`
--
ALTER TABLE `trans_vehicle_master_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `trans_vehicle_substitution`
--
ALTER TABLE `trans_vehicle_substitution`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `txn_alert_config`
--
ALTER TABLE `txn_alert_config`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `txn_field_validation`
--
ALTER TABLE `txn_field_validation`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_alert_config`
--
ALTER TABLE `user_alert_config`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_app_registration_mapping`
--
ALTER TABLE `user_app_registration_mapping`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_device_map`
--
ALTER TABLE `user_device_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_entitlements`
--
ALTER TABLE `user_entitlements`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_groups_master`
--
ALTER TABLE `user_groups_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_management`
--
ALTER TABLE `user_management`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_management_seq_generator`
--
ALTER TABLE `user_management_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_master`
--
ALTER TABLE `user_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_mst_seq_generator`
--
ALTER TABLE `user_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_otp_details`
--
ALTER TABLE `user_otp_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_role_map`
--
ALTER TABLE `user_role_map`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `value_added_categories`
--
ALTER TABLE `value_added_categories`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `value_added_service_providers`
--
ALTER TABLE `value_added_service_providers`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `value_added_service_providers_listing`
--
ALTER TABLE `value_added_service_providers_listing`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `value_added_sub_categories`
--
ALTER TABLE `value_added_sub_categories`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `videopost_mst_seq_generator`
--
ALTER TABLE `videopost_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `video_posts`
--
ALTER TABLE `video_posts`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `virtual_classroom_post_details`
--
ALTER TABLE `virtual_classroom_post_details`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `virtual_classroom_post_master`
--
ALTER TABLE `virtual_classroom_post_master`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `virtual_class_post_mst_seq_generator`
--
ALTER TABLE `virtual_class_post_mst_seq_generator`
  MODIFY `id_num` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `weekly_subject_load`
--
ALTER TABLE `weekly_subject_load`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `weekly_teacher_work_load`
--
ALTER TABLE `weekly_teacher_work_load`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `workload_mst_table`
--
ALTER TABLE `workload_mst_table`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
