|
|
@ -1,5 +1,5 @@
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_DEVICE_TYPE (
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_DEVICE_TYPE (
|
|
|
|
ID INT AUTO_INCREMENT NOT NULL,
|
|
|
|
ID INT auto_increment NOT NULL,
|
|
|
|
NAME VARCHAR(300) DEFAULT NULL,
|
|
|
|
NAME VARCHAR(300) DEFAULT NULL,
|
|
|
|
PRIMARY KEY (ID)
|
|
|
|
PRIMARY KEY (ID)
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -16,7 +16,7 @@ CREATE TABLE IF NOT EXISTS DM_GROUP (
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_DEVICE_CERTIFICATE (
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_DEVICE_CERTIFICATE (
|
|
|
|
ID INTEGER AUTO_INCREMENT NOT NULL,
|
|
|
|
ID INTEGER auto_increment NOT NULL,
|
|
|
|
SERIAL_NUMBER VARCHAR(500) DEFAULT NULL,
|
|
|
|
SERIAL_NUMBER VARCHAR(500) DEFAULT NULL,
|
|
|
|
CERTIFICATE BLOB DEFAULT NULL,
|
|
|
|
CERTIFICATE BLOB DEFAULT NULL,
|
|
|
|
TENANT_ID INTEGER DEFAULT 0,
|
|
|
|
TENANT_ID INTEGER DEFAULT 0,
|
|
|
@ -24,14 +24,14 @@ CREATE TABLE IF NOT EXISTS DM_DEVICE_CERTIFICATE (
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_DEVICE (
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_DEVICE (
|
|
|
|
ID INTEGER AUTO_INCREMENT NOT NULL,
|
|
|
|
ID INTEGER auto_increment NOT NULL,
|
|
|
|
DESCRIPTION TEXT DEFAULT NULL,
|
|
|
|
DESCRIPTION TEXT DEFAULT NULL,
|
|
|
|
NAME VARCHAR(100) DEFAULT NULL,
|
|
|
|
NAME VARCHAR(100) DEFAULT NULL,
|
|
|
|
DEVICE_TYPE_ID INT(11) DEFAULT NULL,
|
|
|
|
DEVICE_TYPE_ID INT(11) DEFAULT NULL,
|
|
|
|
DEVICE_IDENTIFICATION VARCHAR(300) DEFAULT NULL,
|
|
|
|
DEVICE_IDENTIFICATION VARCHAR(300) DEFAULT NULL,
|
|
|
|
TENANT_ID INTEGER DEFAULT 0,
|
|
|
|
TENANT_ID INTEGER DEFAULT 0,
|
|
|
|
PRIMARY KEY (ID),
|
|
|
|
PRIMARY KEY (ID),
|
|
|
|
CONSTRAINT fk_DM_DEVICE_DM_DEVICE_TYPE2 FOREIGN KEY (DEVICE_TYPE_ID)
|
|
|
|
CONSTRAINT fk_DM_DEVICE_DM_DEVICE_TYPE2 FOREIGN KEY (DEVICE_TYPE_ID )
|
|
|
|
REFERENCES DM_DEVICE_TYPE (ID) ON DELETE NO ACTION ON UPDATE NO ACTION
|
|
|
|
REFERENCES DM_DEVICE_TYPE (ID) ON DELETE NO ACTION ON UPDATE NO ACTION
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
@ -131,81 +131,95 @@ CREATE TABLE IF NOT EXISTS DM_DEVICE_OPERATION_RESPONSE (
|
|
|
|
-- POLICY RELATED TABLES --
|
|
|
|
-- POLICY RELATED TABLES --
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_PROFILE (
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_PROFILE (
|
|
|
|
ID INT NOT NULL AUTO_INCREMENT,
|
|
|
|
ID INT NOT NULL AUTO_INCREMENT ,
|
|
|
|
PROFILE_NAME VARCHAR(45) NOT NULL,
|
|
|
|
PROFILE_NAME VARCHAR(45) NOT NULL ,
|
|
|
|
TENANT_ID INT NOT NULL,
|
|
|
|
TENANT_ID INT NOT NULL ,
|
|
|
|
DEVICE_TYPE_ID INT NOT NULL,
|
|
|
|
DEVICE_TYPE_ID INT NOT NULL ,
|
|
|
|
CREATED_TIME DATETIME NOT NULL,
|
|
|
|
CREATED_TIME DATETIME NOT NULL ,
|
|
|
|
UPDATED_TIME DATETIME NOT NULL,
|
|
|
|
UPDATED_TIME DATETIME NOT NULL ,
|
|
|
|
PRIMARY KEY (ID),
|
|
|
|
PRIMARY KEY (ID) ,
|
|
|
|
CONSTRAINT DM_PROFILE_DEVICE_TYPE
|
|
|
|
CONSTRAINT DM_PROFILE_DEVICE_TYPE
|
|
|
|
FOREIGN KEY (DEVICE_TYPE_ID)
|
|
|
|
FOREIGN KEY (DEVICE_TYPE_ID )
|
|
|
|
REFERENCES DM_DEVICE_TYPE (ID)
|
|
|
|
REFERENCES DM_DEVICE_TYPE (ID )
|
|
|
|
ON DELETE NO ACTION
|
|
|
|
ON DELETE NO ACTION
|
|
|
|
ON UPDATE NO ACTION
|
|
|
|
ON UPDATE NO ACTION
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_POLICY (
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_POLICY (
|
|
|
|
ID INT(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
ID INT(11) NOT NULL AUTO_INCREMENT ,
|
|
|
|
NAME VARCHAR(45) DEFAULT NULL,
|
|
|
|
NAME VARCHAR(45) DEFAULT NULL ,
|
|
|
|
DESCRIPTION VARCHAR(1000) NULL,
|
|
|
|
DESCRIPTION VARCHAR(1000) NULL,
|
|
|
|
TENANT_ID INT(11) NOT NULL,
|
|
|
|
TENANT_ID INT(11) NOT NULL ,
|
|
|
|
PROFILE_ID INT(11) NOT NULL,
|
|
|
|
PROFILE_ID INT(11) NOT NULL ,
|
|
|
|
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,
|
|
|
|
ACTIVE INT(2) NOT NULL,
|
|
|
|
UPDATED INT(1) 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 )
|
|
|
|
REFERENCES DM_PROFILE (ID)
|
|
|
|
REFERENCES DM_PROFILE (ID )
|
|
|
|
ON DELETE NO ACTION
|
|
|
|
ON DELETE NO ACTION
|
|
|
|
ON UPDATE NO ACTION
|
|
|
|
ON UPDATE NO ACTION
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_DEVICE_POLICY (
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_DEVICE_POLICY (
|
|
|
|
ID INT(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
ID INT(11) NOT NULL AUTO_INCREMENT ,
|
|
|
|
DEVICE_ID INT(11) NOT NULL,
|
|
|
|
DEVICE_ID INT(11) NOT NULL ,
|
|
|
|
ENROLMENT_ID INT(11) NOT NULL,
|
|
|
|
ENROLMENT_ID INT(11) NOT NULL,
|
|
|
|
DEVICE BLOB NOT NULL,
|
|
|
|
DEVICE BLOB NOT NULL,
|
|
|
|
POLICY_ID INT(11) NOT NULL,
|
|
|
|
POLICY_ID INT(11) NOT NULL ,
|
|
|
|
PRIMARY KEY (ID),
|
|
|
|
PRIMARY KEY (ID) ,
|
|
|
|
CONSTRAINT FK_POLICY_DEVICE_POLICY
|
|
|
|
CONSTRAINT FK_POLICY_DEVICE_POLICY
|
|
|
|
FOREIGN KEY (POLICY_ID)
|
|
|
|
FOREIGN KEY (POLICY_ID )
|
|
|
|
REFERENCES DM_POLICY (ID)
|
|
|
|
REFERENCES DM_POLICY (ID )
|
|
|
|
ON DELETE NO ACTION
|
|
|
|
ON DELETE NO ACTION
|
|
|
|
ON UPDATE NO ACTION,
|
|
|
|
ON UPDATE NO ACTION,
|
|
|
|
CONSTRAINT FK_DEVICE_DEVICE_POLICY
|
|
|
|
CONSTRAINT FK_DEVICE_DEVICE_POLICY
|
|
|
|
FOREIGN KEY (DEVICE_ID)
|
|
|
|
FOREIGN KEY (DEVICE_ID )
|
|
|
|
REFERENCES DM_DEVICE (ID)
|
|
|
|
REFERENCES DM_DEVICE (ID )
|
|
|
|
ON DELETE NO ACTION
|
|
|
|
ON DELETE NO ACTION
|
|
|
|
ON UPDATE NO ACTION
|
|
|
|
ON UPDATE NO ACTION
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_DEVICE_TYPE_POLICY (
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_DEVICE_TYPE_POLICY (
|
|
|
|
ID INT(11) NOT NULL,
|
|
|
|
ID INT(11) NOT NULL ,
|
|
|
|
DEVICE_TYPE_ID INT(11) NOT NULL,
|
|
|
|
DEVICE_TYPE_ID INT(11) NOT NULL ,
|
|
|
|
POLICY_ID INT(11) NOT NULL,
|
|
|
|
POLICY_ID INT(11) NOT NULL ,
|
|
|
|
PRIMARY KEY (ID),
|
|
|
|
PRIMARY KEY (ID) ,
|
|
|
|
CONSTRAINT FK_DEVICE_TYPE_POLICY
|
|
|
|
CONSTRAINT FK_DEVICE_TYPE_POLICY
|
|
|
|
FOREIGN KEY (POLICY_ID)
|
|
|
|
FOREIGN KEY (POLICY_ID )
|
|
|
|
REFERENCES DM_POLICY (ID)
|
|
|
|
REFERENCES DM_POLICY (ID )
|
|
|
|
ON DELETE NO ACTION
|
|
|
|
ON DELETE NO ACTION
|
|
|
|
ON UPDATE NO ACTION,
|
|
|
|
ON UPDATE NO ACTION,
|
|
|
|
CONSTRAINT FK_DEVICE_TYPE_POLICY_DEVICE_TYPE
|
|
|
|
CONSTRAINT FK_DEVICE_TYPE_POLICY_DEVICE_TYPE
|
|
|
|
FOREIGN KEY (DEVICE_TYPE_ID)
|
|
|
|
FOREIGN KEY (DEVICE_TYPE_ID )
|
|
|
|
REFERENCES DM_DEVICE_TYPE (ID)
|
|
|
|
REFERENCES DM_DEVICE_TYPE (ID )
|
|
|
|
ON DELETE NO ACTION
|
|
|
|
ON DELETE NO ACTION
|
|
|
|
ON UPDATE NO ACTION
|
|
|
|
ON UPDATE NO ACTION
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_PROFILE_FEATURES (
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_PROFILE_FEATURES (
|
|
|
|
ID INT(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
ID INT(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
PROFILE_ID INT(11) NOT NULL,
|
|
|
|
PROFILE_ID INT(11) NOT NULL,
|
|
|
|
FEATURE_CODE VARCHAR(30) NOT NULL,
|
|
|
|
FEATURE_CODE VARCHAR(30) NOT NULL,
|
|
|
|
DEVICE_TYPE_ID INT NOT NULL,
|
|
|
|
DEVICE_TYPE_ID INT NOT NULL,
|
|
|
|
TENANT_ID INT(11) NOT NULL,
|
|
|
|
TENANT_ID INT(11) NOT NULL ,
|
|
|
|
CONTENT BLOB NULL DEFAULT NULL,
|
|
|
|
CONTENT BLOB NULL DEFAULT NULL,
|
|
|
|
PRIMARY KEY (ID),
|
|
|
|
PRIMARY KEY (ID),
|
|
|
|
CONSTRAINT FK_DM_PROFILE_DM_POLICY_FEATURES
|
|
|
|
CONSTRAINT FK_DM_PROFILE_DM_POLICY_FEATURES
|
|
|
@ -215,49 +229,58 @@ CREATE TABLE IF NOT EXISTS DM_PROFILE_FEATURES (
|
|
|
|
ON UPDATE NO ACTION
|
|
|
|
ON UPDATE NO ACTION
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_ROLE_POLICY (
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_ROLE_POLICY (
|
|
|
|
ID INT(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
ID INT(11) NOT NULL AUTO_INCREMENT ,
|
|
|
|
ROLE_NAME VARCHAR(45) NOT NULL,
|
|
|
|
ROLE_NAME VARCHAR(45) NOT NULL ,
|
|
|
|
POLICY_ID INT(11) NOT NULL,
|
|
|
|
POLICY_ID INT(11) NOT NULL ,
|
|
|
|
PRIMARY KEY (ID),
|
|
|
|
PRIMARY KEY (ID) ,
|
|
|
|
CONSTRAINT FK_ROLE_POLICY_POLICY
|
|
|
|
CONSTRAINT FK_ROLE_POLICY_POLICY
|
|
|
|
FOREIGN KEY (POLICY_ID)
|
|
|
|
FOREIGN KEY (POLICY_ID )
|
|
|
|
REFERENCES DM_POLICY (ID)
|
|
|
|
REFERENCES DM_POLICY (ID )
|
|
|
|
ON DELETE NO ACTION
|
|
|
|
ON DELETE NO ACTION
|
|
|
|
ON UPDATE NO ACTION
|
|
|
|
ON UPDATE NO ACTION
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_USER_POLICY (
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_USER_POLICY (
|
|
|
|
ID INT NOT NULL AUTO_INCREMENT,
|
|
|
|
ID INT NOT NULL AUTO_INCREMENT ,
|
|
|
|
POLICY_ID INT NOT NULL,
|
|
|
|
POLICY_ID INT NOT NULL ,
|
|
|
|
USERNAME VARCHAR(45) NOT NULL,
|
|
|
|
USERNAME VARCHAR(45) NOT NULL ,
|
|
|
|
PRIMARY KEY (ID),
|
|
|
|
PRIMARY KEY (ID) ,
|
|
|
|
CONSTRAINT DM_POLICY_USER_POLICY
|
|
|
|
CONSTRAINT DM_POLICY_USER_POLICY
|
|
|
|
FOREIGN KEY (POLICY_ID)
|
|
|
|
FOREIGN KEY (POLICY_ID )
|
|
|
|
REFERENCES DM_POLICY (ID)
|
|
|
|
REFERENCES DM_POLICY (ID )
|
|
|
|
ON DELETE NO ACTION
|
|
|
|
ON DELETE NO ACTION
|
|
|
|
ON UPDATE NO ACTION
|
|
|
|
ON UPDATE NO ACTION
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_DEVICE_POLICY_APPLIED (
|
|
|
|
|
|
|
|
ID INT NOT NULL AUTO_INCREMENT,
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_DEVICE_POLICY_APPLIED (
|
|
|
|
DEVICE_ID INT NOT NULL,
|
|
|
|
ID INT NOT NULL AUTO_INCREMENT ,
|
|
|
|
|
|
|
|
DEVICE_ID INT NOT NULL ,
|
|
|
|
ENROLMENT_ID INT(11) NOT NULL,
|
|
|
|
ENROLMENT_ID INT(11) NOT NULL,
|
|
|
|
POLICY_ID INT NOT NULL,
|
|
|
|
POLICY_ID INT NOT NULL ,
|
|
|
|
POLICY_CONTENT BLOB NULL,
|
|
|
|
POLICY_CONTENT BLOB NULL ,
|
|
|
|
TENANT_ID INT NOT NULL,
|
|
|
|
TENANT_ID INT NOT NULL,
|
|
|
|
APPLIED BOOLEAN NULL,
|
|
|
|
APPLIED TINYINT(1) NULL ,
|
|
|
|
CREATED_TIME TIMESTAMP NULL,
|
|
|
|
CREATED_TIME TIMESTAMP NULL ,
|
|
|
|
UPDATED_TIME TIMESTAMP NULL,
|
|
|
|
UPDATED_TIME TIMESTAMP NULL ,
|
|
|
|
APPLIED_TIME TIMESTAMP NULL,
|
|
|
|
APPLIED_TIME TIMESTAMP NULL ,
|
|
|
|
PRIMARY KEY (ID),
|
|
|
|
PRIMARY KEY (ID) ,
|
|
|
|
CONSTRAINT FK_DM_POLICY_DEVICE_APPLIED
|
|
|
|
CONSTRAINT FK_DM_POLICY_DEVCIE_APPLIED
|
|
|
|
FOREIGN KEY (DEVICE_ID)
|
|
|
|
FOREIGN KEY (DEVICE_ID )
|
|
|
|
REFERENCES DM_DEVICE (ID)
|
|
|
|
REFERENCES DM_DEVICE (ID )
|
|
|
|
ON DELETE NO ACTION
|
|
|
|
ON DELETE NO ACTION
|
|
|
|
ON UPDATE NO ACTION
|
|
|
|
ON UPDATE NO ACTION
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_CRITERIA (
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_CRITERIA (
|
|
|
|
ID INT NOT NULL AUTO_INCREMENT,
|
|
|
|
ID INT NOT NULL AUTO_INCREMENT,
|
|
|
|
TENANT_ID INT NOT NULL,
|
|
|
|
TENANT_ID INT NOT NULL,
|
|
|
@ -265,6 +288,8 @@ CREATE TABLE IF NOT EXISTS DM_CRITERIA (
|
|
|
|
PRIMARY KEY (ID)
|
|
|
|
PRIMARY KEY (ID)
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_POLICY_CRITERIA (
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_POLICY_CRITERIA (
|
|
|
|
ID INT NOT NULL AUTO_INCREMENT,
|
|
|
|
ID INT NOT NULL AUTO_INCREMENT,
|
|
|
|
CRITERIA_ID INT NOT NULL,
|
|
|
|
CRITERIA_ID INT NOT NULL,
|
|
|
@ -287,8 +312,7 @@ CREATE TABLE IF NOT EXISTS DM_POLICY_CRITERIA_PROPERTIES (
|
|
|
|
POLICY_CRITERION_ID INT NOT NULL,
|
|
|
|
POLICY_CRITERION_ID INT NOT NULL,
|
|
|
|
PROP_KEY VARCHAR(45) NULL,
|
|
|
|
PROP_KEY VARCHAR(45) NULL,
|
|
|
|
PROP_VALUE VARCHAR(100) NULL,
|
|
|
|
PROP_VALUE VARCHAR(100) NULL,
|
|
|
|
CONTENT BLOB NULL
|
|
|
|
CONTENT BLOB NULL COMMENT 'This is used to ',
|
|
|
|
COMMENT 'This is used to ',
|
|
|
|
|
|
|
|
PRIMARY KEY (ID),
|
|
|
|
PRIMARY KEY (ID),
|
|
|
|
CONSTRAINT FK_POLICY_CRITERIA_PROPERTIES
|
|
|
|
CONSTRAINT FK_POLICY_CRITERIA_PROPERTIES
|
|
|
|
FOREIGN KEY (POLICY_CRITERION_ID)
|
|
|
|
FOREIGN KEY (POLICY_CRITERION_ID)
|
|
|
@ -360,6 +384,7 @@ CREATE TABLE IF NOT EXISTS DM_APPLICATION (
|
|
|
|
LOCATION_URL VARCHAR(100) DEFAULT NULL,
|
|
|
|
LOCATION_URL VARCHAR(100) DEFAULT NULL,
|
|
|
|
IMAGE_URL VARCHAR(100) DEFAULT NULL,
|
|
|
|
IMAGE_URL VARCHAR(100) DEFAULT NULL,
|
|
|
|
APP_PROPERTIES BLOB NULL,
|
|
|
|
APP_PROPERTIES BLOB NULL,
|
|
|
|
|
|
|
|
MEMORY_USAGE INTEGER(10) NULL,
|
|
|
|
TENANT_ID INTEGER NOT NULL,
|
|
|
|
TENANT_ID INTEGER NOT NULL,
|
|
|
|
PRIMARY KEY (ID)
|
|
|
|
PRIMARY KEY (ID)
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -409,6 +434,8 @@ CREATE TABLE IF NOT EXISTS DM_DEVICE_INFO (
|
|
|
|
ON UPDATE NO ACTION
|
|
|
|
ON UPDATE NO ACTION
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS DM_DEVICE_LOCATION;
|
|
|
|
DROP TABLE IF EXISTS DM_DEVICE_LOCATION;
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_DEVICE_LOCATION (
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_DEVICE_LOCATION (
|
|
|
@ -430,6 +457,7 @@ CREATE TABLE IF NOT EXISTS DM_DEVICE_LOCATION (
|
|
|
|
ON UPDATE NO ACTION
|
|
|
|
ON UPDATE NO ACTION
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_DEVICE_DETAIL (
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_DEVICE_DETAIL (
|
|
|
|
ID INT NOT NULL AUTO_INCREMENT,
|
|
|
|
ID INT NOT NULL AUTO_INCREMENT,
|
|
|
|
DEVICE_ID INT NOT NULL,
|
|
|
|
DEVICE_ID INT NOT NULL,
|
|
|
|