|
|
@ -134,6 +134,8 @@ CREATE TABLE IF NOT EXISTS DM_POLICY (
|
|
|
|
OWNERSHIP_TYPE VARCHAR(45) NULL,
|
|
|
|
OWNERSHIP_TYPE VARCHAR(45) NULL,
|
|
|
|
COMPLIANCE VARCHAR(100) NULL,
|
|
|
|
COMPLIANCE VARCHAR(100) NULL,
|
|
|
|
PRIORITY INT NOT NULL,
|
|
|
|
PRIORITY INT NOT NULL,
|
|
|
|
|
|
|
|
ACTIVE INT(2) NOT NULL,
|
|
|
|
|
|
|
|
UPDATED INT(1) NULL,
|
|
|
|
PRIMARY KEY (ID) ,
|
|
|
|
PRIMARY KEY (ID) ,
|
|
|
|
CONSTRAINT FK_DM_PROFILE_DM_POLICY
|
|
|
|
CONSTRAINT FK_DM_PROFILE_DM_POLICY
|
|
|
|
FOREIGN KEY (PROFILE_ID )
|
|
|
|
FOREIGN KEY (PROFILE_ID )
|
|
|
@ -317,6 +319,20 @@ CREATE TABLE IF NOT EXISTS DM_POLICY_COMPLIANCE_STATUS (
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_POLICY_CHANGE_MGT (
|
|
|
|
|
|
|
|
ID INT NOT NULL AUTO_INCREMENT,
|
|
|
|
|
|
|
|
POLICY_ID INT NOT NULL,
|
|
|
|
|
|
|
|
DEVICE_TYPE_ID INT NOT NULL,
|
|
|
|
|
|
|
|
TENANT_ID INT(11) NOT NULL,
|
|
|
|
|
|
|
|
PRIMARY KEY (ID),
|
|
|
|
|
|
|
|
CONSTRAINT FK_POLICY_CHANGE_MGT_POLICY
|
|
|
|
|
|
|
|
FOREIGN KEY (POLICY_ID)
|
|
|
|
|
|
|
|
REFERENCES DM_POLICY (ID)
|
|
|
|
|
|
|
|
ON DELETE NO ACTION
|
|
|
|
|
|
|
|
ON UPDATE NO ACTION
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_POLICY_COMPLIANCE_FEATURES (
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_POLICY_COMPLIANCE_FEATURES (
|
|
|
|
ID INT NOT NULL AUTO_INCREMENT,
|
|
|
|
ID INT NOT NULL AUTO_INCREMENT,
|
|
|
|
COMPLIANCE_STATUS_ID INT NOT NULL,
|
|
|
|
COMPLIANCE_STATUS_ID INT NOT NULL,
|
|
|
|