update create table workerShelving
This commit is contained in:
parent
7eb3fb62c8
commit
f90b91c5a3
|
@ -1,6 +1,6 @@
|
|||
CREATE TABLE `workerShelving` (
|
||||
CREATE TABLE vn.workerShelving (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`workerFk` varchar(3) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`workerFk` int(11) NOT NULL,
|
||||
`shelvingFk` varchar(10) CHARACTER SET utf8 NOT NULL,
|
||||
`collectionFk` int(11) DEFAULT NULL,
|
||||
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
|
@ -8,10 +8,10 @@ CREATE TABLE `workerShelving` (
|
|||
KEY `workerShelving_shelving_fk` (`shelvingFk`),
|
||||
KEY `workerShelving_FK` (`workerFk`),
|
||||
KEY `workerShelving_FK_1` (`collectionFk`),
|
||||
CONSTRAINT `workerShelving_worker_fk` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`code`),
|
||||
CONSTRAINT `workerShelving_worker_fk` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`),
|
||||
CONSTRAINT `workerShelving_collection_fk` FOREIGN KEY (`collectionFk`) REFERENCES `collection` (`id`),
|
||||
CONSTRAINT `workerShelving_shelving_fk` FOREIGN KEY (`shelvingFk`) REFERENCES `shelving` (`code`) ON UPDATE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='utilizaremos el id para establecer la prioridad de los carros a asignar'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='utilizaremos el id para establecer la prioridad de los carros a asignar';
|
||||
|
||||
CREATE TABLE `smartTag` (
|
||||
`code` varchar(12) CHARACTER SET utf8 NOT NULL,
|
||||
|
|
Reference in New Issue