|
|
|
@ -7,6 +7,7 @@ CREATE TABLE IF NOT EXISTS DM_DEVICE_CERTIFICATE (
|
|
|
|
|
ID BIGSERIAL NOT NULL PRIMARY KEY,
|
|
|
|
|
SERIAL_NUMBER VARCHAR(500) DEFAULT NULL,
|
|
|
|
|
CERTIFICATE BYTEA DEFAULT NULL
|
|
|
|
|
TENANT_ID INTEGER DEFAULT 0,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
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 (
|
|
|
|
|
ID BIGSERIAL NOT NULL PRIMARY KEY,
|
|
|
|
|
PROFILE_ID INTEGER NOT NULL,
|
|
|
|
|
FEATURE_CODE VARCHAR(30) NOT NULL,
|
|
|
|
|
FEATURE_CODE VARCHAR(100) NOT NULL,
|
|
|
|
|
DEVICE_TYPE_ID INT NOT NULL,
|
|
|
|
|
TENANT_ID INTEGER NOT 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,
|
|
|
|
|
COMPLIANCE_STATUS_ID INTEGER NOT NULL,
|
|
|
|
|
TENANT_ID INTEGER NOT NULL,
|
|
|
|
|
FEATURE_CODE VARCHAR(15) NOT NULL,
|
|
|
|
|
FEATURE_CODE VARCHAR(100) NOT NULL,
|
|
|
|
|
STATUS INTEGER NULL,
|
|
|
|
|
CONSTRAINT FK_COMPLIANCE_FEATURES_STATUS
|
|
|
|
|
FOREIGN KEY (COMPLIANCE_STATUS_ID)
|
|
|
|
|