-- MySQL Administrator dump 1.4 -- -- ------------------------------------------------------ -- Server version 5.0.22-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 */; /*!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 stitch -- CREATE DATABASE /*!32312 IF NOT EXISTS*/ stitch; USE stitch; -- -- Table structure for table `stitch`.`activestory` -- DROP TABLE IF EXISTS `activestory`; CREATE TABLE `activestory` ( `SID` int(10) unsigned NOT NULL auto_increment, `CardID` char(10) default NULL, `ActivatedTime` datetime default NULL, `Deactivatedtime` datetime default NULL, `IsActivate` tinyint(1) default NULL, `ServerID` char(50) NOT NULL default '0', PRIMARY KEY (`SID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `stitch`.`activestory` -- /*!40000 ALTER TABLE `activestory` DISABLE KEYS */; /*!40000 ALTER TABLE `activestory` ENABLE KEYS */; -- -- Table structure for table `stitch`.`associateline` -- DROP TABLE IF EXISTS `associateline`; CREATE TABLE `associateline` ( `ID` int(10) unsigned NOT NULL auto_increment, `FileName` char(200) NOT NULL default '', `LineNo` int(10) unsigned NOT NULL default '0', `TimeAssociated` datetime NOT NULL default '0000-00-00 00:00:00', `SID` char(10) NOT NULL default '', `Revision` double NOT NULL default '0', PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `stitch`.`associateline` -- /*!40000 ALTER TABLE `associateline` DISABLE KEYS */; /*!40000 ALTER TABLE `associateline` ENABLE KEYS */; -- -- Table structure for table `stitch`.`notecard` -- DROP TABLE IF EXISTS `notecard`; CREATE TABLE `notecard` ( `ID` bigint(20) unsigned NOT NULL auto_increment, `TemplateID` int(10) unsigned NOT NULL default '0', `CreationDate` datetime NOT NULL default '0000-00-00 00:00:00', `CardName` varchar(100) NOT NULL default '', PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `stitch`.`notecard` -- /*!40000 ALTER TABLE `notecard` DISABLE KEYS */; /*!40000 ALTER TABLE `notecard` ENABLE KEYS */; -- -- Table structure for table `stitch`.`notefield` -- DROP TABLE IF EXISTS `notefield`; CREATE TABLE `notefield` ( `ID` bigint(20) unsigned NOT NULL auto_increment, `NoteCardID` bigint(20) unsigned NOT NULL default '0', `TemplateID` int(10) unsigned NOT NULL default '0', `FieldID` bigint(20) unsigned NOT NULL default '0', `FieldValue` text NOT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `stitch`.`notefield` -- /*!40000 ALTER TABLE `notefield` DISABLE KEYS */; /*!40000 ALTER TABLE `notefield` ENABLE KEYS */; -- -- Table structure for table `stitch`.`templatefield` -- DROP TABLE IF EXISTS `templatefield`; CREATE TABLE `templatefield` ( `ID` bigint(20) unsigned NOT NULL auto_increment, `TemplateID` int(10) unsigned NOT NULL default '0', `FieldName` varchar(45) NOT NULL default '', PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `stitch`.`templatefield` -- /*!40000 ALTER TABLE `templatefield` DISABLE KEYS */; /*!40000 ALTER TABLE `templatefield` ENABLE KEYS */; -- -- Table structure for table `stitch`.`templatetype` -- DROP TABLE IF EXISTS `templatetype`; CREATE TABLE `templatetype` ( `ID` int(10) unsigned NOT NULL auto_increment, `Name` varchar(45) NOT NULL default '', PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `stitch`.`templatetype` -- /*!40000 ALTER TABLE `templatetype` DISABLE KEYS */; /*!40000 ALTER TABLE `templatetype` 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 */;