2022-11-22 13:29:42 +00:00
|
|
|
CREATE TABLE `vn`.`mdbApp` (
|
2022-11-23 09:56:55 +00:00
|
|
|
`app` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
|
2022-11-22 13:29:42 +00:00
|
|
|
`baselineBranchFk` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
|
|
|
|
`userFk` int(10) unsigned DEFAULT NULL,
|
|
|
|
`locked` datetime DEFAULT NULL,
|
2022-11-23 09:56:55 +00:00
|
|
|
PRIMARY KEY (`app`),
|
2022-11-22 13:29:42 +00:00
|
|
|
KEY `mdbApp_FK` (`userFk`),
|
|
|
|
KEY `mdbApp_FK_1` (`baselineBranchFk`),
|
|
|
|
CONSTRAINT `mdbApp_FK` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
|
|
|
CONSTRAINT `mdbApp_FK_1` FOREIGN KEY (`baselineBranchFk`) REFERENCES `mdbBranch` (`name`) ON UPDATE CASCADE
|
2022-11-23 09:56:55 +00:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci
|