Skip to content

Commit 6dcc4ca

Browse files
authored
Add Protein_has_Component table (#318)
1 parent 927f007 commit 6dcc4ca

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2026_04_08_Protein_has_Component.sql', 'ONGOING');
2+
3+
CREATE TABLE Protein_has_Component (
4+
proteinHasComponentId int(11) unsigned PRIMARY KEY AUTO_INCREMENT,
5+
proteinId int(10) unsigned NOT NULL COMMENT 'References Protein table',
6+
componentId int(10) unsigned NOT NULL COMMENT 'References Component table',
7+
CONSTRAINT `Protein_has_Component_fk_proteinId`
8+
FOREIGN KEY (proteinId)
9+
REFERENCES Protein (proteinId)
10+
ON DELETE CASCADE
11+
ON UPDATE CASCADE,
12+
CONSTRAINT `Protein_has_Component_fk_componentId`
13+
FOREIGN KEY (componentId)
14+
REFERENCES Component (componentId)
15+
ON DELETE CASCADE
16+
ON UPDATE CASCADE
17+
) COMMENT = 'Which elements are contained inside a molecule';
18+
19+
UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2026_04_08_Protein_has_Component.sql';

0 commit comments

Comments
 (0)