7 lines
382 B
MySQL
7 lines
382 B
MySQL
|
-- 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;
|