-- phpMyAdmin SQL Dump
-- version 4.4.15.10
-- https://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Nov 04, 2020 at 05:04 AM
-- Server version: 5.7.30
-- PHP Version: 5.6.40

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `vidyalkh_app`
--

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

--
-- Table structure for table `admission_steps_config`
--

CREATE TABLE IF NOT EXISTS `admission_steps_config` (
  `id` mediumint(8) NOT NULL,
  `ay_id` char(7) COLLATE utf8_unicode_ci NOT NULL,
  `inst_id` mediumint(8) NOT NULL,
  `category` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `standard_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `division_id` varchar(2) COLLATE utf8_unicode_ci NOT NULL,
  `step_id` mediumint(8) NOT NULL,
  `step_name` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `step_display_name` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `actions` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `redirect_to` varchar(250) 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 AVG_ROW_LENGTH=1;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `admission_steps_config`
--
ALTER TABLE `admission_steps_config`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_admission_steps_config_ay_inst_div_std_del_active` (`ay_id`,`inst_id`,`division_id`,`standard_id`,`is_deleted`,`is_active`),
  ADD KEY `idx_admission_steps_config_ay_inst_std_del_active` (`ay_id`,`inst_id`,`standard_id`,`is_deleted`,`is_active`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `admission_steps_config`
--
ALTER TABLE `admission_steps_config`
  MODIFY `id` mediumint(8) NOT NULL AUTO_INCREMENT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
