salix/db/versions/.archive/10334-4310collectionAssignPAK/00-collectionHotbed.sql

7 lines
382 B
SQL

-- Place your SQL code here
CREATE OR REPLACE TABLE vn.collectionHotbed (
`userFk` int(10) unsigned NOT NULL,
`created` timestamp NULL DEFAULT current_timestamp(),
PRIMARY KEY (`userFk`),
CONSTRAINT `collectionHotbed_FK` FOREIGN KEY (`userFk`) REFERENCES `worker` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;