|
|
@ -7,6 +7,7 @@ CREATE TABLE IF NOT EXISTS DM_DEVICE_CERTIFICATE (
|
|
|
|
ID BIGSERIAL NOT NULL PRIMARY KEY,
|
|
|
|
ID BIGSERIAL NOT NULL PRIMARY KEY,
|
|
|
|
SERIAL_NUMBER VARCHAR(500) DEFAULT NULL,
|
|
|
|
SERIAL_NUMBER VARCHAR(500) DEFAULT NULL,
|
|
|
|
CERTIFICATE BYTEA DEFAULT NULL
|
|
|
|
CERTIFICATE BYTEA DEFAULT NULL
|
|
|
|
|
|
|
|
TENANT_ID INTEGER DEFAULT 0,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_DEVICE (
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_DEVICE (
|
|
|
@ -169,7 +170,7 @@ CREATE TABLE IF NOT EXISTS DM_DEVICE_TYPE_POLICY (
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_PROFILE_FEATURES (
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_PROFILE_FEATURES (
|
|
|
|
ID BIGSERIAL NOT NULL PRIMARY KEY,
|
|
|
|
ID BIGSERIAL NOT NULL PRIMARY KEY,
|
|
|
|
PROFILE_ID INTEGER NOT NULL,
|
|
|
|
PROFILE_ID INTEGER NOT NULL,
|
|
|
|
FEATURE_CODE VARCHAR(30) NOT NULL,
|
|
|
|
FEATURE_CODE VARCHAR(100) NOT NULL,
|
|
|
|
DEVICE_TYPE_ID INT NOT NULL,
|
|
|
|
DEVICE_TYPE_ID INT NOT NULL,
|
|
|
|
TENANT_ID INTEGER NOT NULL ,
|
|
|
|
TENANT_ID INTEGER NOT NULL ,
|
|
|
|
CONTENT BYTEA NULL DEFAULT NULL,
|
|
|
|
CONTENT BYTEA NULL DEFAULT NULL,
|
|
|
@ -280,7 +281,7 @@ CREATE TABLE IF NOT EXISTS DM_POLICY_COMPLIANCE_FEATURES (
|
|
|
|
ID BIGSERIAL NOT NULL PRIMARY KEY,
|
|
|
|
ID BIGSERIAL NOT NULL PRIMARY KEY,
|
|
|
|
COMPLIANCE_STATUS_ID INTEGER NOT NULL,
|
|
|
|
COMPLIANCE_STATUS_ID INTEGER NOT NULL,
|
|
|
|
TENANT_ID INTEGER NOT NULL,
|
|
|
|
TENANT_ID INTEGER NOT NULL,
|
|
|
|
FEATURE_CODE VARCHAR(15) NOT NULL,
|
|
|
|
FEATURE_CODE VARCHAR(100) NOT NULL,
|
|
|
|
STATUS INTEGER NULL,
|
|
|
|
STATUS INTEGER NULL,
|
|
|
|
CONSTRAINT FK_COMPLIANCE_FEATURES_STATUS
|
|
|
|
CONSTRAINT FK_COMPLIANCE_FEATURES_STATUS
|
|
|
|
FOREIGN KEY (COMPLIANCE_STATUS_ID)
|
|
|
|
FOREIGN KEY (COMPLIANCE_STATUS_ID)
|
|
|
|