Project

General

Profile

Actions

None #10158

closed

New Feature #10155: Apple Volume purchasing program - VPP

CRUDs for the the VPP syncing tables

Added by Inosh Perara over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
None
Assignee:
Start date:
27/06/2023
Due date:
14/07/2023
% Done:

100%

Estimated time:
(Total: 0:00 h)
Device Type:
Component:
Type:

Description

Using the following table structure, write the DAO layer

-- -----------------------------------------------------
-- Table `VPP`.`VPP_USER`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `VPP_USER` (
`ID` INT NOT NULL AUTO_INCREMENT,
`CLIENT_USER_ID` VARCHAR NULL,
`DM_USERNAME` VARCHAR NOT NULL,
`TENANT_ID` VARCHAR NOT NULL,
`EMAIL` VARCHAR NULL,
`INVITE_CODE` VARCHAR NULL,
`STATUS` VARCHAR NULL,
`CREATED_TIME` BIGINT NULL,
`LAST_UPDATED_TIME` BIGINT NULL,
`MANAGED_ID` VARCHAR NULL,
`TEMP_PASSWORD` VARCHAR NULL,
PRIMARY KEY (`ID`));

-- -----------------------------------------------------
-- Table `VPP`.`ASSETS`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `ASSETS` (
`ID` INT NOT NULL AUTO_INCREMENT,
`ADAM_ID` VARCHAR NULL,
`APP_ID` INT NULL,
`ASSIGNED_COUNT` INT NULL,
`DEVICE_ASSIGNABLE` TINYINT NULL,
`PRICING_PARAMS` VARCHAR NULL,
`PRODUCT_TYPE` VARCHAR NULL,
`RETIRED_COUNT` INT NULL,
`REVOCABLE` TINYINT NULL,
`TENANT_ID` VARCHAR NOT NULL,
`SUPPORTED_PLATFORMS` VARCHAR NULL,
PRIMARY KEY (`ID`));

-- -----------------------------------------------------
-- Table `VPP`.`VPP_ASSOCIATION`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `VPP_ASSOCIATION` (
`ID` INT NOT NULL AUTO_INCREMENT,
`ASSET_ID` INT,
`USER_ID` INT,
`TENANT_ID` VARCHAR NOT NULL,
`ASSOCIATION_TYPE` VARCHAR NOT NULL,
`PRICING_PARAMS` VARCHAR NULL,
PRIMARY KEY (`ID`),
CONSTRAINT AP_VPP_ASSETS_fk FOREIGN KEY (ASSET_ID) REFERENCES ASSETS (ID) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT AP_VPP_VPP_USER_fk FOREIGN KEY (USER_ID) REFERENCES VPP_USER (ID) ON DELETE CASCADE ON UPDATE CASCADE
);


Subtasks 4 (0 open4 closed)

Task #10169: Add DAO operations for User managementClosedOshani Silva27/06/202314/07/2023

Actions
Task #10179: Add DAO operations for Asset managementClosedOshani Silva29/06/202314/07/2023

Actions
Task #10186: Add DAO operations for Association managementClosedOshani Silva05/07/202314/07/2023

Actions
None #10231: Add dbscripts for VPP tablesClosedOshani Silva18/07/2023

Actions
Actions

Also available in: Atom PDF