Skip to content

Instantly share code, notes, and snippets.

@mcloide

mcloide/caribbean.sql

Last active Mar 22, 2016
Embed
What would you like to do?
Caribbean DB Structure
-- MySQL dump 10.13 Distrib 5.6.28, for Linux (x86_64)
--
-- Host: localhost Database: caribbean
-- ------------------------------------------------------
-- Server version 5.6.28
/*!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 `piratee_login`
--
DROP TABLE IF EXISTS `piratee_login`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `piratee_login` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`modified_date` timestamp NULL DEFAULT NULL,
`piratee_id` int(11) NOT NULL,
`ship_in` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`ship_out` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `piratee_login_piratee` (`piratee_id`),
CONSTRAINT `piratee_login_ibfk_1` FOREIGN KEY (`piratee_id`) REFERENCES `piratees` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `piratee_login`
--
LOCK TABLES `piratee_login` WRITE;
/*!40000 ALTER TABLE `piratee_login` DISABLE KEYS */;
INSERT INTO `piratee_login` VALUES (1,'2016-03-22 01:14:53','2016-03-22 01:14:53',1,'0000-00-00 00:00:00','2016-03-22 01:14:53'),(2,'2016-03-22 01:15:07','2016-03-22 01:15:07',1,'2016-03-22 01:15:07','2016-03-22 01:15:07'),(3,'2016-03-22 01:15:17','2016-03-22 01:15:17',2,'2016-03-22 01:15:17','2016-03-22 01:15:17');
/*!40000 ALTER TABLE `piratee_login` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `piratees`
--
DROP TABLE IF EXISTS `piratees`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `piratees` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`modified_date` timestamp NULL DEFAULT NULL,
`start_date` date NOT NULL,
`fname` varchar(64) DEFAULT NULL,
`lname` varchar(64) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `piratees`
--
LOCK TABLES `piratees` WRITE;
/*!40000 ALTER TABLE `piratees` DISABLE KEYS */;
INSERT INTO `piratees` VALUES (1,'0000-00-00 00:00:00',NULL,'0000-00-00','Captain Jack','Sparrow'),(2,'0000-00-00 00:00:00',NULL,'0000-00-00','Captain','Barbosa');
/*!40000 ALTER TABLE `piratees` 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 2016-03-22 2:08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.