10 lines
556 B
MySQL
10 lines
556 B
MySQL
|
CREATE TABLE `vn`.`starredModule` (
|
||
|
`id` INT(11) unsigned NOT NULL AUTO_INCREMENT,
|
||
|
`workerFk` INT(10) NOT NULL,
|
||
|
`moduleFk` VARCHAR(45) COLLATE utf8_unicode_ci NOT NULL,
|
||
|
PRIMARY KEY (`id`),
|
||
|
KEY `starred_workerFk` (`workerFk`),
|
||
|
KEY `starred_moduleFk` (`moduleFk`),
|
||
|
CONSTRAINT `starred_workerFk` FOREIGN KEY (`workerFk`) REFERENCES `vn`.`worker` (`id`) ON UPDATE CASCADE,
|
||
|
CONSTRAINT `starred_moduleFk` FOREIGN KEY (`moduleFk`) REFERENCES `salix`.`module` (`code`) ON UPDATE CASCADE
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|