-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgroupA_2020-03-19.sql
95 lines (70 loc) · 3.04 KB
/
groupA_2020-03-19.sql
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
# ************************************************************
# Sequel Pro SQL dump
# Version 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: bioed.bu.edu (MySQL 5.5.5-10.1.44-MariaDB)
# Database: groupA
# Generation Time: 2020-03-19 18:33:00 +0000
# ************************************************************
/*!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_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 */;
# Dump of table relationship
# ------------------------------------------------------------
DROP TABLE IF EXISTS `relationship`;
CREATE TABLE `relationship` (
`relationship_id` int(11) NOT NULL AUTO_INCREMENT,
`species_id` int(11) DEFAULT NULL,
`transposon_id` int(11) DEFAULT NULL,
`count` int(11) DEFAULT NULL,
`coverage` int(11) DEFAULT NULL,
PRIMARY KEY (`relationship_id`),
KEY `species_id` (`species_id`),
KEY `transposon_id` (`transposon_id`),
CONSTRAINT `relationship_ibfk_1` FOREIGN KEY (`species_id`) REFERENCES `species` (`species_id`),
CONSTRAINT `relationship_ibfk_2` FOREIGN KEY (`transposon_id`) REFERENCES `transposon` (`transposon_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
# Dump of table species
# ------------------------------------------------------------
DROP TABLE IF EXISTS `species`;
CREATE TABLE `species` (
`species_id` int(11) NOT NULL AUTO_INCREMENT,
`species_name` char(50) DEFAULT NULL,
PRIMARY KEY (`species_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
# Dump of table transcript
# ------------------------------------------------------------
DROP TABLE IF EXISTS `transcript`;
CREATE TABLE `transcript` (
`transcript_id` int(11) NOT NULL AUTO_INCREMENT,
`sequence` char(50) DEFAULT NULL,
`length` int(11) DEFAULT NULL,
`transposon_id` int(11) DEFAULT NULL,
PRIMARY KEY (`transcript_id`),
KEY `transposon_id` (`transposon_id`),
CONSTRAINT `transcript_ibfk_1` FOREIGN KEY (`transposon_id`) REFERENCES `transposon` (`transposon_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
# Dump of table transposon
# ------------------------------------------------------------
DROP TABLE IF EXISTS `transposon`;
CREATE TABLE `transposon` (
`transposon_id` int(11) NOT NULL AUTO_INCREMENT,
`accession` char(20) DEFAULT NULL,
`type` char(20) DEFAULT NULL,
`name` char(20) DEFAULT NULL,
`header` char(100) DEFAULT NULL,
PRIMARY KEY (`transposon_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_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 */;