|
|
@ -13,12 +13,13 @@ CREATE INDEX IDX_DEVICE_NAME ON DM_DEVICE_TYPE (NAME);
|
|
|
|
CREATE INDEX IDX_DEVICE_TYPE_DEVICE_NAME ON DM_DEVICE_TYPE(ID, NAME);
|
|
|
|
CREATE INDEX IDX_DEVICE_TYPE_DEVICE_NAME ON DM_DEVICE_TYPE(ID, NAME);
|
|
|
|
|
|
|
|
|
|
|
|
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,
|
|
|
|
USERNAME VARCHAR(500) DEFAULT NULL,
|
|
|
|
DEVICE_IDENTIFIER VARCHAR(300),
|
|
|
|
PRIMARY KEY (ID)
|
|
|
|
USERNAME VARCHAR(500) DEFAULT NULL,
|
|
|
|
|
|
|
|
PRIMARY KEY (ID)
|
|
|
|
)ENGINE = InnoDB;
|
|
|
|
)ENGINE = InnoDB;
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_GROUP (
|
|
|
|
CREATE TABLE IF NOT EXISTS DM_GROUP (
|
|
|
|