Created
May 5, 2011 22:17
-
-
Save mraible/958091 to your computer and use it in GitHub Desktop.
Create AppFuse DB in MySQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- MySQL dump 10.13 Distrib 5.5.10, for osx10.6 (i386) | |
-- | |
-- Host: localhost Database: appfuse | |
-- ------------------------------------------------------ | |
-- Server version 5.5.10 | |
/*!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 `app_user` | |
-- | |
DROP TABLE IF EXISTS `app_user`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `app_user` ( | |
`id` bigint(20) NOT NULL AUTO_INCREMENT, | |
`account_expired` bit(1) NOT NULL, | |
`account_locked` bit(1) NOT NULL, | |
`address` varchar(150) DEFAULT NULL, | |
`city` varchar(50) DEFAULT NULL, | |
`country` varchar(100) DEFAULT NULL, | |
`postal_code` varchar(15) DEFAULT NULL, | |
`province` varchar(100) DEFAULT NULL, | |
`credentials_expired` bit(1) NOT NULL, | |
`email` varchar(255) NOT NULL, | |
`account_enabled` bit(1) DEFAULT NULL, | |
`first_name` varchar(50) NOT NULL, | |
`last_name` varchar(50) NOT NULL, | |
`password` varchar(255) NOT NULL, | |
`password_hint` varchar(255) DEFAULT NULL, | |
`phone_number` varchar(255) DEFAULT NULL, | |
`username` varchar(50) NOT NULL, | |
`version` int(11) DEFAULT NULL, | |
`website` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `email` (`email`), | |
UNIQUE KEY `username` (`username`) | |
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Dumping data for table `app_user` | |
-- | |
LOCK TABLES `app_user` WRITE; | |
/*!40000 ALTER TABLE `app_user` DISABLE KEYS */; | |
INSERT INTO `app_user` VALUES (-2,'\0','\0','','Denver','US','80210','CO','\0','matt@raibledesigns.com','','Matt','Raible','d033e22ae348aeb5660fc2140aec35850c4da997','Not a female kitty.','','admin',1,'http://raibledesigns.com'),(-1,'\0','\0','new address','Denver','US','80210','CO','\0','matt_raible@yahoo.com','','Tomcat','User','12dea96fec20593566ab75692c9949596833adc9','A male kitty.','','user',2,'http://tomcat.apache.org'); | |
/*!40000 ALTER TABLE `app_user` ENABLE KEYS */; | |
UNLOCK TABLES; | |
-- | |
-- Table structure for table `role` | |
-- | |
DROP TABLE IF EXISTS `role`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `role` ( | |
`id` bigint(20) NOT NULL AUTO_INCREMENT, | |
`description` varchar(64) DEFAULT NULL, | |
`name` varchar(20) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Dumping data for table `role` | |
-- | |
LOCK TABLES `role` WRITE; | |
/*!40000 ALTER TABLE `role` DISABLE KEYS */; | |
INSERT INTO `role` VALUES (-2,'Default role for all Users','ROLE_USER'),(-1,'Administrator role (can edit Users)','ROLE_ADMIN'); | |
/*!40000 ALTER TABLE `role` ENABLE KEYS */; | |
UNLOCK TABLES; | |
-- | |
-- Table structure for table `user_role` | |
-- | |
DROP TABLE IF EXISTS `user_role`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `user_role` ( | |
`user_id` bigint(20) NOT NULL, | |
`role_id` bigint(20) NOT NULL, | |
PRIMARY KEY (`user_id`,`role_id`), | |
KEY `FK143BF46A4FD90D75` (`role_id`), | |
KEY `FK143BF46AF503D155` (`user_id`), | |
CONSTRAINT `FK143BF46AF503D155` FOREIGN KEY (`user_id`) REFERENCES `app_user` (`id`), | |
CONSTRAINT `FK143BF46A4FD90D75` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Dumping data for table `user_role` | |
-- | |
LOCK TABLES `user_role` WRITE; | |
/*!40000 ALTER TABLE `user_role` DISABLE KEYS */; | |
INSERT INTO `user_role` VALUES (-1,-2),(-2,-1); | |
/*!40000 ALTER TABLE `user_role` ENABLE KEYS */; | |
UNLOCK TABLES; | |
/*!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 */; | |
-- Dump completed on 2011-05-05 16:16:32 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment