271 lines
6.7 KiB
SQL
271 lines
6.7 KiB
SQL
-- MySQL Administrator dump 1.4
|
|
--
|
|
-- ------------------------------------------------------
|
|
-- Server version 4.1.14-max
|
|
|
|
|
|
/*!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 */;
|
|
|
|
/*!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' */;
|
|
|
|
|
|
--
|
|
-- Create schema test
|
|
--
|
|
|
|
CREATE DATABASE /*!32312 IF NOT EXISTS*/ test;
|
|
USE test;
|
|
|
|
--
|
|
-- Table structure for table `test`.`class_a`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `class_a`;
|
|
CREATE TABLE `class_a` (
|
|
`ID` int(10) unsigned NOT NULL auto_increment,
|
|
`NAME` varchar(50) default NULL,
|
|
`B_ID` int(10) default NULL,
|
|
`C_ID` int(10) default NULL,
|
|
PRIMARY KEY (`ID`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='ClassA';
|
|
|
|
--
|
|
-- Dumping data for table `test`.`class_a`
|
|
--
|
|
|
|
/*!40000 ALTER TABLE `class_a` DISABLE KEYS */;
|
|
/*!40000 ALTER TABLE `class_a` ENABLE KEYS */;
|
|
|
|
|
|
--
|
|
-- Table structure for table `test`.`class_a_thing`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `class_a_thing`;
|
|
CREATE TABLE `class_a_thing` (
|
|
`A_ID` int(10) unsigned NOT NULL default '0',
|
|
`THING_ID` int(10) unsigned NOT NULL default '0',
|
|
PRIMARY KEY (`A_ID`,`THING_ID`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='ClassAThing';
|
|
|
|
--
|
|
-- Dumping data for table `test`.`class_a_thing`
|
|
--
|
|
|
|
/*!40000 ALTER TABLE `class_a_thing` DISABLE KEYS */;
|
|
/*!40000 ALTER TABLE `class_a_thing` ENABLE KEYS */;
|
|
|
|
|
|
--
|
|
-- Table structure for table `test`.`class_b`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `class_b`;
|
|
CREATE TABLE `class_b` (
|
|
`ID` int(10) unsigned NOT NULL auto_increment,
|
|
`NAME` varchar(50) default NULL,
|
|
PRIMARY KEY (`ID`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='ClassB';
|
|
|
|
--
|
|
-- Dumping data for table `test`.`class_b`
|
|
--
|
|
|
|
/*!40000 ALTER TABLE `class_b` DISABLE KEYS */;
|
|
/*!40000 ALTER TABLE `class_b` ENABLE KEYS */;
|
|
|
|
|
|
--
|
|
-- Table structure for table `test`.`class_c`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `class_c`;
|
|
CREATE TABLE `class_c` (
|
|
`ID` int(10) unsigned NOT NULL auto_increment,
|
|
`NAME` varchar(50) default NULL,
|
|
PRIMARY KEY (`ID`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='ClassC';
|
|
|
|
--
|
|
-- Dumping data for table `test`.`class_c`
|
|
--
|
|
|
|
/*!40000 ALTER TABLE `class_c` DISABLE KEYS */;
|
|
/*!40000 ALTER TABLE `class_c` ENABLE KEYS */;
|
|
|
|
|
|
--
|
|
-- Table structure for table `test`.`class_d`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `class_d`;
|
|
CREATE TABLE `class_d` (
|
|
`ID` int(10) unsigned NOT NULL auto_increment,
|
|
`NAME` varchar(50) default NULL,
|
|
`A_ID` int(10) default NULL,
|
|
PRIMARY KEY (`ID`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='ClassD';
|
|
|
|
--
|
|
-- Dumping data for table `test`.`class_d`
|
|
--
|
|
|
|
/*!40000 ALTER TABLE `class_d` DISABLE KEYS */;
|
|
/*!40000 ALTER TABLE `class_d` ENABLE KEYS */;
|
|
|
|
|
|
--
|
|
-- Table structure for table `test`.`employee`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `employee`;
|
|
CREATE TABLE `employee` (
|
|
`ID` int(10) unsigned NOT NULL auto_increment,
|
|
`NAME` varchar(50) default NULL,
|
|
PRIMARY KEY (`ID`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Employee';
|
|
|
|
--
|
|
-- Dumping data for table `test`.`employee`
|
|
--
|
|
|
|
/*!40000 ALTER TABLE `employee` DISABLE KEYS */;
|
|
INSERT INTO `employee` VALUES (23,'Wynne Crisman'),
|
|
(24,'Jeff Miller');
|
|
/*!40000 ALTER TABLE `employee` ENABLE KEYS */;
|
|
|
|
|
|
--
|
|
-- Table structure for table `test`.`employee_employer_map`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `employee_employer_map`;
|
|
CREATE TABLE `employee_employer_map` (
|
|
`EMPLOYEE_ID` int(10) unsigned NOT NULL default '0',
|
|
`EMPLOYER_ID` int(10) unsigned NOT NULL default '0',
|
|
PRIMARY KEY (`EMPLOYEE_ID`,`EMPLOYER_ID`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='EmployeeEmployerMap';
|
|
|
|
--
|
|
-- Dumping data for table `test`.`employee_employer_map`
|
|
--
|
|
|
|
/*!40000 ALTER TABLE `employee_employer_map` DISABLE KEYS */;
|
|
INSERT INTO `employee_employer_map` VALUES (23,18),
|
|
(24,18);
|
|
/*!40000 ALTER TABLE `employee_employer_map` ENABLE KEYS */;
|
|
|
|
|
|
--
|
|
-- Table structure for table `test`.`employer`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `employer`;
|
|
CREATE TABLE `employer` (
|
|
`ID` int(10) unsigned NOT NULL auto_increment,
|
|
`NAME` varchar(50) default NULL,
|
|
`EMPLOYEE_COUNT` int(11) default NULL,
|
|
PRIMARY KEY (`ID`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Employer';
|
|
|
|
--
|
|
-- Dumping data for table `test`.`employer`
|
|
--
|
|
|
|
/*!40000 ALTER TABLE `employer` DISABLE KEYS */;
|
|
INSERT INTO `employer` VALUES (18,'Declarative Engineering LLC',2);
|
|
/*!40000 ALTER TABLE `employer` ENABLE KEYS */;
|
|
|
|
|
|
--
|
|
-- Table structure for table `test`.`gadget`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `gadget`;
|
|
CREATE TABLE `gadget` (
|
|
`ID` int(10) unsigned NOT NULL auto_increment,
|
|
`NAME` varchar(50) default NULL,
|
|
`A_ID` int(10) default NULL,
|
|
PRIMARY KEY (`ID`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Gadget';
|
|
|
|
--
|
|
-- Dumping data for table `test`.`gadget`
|
|
--
|
|
|
|
/*!40000 ALTER TABLE `gadget` DISABLE KEYS */;
|
|
/*!40000 ALTER TABLE `gadget` ENABLE KEYS */;
|
|
|
|
|
|
--
|
|
-- Table structure for table `test`.`test_object`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `test_object`;
|
|
CREATE TABLE `test_object` (
|
|
`ID` int(10) unsigned NOT NULL auto_increment,
|
|
`NUMBER` int(10) unsigned NOT NULL default '0',
|
|
`TEXT` varchar(30) NOT NULL default 'text',
|
|
`FIXED_SIZE_DATA` tinyblob,
|
|
PRIMARY KEY (`ID`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Test Object Table';
|
|
|
|
--
|
|
-- Dumping data for table `test`.`test_object`
|
|
--
|
|
|
|
/*!40000 ALTER TABLE `test_object` DISABLE KEYS */;
|
|
/*!40000 ALTER TABLE `test_object` ENABLE KEYS */;
|
|
|
|
|
|
--
|
|
-- Table structure for table `test`.`thing`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `thing`;
|
|
CREATE TABLE `thing` (
|
|
`ID` int(10) unsigned NOT NULL auto_increment,
|
|
`NAME` varchar(50) default NULL,
|
|
PRIMARY KEY (`ID`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Thing';
|
|
|
|
--
|
|
-- Dumping data for table `test`.`thing`
|
|
--
|
|
|
|
/*!40000 ALTER TABLE `thing` DISABLE KEYS */;
|
|
/*!40000 ALTER TABLE `thing` ENABLE KEYS */;
|
|
|
|
|
|
--
|
|
-- Table structure for table `test`.`widget`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `widget`;
|
|
CREATE TABLE `widget` (
|
|
`ID` int(10) unsigned NOT NULL auto_increment,
|
|
`NAME` varchar(50) default NULL,
|
|
`A_ID` int(10) default NULL,
|
|
PRIMARY KEY (`ID`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Widget';
|
|
|
|
--
|
|
-- Dumping data for table `test`.`widget`
|
|
--
|
|
|
|
/*!40000 ALTER TABLE `widget` DISABLE KEYS */;
|
|
/*!40000 ALTER TABLE `widget` ENABLE KEYS */;
|
|
|
|
/*!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 */;
|
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|