-- http://www.phpmyadmin.net
--




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

--
-- Table structure for table `apl_types`
--

CREATE TABLE `apl_types` (
  `at_id` int(11) NOT NULL,
  `apl_type` varchar(15) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `apl_types`
--

INSERT INTO `apl_types` (`at_id`, `apl_type`) VALUES
(1, 'admin'),
(2, 'supporter');

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

--
-- Table structure for table `events`
--

CREATE TABLE `events` (
  `e_id` int(11) NOT NULL,
  `e_head` varchar(100) NOT NULL,
  `e_desc` text NOT NULL,
  `e_img` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `events`
--

INSERT INTO `events` (`e_id`, `e_head`, `e_desc`, `e_img`) VALUES
(1, 'Admissions open 2017 - 2018', 'Admissions Open for Play School, LKG, UKG, 1st, IInd, IIIrd, IVth, Vth STD.\n', 'event.jpg');

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

--
-- Table structure for table `photos`
--

CREATE TABLE `photos` (
  `p_id` int(11) NOT NULL,
  `p_cat_id` int(11) NOT NULL,
  `p_img` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `photos`
--

INSERT INTO `photos` (`p_id`, `p_cat_id`, `p_img`) VALUES
(1, 1, 'f303cd7767b6b9d3a0a4e96bfd2f0a68.jpg'),
(2, 1, '8795d50cdf9785e38a76ec9301250e07.jpg'),
(3, 1, '3cdcc736fafe492fc3ca58e7da3f4dc6.jpg'),
(4, 1, 'a6e072ca656edd7cb669503201a3507c.jpg'),
(5, 1, 'fa38bb4e44f8660257d7b92e0bd478f4.jpg'),
(6, 1, '73597a77883a2bda2fb37e7bd2a59a4b.jpg'),
(7, 1, 'cc9870eb58705b81065aa0ad1ddb092f.jpg'),
(8, 1, 'dbb9cd47a6cd21ee20fd8b353999d0bc.jpg'),
(9, 1, 'eff50e6d7243bb8020e57627d8d9663c.jpg'),
(10, 1, 'c24576beaeeda11f198415a5c312a409.jpg'),
(11, 1, '26534826f496f8c4b8f4f87be619bfc4.jpg'),
(12, 2, '4b3085a9daaf00d5441fcc967b559132.jpg'),
(13, 2, '7e578039fa0732878ab424b14f74f820.jpg'),
(14, 2, 'a7306b9c8e03cbf1e5a343d3bff25cfc.jpg'),
(15, 3, 'a3299245d08a57d46d7fb06eeb37e9c3.jpg'),
(16, 3, 'c8241ae964f832e0f062cfb30bc3cf32.jpg'),
(17, 3, '13310d308218b5f99486252865ec8d70.jpg'),
(18, 3, '2698587d3b068d9d7108a6dbb906bae1.jpg'),
(19, 3, '801cd224ce78f0dad52eed4c508da371.jpg'),
(20, 4, '6a30fab92bb739df558fc3516343eb3c.jpg'),
(21, 4, '35094d0d5d2b83fec95dd4cc81b77ed9.jpg'),
(22, 4, '29a5540d2ab5f23d7b4880a803290b37.jpg'),
(23, 4, '612c6a3dac472728b2c640a6c54bc65e.jpg'),
(24, 4, '493eef32822d6fe8ab225f719bdfa9df.jpg'),
(25, 4, '33bb21548e2ec6352544403f8c162bf8.jpg'),
(26, 4, 'a9840a40c3f8411a371f1d47342030f1.jpg'),
(27, 4, 'ab00832e9342090968275ee5af8aeb59.jpg'),
(28, 4, '92b37e50c2db52a33f42ffb895ef6bf6.jpg'),
(29, 4, '569a689718087a34ef659726c38b3c8e.jpg'),
(30, 4, 'f5e96baddf7c146692754c73411a1b0a.jpg'),
(31, 4, '0a3e140f3aa8472a43351ce9d2323097.jpg'),
(32, 4, 'addd572dc790aceb78ae678e43b07160.jpg'),
(33, 4, 'a5f1c4fc19ac5c14e43d2604c551a5ef.jpg'),
(34, 4, '64fab0a1e76fb1d0c07c93c54903ae75.jpg'),
(35, 4, '3be304e45f55e17c6faab95377e3fc71.jpg'),
(36, 4, '7d4fb5f3791bef041efab51683790fb5.jpg'),
(37, 4, '6c324aa07201e4213ec73a7994c6cec2.jpg'),
(38, 4, '63139fa951f03c33faaa4565f1e2ad65.jpg'),
(39, 4, '60855bd008ec45f00dd5f4a24a8f2807.jpg'),
(40, 4, 'da65cc896525f563117b18315a36b2c0.jpg'),
(41, 4, '7e5abce96130e0702fa2a2e47ea5f432.jpg'),
(42, 5, '3b95b0f7a1b09f94fafce2b808a5ce43.jpg'),
(43, 5, 'fdde0a5dbf77708c299ec84a6250755a.jpg'),
(44, 5, '127caf3845ada11eee40c60a9ae994a2.jpg'),
(45, 5, 'bfaaad138e53a9f27bbd35e265741806.jpg'),
(46, 5, 'b0b0df5b05aa68a0bb2ada16a9be8b57.jpg'),
(47, 5, 'a58eef63de9112464a486fa34c71b5d8.jpg'),
(48, 5, '595938fcda61d3f7334e3a8bbf8d0fba.jpg'),
(49, 5, '3f8bbb4ceb9e39191dba6f5f1a5c6e47.jpg'),
(50, 6, '7861a4e7d30a6fe57c766ade97676812.jpg'),
(51, 6, '1999f7915511eaeb51c44a2f1c641a1c.jpg'),
(52, 6, 'e10e2473b01dd160392aeef36287e704.jpg'),
(53, 6, '2435cdde8c440a7d3f445c4f7d8c9ca1.jpg'),
(54, 6, '15631c850cb7800a20d577056cc1b72f.jpg'),
(55, 6, '301ead0d7bf23049f8b9a28b5abe1876.jpg'),
(56, 6, '24f87bd9b8cdf6e963d21a309682c5ed.jpg'),
(57, 6, 'b934fcfeb1a4328705eb0886e9137996.jpg'),
(58, 6, '5d5ef48f2afa696f10d7e80020c3c228.jpg'),
(59, 1, '5957491048828f1148dc06cbbdd447f4.jpg'),
(60, 1, 'a99d3c3c8039e80c645096aceab6ffb0.jpg'),
(61, 1, '5b89cd10f8be4e351348455eccd7f074.jpg'),
(62, 1, '9c90007fd57623fd0a23a1c3bad93270.jpg'),
(63, 1, '1c971df26c7cddbca2d96c73e9a2f540.jpg'),
(64, 1, '40649037818ef888a392f1ef63302698.jpg'),
(65, 1, '7667c4494176167a7cfd1e6d10e57df2.jpg'),
(66, 1, '533b574d193eb3fd1ec28f515a9c6187.jpg'),
(67, 1, '0f7a5af5c111fe397a858c0c775ccbb4.jpg'),
(68, 1, 'bb06b0e1a97c340f5017e0c0fbabe9f2.jpg'),
(69, 1, 'b3ec451755ae6f77d133b101c9e012f5.jpg'),
(70, 9, 'c57b907e95e2902dc97645d04a550cfd.jpg'),
(71, 9, 'f319b188041d26c42b51ce3fb71ffa68.jpg'),
(72, 9, 'becabcce71b5b8b5f9878c303f58e2b7.jpg'),
(73, 9, '3276725e65d422c20dddb36d2442199e.jpg'),
(74, 9, '4349e43c7f2fd74dd9511de3437acfa9.jpg'),
(75, 9, 'bf781cdb6e52483f8d350bc9ac729043.jpg'),
(76, 9, '763dae849d6a0caefc2f0622ea69dfb1.jpg'),
(77, 1, 'f3a44768a308f996a7e39d1894430f51.jpg'),
(78, 1, 'e4edf278ae17bc9924a2df982880e8f6.jpg'),
(79, 1, '0334d44d46a4b2e8745cb2f1d7846910.jpg'),
(80, 1, '4ef4a6923a66b4b1bfc14e756c2bc8b1.jpg'),
(81, 1, '4fcf9ade9ef7e67e44b1fdbd8c5bbb4b.jpg'),
(82, 8, '06b71d8608dee0a6df2778cc5784e8a3.jpg'),
(83, 8, 'd2bb88f69a9c5ffdbe0ad074465afb5c.jpg'),
(84, 8, '5215c317ff00373ea7b8d8f6e21a38ea.jpg'),
(85, 8, '4a70a8090ede69fccdc4195068452d01.jpg'),
(86, 8, 'ebb6bf5236c8398afd507355064206cf.jpg'),
(87, 8, '8f47b2631a4974ce0ac633fb52c66bca.jpg'),
(88, 8, 'd6b3b62704a7d5faf0938e039929fc0b.jpg'),
(89, 8, '9ca8e8aad97bc4c5f1138925580fa1a8.jpg'),
(90, 10, '5eff52a07a58c4134795ad8fa329ca5a.jpg'),
(91, 11, 'e9c3cdec77856c58e916d75436c9245a.jpg'),
(93, 11, '67c3469d0962da01b47ea6b5e216acb6.jpg'),
(94, 11, 'dd4d396e97f5ca422995e4d76202294e.jpg');

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

--
-- Table structure for table `photo_category`
--

CREATE TABLE `photo_category` (
  `pc_id` int(11) NOT NULL,
  `p_category` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `photo_category`
--

INSERT INTO `photo_category` (`pc_id`, `p_category`) VALUES
(1, 'SCHOOL INAUGURATION'),
(2, 'OPENING DAY'),
(3, 'PARENTS DAY'),
(4, 'FRUIT DAY'),
(5, 'GREEN DAY'),
(6, 'RED DAY'),
(8, 'ONAM'),
(9, 'CHRISTMAS'),
(10, 'BISHOP PRINCE VISIT'),
(11, 'SPORTS DAY 2016');

--
-- Indexes for table `apl_types`
--
ALTER TABLE `apl_types`
  ADD PRIMARY KEY (`at_id`);

--
-- Indexes for table `events`
--
ALTER TABLE `events`
  ADD PRIMARY KEY (`e_id`);

--
-- Indexes for table `photos`
--
ALTER TABLE `photos`
  ADD PRIMARY KEY (`p_id`),
  ADD KEY `p_cat_id` (`p_cat_id`);

--
-- Indexes for table `photo_category`
--
ALTER TABLE `photo_category`
  ADD PRIMARY KEY (`pc_id`);
--
-- AUTO_INCREMENT for table `apl_types`
--
ALTER TABLE `apl_types`
  MODIFY `at_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `events`
--
ALTER TABLE `events`
  MODIFY `e_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `photos`
--
ALTER TABLE `photos`
  MODIFY `p_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=95;
--
-- AUTO_INCREMENT for table `photo_category`
--
ALTER TABLE `photo_category`
  MODIFY `pc_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- Constraints for table `photos`
--
ALTER TABLE `photos`
  ADD CONSTRAINT `photos_ibfk_1` FOREIGN KEY (`p_cat_id`) REFERENCES `photo_category` (`pc_id`);

