|
|
@ -352,3 +352,56 @@ CREATE TABLE IF NOT EXISTS AP_APP_FAVOURITES(
|
|
|
|
FOREIGN KEY (AP_APP_ID)
|
|
|
|
FOREIGN KEY (AP_APP_ID)
|
|
|
|
REFERENCES AP_APP (ID) ON DELETE NO ACTION ON UPDATE NO ACTION
|
|
|
|
REFERENCES AP_APP (ID) ON DELETE NO ACTION ON UPDATE NO ACTION
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
|
|
|
|
-- Table AP_VPP_USER
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS AP_VPP_USER (
|
|
|
|
|
|
|
|
ID INTEGER NOT NULL DEFAULT NEXTVAL('AP_VPP_USER_seq'),
|
|
|
|
|
|
|
|
CLIENT_USER_ID VARCHAR(255) NULL,
|
|
|
|
|
|
|
|
DM_USERNAME VARCHAR(255) NOT NULL,
|
|
|
|
|
|
|
|
TENANT_ID INTEGER NOT NULL,
|
|
|
|
|
|
|
|
EMAIL VARCHAR(255) NULL,
|
|
|
|
|
|
|
|
INVITE_CODE VARCHAR(255) NULL,
|
|
|
|
|
|
|
|
STATUS VARCHAR(255) NULL,
|
|
|
|
|
|
|
|
CREATED_TIME BIGINT NULL,
|
|
|
|
|
|
|
|
LAST_UPDATED_TIME BIGINT NULL,
|
|
|
|
|
|
|
|
MANAGED_ID VARCHAR(255) NULL,
|
|
|
|
|
|
|
|
TEMP_PASSWORD VARCHAR(255) NULL,
|
|
|
|
|
|
|
|
PRIMARY KEY (ID)
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
|
|
|
|
-- Table AP_ASSETS
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS AP_ASSETS (
|
|
|
|
|
|
|
|
ID INTEGER NOT NULL DEFAULT NEXTVAL('AP_ASSETS_seq'),
|
|
|
|
|
|
|
|
APP_ID INTEGER NULL,
|
|
|
|
|
|
|
|
TENANT_ID INTEGER NOT NULL,
|
|
|
|
|
|
|
|
CREATED_TIME BIGINT NULL,
|
|
|
|
|
|
|
|
LAST_UPDATED_TIME BIGINT NULL,
|
|
|
|
|
|
|
|
ADAM_ID VARCHAR(255) NULL,
|
|
|
|
|
|
|
|
ASSIGNED_COUNT VARCHAR(255) NULL,
|
|
|
|
|
|
|
|
DEVICE_ASSIGNABLE VARCHAR(255) NULL,
|
|
|
|
|
|
|
|
PRICING_PARAMS VARCHAR(255) NULL,
|
|
|
|
|
|
|
|
PRODUCT_TYPE VARCHAR(255) NULL,
|
|
|
|
|
|
|
|
RETIRED_COUNT VARCHAR(255) NULL,
|
|
|
|
|
|
|
|
REVOCABLE VARCHAR(255) NULL,
|
|
|
|
|
|
|
|
SUPPORTED_PLATFORMS VARCHAR(255) NULL,
|
|
|
|
|
|
|
|
PRIMARY KEY (ID)
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
|
|
|
|
-- Table AP_VPP_ASSOCIATION
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS AP_VPP_ASSOCIATION (
|
|
|
|
|
|
|
|
ID INTEGER NOT NULL DEFAULT NEXTVAL('AP_VPP_ASSOCIATION_seq'),
|
|
|
|
|
|
|
|
ASSET_ID INTEGER,
|
|
|
|
|
|
|
|
USER_ID INTEGER,
|
|
|
|
|
|
|
|
TENANT_ID INTEGER NOT NULL,
|
|
|
|
|
|
|
|
ASSOCIATION_TYPE VARCHAR(255) NOT NULL,
|
|
|
|
|
|
|
|
PRICING_PARAMS VARCHAR(255) NULL,
|
|
|
|
|
|
|
|
PRIMARY KEY (ID),
|
|
|
|
|
|
|
|
CONSTRAINT AP_VPP_ASSETS_fk FOREIGN KEY (ASSET_ID) REFERENCES AP_ASSETS (ID) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
|
|
|
|
CONSTRAINT AP_VPP_VPP_USER_fk FOREIGN KEY (USER_ID) REFERENCES AP_VPP_USER (ID) ON DELETE CASCADE ON UPDATE CASCADE
|
|
|
|
|
|
|
|
);
|
|
|
|