|
|
@ -240,3 +240,26 @@ CREATE TABLE IF NOT EXISTS DM_USER_POLICY (
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_DEVICE_POLICY_APPLIED (
|
|
|
|
|
|
|
|
ID INT NOT NULL AUTO_INCREMENT ,
|
|
|
|
|
|
|
|
DEVICE_ID INT NOT NULL ,
|
|
|
|
|
|
|
|
POLICY_ID INT NOT NULL ,
|
|
|
|
|
|
|
|
POLICY_CONTENT BLOB NULL ,
|
|
|
|
|
|
|
|
APPLIED TINYINT(1) NULL ,
|
|
|
|
|
|
|
|
CREATED_TIME TIMESTAMP NULL ,
|
|
|
|
|
|
|
|
UPDATED_TIME TIMESTAMP NULL ,
|
|
|
|
|
|
|
|
APPLIED_TIME TIMESTAMP NULL ,
|
|
|
|
|
|
|
|
PRIMARY KEY (ID) ,
|
|
|
|
|
|
|
|
CONSTRAINT FK_DM_POLICY_DEVCIE_APPLIED
|
|
|
|
|
|
|
|
FOREIGN KEY (DEVICE_ID )
|
|
|
|
|
|
|
|
REFERENCES DM_DEVICE (ID )
|
|
|
|
|
|
|
|
ON DELETE NO ACTION
|
|
|
|
|
|
|
|
ON UPDATE NO ACTION,
|
|
|
|
|
|
|
|
CONSTRAINT FK_DM_POLICY_DEVICE_APPLIED_POLICY
|
|
|
|
|
|
|
|
FOREIGN KEY (POLICY_ID )
|
|
|
|
|
|
|
|
REFERENCES DM_POLICY (ID )
|
|
|
|
|
|
|
|
ON DELETE NO ACTION
|
|
|
|
|
|
|
|
ON UPDATE NO ACTION)
|
|
|
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|