2022-06-25 13:22:47 +00:00
|
|
|
CREATE TABLE `vn`.`claimObservation` (
|
|
|
|
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
|
`claimFk` int(10) unsigned NOT NULL,
|
2022-06-27 09:01:29 +00:00
|
|
|
`workerFk` int(10) unsigned DEFAULT NULL,
|
2022-06-25 13:22:47 +00:00
|
|
|
`text` text COLLATE utf8_unicode_ci NOT NULL,
|
|
|
|
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
KEY `worker_key` (`workerFk`),
|
|
|
|
KEY `claim_key` (`claimFk`),
|
|
|
|
KEY `claimObservation_created_IDX` (`created`) USING BTREE,
|
|
|
|
CONSTRAINT `claimObservation_ibfk_1` FOREIGN KEY (`claimFk`) REFERENCES `vn`.`claim` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
CONSTRAINT `claimObservation_ibfk_2` FOREIGN KEY (`workerFk`) REFERENCES `vn`.`worker` (`id`) ON UPDATE CASCADE
|
2022-06-27 09:01:29 +00:00
|
|
|
) COMMENT='Todas las observaciones referentes a una reclamación'
|