16 lines
432 B
MySQL
16 lines
432 B
MySQL
|
CREATE TABLE `vn`.`claimDms` (
|
||
|
`claimFk` INT UNSIGNED NOT NULL,
|
||
|
`dmsFk` INT NOT NULL,
|
||
|
PRIMARY KEY (`claimFk`, `dmsFk`),
|
||
|
INDEX `dmsFk_idx` (`dmsFk` ASC),
|
||
|
CONSTRAINT `claimFk`
|
||
|
FOREIGN KEY (`claimFk`)
|
||
|
REFERENCES `vn2008`.`cl_main` (`id`)
|
||
|
ON DELETE CASCADE
|
||
|
ON UPDATE CASCADE,
|
||
|
CONSTRAINT `dmsFk`
|
||
|
FOREIGN KEY (`dmsFk`)
|
||
|
REFERENCES `vn2008`.`gestdoc` (`id`)
|
||
|
ON DELETE CASCADE
|
||
|
ON UPDATE CASCADE);
|