1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
|
/*!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 DATABASE IF NOT EXISTS STRUCTURES;
USE STRUCTURES;
--
-- Table structure for table `charge_generation`
--
DROP TABLE IF EXISTS `charge_generation`;
CREATE TABLE `charge_generation` (
`method_id` int(11) NOT NULL auto_increment,
`method` text,
`parameters` text,
PRIMARY KEY (`method_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `charges`
--
DROP TABLE IF EXISTS `charges`;
CREATE TABLE `charges` (
`id` int(11) NOT NULL auto_increment,
`topology_id` int(11) default NULL,
`method_id` int(11) default NULL,
`charges` blob,
PRIMARY KEY (`id`),
KEY `topology_id` (`topology_id`),
KEY `method_id` (`method_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `conformation_generation`
--
DROP TABLE IF EXISTS `conformation_generation`;
CREATE TABLE `conformation_generation` (
`method_id` int(11) NOT NULL auto_increment,
`method` text,
`parameters` text,
PRIMARY KEY (`method_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `conformations`
--
DROP TABLE IF EXISTS `conformations`;
CREATE TABLE `conformations` (
`id` int(11) NOT NULL auto_increment,
`topology_id` int(11) default NULL,
`method_id` int(11) default NULL,
`energy` float default NULL,
`coordinates` blob,
PRIMARY KEY (`id`),
KEY `topology_id` (`topology_id`),
KEY `method_id` (`method_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 MAX_ROWS=100000000;
--
-- Table structure for table `connection_table_atoms`
--
DROP TABLE IF EXISTS `connection_table_atoms`;
CREATE TABLE `connection_table_atoms` (
`id` int(11) NOT NULL auto_increment,
`topology_id` int(11) default NULL,
`atom_number` int(2) default NULL,
`element` char(2) default NULL,
`formal_charge` int(1) default NULL,
`name` char(8) default NULL,
PRIMARY KEY (`id`),
KEY `topology_id` (`topology_id`),
KEY `atom_number` (`atom_number`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 MAX_ROWS=4294967295;
--
-- Table structure for table `connection_table_bonds`
--
DROP TABLE IF EXISTS `connection_table_bonds`;
CREATE TABLE `connection_table_bonds` (
`id` int(11) NOT NULL auto_increment,
`topology_id` int(11) default NULL,
`bond_number` int(2) default NULL,
`atom1` int(2) default NULL,
`atom2` int(2) default NULL,
`bond_order` int(1) default NULL,
`stereo` int(1) default NULL,
PRIMARY KEY (`id`),
KEY `topology_id` (`topology_id`),
KEY `bond_number` (`bond_number`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 MAX_ROWS=4294967295;
--
-- Table structure for table `topology`
--
DROP TABLE IF EXISTS `topology`;
CREATE TABLE `topology` (
`topology_id` int(11) NOT NULL auto_increment,
`source_id` text,
`name` text,
PRIMARY KEY (`topology_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Create default entry for default conformation generation method
-- and default charge creation method.
--
INSERT INTO `conformation_generation` (method_id, method, parameters) VALUES (0, "default", "default");
INSERT INTO `charge_generation` (method_id, method, parameters) VALUES (0, "default", "default");
/*!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 */;
|