|
|
@ -25,7 +25,7 @@ CREATE TABLE IF NOT EXISTS AP_APP_RELEASE(
|
|
|
|
TENANT_ID INTEGER NOT NULL,
|
|
|
|
TENANT_ID INTEGER NOT NULL,
|
|
|
|
UUID VARCHAR(200) NOT NULL,
|
|
|
|
UUID VARCHAR(200) NOT NULL,
|
|
|
|
RELEASE_TYPE VARCHAR(45) NOT NULL,
|
|
|
|
RELEASE_TYPE VARCHAR(45) NOT NULL,
|
|
|
|
PACKAGE_NAME VARCHAR(45) NOT NULL,
|
|
|
|
PACKAGE_NAME VARCHAR(150) NOT NULL,
|
|
|
|
APP_PRICE DECIMAL(6, 2) NULL DEFAULT NULL,
|
|
|
|
APP_PRICE DECIMAL(6, 2) NULL DEFAULT NULL,
|
|
|
|
INSTALLER_LOCATION VARCHAR(100) NOT NULL,
|
|
|
|
INSTALLER_LOCATION VARCHAR(100) NOT NULL,
|
|
|
|
ICON_LOCATION VARCHAR(100) NOT NULL,
|
|
|
|
ICON_LOCATION VARCHAR(100) NOT NULL,
|
|
|
@ -107,7 +107,7 @@ CREATE TABLE IF NOT EXISTS AP_DEVICE_SUBSCRIPTION(
|
|
|
|
TENANT_ID INTEGER NOT NULL,
|
|
|
|
TENANT_ID INTEGER NOT NULL,
|
|
|
|
SUBSCRIBED_BY VARCHAR(100) NOT NULL,
|
|
|
|
SUBSCRIBED_BY VARCHAR(100) NOT NULL,
|
|
|
|
SUBSCRIBED_TIMESTAMP TIMESTAMP NOT NULL,
|
|
|
|
SUBSCRIBED_TIMESTAMP TIMESTAMP NOT NULL,
|
|
|
|
UNSUBSCRIBED BOOLEAN NULL DEFAULT NULL,
|
|
|
|
UNSUBSCRIBED BOOLEAN NOT NULL DEFAULT false,
|
|
|
|
UNSUBSCRIBED_BY VARCHAR(100) NULL DEFAULT NULL,
|
|
|
|
UNSUBSCRIBED_BY VARCHAR(100) NULL DEFAULT NULL,
|
|
|
|
UNSUBSCRIBED_TIMESTAMP TIMESTAMP NULL DEFAULT NULL,
|
|
|
|
UNSUBSCRIBED_TIMESTAMP TIMESTAMP NULL DEFAULT NULL,
|
|
|
|
ACTION_TRIGGERED_FROM VARCHAR(45) NOT NULL,
|
|
|
|
ACTION_TRIGGERED_FROM VARCHAR(45) NOT NULL,
|
|
|
@ -129,7 +129,7 @@ CREATE TABLE IF NOT EXISTS AP_GROUP_SUBSCRIPTION(
|
|
|
|
TENANT_ID INTEGER NOT NULL,
|
|
|
|
TENANT_ID INTEGER NOT NULL,
|
|
|
|
SUBSCRIBED_BY VARCHAR(100) NOT NULL,
|
|
|
|
SUBSCRIBED_BY VARCHAR(100) NOT NULL,
|
|
|
|
SUBSCRIBED_TIMESTAMP TIMESTAMP NOT NULL,
|
|
|
|
SUBSCRIBED_TIMESTAMP TIMESTAMP NOT NULL,
|
|
|
|
UNSUBSCRIBED BOOLEAN NULL DEFAULT NULL,
|
|
|
|
UNSUBSCRIBED BOOLEAN NOT NULL DEFAULT false,
|
|
|
|
UNSUBSCRIBED_BY VARCHAR(100) NULL DEFAULT NULL,
|
|
|
|
UNSUBSCRIBED_BY VARCHAR(100) NULL DEFAULT NULL,
|
|
|
|
UNSUBSCRIBED_TIMESTAMP TIMESTAMP NULL DEFAULT NULL,
|
|
|
|
UNSUBSCRIBED_TIMESTAMP TIMESTAMP NULL DEFAULT NULL,
|
|
|
|
GROUP_NAME VARCHAR(100) NOT NULL,
|
|
|
|
GROUP_NAME VARCHAR(100) NOT NULL,
|
|
|
@ -145,19 +145,19 @@ CREATE INDEX fk_AP_GROUP_SUBSCRIPTION_AP_APP_RELEASE1_idx ON AP_GROUP_SUBSCRIPTI
|
|
|
|
-- Table AP_ROLE_SUBSCRIPTION
|
|
|
|
-- Table AP_ROLE_SUBSCRIPTION
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
CREATE TABLE IF NOT EXISTS AP_ROLE_SUBSCRIPTION(
|
|
|
|
CREATE TABLE IF NOT EXISTS AP_ROLE_SUBSCRIPTION(
|
|
|
|
ID INTEGER NOT NULL AUTO_INCREMENT,
|
|
|
|
ID INTEGER NOT NULL AUTO_INCREMENT,
|
|
|
|
TENANT_ID INTEGER NOT NULL,
|
|
|
|
TENANT_ID INTEGER NOT NULL,
|
|
|
|
ROLE_NAME VARCHAR(100) NOT NULL,
|
|
|
|
ROLE_NAME VARCHAR(100) NOT NULL,
|
|
|
|
SUBSCRIBED_BY VARCHAR(100) NOT NULL,
|
|
|
|
SUBSCRIBED_BY VARCHAR(100) NOT NULL,
|
|
|
|
SUBSCRIBED_TIMESTAMP TIMESTAMP NOT NULL,
|
|
|
|
SUBSCRIBED_TIMESTAMP TIMESTAMP NOT NULL,
|
|
|
|
UNSUBSCRIBED BOOLEAN NULL DEFAULT NULL,
|
|
|
|
UNSUBSCRIBED BOOLEAN NOT NULL DEFAULT false,
|
|
|
|
UNSUBSCRIBED_BY VARCHAR(100) NULL DEFAULT NULL,
|
|
|
|
UNSUBSCRIBED_BY VARCHAR(100) NULL DEFAULT NULL,
|
|
|
|
UNSUBSCRIBED_TIMESTAMP TIMESTAMP NULL DEFAULT NULL,
|
|
|
|
UNSUBSCRIBED_TIMESTAMP TIMESTAMP NULL DEFAULT NULL,
|
|
|
|
AP_APP_RELEASE_ID INTEGER NOT NULL,
|
|
|
|
AP_APP_RELEASE_ID INTEGER NOT NULL,
|
|
|
|
PRIMARY KEY (ID),
|
|
|
|
PRIMARY KEY (ID),
|
|
|
|
CONSTRAINT fk_AP_ROLE_SUBSCRIPTION_AP_APP_RELEASE1
|
|
|
|
CONSTRAINT fk_AP_ROLE_SUBSCRIPTION_AP_APP_RELEASE1
|
|
|
|
FOREIGN KEY (AP_APP_RELEASE_ID)
|
|
|
|
FOREIGN KEY (AP_APP_RELEASE_ID)
|
|
|
|
REFERENCES AP_APP_RELEASE (ID) ON DELETE NO ACTION ON UPDATE NO ACTION
|
|
|
|
REFERENCES AP_APP_RELEASE (ID) ON DELETE NO ACTION ON UPDATE NO ACTION
|
|
|
|
);
|
|
|
|
);
|
|
|
|
CREATE INDEX fk_AP_ROLE_SUBSCRIPTION_AP_APP_RELEASE1_idx ON AP_ROLE_SUBSCRIPTION (AP_APP_RELEASE_ID ASC);
|
|
|
|
CREATE INDEX fk_AP_ROLE_SUBSCRIPTION_AP_APP_RELEASE1_idx ON AP_ROLE_SUBSCRIPTION (AP_APP_RELEASE_ID ASC);
|
|
|
|
|
|
|
|
|
|
|
@ -185,7 +185,7 @@ CREATE TABLE IF NOT EXISTS AP_USER_SUBSCRIPTION(
|
|
|
|
USER_NAME VARCHAR(100) NOT NULL,
|
|
|
|
USER_NAME VARCHAR(100) NOT NULL,
|
|
|
|
SUBSCRIBED_BY VARCHAR(100) NOT NULL,
|
|
|
|
SUBSCRIBED_BY VARCHAR(100) NOT NULL,
|
|
|
|
SUBSCRIBED_TIMESTAMP TIMESTAMP NOT NULL,
|
|
|
|
SUBSCRIBED_TIMESTAMP TIMESTAMP NOT NULL,
|
|
|
|
UNSUBSCRIBED BOOLEAN NULL DEFAULT NULL,
|
|
|
|
UNSUBSCRIBED BOOLEAN NOT NULL DEFAULT false,
|
|
|
|
UNSUBSCRIBED_BY VARCHAR(100) NULL DEFAULT NULL,
|
|
|
|
UNSUBSCRIBED_BY VARCHAR(100) NULL DEFAULT NULL,
|
|
|
|
UNSUBSCRIBED_TIMESTAMP TIMESTAMP NULL DEFAULT NULL,
|
|
|
|
UNSUBSCRIBED_TIMESTAMP TIMESTAMP NULL DEFAULT NULL,
|
|
|
|
AP_APP_RELEASE_ID INTEGER NOT NULL,
|
|
|
|
AP_APP_RELEASE_ID INTEGER NOT NULL,
|
|
|
|