|
|
@ -2,7 +2,7 @@ IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE OBJECT_ID = OBJECT_ID(N'[DBO].[D
|
|
|
|
CREATE TABLE DM_DEVICE_TYPE (
|
|
|
|
CREATE TABLE DM_DEVICE_TYPE (
|
|
|
|
ID INTEGER IDENTITY(1,1) NOT NULL,
|
|
|
|
ID INTEGER IDENTITY(1,1) NOT NULL,
|
|
|
|
NAME VARCHAR(300) DEFAULT NULL,
|
|
|
|
NAME VARCHAR(300) DEFAULT NULL,
|
|
|
|
DEVICE_TYPE_META VARCHAR(20000) DEFAULT NULL,
|
|
|
|
DEVICE_TYPE_META VARCHAR(3000) DEFAULT NULL,
|
|
|
|
LAST_UPDATED_TIMESTAMP DATETIME2 NOT NULL,
|
|
|
|
LAST_UPDATED_TIMESTAMP DATETIME2 NOT NULL,
|
|
|
|
PROVIDER_TENANT_ID INTEGER NULL,
|
|
|
|
PROVIDER_TENANT_ID INTEGER NULL,
|
|
|
|
SHARED_WITH_ALL_TENANTS BIT NOT NULL DEFAULT 0,
|
|
|
|
SHARED_WITH_ALL_TENANTS BIT NOT NULL DEFAULT 0,
|
|
|
@ -55,7 +55,7 @@ CREATE TABLE DM_DEVICE (
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE OBJECT_ID = OBJECT_ID(N'[DBO].[DM_DEVICE_PROPERTIES]') AND TYPE IN (N'U'))
|
|
|
|
IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE OBJECT_ID = OBJECT_ID(N'[DBO].[DM_DEVICE_PROPERTIES]') AND TYPE IN (N'U'))
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_DEVICE_PROPERTIES (
|
|
|
|
CREATE TABLE DM_DEVICE_PROPERTIES (
|
|
|
|
DEVICE_TYPE_NAME VARCHAR(300) NOT NULL,
|
|
|
|
DEVICE_TYPE_NAME VARCHAR(300) NOT NULL,
|
|
|
|
DEVICE_IDENTIFICATION VARCHAR(300) NOT NULL,
|
|
|
|
DEVICE_IDENTIFICATION VARCHAR(300) NOT NULL,
|
|
|
|
PROPERTY_NAME VARCHAR(100) DEFAULT 0,
|
|
|
|
PROPERTY_NAME VARCHAR(100) DEFAULT 0,
|
|
|
|