-- MySQL dump 10.10 -- -- Host: localhost Database: test -- ------------------------------------------------------ -- Server version 5.0.24a-community-nt /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `user` -- DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `ID` int(11) NOT NULL auto_increment, `FIRSTNAME` varchar(255) default NULL, `LASTNAME` varchar(255) default NULL, `COUNTRYCODE` varchar(2) default NULL, `EMAILADDRESS` varchar(255) default NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `user` -- /*!40000 ALTER TABLE `user` DISABLE KEYS */; LOCK TABLES `user` WRITE; INSERT INTO `user` VALUES (1,'John','Doe','US','jdoe@myeclipseide.com'),(2,'Ryan','Michaels','US','rmichaels@myeclipseide.com'),(3,'Laura','Winn','IT','lwinn@myeclipseide.com'); UNLOCK TABLES; /*!40000 ALTER TABLE `user` ENABLE KEYS */; -- -- Table structure for table `user_relationship` -- DROP TABLE IF EXISTS `user_relationship`; CREATE TABLE `user_relationship` ( `first_user_id` int(11) NOT NULL COMMENT 'ID of first user.', `second_user_id` int(11) NOT NULL COMMENT 'ID of second user.', PRIMARY KEY (`first_user_id`,`second_user_id`), KEY `first_user_fk` (`first_user_id`), KEY `second_user_fk` (`second_user_id`), CONSTRAINT `second_user_fk` FOREIGN KEY (`second_user_id`) REFERENCES `user` (`ID`), CONSTRAINT `first_user_fk` FOREIGN KEY (`first_user_id`) REFERENCES `user` (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `user_relationship` -- /*!40000 ALTER TABLE `user_relationship` DISABLE KEYS */; LOCK TABLES `user_relationship` WRITE; UNLOCK TABLES; /*!40000 ALTER TABLE `user_relationship` ENABLE KEYS */; -- -- Table structure for table `useraccess` -- DROP TABLE IF EXISTS `useraccess`; CREATE TABLE `useraccess` ( `ID` int(11) NOT NULL auto_increment, `USERID` int(11) default NULL, `IPADDRESS` varchar(255) NOT NULL, PRIMARY KEY (`ID`), KEY `FK_userid` (`USERID`), CONSTRAINT `FK_userid` FOREIGN KEY (`USERID`) REFERENCES `user` (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `useraccess` -- /*!40000 ALTER TABLE `useraccess` DISABLE KEYS */; LOCK TABLES `useraccess` WRITE; INSERT INTO `useraccess` VALUES (1,1,'213.45.113.27'),(2,2,'64.22.144.13'),(3,2,'64.22.144.13'),(4,3,'128.191.22.133'); UNLOCK TABLES; /*!40000 ALTER TABLE `useraccess` ENABLE KEYS */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!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 */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;