15 lines
509 B
SQL
15 lines
509 B
SQL
CREATE TABLE `vn`.`mdbBranch` (
|
|
`name` VARCHAR(255),
|
|
PRIMARY KEY(`name`)
|
|
);
|
|
|
|
CREATE TABLE `vn`.`mdbVersion` (
|
|
`app` VARCHAR(255) NOT NULL,
|
|
`branchFk` VARCHAR(255) NOT NULL,
|
|
`version` INT,
|
|
CONSTRAINT `mdbVersion_branchFk` FOREIGN KEY (`branchFk`) REFERENCES `vn`.`mdbBranch` (`name`) ON DELETE CASCADE ON UPDATE CASCADE
|
|
);
|
|
|
|
INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
|
|
VALUES('MdbVersion', '*', '*', 'ALLOW', 'ROLE', 'developer');
|