mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-05 07:03:24 +01:00
update
This commit is contained in:
parent
a3c6ce10c2
commit
d23595a75c
@ -5,3 +5,30 @@ ALTER TABLE `ACCESS_AUDITORY`
|
|||||||
FOREIGN KEY (user_id) REFERENCES USER (colaborator_id)
|
FOREIGN KEY (user_id) REFERENCES USER (colaborator_id)
|
||||||
ON DELETE CASCADE
|
ON DELETE CASCADE
|
||||||
ON UPDATE NO ACTION;
|
ON UPDATE NO ACTION;
|
||||||
|
|
||||||
|
CREATE TABLE LABEL (
|
||||||
|
id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||||
|
title VARCHAR(30)
|
||||||
|
CHARACTER SET utf8 NOT NULL,
|
||||||
|
creator_id INTEGER NOT NULL,
|
||||||
|
parent_label_id INTEGER,
|
||||||
|
color VARCHAR(7) NOT NULL,
|
||||||
|
FOREIGN KEY (creator_id) REFERENCES USER (colaborator_id),
|
||||||
|
FOREIGN KEY (parent_label_id) REFERENCES LABEL (id)
|
||||||
|
ON DELETE CASCADE
|
||||||
|
ON UPDATE NO ACTION
|
||||||
|
)
|
||||||
|
CHARACTER SET utf8;
|
||||||
|
|
||||||
|
CREATE TABLE R_LABEL_MINDMAP (
|
||||||
|
mindmap_id INTEGER NOT NULL,
|
||||||
|
label_id INTEGER NOT NULL,
|
||||||
|
PRIMARY KEY (mindmap_id, label_id),
|
||||||
|
FOREIGN KEY (mindmap_id) REFERENCES MINDMAP (id),
|
||||||
|
FOREIGN KEY (label_id) REFERENCES LABEL (id)
|
||||||
|
ON DELETE CASCADE
|
||||||
|
ON UPDATE NO ACTION
|
||||||
|
)
|
||||||
|
CHARACTER SET utf8;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user