Sei sulla pagina 1di 57

---------

phpMyAdmin SQL Dump


version 3.5.1
http://www.phpmyadmin.net
Host: localhost
Generation Time: Mar 12, 2015 at 08:14 AM
Server version: 5.5.24-log
PHP Version: 5.4.3

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101
/*!40101
/*!40101
/*!40101

SET
SET
SET
SET

@OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
@OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
NAMES utf8 */;

--- Database: `faceback`


-CREATE DATABASE `faceback` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_c
i;
USE `faceback`;
-- ---------------------------------------------------------- Table structure for table `admin_info`
-CREATE TABLE IF NOT EXISTS `admin_info` (
`Username` varchar(11) DEFAULT NULL,
`Password` varchar(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `admin_info`
-INSERT INTO `admin_info` (`Username`, `Password`) VALUES
('akshay', 'akshay');
-- ---------------------------------------------------------- Table structure for table `feedback`
-CREATE TABLE IF NOT EXISTS `feedback` (
`feedback_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`feedback_txt` varchar(120) NOT NULL,
`star` varchar(1) NOT NULL,
`Date` varchar(30) NOT NULL,
PRIMARY KEY (`feedback_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--

-- Dumping data for table `feedback`


-INSERT INTO `feedback` (`feedback_id`, `user_id`, `feedback_txt`, `star`, `Date`
) VALUES
(1, 1, 'gug', '3', '10-3-2015 10:37');
-- ---------------------------------------------------------- Table structure for table `upload`
-CREATE TABLE IF NOT EXISTS `upload` (
`id` int(11) NOT NULL,
`name` varchar(500) NOT NULL,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `upload`
-INSERT INTO `upload` (`id`, `name`) VALUES
(0, '3.JPG'),
(0, 'Button-Close-icon.png'),
(0, 'Desert.jpg'),
(0, 'jdbc-create-tables.pdf');
-- ---------------------------------------------------------- Table structure for table `user_cover_pic`
-CREATE TABLE IF NOT EXISTS `user_cover_pic` (
`cover_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`image` varchar(150) NOT NULL,
PRIMARY KEY (`cover_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `user_cover_pic`
-INSERT
(1, 1,
(2, 1,
(3, 2,
(4, 2,

INTO `user_cover_pic` (`cover_id`, `user_id`, `image`) VALUES


'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg');

-- ---------------------------------------------------------- Table structure for table `user_info`


-CREATE TABLE IF NOT EXISTS `user_info` (

`user_id` int(7) NOT NULL,


`job` varchar(100) NOT NULL,
`school_or_collage` varchar(100) NOT NULL,
`current_city` varchar(100) NOT NULL,
`hometown` varchar(100) NOT NULL,
`class` varchar(30) NOT NULL,
`mobile_no` varchar(15) NOT NULL,
`mobile_no_priority` varchar(10) NOT NULL,
`Satus` varchar(500) NOT NULL,
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `user_info`
-INSERT INTO `user_info` (`user_id`, `job`, `school_or_collage`, `current_city`,
`hometown`, `class`, `mobile_no`, `mobile_no_priority`, `Satus`) VALUES
(1, 'Student', 'New Arts commerce & science Collage', '', '', 'TyBcs', '', '', '
Hello im coll budyy'),
(3, '', '', '', '', '', '', '', ''),
(2, '', '', '', '', '', '', '', ''),
(4, '', '', '', '', '', '', '', '');
-- ---------------------------------------------------------- Table structure for table `user_post`
-CREATE TABLE IF NOT EXISTS `user_post` (
`post_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`post_txt` text NOT NULL,
`post_pic` varchar(150) NOT NULL,
`post_time` varchar(30) NOT NULL,
`priority` varchar(8) NOT NULL,
PRIMARY KEY (`post_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
--- Dumping data for table `user_post`
-INSERT INTO `user_post` (`post_id`, `user_id`, `post_txt`, `post_pic`, `post_tim
e`, `priority`) VALUES
(1, 1, 'Join Faceback', '', '10-3-2015 10:32', 'Public'),
(2, 1, 'Hiiisd', '', '10-3-2015 10:34', 'Public'),
(3, 1, 'added a new photo.', '1.JPG', '10-3-2015 10:35', 'Public'),
(4, 3, 'Join Faceback', '', '11-3-2015 10:16', 'Public'),
(5, 2, 'Join Faceback', '', '11-3-2015 10:1', 'Public'),
(6, 2, 'b', '', '11-3-2015 17:2', 'Public'),
(8, 4, 'jke', '', '12-3-2015 10:37', 'Public');
-- ---------------------------------------------------------- Table structure for table `user_post_comment`
--

CREATE TABLE IF NOT EXISTS `user_post_comment` (


`comment_id` int(7) NOT NULL AUTO_INCREMENT,
`post_id` int(7) NOT NULL,
`user_id` int(7) NOT NULL,
`comment` text NOT NULL,
PRIMARY KEY (`comment_id`),
KEY `user_id` (`user_id`),
KEY `post_id` (`post_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--- Dumping data for table `user_post_comment`
-INSERT INTO `user_post_comment` (`comment_id`, `post_id`, `user_id`, `comment`)
VALUES
(1, 3, 1, 'jjj'),
(2, 3, 1, 'jjj');
-- ---------------------------------------------------------- Table structure for table `user_post_status`
-CREATE TABLE IF NOT EXISTS `user_post_status` (
`status_id` int(7) NOT NULL AUTO_INCREMENT,
`post_id` int(7) NOT NULL,
`user_id` int(7) NOT NULL,
`status` varchar(7) NOT NULL,
PRIMARY KEY (`status_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--- Dumping data for table `user_post_status`
-INSERT INTO `user_post_status` (`status_id`, `post_id`, `user_id`, `status`) VAL
UES
(1, 2, 1, 'Like'),
(2, 3, 1, 'Like');
-- ---------------------------------------------------------- Table structure for table `user_profile_pic`
-CREATE TABLE IF NOT EXISTS `user_profile_pic` (
`profile_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`image` varchar(150) NOT NULL,
PRIMARY KEY (`profile_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `user_profile_pic`

-INSERT
(1, 1,
(2, 2,
(3, 3,
(4, 4,

INTO `user_profile_pic` (`profile_id`, `user_id`, `image`) VALUES


'aaa.JPG'),
'1111.png'),
'1.JPG'),
'111.jpg');

-- ---------------------------------------------------------- Table structure for table `user_secret_quotes`


-CREATE TABLE IF NOT EXISTS `user_secret_quotes` (
`user_id` int(7) NOT NULL,
`Question1` varchar(50) NOT NULL,
`Answer1` varchar(20) NOT NULL,
`Question2` varchar(50) NOT NULL,
`Answer2` varchar(20) NOT NULL,
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `user_secret_quotes`
-INSERT INTO `user_secret_quotes` (`user_id`, `Question1`, `Answer1`, `Question2`
, `Answer2`) VALUES
(1, 'what is best friend Name?', 'amol', 'what was your favorite food as a child
?', 'panipuri'),
(3, 'what is best friend Name?', 'aaaa', 'what was your favorite food as a child
?', 'sssss'),
(2, 'what is best friend Name?', 'amol', 'what was the last name of your first f
riend?', 'akki'),
(4, 'what is Your id No?', 'asdasdasd', 'what was the last name of your first fr
iend?', 'asdasdasdasd');
-- ---------------------------------------------------------- Table structure for table `users`
-CREATE TABLE IF NOT EXISTS `users` (
`user_id` int(7) NOT NULL AUTO_INCREMENT,
`Name` varchar(25) NOT NULL,
`Email` varchar(30) NOT NULL,
`Password` varchar(30) NOT NULL,
`Gender` varchar(6) NOT NULL,
`Birthday_Date` varchar(11) NOT NULL,
`FB_Join_Date` varchar(30) NOT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `users`
-INSERT INTO `users` (`user_id`, `Name`, `Email`, `Password`, `Gender`, `Birthday

_Date`, `FB_Join_Date`) VALUES


(1, 'amol NALANGE', 'nalangeakshay01@gmail.com', 'A46l0ve69', 'Male', '16-11-198
1', '10-3-2015 10:32'),
(2, 'sadhana nalange', 'nalange2@gmail.com', '123456', 'Male', '15-11-1982', '11
-3-2015 10:1'),
(3, 'aaaa ssss', 'nnnn@gmail.com', '123456', 'Male', '13-11-1982', '11-3-2015 10
:16'),
(4, 'ajay nalange', 'nalang@gmail.com', '123456', 'Male', '15-12-1983', '12-3-20
15 10:19');
--- Constraints for dumped tables
---- Constraints for table `feedback`
-ALTER TABLE `feedback`
ADD CONSTRAINT `feedback_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`
user_id`) ON DELETE CASCADE;
--- Constraints for table `user_cover_pic`
-ALTER TABLE `user_cover_pic`
ADD CONSTRAINT `user_cover_pic_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `use
rs` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_info`
-ALTER TABLE `user_info`
ADD CONSTRAINT `user_info_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (
`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_post`
-ALTER TABLE `user_post`
ADD CONSTRAINT `user_post_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (
`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_post_comment`
-ALTER TABLE `user_post_comment`
ADD CONSTRAINT `user_post_comment_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `
users` (`user_id`) ON DELETE CASCADE,
ADD CONSTRAINT `user_post_comment_ibfk_2` FOREIGN KEY (`post_id`) REFERENCES `
user_post` (`post_id`) ON DELETE CASCADE;
--- Constraints for table `user_post_status`
-ALTER TABLE `user_post_status`
ADD CONSTRAINT `user_post_status_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `u
sers` (`user_id`) ON DELETE CASCADE,
ADD CONSTRAINT `user_post_status_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `u
ser_post` (`user_id`) ON DELETE CASCADE;

--- Constraints for table `user_profile_pic`


-ALTER TABLE `user_profile_pic`
ADD CONSTRAINT `user_profile_pic_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `u
sers` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_secret_quotes`
-ALTER TABLE `user_secret_quotes`
ADD CONSTRAINT `user_secret_quotes_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES
`users` (`user_id`) ON DELETE CASCADE;
/*!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 */;
-- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--- Host: localhost
-- Generation Time: Mar 12, 2015 at 08:14 AM
-- Server version: 5.5.24-log
-- PHP Version: 5.4.3
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101
/*!40101
/*!40101
/*!40101

SET
SET
SET
SET

@OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
@OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
NAMES utf8 */;

--- Database: `faceback`


-CREATE DATABASE `faceback` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_c
i;
USE `faceback`;
-- ---------------------------------------------------------- Table structure for table `admin_info`
-CREATE TABLE IF NOT EXISTS `admin_info` (
`Username` varchar(11) DEFAULT NULL,
`Password` varchar(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `admin_info`
-INSERT INTO `admin_info` (`Username`, `Password`) VALUES
('akshay', 'akshay');

-- ---------------------------------------------------------- Table structure for table `feedback`


-CREATE TABLE IF NOT EXISTS `feedback` (
`feedback_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`feedback_txt` varchar(120) NOT NULL,
`star` varchar(1) NOT NULL,
`Date` varchar(30) NOT NULL,
PRIMARY KEY (`feedback_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--- Dumping data for table `feedback`
-INSERT INTO `feedback` (`feedback_id`, `user_id`, `feedback_txt`, `star`, `Date`
) VALUES
(1, 1, 'gug', '3', '10-3-2015 10:37');
-- ---------------------------------------------------------- Table structure for table `upload`
-CREATE TABLE IF NOT EXISTS `upload` (
`id` int(11) NOT NULL,
`name` varchar(500) NOT NULL,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `upload`
-INSERT INTO `upload` (`id`, `name`) VALUES
(0, '3.JPG'),
(0, 'Button-Close-icon.png'),
(0, 'Desert.jpg'),
(0, 'jdbc-create-tables.pdf');
-- ---------------------------------------------------------- Table structure for table `user_cover_pic`
-CREATE TABLE IF NOT EXISTS `user_cover_pic` (
`cover_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`image` varchar(150) NOT NULL,
PRIMARY KEY (`cover_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;

--- Dumping data for table `user_cover_pic`


-INSERT
(1, 1,
(2, 1,
(3, 2,
(4, 2,

INTO `user_cover_pic` (`cover_id`, `user_id`, `image`) VALUES


'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg');

-- ---------------------------------------------------------- Table structure for table `user_info`


-CREATE TABLE IF NOT EXISTS `user_info` (
`user_id` int(7) NOT NULL,
`job` varchar(100) NOT NULL,
`school_or_collage` varchar(100) NOT NULL,
`current_city` varchar(100) NOT NULL,
`hometown` varchar(100) NOT NULL,
`class` varchar(30) NOT NULL,
`mobile_no` varchar(15) NOT NULL,
`mobile_no_priority` varchar(10) NOT NULL,
`Satus` varchar(500) NOT NULL,
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `user_info`
-INSERT INTO `user_info` (`user_id`, `job`, `school_or_collage`, `current_city`,
`hometown`, `class`, `mobile_no`, `mobile_no_priority`, `Satus`) VALUES
(1, 'Student', 'New Arts commerce & science Collage', '', '', 'TyBcs', '', '', '
Hello im coll budyy'),
(3, '', '', '', '', '', '', '', ''),
(2, '', '', '', '', '', '', '', ''),
(4, '', '', '', '', '', '', '', '');
-- ---------------------------------------------------------- Table structure for table `user_post`
-CREATE TABLE IF NOT EXISTS `user_post` (
`post_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`post_txt` text NOT NULL,
`post_pic` varchar(150) NOT NULL,
`post_time` varchar(30) NOT NULL,
`priority` varchar(8) NOT NULL,
PRIMARY KEY (`post_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
--- Dumping data for table `user_post`

-INSERT INTO `user_post` (`post_id`, `user_id`, `post_txt`, `post_pic`, `post_tim


e`, `priority`) VALUES
(1, 1, 'Join Faceback', '', '10-3-2015 10:32', 'Public'),
(2, 1, 'Hiiisd', '', '10-3-2015 10:34', 'Public'),
(3, 1, 'added a new photo.', '1.JPG', '10-3-2015 10:35', 'Public'),
(4, 3, 'Join Faceback', '', '11-3-2015 10:16', 'Public'),
(5, 2, 'Join Faceback', '', '11-3-2015 10:1', 'Public'),
(6, 2, 'b', '', '11-3-2015 17:2', 'Public'),
(8, 4, 'jke', '', '12-3-2015 10:37', 'Public');
-- ---------------------------------------------------------- Table structure for table `user_post_comment`
-CREATE TABLE IF NOT EXISTS `user_post_comment` (
`comment_id` int(7) NOT NULL AUTO_INCREMENT,
`post_id` int(7) NOT NULL,
`user_id` int(7) NOT NULL,
`comment` text NOT NULL,
PRIMARY KEY (`comment_id`),
KEY `user_id` (`user_id`),
KEY `post_id` (`post_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--- Dumping data for table `user_post_comment`
-INSERT INTO `user_post_comment` (`comment_id`, `post_id`, `user_id`, `comment`)
VALUES
(1, 3, 1, 'jjj'),
(2, 3, 1, 'jjj');
-- ---------------------------------------------------------- Table structure for table `user_post_status`
-CREATE TABLE IF NOT EXISTS `user_post_status` (
`status_id` int(7) NOT NULL AUTO_INCREMENT,
`post_id` int(7) NOT NULL,
`user_id` int(7) NOT NULL,
`status` varchar(7) NOT NULL,
PRIMARY KEY (`status_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--- Dumping data for table `user_post_status`
-INSERT INTO `user_post_status` (`status_id`, `post_id`, `user_id`, `status`) VAL
UES
(1, 2, 1, 'Like'),
(2, 3, 1, 'Like');

-- ---------------------------------------------------------- Table structure for table `user_profile_pic`


-CREATE TABLE IF NOT EXISTS `user_profile_pic` (
`profile_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`image` varchar(150) NOT NULL,
PRIMARY KEY (`profile_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `user_profile_pic`
-INSERT
(1, 1,
(2, 2,
(3, 3,
(4, 4,

INTO `user_profile_pic` (`profile_id`, `user_id`, `image`) VALUES


'aaa.JPG'),
'1111.png'),
'1.JPG'),
'111.jpg');

-- ---------------------------------------------------------- Table structure for table `user_secret_quotes`


-CREATE TABLE IF NOT EXISTS `user_secret_quotes` (
`user_id` int(7) NOT NULL,
`Question1` varchar(50) NOT NULL,
`Answer1` varchar(20) NOT NULL,
`Question2` varchar(50) NOT NULL,
`Answer2` varchar(20) NOT NULL,
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `user_secret_quotes`
-INSERT INTO `user_secret_quotes` (`user_id`, `Question1`, `Answer1`, `Question2`
, `Answer2`) VALUES
(1, 'what is best friend Name?', 'amol', 'what was your favorite food as a child
?', 'panipuri'),
(3, 'what is best friend Name?', 'aaaa', 'what was your favorite food as a child
?', 'sssss'),
(2, 'what is best friend Name?', 'amol', 'what was the last name of your first f
riend?', 'akki'),
(4, 'what is Your id No?', 'asdasdasd', 'what was the last name of your first fr
iend?', 'asdasdasdasd');
-- ---------------------------------------------------------- Table structure for table `users`
--

CREATE TABLE IF NOT EXISTS `users` (


`user_id` int(7) NOT NULL AUTO_INCREMENT,
`Name` varchar(25) NOT NULL,
`Email` varchar(30) NOT NULL,
`Password` varchar(30) NOT NULL,
`Gender` varchar(6) NOT NULL,
`Birthday_Date` varchar(11) NOT NULL,
`FB_Join_Date` varchar(30) NOT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `users`
-INSERT INTO `users` (`user_id`, `Name`, `Email`, `Password`, `Gender`, `Birthday
_Date`, `FB_Join_Date`) VALUES
(1, 'amol NALANGE', 'nalangeakshay01@gmail.com', 'A46l0ve69', 'Male', '16-11-198
1', '10-3-2015 10:32'),
(2, 'sadhana nalange', 'nalange2@gmail.com', '123456', 'Male', '15-11-1982', '11
-3-2015 10:1'),
(3, 'aaaa ssss', 'nnnn@gmail.com', '123456', 'Male', '13-11-1982', '11-3-2015 10
:16'),
(4, 'ajay nalange', 'nalang@gmail.com', '123456', 'Male', '15-12-1983', '12-3-20
15 10:19');
--- Constraints for dumped tables
---- Constraints for table `feedback`
-ALTER TABLE `feedback`
ADD CONSTRAINT `feedback_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`
user_id`) ON DELETE CASCADE;
--- Constraints for table `user_cover_pic`
-ALTER TABLE `user_cover_pic`
ADD CONSTRAINT `user_cover_pic_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `use
rs` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_info`
-ALTER TABLE `user_info`
ADD CONSTRAINT `user_info_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (
`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_post`
-ALTER TABLE `user_post`
ADD CONSTRAINT `user_post_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (
`user_id`) ON DELETE CASCADE;
--

-- Constraints for table `user_post_comment`


-ALTER TABLE `user_post_comment`
ADD CONSTRAINT `user_post_comment_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `
users` (`user_id`) ON DELETE CASCADE,
ADD CONSTRAINT `user_post_comment_ibfk_2` FOREIGN KEY (`post_id`) REFERENCES `
user_post` (`post_id`) ON DELETE CASCADE;
--- Constraints for table `user_post_status`
-ALTER TABLE `user_post_status`
ADD CONSTRAINT `user_post_status_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `u
sers` (`user_id`) ON DELETE CASCADE,
ADD CONSTRAINT `user_post_status_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `u
ser_post` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_profile_pic`
-ALTER TABLE `user_profile_pic`
ADD CONSTRAINT `user_profile_pic_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `u
sers` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_secret_quotes`
-ALTER TABLE `user_secret_quotes`
ADD CONSTRAINT `user_secret_quotes_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES
`users` (`user_id`) ON DELETE CASCADE;
/*!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 */;
-- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--- Host: localhost
-- Generation Time: Mar 12, 2015 at 08:14 AM
-- Server version: 5.5.24-log
-- PHP Version: 5.4.3
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101
/*!40101
/*!40101
/*!40101

SET
SET
SET
SET

@OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
@OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
NAMES utf8 */;

--- Database: `faceback`


-CREATE DATABASE `faceback` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_c
i;
USE `faceback`;
-- --------------------------------------------------------

--- Table structure for table `admin_info`


-CREATE TABLE IF NOT EXISTS `admin_info` (
`Username` varchar(11) DEFAULT NULL,
`Password` varchar(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `admin_info`
-INSERT INTO `admin_info` (`Username`, `Password`) VALUES
('akshay', 'akshay');
-- ---------------------------------------------------------- Table structure for table `feedback`
-CREATE TABLE IF NOT EXISTS `feedback` (
`feedback_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`feedback_txt` varchar(120) NOT NULL,
`star` varchar(1) NOT NULL,
`Date` varchar(30) NOT NULL,
PRIMARY KEY (`feedback_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--- Dumping data for table `feedback`
-INSERT INTO `feedback` (`feedback_id`, `user_id`, `feedback_txt`, `star`, `Date`
) VALUES
(1, 1, 'gug', '3', '10-3-2015 10:37');
-- ---------------------------------------------------------- Table structure for table `upload`
-CREATE TABLE IF NOT EXISTS `upload` (
`id` int(11) NOT NULL,
`name` varchar(500) NOT NULL,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `upload`
-INSERT INTO `upload` (`id`, `name`) VALUES
(0, '3.JPG'),
(0, 'Button-Close-icon.png'),

(0, 'Desert.jpg'),
(0, 'jdbc-create-tables.pdf');
-- ---------------------------------------------------------- Table structure for table `user_cover_pic`
-CREATE TABLE IF NOT EXISTS `user_cover_pic` (
`cover_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`image` varchar(150) NOT NULL,
PRIMARY KEY (`cover_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `user_cover_pic`
-INSERT
(1, 1,
(2, 1,
(3, 2,
(4, 2,

INTO `user_cover_pic` (`cover_id`, `user_id`, `image`) VALUES


'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg');

-- ---------------------------------------------------------- Table structure for table `user_info`


-CREATE TABLE IF NOT EXISTS `user_info` (
`user_id` int(7) NOT NULL,
`job` varchar(100) NOT NULL,
`school_or_collage` varchar(100) NOT NULL,
`current_city` varchar(100) NOT NULL,
`hometown` varchar(100) NOT NULL,
`class` varchar(30) NOT NULL,
`mobile_no` varchar(15) NOT NULL,
`mobile_no_priority` varchar(10) NOT NULL,
`Satus` varchar(500) NOT NULL,
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `user_info`
-INSERT INTO `user_info` (`user_id`, `job`, `school_or_collage`, `current_city`,
`hometown`, `class`, `mobile_no`, `mobile_no_priority`, `Satus`) VALUES
(1, 'Student', 'New Arts commerce & science Collage', '', '', 'TyBcs', '', '', '
Hello im coll budyy'),
(3, '', '', '', '', '', '', '', ''),
(2, '', '', '', '', '', '', '', ''),
(4, '', '', '', '', '', '', '', '');
-- --------------------------------------------------------

--- Table structure for table `user_post`


-CREATE TABLE IF NOT EXISTS `user_post` (
`post_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`post_txt` text NOT NULL,
`post_pic` varchar(150) NOT NULL,
`post_time` varchar(30) NOT NULL,
`priority` varchar(8) NOT NULL,
PRIMARY KEY (`post_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
--- Dumping data for table `user_post`
-INSERT INTO `user_post` (`post_id`, `user_id`, `post_txt`, `post_pic`, `post_tim
e`, `priority`) VALUES
(1, 1, 'Join Faceback', '', '10-3-2015 10:32', 'Public'),
(2, 1, 'Hiiisd', '', '10-3-2015 10:34', 'Public'),
(3, 1, 'added a new photo.', '1.JPG', '10-3-2015 10:35', 'Public'),
(4, 3, 'Join Faceback', '', '11-3-2015 10:16', 'Public'),
(5, 2, 'Join Faceback', '', '11-3-2015 10:1', 'Public'),
(6, 2, 'b', '', '11-3-2015 17:2', 'Public'),
(8, 4, 'jke', '', '12-3-2015 10:37', 'Public');
-- ---------------------------------------------------------- Table structure for table `user_post_comment`
-CREATE TABLE IF NOT EXISTS `user_post_comment` (
`comment_id` int(7) NOT NULL AUTO_INCREMENT,
`post_id` int(7) NOT NULL,
`user_id` int(7) NOT NULL,
`comment` text NOT NULL,
PRIMARY KEY (`comment_id`),
KEY `user_id` (`user_id`),
KEY `post_id` (`post_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--- Dumping data for table `user_post_comment`
-INSERT INTO `user_post_comment` (`comment_id`, `post_id`, `user_id`, `comment`)
VALUES
(1, 3, 1, 'jjj'),
(2, 3, 1, 'jjj');
-- ---------------------------------------------------------- Table structure for table `user_post_status`
--

CREATE TABLE IF NOT EXISTS `user_post_status` (


`status_id` int(7) NOT NULL AUTO_INCREMENT,
`post_id` int(7) NOT NULL,
`user_id` int(7) NOT NULL,
`status` varchar(7) NOT NULL,
PRIMARY KEY (`status_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--- Dumping data for table `user_post_status`
-INSERT INTO `user_post_status` (`status_id`, `post_id`, `user_id`, `status`) VAL
UES
(1, 2, 1, 'Like'),
(2, 3, 1, 'Like');
-- ---------------------------------------------------------- Table structure for table `user_profile_pic`
-CREATE TABLE IF NOT EXISTS `user_profile_pic` (
`profile_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`image` varchar(150) NOT NULL,
PRIMARY KEY (`profile_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `user_profile_pic`
-INSERT
(1, 1,
(2, 2,
(3, 3,
(4, 4,

INTO `user_profile_pic` (`profile_id`, `user_id`, `image`) VALUES


'aaa.JPG'),
'1111.png'),
'1.JPG'),
'111.jpg');

-- ---------------------------------------------------------- Table structure for table `user_secret_quotes`


-CREATE TABLE IF NOT EXISTS `user_secret_quotes` (
`user_id` int(7) NOT NULL,
`Question1` varchar(50) NOT NULL,
`Answer1` varchar(20) NOT NULL,
`Question2` varchar(50) NOT NULL,
`Answer2` varchar(20) NOT NULL,
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `user_secret_quotes`
--

INSERT INTO `user_secret_quotes` (`user_id`, `Question1`, `Answer1`, `Question2`


, `Answer2`) VALUES
(1, 'what is best friend Name?', 'amol', 'what was your favorite food as a child
?', 'panipuri'),
(3, 'what is best friend Name?', 'aaaa', 'what was your favorite food as a child
?', 'sssss'),
(2, 'what is best friend Name?', 'amol', 'what was the last name of your first f
riend?', 'akki'),
(4, 'what is Your id No?', 'asdasdasd', 'what was the last name of your first fr
iend?', 'asdasdasdasd');
-- ---------------------------------------------------------- Table structure for table `users`
-CREATE TABLE IF NOT EXISTS `users` (
`user_id` int(7) NOT NULL AUTO_INCREMENT,
`Name` varchar(25) NOT NULL,
`Email` varchar(30) NOT NULL,
`Password` varchar(30) NOT NULL,
`Gender` varchar(6) NOT NULL,
`Birthday_Date` varchar(11) NOT NULL,
`FB_Join_Date` varchar(30) NOT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `users`
-INSERT INTO `users` (`user_id`, `Name`, `Email`, `Password`, `Gender`, `Birthday
_Date`, `FB_Join_Date`) VALUES
(1, 'amol NALANGE', 'nalangeakshay01@gmail.com', 'A46l0ve69', 'Male', '16-11-198
1', '10-3-2015 10:32'),
(2, 'sadhana nalange', 'nalange2@gmail.com', '123456', 'Male', '15-11-1982', '11
-3-2015 10:1'),
(3, 'aaaa ssss', 'nnnn@gmail.com', '123456', 'Male', '13-11-1982', '11-3-2015 10
:16'),
(4, 'ajay nalange', 'nalang@gmail.com', '123456', 'Male', '15-12-1983', '12-3-20
15 10:19');
--- Constraints for dumped tables
---- Constraints for table `feedback`
-ALTER TABLE `feedback`
ADD CONSTRAINT `feedback_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`
user_id`) ON DELETE CASCADE;
--- Constraints for table `user_cover_pic`
-ALTER TABLE `user_cover_pic`
ADD CONSTRAINT `user_cover_pic_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `use

rs` (`user_id`) ON DELETE CASCADE;


--- Constraints for table `user_info`
-ALTER TABLE `user_info`
ADD CONSTRAINT `user_info_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (
`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_post`
-ALTER TABLE `user_post`
ADD CONSTRAINT `user_post_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (
`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_post_comment`
-ALTER TABLE `user_post_comment`
ADD CONSTRAINT `user_post_comment_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `
users` (`user_id`) ON DELETE CASCADE,
ADD CONSTRAINT `user_post_comment_ibfk_2` FOREIGN KEY (`post_id`) REFERENCES `
user_post` (`post_id`) ON DELETE CASCADE;
--- Constraints for table `user_post_status`
-ALTER TABLE `user_post_status`
ADD CONSTRAINT `user_post_status_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `u
sers` (`user_id`) ON DELETE CASCADE,
ADD CONSTRAINT `user_post_status_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `u
ser_post` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_profile_pic`
-ALTER TABLE `user_profile_pic`
ADD CONSTRAINT `user_profile_pic_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `u
sers` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_secret_quotes`
-ALTER TABLE `user_secret_quotes`
ADD CONSTRAINT `user_secret_quotes_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES
`users` (`user_id`) ON DELETE CASCADE;
/*!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 */;
-- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--- Host: localhost
-- Generation Time: Mar 12, 2015 at 08:14 AM
-- Server version: 5.5.24-log
-- PHP Version: 5.4.3

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101
/*!40101
/*!40101
/*!40101

SET
SET
SET
SET

@OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
@OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
NAMES utf8 */;

--- Database: `faceback`


-CREATE DATABASE `faceback` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_c
i;
USE `faceback`;
-- ---------------------------------------------------------- Table structure for table `admin_info`
-CREATE TABLE IF NOT EXISTS `admin_info` (
`Username` varchar(11) DEFAULT NULL,
`Password` varchar(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `admin_info`
-INSERT INTO `admin_info` (`Username`, `Password`) VALUES
('akshay', 'akshay');
-- ---------------------------------------------------------- Table structure for table `feedback`
-CREATE TABLE IF NOT EXISTS `feedback` (
`feedback_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`feedback_txt` varchar(120) NOT NULL,
`star` varchar(1) NOT NULL,
`Date` varchar(30) NOT NULL,
PRIMARY KEY (`feedback_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--- Dumping data for table `feedback`
-INSERT INTO `feedback` (`feedback_id`, `user_id`, `feedback_txt`, `star`, `Date`
) VALUES
(1, 1, 'gug', '3', '10-3-2015 10:37');
-- --------------------------------------------------------

--- Table structure for table `upload`


-CREATE TABLE IF NOT EXISTS `upload` (
`id` int(11) NOT NULL,
`name` varchar(500) NOT NULL,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `upload`
-INSERT INTO `upload` (`id`, `name`) VALUES
(0, '3.JPG'),
(0, 'Button-Close-icon.png'),
(0, 'Desert.jpg'),
(0, 'jdbc-create-tables.pdf');
-- ---------------------------------------------------------- Table structure for table `user_cover_pic`
-CREATE TABLE IF NOT EXISTS `user_cover_pic` (
`cover_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`image` varchar(150) NOT NULL,
PRIMARY KEY (`cover_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `user_cover_pic`
-INSERT
(1, 1,
(2, 1,
(3, 2,
(4, 2,

INTO `user_cover_pic` (`cover_id`, `user_id`, `image`) VALUES


'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg');

-- ---------------------------------------------------------- Table structure for table `user_info`


-CREATE TABLE IF NOT EXISTS `user_info` (
`user_id` int(7) NOT NULL,
`job` varchar(100) NOT NULL,
`school_or_collage` varchar(100) NOT NULL,
`current_city` varchar(100) NOT NULL,
`hometown` varchar(100) NOT NULL,
`class` varchar(30) NOT NULL,
`mobile_no` varchar(15) NOT NULL,
`mobile_no_priority` varchar(10) NOT NULL,
`Satus` varchar(500) NOT NULL,

KEY `user_id` (`user_id`)


) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `user_info`
-INSERT INTO `user_info` (`user_id`, `job`, `school_or_collage`, `current_city`,
`hometown`, `class`, `mobile_no`, `mobile_no_priority`, `Satus`) VALUES
(1, 'Student', 'New Arts commerce & science Collage', '', '', 'TyBcs', '', '', '
Hello im coll budyy'),
(3, '', '', '', '', '', '', '', ''),
(2, '', '', '', '', '', '', '', ''),
(4, '', '', '', '', '', '', '', '');
-- ---------------------------------------------------------- Table structure for table `user_post`
-CREATE TABLE IF NOT EXISTS `user_post` (
`post_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`post_txt` text NOT NULL,
`post_pic` varchar(150) NOT NULL,
`post_time` varchar(30) NOT NULL,
`priority` varchar(8) NOT NULL,
PRIMARY KEY (`post_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
--- Dumping data for table `user_post`
-INSERT INTO `user_post` (`post_id`, `user_id`, `post_txt`, `post_pic`, `post_tim
e`, `priority`) VALUES
(1, 1, 'Join Faceback', '', '10-3-2015 10:32', 'Public'),
(2, 1, 'Hiiisd', '', '10-3-2015 10:34', 'Public'),
(3, 1, 'added a new photo.', '1.JPG', '10-3-2015 10:35', 'Public'),
(4, 3, 'Join Faceback', '', '11-3-2015 10:16', 'Public'),
(5, 2, 'Join Faceback', '', '11-3-2015 10:1', 'Public'),
(6, 2, 'b', '', '11-3-2015 17:2', 'Public'),
(8, 4, 'jke', '', '12-3-2015 10:37', 'Public');
-- ---------------------------------------------------------- Table structure for table `user_post_comment`
-CREATE TABLE IF NOT EXISTS `user_post_comment` (
`comment_id` int(7) NOT NULL AUTO_INCREMENT,
`post_id` int(7) NOT NULL,
`user_id` int(7) NOT NULL,
`comment` text NOT NULL,
PRIMARY KEY (`comment_id`),
KEY `user_id` (`user_id`),
KEY `post_id` (`post_id`)

) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;


--- Dumping data for table `user_post_comment`
-INSERT INTO `user_post_comment` (`comment_id`, `post_id`, `user_id`, `comment`)
VALUES
(1, 3, 1, 'jjj'),
(2, 3, 1, 'jjj');
-- ---------------------------------------------------------- Table structure for table `user_post_status`
-CREATE TABLE IF NOT EXISTS `user_post_status` (
`status_id` int(7) NOT NULL AUTO_INCREMENT,
`post_id` int(7) NOT NULL,
`user_id` int(7) NOT NULL,
`status` varchar(7) NOT NULL,
PRIMARY KEY (`status_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--- Dumping data for table `user_post_status`
-INSERT INTO `user_post_status` (`status_id`, `post_id`, `user_id`, `status`) VAL
UES
(1, 2, 1, 'Like'),
(2, 3, 1, 'Like');
-- ---------------------------------------------------------- Table structure for table `user_profile_pic`
-CREATE TABLE IF NOT EXISTS `user_profile_pic` (
`profile_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`image` varchar(150) NOT NULL,
PRIMARY KEY (`profile_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `user_profile_pic`
-INSERT
(1, 1,
(2, 2,
(3, 3,
(4, 4,

INTO `user_profile_pic` (`profile_id`, `user_id`, `image`) VALUES


'aaa.JPG'),
'1111.png'),
'1.JPG'),
'111.jpg');

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

--- Table structure for table `user_secret_quotes`


-CREATE TABLE IF NOT EXISTS `user_secret_quotes` (
`user_id` int(7) NOT NULL,
`Question1` varchar(50) NOT NULL,
`Answer1` varchar(20) NOT NULL,
`Question2` varchar(50) NOT NULL,
`Answer2` varchar(20) NOT NULL,
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `user_secret_quotes`
-INSERT INTO `user_secret_quotes` (`user_id`, `Question1`, `Answer1`, `Question2`
, `Answer2`) VALUES
(1, 'what is best friend Name?', 'amol', 'what was your favorite food as a child
?', 'panipuri'),
(3, 'what is best friend Name?', 'aaaa', 'what was your favorite food as a child
?', 'sssss'),
(2, 'what is best friend Name?', 'amol', 'what was the last name of your first f
riend?', 'akki'),
(4, 'what is Your id No?', 'asdasdasd', 'what was the last name of your first fr
iend?', 'asdasdasdasd');
-- ---------------------------------------------------------- Table structure for table `users`
-CREATE TABLE IF NOT EXISTS `users` (
`user_id` int(7) NOT NULL AUTO_INCREMENT,
`Name` varchar(25) NOT NULL,
`Email` varchar(30) NOT NULL,
`Password` varchar(30) NOT NULL,
`Gender` varchar(6) NOT NULL,
`Birthday_Date` varchar(11) NOT NULL,
`FB_Join_Date` varchar(30) NOT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `users`
-INSERT INTO `users` (`user_id`, `Name`, `Email`, `Password`, `Gender`, `Birthday
_Date`, `FB_Join_Date`) VALUES
(1, 'amol NALANGE', 'nalangeakshay01@gmail.com', 'A46l0ve69', 'Male', '16-11-198
1', '10-3-2015 10:32'),
(2, 'sadhana nalange', 'nalange2@gmail.com', '123456', 'Male', '15-11-1982', '11
-3-2015 10:1'),
(3, 'aaaa ssss', 'nnnn@gmail.com', '123456', 'Male', '13-11-1982', '11-3-2015 10
:16'),
(4, 'ajay nalange', 'nalang@gmail.com', '123456', 'Male', '15-12-1983', '12-3-20
15 10:19');

--- Constraints for dumped tables


---- Constraints for table `feedback`
-ALTER TABLE `feedback`
ADD CONSTRAINT `feedback_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`
user_id`) ON DELETE CASCADE;
--- Constraints for table `user_cover_pic`
-ALTER TABLE `user_cover_pic`
ADD CONSTRAINT `user_cover_pic_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `use
rs` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_info`
-ALTER TABLE `user_info`
ADD CONSTRAINT `user_info_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (
`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_post`
-ALTER TABLE `user_post`
ADD CONSTRAINT `user_post_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (
`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_post_comment`
-ALTER TABLE `user_post_comment`
ADD CONSTRAINT `user_post_comment_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `
users` (`user_id`) ON DELETE CASCADE,
ADD CONSTRAINT `user_post_comment_ibfk_2` FOREIGN KEY (`post_id`) REFERENCES `
user_post` (`post_id`) ON DELETE CASCADE;
--- Constraints for table `user_post_status`
-ALTER TABLE `user_post_status`
ADD CONSTRAINT `user_post_status_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `u
sers` (`user_id`) ON DELETE CASCADE,
ADD CONSTRAINT `user_post_status_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `u
ser_post` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_profile_pic`
-ALTER TABLE `user_profile_pic`
ADD CONSTRAINT `user_profile_pic_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `u
sers` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_secret_quotes`

-ALTER TABLE `user_secret_quotes`


ADD CONSTRAINT `user_secret_quotes_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES
`users` (`user_id`) ON DELETE CASCADE;
/*!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 */;
-- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--- Host: localhost
-- Generation Time: Mar 12, 2015 at 08:14 AM
-- Server version: 5.5.24-log
-- PHP Version: 5.4.3
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101
/*!40101
/*!40101
/*!40101

SET
SET
SET
SET

@OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
@OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
NAMES utf8 */;

--- Database: `faceback`


-CREATE DATABASE `faceback` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_c
i;
USE `faceback`;
-- ---------------------------------------------------------- Table structure for table `admin_info`
-CREATE TABLE IF NOT EXISTS `admin_info` (
`Username` varchar(11) DEFAULT NULL,
`Password` varchar(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `admin_info`
-INSERT INTO `admin_info` (`Username`, `Password`) VALUES
('akshay', 'akshay');
-- ---------------------------------------------------------- Table structure for table `feedback`
-CREATE TABLE IF NOT EXISTS `feedback` (
`feedback_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,

`feedback_txt` varchar(120) NOT NULL,


`star` varchar(1) NOT NULL,
`Date` varchar(30) NOT NULL,
PRIMARY KEY (`feedback_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--- Dumping data for table `feedback`
-INSERT INTO `feedback` (`feedback_id`, `user_id`, `feedback_txt`, `star`, `Date`
) VALUES
(1, 1, 'gug', '3', '10-3-2015 10:37');
-- ---------------------------------------------------------- Table structure for table `upload`
-CREATE TABLE IF NOT EXISTS `upload` (
`id` int(11) NOT NULL,
`name` varchar(500) NOT NULL,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `upload`
-INSERT INTO `upload` (`id`, `name`) VALUES
(0, '3.JPG'),
(0, 'Button-Close-icon.png'),
(0, 'Desert.jpg'),
(0, 'jdbc-create-tables.pdf');
-- ---------------------------------------------------------- Table structure for table `user_cover_pic`
-CREATE TABLE IF NOT EXISTS `user_cover_pic` (
`cover_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`image` varchar(150) NOT NULL,
PRIMARY KEY (`cover_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `user_cover_pic`
-INSERT
(1, 1,
(2, 1,
(3, 2,
(4, 2,

INTO `user_cover_pic` (`cover_id`, `user_id`, `image`) VALUES


'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg');

-- ---------------------------------------------------------- Table structure for table `user_info`


-CREATE TABLE IF NOT EXISTS `user_info` (
`user_id` int(7) NOT NULL,
`job` varchar(100) NOT NULL,
`school_or_collage` varchar(100) NOT NULL,
`current_city` varchar(100) NOT NULL,
`hometown` varchar(100) NOT NULL,
`class` varchar(30) NOT NULL,
`mobile_no` varchar(15) NOT NULL,
`mobile_no_priority` varchar(10) NOT NULL,
`Satus` varchar(500) NOT NULL,
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `user_info`
-INSERT INTO `user_info` (`user_id`, `job`, `school_or_collage`, `current_city`,
`hometown`, `class`, `mobile_no`, `mobile_no_priority`, `Satus`) VALUES
(1, 'Student', 'New Arts commerce & science Collage', '', '', 'TyBcs', '', '', '
Hello im coll budyy'),
(3, '', '', '', '', '', '', '', ''),
(2, '', '', '', '', '', '', '', ''),
(4, '', '', '', '', '', '', '', '');
-- ---------------------------------------------------------- Table structure for table `user_post`
-CREATE TABLE IF NOT EXISTS `user_post` (
`post_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`post_txt` text NOT NULL,
`post_pic` varchar(150) NOT NULL,
`post_time` varchar(30) NOT NULL,
`priority` varchar(8) NOT NULL,
PRIMARY KEY (`post_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
--- Dumping data for table `user_post`
-INSERT INTO `user_post` (`post_id`, `user_id`, `post_txt`, `post_pic`, `post_tim
e`, `priority`) VALUES
(1, 1, 'Join Faceback', '', '10-3-2015 10:32', 'Public'),
(2, 1, 'Hiiisd', '', '10-3-2015 10:34', 'Public'),
(3, 1, 'added a new photo.', '1.JPG', '10-3-2015 10:35', 'Public'),
(4, 3, 'Join Faceback', '', '11-3-2015 10:16', 'Public'),
(5, 2, 'Join Faceback', '', '11-3-2015 10:1', 'Public'),

(6, 2, 'b', '', '11-3-2015 17:2', 'Public'),


(8, 4, 'jke', '', '12-3-2015 10:37', 'Public');
-- ---------------------------------------------------------- Table structure for table `user_post_comment`
-CREATE TABLE IF NOT EXISTS `user_post_comment` (
`comment_id` int(7) NOT NULL AUTO_INCREMENT,
`post_id` int(7) NOT NULL,
`user_id` int(7) NOT NULL,
`comment` text NOT NULL,
PRIMARY KEY (`comment_id`),
KEY `user_id` (`user_id`),
KEY `post_id` (`post_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--- Dumping data for table `user_post_comment`
-INSERT INTO `user_post_comment` (`comment_id`, `post_id`, `user_id`, `comment`)
VALUES
(1, 3, 1, 'jjj'),
(2, 3, 1, 'jjj');
-- ---------------------------------------------------------- Table structure for table `user_post_status`
-CREATE TABLE IF NOT EXISTS `user_post_status` (
`status_id` int(7) NOT NULL AUTO_INCREMENT,
`post_id` int(7) NOT NULL,
`user_id` int(7) NOT NULL,
`status` varchar(7) NOT NULL,
PRIMARY KEY (`status_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--- Dumping data for table `user_post_status`
-INSERT INTO `user_post_status` (`status_id`, `post_id`, `user_id`, `status`) VAL
UES
(1, 2, 1, 'Like'),
(2, 3, 1, 'Like');
-- ---------------------------------------------------------- Table structure for table `user_profile_pic`
-CREATE TABLE IF NOT EXISTS `user_profile_pic` (
`profile_id` int(7) NOT NULL AUTO_INCREMENT,

`user_id` int(7) NOT NULL,


`image` varchar(150) NOT NULL,
PRIMARY KEY (`profile_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `user_profile_pic`
-INSERT
(1, 1,
(2, 2,
(3, 3,
(4, 4,

INTO `user_profile_pic` (`profile_id`, `user_id`, `image`) VALUES


'aaa.JPG'),
'1111.png'),
'1.JPG'),
'111.jpg');

-- ---------------------------------------------------------- Table structure for table `user_secret_quotes`


-CREATE TABLE IF NOT EXISTS `user_secret_quotes` (
`user_id` int(7) NOT NULL,
`Question1` varchar(50) NOT NULL,
`Answer1` varchar(20) NOT NULL,
`Question2` varchar(50) NOT NULL,
`Answer2` varchar(20) NOT NULL,
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `user_secret_quotes`
-INSERT INTO `user_secret_quotes` (`user_id`, `Question1`, `Answer1`, `Question2`
, `Answer2`) VALUES
(1, 'what is best friend Name?', 'amol', 'what was your favorite food as a child
?', 'panipuri'),
(3, 'what is best friend Name?', 'aaaa', 'what was your favorite food as a child
?', 'sssss'),
(2, 'what is best friend Name?', 'amol', 'what was the last name of your first f
riend?', 'akki'),
(4, 'what is Your id No?', 'asdasdasd', 'what was the last name of your first fr
iend?', 'asdasdasdasd');
-- ---------------------------------------------------------- Table structure for table `users`
-CREATE TABLE IF NOT EXISTS `users` (
`user_id` int(7) NOT NULL AUTO_INCREMENT,
`Name` varchar(25) NOT NULL,
`Email` varchar(30) NOT NULL,
`Password` varchar(30) NOT NULL,
`Gender` varchar(6) NOT NULL,
`Birthday_Date` varchar(11) NOT NULL,
`FB_Join_Date` varchar(30) NOT NULL,

PRIMARY KEY (`user_id`)


) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `users`
-INSERT INTO `users` (`user_id`, `Name`, `Email`, `Password`, `Gender`, `Birthday
_Date`, `FB_Join_Date`) VALUES
(1, 'amol NALANGE', 'nalangeakshay01@gmail.com', 'A46l0ve69', 'Male', '16-11-198
1', '10-3-2015 10:32'),
(2, 'sadhana nalange', 'nalange2@gmail.com', '123456', 'Male', '15-11-1982', '11
-3-2015 10:1'),
(3, 'aaaa ssss', 'nnnn@gmail.com', '123456', 'Male', '13-11-1982', '11-3-2015 10
:16'),
(4, 'ajay nalange', 'nalang@gmail.com', '123456', 'Male', '15-12-1983', '12-3-20
15 10:19');
--- Constraints for dumped tables
---- Constraints for table `feedback`
-ALTER TABLE `feedback`
ADD CONSTRAINT `feedback_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`
user_id`) ON DELETE CASCADE;
--- Constraints for table `user_cover_pic`
-ALTER TABLE `user_cover_pic`
ADD CONSTRAINT `user_cover_pic_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `use
rs` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_info`
-ALTER TABLE `user_info`
ADD CONSTRAINT `user_info_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (
`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_post`
-ALTER TABLE `user_post`
ADD CONSTRAINT `user_post_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (
`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_post_comment`
-ALTER TABLE `user_post_comment`
ADD CONSTRAINT `user_post_comment_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `
users` (`user_id`) ON DELETE CASCADE,
ADD CONSTRAINT `user_post_comment_ibfk_2` FOREIGN KEY (`post_id`) REFERENCES `
user_post` (`post_id`) ON DELETE CASCADE;
--

-- Constraints for table `user_post_status`


-ALTER TABLE `user_post_status`
ADD CONSTRAINT `user_post_status_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `u
sers` (`user_id`) ON DELETE CASCADE,
ADD CONSTRAINT `user_post_status_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `u
ser_post` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_profile_pic`
-ALTER TABLE `user_profile_pic`
ADD CONSTRAINT `user_profile_pic_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `u
sers` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_secret_quotes`
-ALTER TABLE `user_secret_quotes`
ADD CONSTRAINT `user_secret_quotes_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES
`users` (`user_id`) ON DELETE CASCADE;
/*!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 */;
-- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--- Host: localhost
-- Generation Time: Mar 12, 2015 at 08:14 AM
-- Server version: 5.5.24-log
-- PHP Version: 5.4.3
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101
/*!40101
/*!40101
/*!40101

SET
SET
SET
SET

@OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
@OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
NAMES utf8 */;

--- Database: `faceback`


-CREATE DATABASE `faceback` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_c
i;
USE `faceback`;
-- ---------------------------------------------------------- Table structure for table `admin_info`
-CREATE TABLE IF NOT EXISTS `admin_info` (
`Username` varchar(11) DEFAULT NULL,
`Password` varchar(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--- Dumping data for table `admin_info`


-INSERT INTO `admin_info` (`Username`, `Password`) VALUES
('akshay', 'akshay');
-- ---------------------------------------------------------- Table structure for table `feedback`
-CREATE TABLE IF NOT EXISTS `feedback` (
`feedback_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`feedback_txt` varchar(120) NOT NULL,
`star` varchar(1) NOT NULL,
`Date` varchar(30) NOT NULL,
PRIMARY KEY (`feedback_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--- Dumping data for table `feedback`
-INSERT INTO `feedback` (`feedback_id`, `user_id`, `feedback_txt`, `star`, `Date`
) VALUES
(1, 1, 'gug', '3', '10-3-2015 10:37');
-- ---------------------------------------------------------- Table structure for table `upload`
-CREATE TABLE IF NOT EXISTS `upload` (
`id` int(11) NOT NULL,
`name` varchar(500) NOT NULL,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `upload`
-INSERT INTO `upload` (`id`, `name`) VALUES
(0, '3.JPG'),
(0, 'Button-Close-icon.png'),
(0, 'Desert.jpg'),
(0, 'jdbc-create-tables.pdf');
-- ---------------------------------------------------------- Table structure for table `user_cover_pic`
--

CREATE TABLE IF NOT EXISTS `user_cover_pic` (


`cover_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`image` varchar(150) NOT NULL,
PRIMARY KEY (`cover_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `user_cover_pic`
-INSERT
(1, 1,
(2, 1,
(3, 2,
(4, 2,

INTO `user_cover_pic` (`cover_id`, `user_id`, `image`) VALUES


'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg');

-- ---------------------------------------------------------- Table structure for table `user_info`


-CREATE TABLE IF NOT EXISTS `user_info` (
`user_id` int(7) NOT NULL,
`job` varchar(100) NOT NULL,
`school_or_collage` varchar(100) NOT NULL,
`current_city` varchar(100) NOT NULL,
`hometown` varchar(100) NOT NULL,
`class` varchar(30) NOT NULL,
`mobile_no` varchar(15) NOT NULL,
`mobile_no_priority` varchar(10) NOT NULL,
`Satus` varchar(500) NOT NULL,
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `user_info`
-INSERT INTO `user_info` (`user_id`, `job`, `school_or_collage`, `current_city`,
`hometown`, `class`, `mobile_no`, `mobile_no_priority`, `Satus`) VALUES
(1, 'Student', 'New Arts commerce & science Collage', '', '', 'TyBcs', '', '', '
Hello im coll budyy'),
(3, '', '', '', '', '', '', '', ''),
(2, '', '', '', '', '', '', '', ''),
(4, '', '', '', '', '', '', '', '');
-- ---------------------------------------------------------- Table structure for table `user_post`
-CREATE TABLE IF NOT EXISTS `user_post` (
`post_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`post_txt` text NOT NULL,
`post_pic` varchar(150) NOT NULL,

`post_time` varchar(30) NOT NULL,


`priority` varchar(8) NOT NULL,
PRIMARY KEY (`post_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
--- Dumping data for table `user_post`
-INSERT INTO `user_post` (`post_id`, `user_id`, `post_txt`, `post_pic`, `post_tim
e`, `priority`) VALUES
(1, 1, 'Join Faceback', '', '10-3-2015 10:32', 'Public'),
(2, 1, 'Hiiisd', '', '10-3-2015 10:34', 'Public'),
(3, 1, 'added a new photo.', '1.JPG', '10-3-2015 10:35', 'Public'),
(4, 3, 'Join Faceback', '', '11-3-2015 10:16', 'Public'),
(5, 2, 'Join Faceback', '', '11-3-2015 10:1', 'Public'),
(6, 2, 'b', '', '11-3-2015 17:2', 'Public'),
(8, 4, 'jke', '', '12-3-2015 10:37', 'Public');
-- ---------------------------------------------------------- Table structure for table `user_post_comment`
-CREATE TABLE IF NOT EXISTS `user_post_comment` (
`comment_id` int(7) NOT NULL AUTO_INCREMENT,
`post_id` int(7) NOT NULL,
`user_id` int(7) NOT NULL,
`comment` text NOT NULL,
PRIMARY KEY (`comment_id`),
KEY `user_id` (`user_id`),
KEY `post_id` (`post_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--- Dumping data for table `user_post_comment`
-INSERT INTO `user_post_comment` (`comment_id`, `post_id`, `user_id`, `comment`)
VALUES
(1, 3, 1, 'jjj'),
(2, 3, 1, 'jjj');
-- ---------------------------------------------------------- Table structure for table `user_post_status`
-CREATE TABLE IF NOT EXISTS `user_post_status` (
`status_id` int(7) NOT NULL AUTO_INCREMENT,
`post_id` int(7) NOT NULL,
`user_id` int(7) NOT NULL,
`status` varchar(7) NOT NULL,
PRIMARY KEY (`status_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

--- Dumping data for table `user_post_status`


-INSERT INTO `user_post_status` (`status_id`, `post_id`, `user_id`, `status`) VAL
UES
(1, 2, 1, 'Like'),
(2, 3, 1, 'Like');
-- ---------------------------------------------------------- Table structure for table `user_profile_pic`
-CREATE TABLE IF NOT EXISTS `user_profile_pic` (
`profile_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`image` varchar(150) NOT NULL,
PRIMARY KEY (`profile_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `user_profile_pic`
-INSERT
(1, 1,
(2, 2,
(3, 3,
(4, 4,

INTO `user_profile_pic` (`profile_id`, `user_id`, `image`) VALUES


'aaa.JPG'),
'1111.png'),
'1.JPG'),
'111.jpg');

-- ---------------------------------------------------------- Table structure for table `user_secret_quotes`


-CREATE TABLE IF NOT EXISTS `user_secret_quotes` (
`user_id` int(7) NOT NULL,
`Question1` varchar(50) NOT NULL,
`Answer1` varchar(20) NOT NULL,
`Question2` varchar(50) NOT NULL,
`Answer2` varchar(20) NOT NULL,
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `user_secret_quotes`
-INSERT INTO `user_secret_quotes`
, `Answer2`) VALUES
(1, 'what is best friend Name?',
?', 'panipuri'),
(3, 'what is best friend Name?',
?', 'sssss'),
(2, 'what is best friend Name?',
riend?', 'akki'),

(`user_id`, `Question1`, `Answer1`, `Question2`


'amol', 'what was your favorite food as a child
'aaaa', 'what was your favorite food as a child
'amol', 'what was the last name of your first f

(4, 'what is Your id No?', 'asdasdasd', 'what was the last name of your first fr
iend?', 'asdasdasdasd');
-- ---------------------------------------------------------- Table structure for table `users`
-CREATE TABLE IF NOT EXISTS `users` (
`user_id` int(7) NOT NULL AUTO_INCREMENT,
`Name` varchar(25) NOT NULL,
`Email` varchar(30) NOT NULL,
`Password` varchar(30) NOT NULL,
`Gender` varchar(6) NOT NULL,
`Birthday_Date` varchar(11) NOT NULL,
`FB_Join_Date` varchar(30) NOT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `users`
-INSERT INTO `users` (`user_id`, `Name`, `Email`, `Password`, `Gender`, `Birthday
_Date`, `FB_Join_Date`) VALUES
(1, 'amol NALANGE', 'nalangeakshay01@gmail.com', 'A46l0ve69', 'Male', '16-11-198
1', '10-3-2015 10:32'),
(2, 'sadhana nalange', 'nalange2@gmail.com', '123456', 'Male', '15-11-1982', '11
-3-2015 10:1'),
(3, 'aaaa ssss', 'nnnn@gmail.com', '123456', 'Male', '13-11-1982', '11-3-2015 10
:16'),
(4, 'ajay nalange', 'nalang@gmail.com', '123456', 'Male', '15-12-1983', '12-3-20
15 10:19');
--- Constraints for dumped tables
---- Constraints for table `feedback`
-ALTER TABLE `feedback`
ADD CONSTRAINT `feedback_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`
user_id`) ON DELETE CASCADE;
--- Constraints for table `user_cover_pic`
-ALTER TABLE `user_cover_pic`
ADD CONSTRAINT `user_cover_pic_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `use
rs` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_info`
-ALTER TABLE `user_info`
ADD CONSTRAINT `user_info_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (
`user_id`) ON DELETE CASCADE;

--- Constraints for table `user_post`


-ALTER TABLE `user_post`
ADD CONSTRAINT `user_post_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (
`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_post_comment`
-ALTER TABLE `user_post_comment`
ADD CONSTRAINT `user_post_comment_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `
users` (`user_id`) ON DELETE CASCADE,
ADD CONSTRAINT `user_post_comment_ibfk_2` FOREIGN KEY (`post_id`) REFERENCES `
user_post` (`post_id`) ON DELETE CASCADE;
--- Constraints for table `user_post_status`
-ALTER TABLE `user_post_status`
ADD CONSTRAINT `user_post_status_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `u
sers` (`user_id`) ON DELETE CASCADE,
ADD CONSTRAINT `user_post_status_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `u
ser_post` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_profile_pic`
-ALTER TABLE `user_profile_pic`
ADD CONSTRAINT `user_profile_pic_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `u
sers` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_secret_quotes`
-ALTER TABLE `user_secret_quotes`
ADD CONSTRAINT `user_secret_quotes_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES
`users` (`user_id`) ON DELETE CASCADE;
/*!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 */;
-- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--- Host: localhost
-- Generation Time: Mar 12, 2015 at 08:14 AM
-- Server version: 5.5.24-log
-- PHP Version: 5.4.3
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101
/*!40101
/*!40101
/*!40101

SET
SET
SET
SET

@OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
@OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
NAMES utf8 */;

--- Database: `faceback`


-CREATE DATABASE `faceback` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_c
i;
USE `faceback`;
-- ---------------------------------------------------------- Table structure for table `admin_info`
-CREATE TABLE IF NOT EXISTS `admin_info` (
`Username` varchar(11) DEFAULT NULL,
`Password` varchar(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `admin_info`
-INSERT INTO `admin_info` (`Username`, `Password`) VALUES
('akshay', 'akshay');
-- ---------------------------------------------------------- Table structure for table `feedback`
-CREATE TABLE IF NOT EXISTS `feedback` (
`feedback_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`feedback_txt` varchar(120) NOT NULL,
`star` varchar(1) NOT NULL,
`Date` varchar(30) NOT NULL,
PRIMARY KEY (`feedback_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--- Dumping data for table `feedback`
-INSERT INTO `feedback` (`feedback_id`, `user_id`, `feedback_txt`, `star`, `Date`
) VALUES
(1, 1, 'gug', '3', '10-3-2015 10:37');
-- ---------------------------------------------------------- Table structure for table `upload`
-CREATE TABLE IF NOT EXISTS `upload` (
`id` int(11) NOT NULL,
`name` varchar(500) NOT NULL,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--- Dumping data for table `upload`


-INSERT INTO `upload` (`id`, `name`) VALUES
(0, '3.JPG'),
(0, 'Button-Close-icon.png'),
(0, 'Desert.jpg'),
(0, 'jdbc-create-tables.pdf');
-- ---------------------------------------------------------- Table structure for table `user_cover_pic`
-CREATE TABLE IF NOT EXISTS `user_cover_pic` (
`cover_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`image` varchar(150) NOT NULL,
PRIMARY KEY (`cover_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `user_cover_pic`
-INSERT
(1, 1,
(2, 1,
(3, 2,
(4, 2,

INTO `user_cover_pic` (`cover_id`, `user_id`, `image`) VALUES


'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg');

-- ---------------------------------------------------------- Table structure for table `user_info`


-CREATE TABLE IF NOT EXISTS `user_info` (
`user_id` int(7) NOT NULL,
`job` varchar(100) NOT NULL,
`school_or_collage` varchar(100) NOT NULL,
`current_city` varchar(100) NOT NULL,
`hometown` varchar(100) NOT NULL,
`class` varchar(30) NOT NULL,
`mobile_no` varchar(15) NOT NULL,
`mobile_no_priority` varchar(10) NOT NULL,
`Satus` varchar(500) NOT NULL,
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `user_info`
-INSERT INTO `user_info` (`user_id`, `job`, `school_or_collage`, `current_city`,
`hometown`, `class`, `mobile_no`, `mobile_no_priority`, `Satus`) VALUES

(1, 'Student', 'New Arts commerce & science Collage', '', '', 'TyBcs', '', '', '
Hello im coll budyy'),
(3, '', '', '', '', '', '', '', ''),
(2, '', '', '', '', '', '', '', ''),
(4, '', '', '', '', '', '', '', '');
-- ---------------------------------------------------------- Table structure for table `user_post`
-CREATE TABLE IF NOT EXISTS `user_post` (
`post_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`post_txt` text NOT NULL,
`post_pic` varchar(150) NOT NULL,
`post_time` varchar(30) NOT NULL,
`priority` varchar(8) NOT NULL,
PRIMARY KEY (`post_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
--- Dumping data for table `user_post`
-INSERT INTO `user_post` (`post_id`, `user_id`, `post_txt`, `post_pic`, `post_tim
e`, `priority`) VALUES
(1, 1, 'Join Faceback', '', '10-3-2015 10:32', 'Public'),
(2, 1, 'Hiiisd', '', '10-3-2015 10:34', 'Public'),
(3, 1, 'added a new photo.', '1.JPG', '10-3-2015 10:35', 'Public'),
(4, 3, 'Join Faceback', '', '11-3-2015 10:16', 'Public'),
(5, 2, 'Join Faceback', '', '11-3-2015 10:1', 'Public'),
(6, 2, 'b', '', '11-3-2015 17:2', 'Public'),
(8, 4, 'jke', '', '12-3-2015 10:37', 'Public');
-- ---------------------------------------------------------- Table structure for table `user_post_comment`
-CREATE TABLE IF NOT EXISTS `user_post_comment` (
`comment_id` int(7) NOT NULL AUTO_INCREMENT,
`post_id` int(7) NOT NULL,
`user_id` int(7) NOT NULL,
`comment` text NOT NULL,
PRIMARY KEY (`comment_id`),
KEY `user_id` (`user_id`),
KEY `post_id` (`post_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--- Dumping data for table `user_post_comment`
-INSERT INTO `user_post_comment` (`comment_id`, `post_id`, `user_id`, `comment`)
VALUES
(1, 3, 1, 'jjj'),

(2, 3, 1, 'jjj');
-- ---------------------------------------------------------- Table structure for table `user_post_status`
-CREATE TABLE IF NOT EXISTS `user_post_status` (
`status_id` int(7) NOT NULL AUTO_INCREMENT,
`post_id` int(7) NOT NULL,
`user_id` int(7) NOT NULL,
`status` varchar(7) NOT NULL,
PRIMARY KEY (`status_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--- Dumping data for table `user_post_status`
-INSERT INTO `user_post_status` (`status_id`, `post_id`, `user_id`, `status`) VAL
UES
(1, 2, 1, 'Like'),
(2, 3, 1, 'Like');
-- ---------------------------------------------------------- Table structure for table `user_profile_pic`
-CREATE TABLE IF NOT EXISTS `user_profile_pic` (
`profile_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`image` varchar(150) NOT NULL,
PRIMARY KEY (`profile_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `user_profile_pic`
-INSERT
(1, 1,
(2, 2,
(3, 3,
(4, 4,

INTO `user_profile_pic` (`profile_id`, `user_id`, `image`) VALUES


'aaa.JPG'),
'1111.png'),
'1.JPG'),
'111.jpg');

-- ---------------------------------------------------------- Table structure for table `user_secret_quotes`


-CREATE TABLE IF NOT EXISTS `user_secret_quotes` (
`user_id` int(7) NOT NULL,
`Question1` varchar(50) NOT NULL,
`Answer1` varchar(20) NOT NULL,

`Question2` varchar(50) NOT NULL,


`Answer2` varchar(20) NOT NULL,
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `user_secret_quotes`
-INSERT INTO `user_secret_quotes` (`user_id`, `Question1`, `Answer1`, `Question2`
, `Answer2`) VALUES
(1, 'what is best friend Name?', 'amol', 'what was your favorite food as a child
?', 'panipuri'),
(3, 'what is best friend Name?', 'aaaa', 'what was your favorite food as a child
?', 'sssss'),
(2, 'what is best friend Name?', 'amol', 'what was the last name of your first f
riend?', 'akki'),
(4, 'what is Your id No?', 'asdasdasd', 'what was the last name of your first fr
iend?', 'asdasdasdasd');
-- ---------------------------------------------------------- Table structure for table `users`
-CREATE TABLE IF NOT EXISTS `users` (
`user_id` int(7) NOT NULL AUTO_INCREMENT,
`Name` varchar(25) NOT NULL,
`Email` varchar(30) NOT NULL,
`Password` varchar(30) NOT NULL,
`Gender` varchar(6) NOT NULL,
`Birthday_Date` varchar(11) NOT NULL,
`FB_Join_Date` varchar(30) NOT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `users`
-INSERT INTO `users` (`user_id`, `Name`, `Email`, `Password`, `Gender`, `Birthday
_Date`, `FB_Join_Date`) VALUES
(1, 'amol NALANGE', 'nalangeakshay01@gmail.com', 'A46l0ve69', 'Male', '16-11-198
1', '10-3-2015 10:32'),
(2, 'sadhana nalange', 'nalange2@gmail.com', '123456', 'Male', '15-11-1982', '11
-3-2015 10:1'),
(3, 'aaaa ssss', 'nnnn@gmail.com', '123456', 'Male', '13-11-1982', '11-3-2015 10
:16'),
(4, 'ajay nalange', 'nalang@gmail.com', '123456', 'Male', '15-12-1983', '12-3-20
15 10:19');
--- Constraints for dumped tables
---- Constraints for table `feedback`
-ALTER TABLE `feedback`

ADD CONSTRAINT `feedback_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`


user_id`) ON DELETE CASCADE;
--- Constraints for table `user_cover_pic`
-ALTER TABLE `user_cover_pic`
ADD CONSTRAINT `user_cover_pic_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `use
rs` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_info`
-ALTER TABLE `user_info`
ADD CONSTRAINT `user_info_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (
`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_post`
-ALTER TABLE `user_post`
ADD CONSTRAINT `user_post_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (
`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_post_comment`
-ALTER TABLE `user_post_comment`
ADD CONSTRAINT `user_post_comment_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `
users` (`user_id`) ON DELETE CASCADE,
ADD CONSTRAINT `user_post_comment_ibfk_2` FOREIGN KEY (`post_id`) REFERENCES `
user_post` (`post_id`) ON DELETE CASCADE;
--- Constraints for table `user_post_status`
-ALTER TABLE `user_post_status`
ADD CONSTRAINT `user_post_status_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `u
sers` (`user_id`) ON DELETE CASCADE,
ADD CONSTRAINT `user_post_status_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `u
ser_post` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_profile_pic`
-ALTER TABLE `user_profile_pic`
ADD CONSTRAINT `user_profile_pic_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `u
sers` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_secret_quotes`
-ALTER TABLE `user_secret_quotes`
ADD CONSTRAINT `user_secret_quotes_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES
`users` (`user_id`) ON DELETE CASCADE;
/*!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 */;
-- phpMyAdmin SQL Dump

--------

version 3.5.1
http://www.phpmyadmin.net
Host: localhost
Generation Time: Mar 12, 2015 at 08:14 AM
Server version: 5.5.24-log
PHP Version: 5.4.3

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101
/*!40101
/*!40101
/*!40101

SET
SET
SET
SET

@OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
@OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
NAMES utf8 */;

--- Database: `faceback`


-CREATE DATABASE `faceback` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_c
i;
USE `faceback`;
-- ---------------------------------------------------------- Table structure for table `admin_info`
-CREATE TABLE IF NOT EXISTS `admin_info` (
`Username` varchar(11) DEFAULT NULL,
`Password` varchar(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `admin_info`
-INSERT INTO `admin_info` (`Username`, `Password`) VALUES
('akshay', 'akshay');
-- ---------------------------------------------------------- Table structure for table `feedback`
-CREATE TABLE IF NOT EXISTS `feedback` (
`feedback_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`feedback_txt` varchar(120) NOT NULL,
`star` varchar(1) NOT NULL,
`Date` varchar(30) NOT NULL,
PRIMARY KEY (`feedback_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--- Dumping data for table `feedback`

-INSERT INTO `feedback` (`feedback_id`, `user_id`, `feedback_txt`, `star`, `Date`


) VALUES
(1, 1, 'gug', '3', '10-3-2015 10:37');
-- ---------------------------------------------------------- Table structure for table `upload`
-CREATE TABLE IF NOT EXISTS `upload` (
`id` int(11) NOT NULL,
`name` varchar(500) NOT NULL,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `upload`
-INSERT INTO `upload` (`id`, `name`) VALUES
(0, '3.JPG'),
(0, 'Button-Close-icon.png'),
(0, 'Desert.jpg'),
(0, 'jdbc-create-tables.pdf');
-- ---------------------------------------------------------- Table structure for table `user_cover_pic`
-CREATE TABLE IF NOT EXISTS `user_cover_pic` (
`cover_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`image` varchar(150) NOT NULL,
PRIMARY KEY (`cover_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `user_cover_pic`
-INSERT
(1, 1,
(2, 1,
(3, 2,
(4, 2,

INTO `user_cover_pic` (`cover_id`, `user_id`, `image`) VALUES


'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg');

-- ---------------------------------------------------------- Table structure for table `user_info`


-CREATE TABLE IF NOT EXISTS `user_info` (
`user_id` int(7) NOT NULL,

`job` varchar(100) NOT NULL,


`school_or_collage` varchar(100) NOT NULL,
`current_city` varchar(100) NOT NULL,
`hometown` varchar(100) NOT NULL,
`class` varchar(30) NOT NULL,
`mobile_no` varchar(15) NOT NULL,
`mobile_no_priority` varchar(10) NOT NULL,
`Satus` varchar(500) NOT NULL,
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `user_info`
-INSERT INTO `user_info` (`user_id`, `job`, `school_or_collage`, `current_city`,
`hometown`, `class`, `mobile_no`, `mobile_no_priority`, `Satus`) VALUES
(1, 'Student', 'New Arts commerce & science Collage', '', '', 'TyBcs', '', '', '
Hello im coll budyy'),
(3, '', '', '', '', '', '', '', ''),
(2, '', '', '', '', '', '', '', ''),
(4, '', '', '', '', '', '', '', '');
-- ---------------------------------------------------------- Table structure for table `user_post`
-CREATE TABLE IF NOT EXISTS `user_post` (
`post_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`post_txt` text NOT NULL,
`post_pic` varchar(150) NOT NULL,
`post_time` varchar(30) NOT NULL,
`priority` varchar(8) NOT NULL,
PRIMARY KEY (`post_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
--- Dumping data for table `user_post`
-INSERT INTO `user_post` (`post_id`, `user_id`, `post_txt`, `post_pic`, `post_tim
e`, `priority`) VALUES
(1, 1, 'Join Faceback', '', '10-3-2015 10:32', 'Public'),
(2, 1, 'Hiiisd', '', '10-3-2015 10:34', 'Public'),
(3, 1, 'added a new photo.', '1.JPG', '10-3-2015 10:35', 'Public'),
(4, 3, 'Join Faceback', '', '11-3-2015 10:16', 'Public'),
(5, 2, 'Join Faceback', '', '11-3-2015 10:1', 'Public'),
(6, 2, 'b', '', '11-3-2015 17:2', 'Public'),
(8, 4, 'jke', '', '12-3-2015 10:37', 'Public');
-- ---------------------------------------------------------- Table structure for table `user_post_comment`
--

CREATE TABLE IF NOT EXISTS `user_post_comment` (


`comment_id` int(7) NOT NULL AUTO_INCREMENT,
`post_id` int(7) NOT NULL,
`user_id` int(7) NOT NULL,
`comment` text NOT NULL,
PRIMARY KEY (`comment_id`),
KEY `user_id` (`user_id`),
KEY `post_id` (`post_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--- Dumping data for table `user_post_comment`
-INSERT INTO `user_post_comment` (`comment_id`, `post_id`, `user_id`, `comment`)
VALUES
(1, 3, 1, 'jjj'),
(2, 3, 1, 'jjj');
-- ---------------------------------------------------------- Table structure for table `user_post_status`
-CREATE TABLE IF NOT EXISTS `user_post_status` (
`status_id` int(7) NOT NULL AUTO_INCREMENT,
`post_id` int(7) NOT NULL,
`user_id` int(7) NOT NULL,
`status` varchar(7) NOT NULL,
PRIMARY KEY (`status_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--- Dumping data for table `user_post_status`
-INSERT INTO `user_post_status` (`status_id`, `post_id`, `user_id`, `status`) VAL
UES
(1, 2, 1, 'Like'),
(2, 3, 1, 'Like');
-- ---------------------------------------------------------- Table structure for table `user_profile_pic`
-CREATE TABLE IF NOT EXISTS `user_profile_pic` (
`profile_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`image` varchar(150) NOT NULL,
PRIMARY KEY (`profile_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `user_profile_pic`
--

INSERT
(1, 1,
(2, 2,
(3, 3,
(4, 4,

INTO `user_profile_pic` (`profile_id`, `user_id`, `image`) VALUES


'aaa.JPG'),
'1111.png'),
'1.JPG'),
'111.jpg');

-- ---------------------------------------------------------- Table structure for table `user_secret_quotes`


-CREATE TABLE IF NOT EXISTS `user_secret_quotes` (
`user_id` int(7) NOT NULL,
`Question1` varchar(50) NOT NULL,
`Answer1` varchar(20) NOT NULL,
`Question2` varchar(50) NOT NULL,
`Answer2` varchar(20) NOT NULL,
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `user_secret_quotes`
-INSERT INTO `user_secret_quotes` (`user_id`, `Question1`, `Answer1`, `Question2`
, `Answer2`) VALUES
(1, 'what is best friend Name?', 'amol', 'what was your favorite food as a child
?', 'panipuri'),
(3, 'what is best friend Name?', 'aaaa', 'what was your favorite food as a child
?', 'sssss'),
(2, 'what is best friend Name?', 'amol', 'what was the last name of your first f
riend?', 'akki'),
(4, 'what is Your id No?', 'asdasdasd', 'what was the last name of your first fr
iend?', 'asdasdasdasd');
-- ---------------------------------------------------------- Table structure for table `users`
-CREATE TABLE IF NOT EXISTS `users` (
`user_id` int(7) NOT NULL AUTO_INCREMENT,
`Name` varchar(25) NOT NULL,
`Email` varchar(30) NOT NULL,
`Password` varchar(30) NOT NULL,
`Gender` varchar(6) NOT NULL,
`Birthday_Date` varchar(11) NOT NULL,
`FB_Join_Date` varchar(30) NOT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `users`
-INSERT INTO `users` (`user_id`, `Name`, `Email`, `Password`, `Gender`, `Birthday
_Date`, `FB_Join_Date`) VALUES

(1, 'amol NALANGE', 'nalangeakshay01@gmail.com', 'A46l0ve69', 'Male', '16-11-198


1', '10-3-2015 10:32'),
(2, 'sadhana nalange', 'nalange2@gmail.com', '123456', 'Male', '15-11-1982', '11
-3-2015 10:1'),
(3, 'aaaa ssss', 'nnnn@gmail.com', '123456', 'Male', '13-11-1982', '11-3-2015 10
:16'),
(4, 'ajay nalange', 'nalang@gmail.com', '123456', 'Male', '15-12-1983', '12-3-20
15 10:19');
--- Constraints for dumped tables
---- Constraints for table `feedback`
-ALTER TABLE `feedback`
ADD CONSTRAINT `feedback_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`
user_id`) ON DELETE CASCADE;
--- Constraints for table `user_cover_pic`
-ALTER TABLE `user_cover_pic`
ADD CONSTRAINT `user_cover_pic_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `use
rs` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_info`
-ALTER TABLE `user_info`
ADD CONSTRAINT `user_info_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (
`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_post`
-ALTER TABLE `user_post`
ADD CONSTRAINT `user_post_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (
`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_post_comment`
-ALTER TABLE `user_post_comment`
ADD CONSTRAINT `user_post_comment_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `
users` (`user_id`) ON DELETE CASCADE,
ADD CONSTRAINT `user_post_comment_ibfk_2` FOREIGN KEY (`post_id`) REFERENCES `
user_post` (`post_id`) ON DELETE CASCADE;
--- Constraints for table `user_post_status`
-ALTER TABLE `user_post_status`
ADD CONSTRAINT `user_post_status_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `u
sers` (`user_id`) ON DELETE CASCADE,
ADD CONSTRAINT `user_post_status_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `u
ser_post` (`user_id`) ON DELETE CASCADE;
--

-- Constraints for table `user_profile_pic`


-ALTER TABLE `user_profile_pic`
ADD CONSTRAINT `user_profile_pic_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `u
sers` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_secret_quotes`
-ALTER TABLE `user_secret_quotes`
ADD CONSTRAINT `user_secret_quotes_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES
`users` (`user_id`) ON DELETE CASCADE;
/*!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 */;
-- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--- Host: localhost
-- Generation Time: Mar 12, 2015 at 08:14 AM
-- Server version: 5.5.24-log
-- PHP Version: 5.4.3
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101
/*!40101
/*!40101
/*!40101

SET
SET
SET
SET

@OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
@OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
NAMES utf8 */;

--- Database: `faceback`


-CREATE DATABASE `faceback` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_c
i;
USE `faceback`;
-- ---------------------------------------------------------- Table structure for table `admin_info`
-CREATE TABLE IF NOT EXISTS `admin_info` (
`Username` varchar(11) DEFAULT NULL,
`Password` varchar(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `admin_info`
-INSERT INTO `admin_info` (`Username`, `Password`) VALUES
('akshay', 'akshay');
-- --------------------------------------------------------

--- Table structure for table `feedback`


-CREATE TABLE IF NOT EXISTS `feedback` (
`feedback_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`feedback_txt` varchar(120) NOT NULL,
`star` varchar(1) NOT NULL,
`Date` varchar(30) NOT NULL,
PRIMARY KEY (`feedback_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--- Dumping data for table `feedback`
-INSERT INTO `feedback` (`feedback_id`, `user_id`, `feedback_txt`, `star`, `Date`
) VALUES
(1, 1, 'gug', '3', '10-3-2015 10:37');
-- ---------------------------------------------------------- Table structure for table `upload`
-CREATE TABLE IF NOT EXISTS `upload` (
`id` int(11) NOT NULL,
`name` varchar(500) NOT NULL,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `upload`
-INSERT INTO `upload` (`id`, `name`) VALUES
(0, '3.JPG'),
(0, 'Button-Close-icon.png'),
(0, 'Desert.jpg'),
(0, 'jdbc-create-tables.pdf');
-- ---------------------------------------------------------- Table structure for table `user_cover_pic`
-CREATE TABLE IF NOT EXISTS `user_cover_pic` (
`cover_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`image` varchar(150) NOT NULL,
PRIMARY KEY (`cover_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--

-- Dumping data for table `user_cover_pic`


-INSERT
(1, 1,
(2, 1,
(3, 2,
(4, 2,

INTO `user_cover_pic` (`cover_id`, `user_id`, `image`) VALUES


'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg'),
'ba6f0dd4-3618-4e62-93f9-42da0ac9e3f3_4.jpg');

-- ---------------------------------------------------------- Table structure for table `user_info`


-CREATE TABLE IF NOT EXISTS `user_info` (
`user_id` int(7) NOT NULL,
`job` varchar(100) NOT NULL,
`school_or_collage` varchar(100) NOT NULL,
`current_city` varchar(100) NOT NULL,
`hometown` varchar(100) NOT NULL,
`class` varchar(30) NOT NULL,
`mobile_no` varchar(15) NOT NULL,
`mobile_no_priority` varchar(10) NOT NULL,
`Satus` varchar(500) NOT NULL,
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `user_info`
-INSERT INTO `user_info` (`user_id`, `job`, `school_or_collage`, `current_city`,
`hometown`, `class`, `mobile_no`, `mobile_no_priority`, `Satus`) VALUES
(1, 'Student', 'New Arts commerce & science Collage', '', '', 'TyBcs', '', '', '
Hello im coll budyy'),
(3, '', '', '', '', '', '', '', ''),
(2, '', '', '', '', '', '', '', ''),
(4, '', '', '', '', '', '', '', '');
-- ---------------------------------------------------------- Table structure for table `user_post`
-CREATE TABLE IF NOT EXISTS `user_post` (
`post_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`post_txt` text NOT NULL,
`post_pic` varchar(150) NOT NULL,
`post_time` varchar(30) NOT NULL,
`priority` varchar(8) NOT NULL,
PRIMARY KEY (`post_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
--- Dumping data for table `user_post`
--

INSERT INTO `user_post` (`post_id`, `user_id`, `post_txt`, `post_pic`, `post_tim


e`, `priority`) VALUES
(1, 1, 'Join Faceback', '', '10-3-2015 10:32', 'Public'),
(2, 1, 'Hiiisd', '', '10-3-2015 10:34', 'Public'),
(3, 1, 'added a new photo.', '1.JPG', '10-3-2015 10:35', 'Public'),
(4, 3, 'Join Faceback', '', '11-3-2015 10:16', 'Public'),
(5, 2, 'Join Faceback', '', '11-3-2015 10:1', 'Public'),
(6, 2, 'b', '', '11-3-2015 17:2', 'Public'),
(8, 4, 'jke', '', '12-3-2015 10:37', 'Public');
-- ---------------------------------------------------------- Table structure for table `user_post_comment`
-CREATE TABLE IF NOT EXISTS `user_post_comment` (
`comment_id` int(7) NOT NULL AUTO_INCREMENT,
`post_id` int(7) NOT NULL,
`user_id` int(7) NOT NULL,
`comment` text NOT NULL,
PRIMARY KEY (`comment_id`),
KEY `user_id` (`user_id`),
KEY `post_id` (`post_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--- Dumping data for table `user_post_comment`
-INSERT INTO `user_post_comment` (`comment_id`, `post_id`, `user_id`, `comment`)
VALUES
(1, 3, 1, 'jjj'),
(2, 3, 1, 'jjj');
-- ---------------------------------------------------------- Table structure for table `user_post_status`
-CREATE TABLE IF NOT EXISTS `user_post_status` (
`status_id` int(7) NOT NULL AUTO_INCREMENT,
`post_id` int(7) NOT NULL,
`user_id` int(7) NOT NULL,
`status` varchar(7) NOT NULL,
PRIMARY KEY (`status_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--- Dumping data for table `user_post_status`
-INSERT INTO `user_post_status` (`status_id`, `post_id`, `user_id`, `status`) VAL
UES
(1, 2, 1, 'Like'),
(2, 3, 1, 'Like');

-- ---------------------------------------------------------- Table structure for table `user_profile_pic`


-CREATE TABLE IF NOT EXISTS `user_profile_pic` (
`profile_id` int(7) NOT NULL AUTO_INCREMENT,
`user_id` int(7) NOT NULL,
`image` varchar(150) NOT NULL,
PRIMARY KEY (`profile_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `user_profile_pic`
-INSERT
(1, 1,
(2, 2,
(3, 3,
(4, 4,

INTO `user_profile_pic` (`profile_id`, `user_id`, `image`) VALUES


'aaa.JPG'),
'1111.png'),
'1.JPG'),
'111.jpg');

-- ---------------------------------------------------------- Table structure for table `user_secret_quotes`


-CREATE TABLE IF NOT EXISTS `user_secret_quotes` (
`user_id` int(7) NOT NULL,
`Question1` varchar(50) NOT NULL,
`Answer1` varchar(20) NOT NULL,
`Question2` varchar(50) NOT NULL,
`Answer2` varchar(20) NOT NULL,
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--- Dumping data for table `user_secret_quotes`
-INSERT INTO `user_secret_quotes` (`user_id`, `Question1`, `Answer1`, `Question2`
, `Answer2`) VALUES
(1, 'what is best friend Name?', 'amol', 'what was your favorite food as a child
?', 'panipuri'),
(3, 'what is best friend Name?', 'aaaa', 'what was your favorite food as a child
?', 'sssss'),
(2, 'what is best friend Name?', 'amol', 'what was the last name of your first f
riend?', 'akki'),
(4, 'what is Your id No?', 'asdasdasd', 'what was the last name of your first fr
iend?', 'asdasdasdasd');
-- ---------------------------------------------------------- Table structure for table `users`
--

CREATE TABLE IF NOT EXISTS `users` (


`user_id` int(7) NOT NULL AUTO_INCREMENT,
`Name` varchar(25) NOT NULL,
`Email` varchar(30) NOT NULL,
`Password` varchar(30) NOT NULL,
`Gender` varchar(6) NOT NULL,
`Birthday_Date` varchar(11) NOT NULL,
`FB_Join_Date` varchar(30) NOT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--- Dumping data for table `users`
-INSERT INTO `users` (`user_id`, `Name`, `Email`, `Password`, `Gender`, `Birthday
_Date`, `FB_Join_Date`) VALUES
(1, 'amol NALANGE', 'nalangeakshay01@gmail.com', 'A46l0ve69', 'Male', '16-11-198
1', '10-3-2015 10:32'),
(2, 'sadhana nalange', 'nalange2@gmail.com', '123456', 'Male', '15-11-1982', '11
-3-2015 10:1'),
(3, 'aaaa ssss', 'nnnn@gmail.com', '123456', 'Male', '13-11-1982', '11-3-2015 10
:16'),
(4, 'ajay nalange', 'nalang@gmail.com', '123456', 'Male', '15-12-1983', '12-3-20
15 10:19');
--- Constraints for dumped tables
---- Constraints for table `feedback`
-ALTER TABLE `feedback`
ADD CONSTRAINT `feedback_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`
user_id`) ON DELETE CASCADE;
--- Constraints for table `user_cover_pic`
-ALTER TABLE `user_cover_pic`
ADD CONSTRAINT `user_cover_pic_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `use
rs` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_info`
-ALTER TABLE `user_info`
ADD CONSTRAINT `user_info_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (
`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_post`
-ALTER TABLE `user_post`
ADD CONSTRAINT `user_post_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (
`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_post_comment`

-ALTER TABLE `user_post_comment`


ADD CONSTRAINT `user_post_comment_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `
users` (`user_id`) ON DELETE CASCADE,
ADD CONSTRAINT `user_post_comment_ibfk_2` FOREIGN KEY (`post_id`) REFERENCES `
user_post` (`post_id`) ON DELETE CASCADE;
--- Constraints for table `user_post_status`
-ALTER TABLE `user_post_status`
ADD CONSTRAINT `user_post_status_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `u
sers` (`user_id`) ON DELETE CASCADE,
ADD CONSTRAINT `user_post_status_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `u
ser_post` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_profile_pic`
-ALTER TABLE `user_profile_pic`
ADD CONSTRAINT `user_profile_pic_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `u
sers` (`user_id`) ON DELETE CASCADE;
--- Constraints for table `user_secret_quotes`
-ALTER TABLE `user_secret_quotes`
ADD CONSTRAINT `user_secret_quotes_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES
`users` (`user_id`) ON DELETE CASCADE;
/*!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 */;

Potrebbero piacerti anche