|
|
|
@ -270,8 +270,8 @@ CREATE TABLE DM_PROFILE (
|
|
|
|
|
UPDATED_TIME TIMESTAMP(0) NOT NULL ,
|
|
|
|
|
CONSTRAINT PK_DM_PROFILE PRIMARY KEY (ID) ,
|
|
|
|
|
CONSTRAINT DM_PROFILE_DEVICE_TYPE
|
|
|
|
|
FOREIGN KEY (DEVICE_TYPE )
|
|
|
|
|
REFERENCES DM_DEVICE_TYPE (NAME )
|
|
|
|
|
FOREIGN KEY (DEVICE_TYPE, TENANT_ID)
|
|
|
|
|
REFERENCES DM_DEVICE_TYPE (NAME, PROVIDER_TENANT_ID)
|
|
|
|
|
)
|
|
|
|
|
/
|
|
|
|
|
-- Generate ID using sequence and trigger
|
|
|
|
@ -358,10 +358,7 @@ CREATE TABLE DM_DEVICE_TYPE_POLICY (
|
|
|
|
|
CONSTRAINT PK_DEV_TYPE_POLICY PRIMARY KEY (ID) ,
|
|
|
|
|
CONSTRAINT FK_DEV_TYPE_POLICY
|
|
|
|
|
FOREIGN KEY (POLICY_ID )
|
|
|
|
|
REFERENCES DM_POLICY (ID ),
|
|
|
|
|
CONSTRAINT FK_DEV_TYPE_POLICY_DEV_TYPE
|
|
|
|
|
FOREIGN KEY (DEVICE_TYPE )
|
|
|
|
|
REFERENCES DM_DEVICE_TYPE (NAME )
|
|
|
|
|
REFERENCES DM_POLICY (ID )
|
|
|
|
|
)
|
|
|
|
|
/
|
|
|
|
|
|
|
|
|
|