From f90b91c5a3a531115650aa86c3985a8695764293 Mon Sep 17 00:00:00 2001 From: llopis15 Date: Thu, 13 May 2021 13:27:20 +0200 Subject: [PATCH] update create table workerShelving --- db/db.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/db/db.sql b/db/db.sql index ac7d3d9..ee105d6 100644 --- a/db/db.sql +++ b/db/db.sql @@ -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,