|
|
@ -23,7 +23,7 @@ CREATE TABLE WIN_DEVICE (
|
|
|
|
-- Table `WIN_FEATURE`
|
|
|
|
-- Table `WIN_FEATURE`
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
CREATE TABLE WIN_FEATURE (
|
|
|
|
CREATE TABLE WIN_FEATURE (
|
|
|
|
ID INT NOT NULL,
|
|
|
|
ID NUMBER(10) NOT NULL,
|
|
|
|
CODE VARCHAR(45) NOT NULL,
|
|
|
|
CODE VARCHAR(45) NOT NULL,
|
|
|
|
NAME VARCHAR(100) NOT NULL,
|
|
|
|
NAME VARCHAR(100) NOT NULL,
|
|
|
|
DESCRIPTION VARCHAR(200) NULL,
|
|
|
|
DESCRIPTION VARCHAR(200) NULL,
|
|
|
@ -35,9 +35,9 @@ CREATE TABLE WIN_FEATURE (
|
|
|
|
-- Table `WINDOWS_ENROLLMENT_TOKEN`
|
|
|
|
-- Table `WINDOWS_ENROLLMENT_TOKEN`
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
CREATE TABLE WINDOWS_ENROLLMENT_TOKEN (
|
|
|
|
CREATE TABLE WINDOWS_ENROLLMENT_TOKEN (
|
|
|
|
ID INT NOT NULL,
|
|
|
|
ID NUMBER(10) NOT NULL,
|
|
|
|
TENANT_DOMAIN VARCHAR(45) NOT NULL,
|
|
|
|
TENANT_DOMAIN VARCHAR(45) NOT NULL,
|
|
|
|
TENANT_ID INT DEFAULT 0,
|
|
|
|
TENANT_ID NUMBER(10) DEFAULT 0,
|
|
|
|
ENROLLMENT_TOKEN VARCHAR(100) NULL,
|
|
|
|
ENROLLMENT_TOKEN VARCHAR(100) NULL,
|
|
|
|
DEVICE_ID VARCHAR(100) NULL,
|
|
|
|
DEVICE_ID VARCHAR(100) NULL,
|
|
|
|
USERNAME VARCHAR(45) NULL,
|
|
|
|
USERNAME VARCHAR(45) NULL,
|
|
|
@ -63,4 +63,23 @@ FOR EACH ROW
|
|
|
|
BEGIN
|
|
|
|
BEGIN
|
|
|
|
SELECT WIN_FEATURE_ID_INC_SEQ.NEXTVAL INTO :NEW.ID FROM DUAL;
|
|
|
|
SELECT WIN_FEATURE_ID_INC_SEQ.NEXTVAL INTO :NEW.ID FROM DUAL;
|
|
|
|
END;
|
|
|
|
END;
|
|
|
|
|
|
|
|
/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
|
|
|
|
-- Sequence `WINDOWS_ENROLLMENT_TOKEN_ID_INC_SEQ`
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
|
|
|
|
CREATE SEQUENCE WINDOWS_ENROLLMENT_TOKEN_ID_INC_SEQ START WITH 1 INCREMENT BY 1 NOCACHE
|
|
|
|
|
|
|
|
/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
|
|
|
|
-- Trigger `WINDOWS_ENROLLMENT_TOKEN_ID_INC_TRIG`
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
|
|
|
|
CREATE OR REPLACE TRIGGER WINDOWS_ENROLLMENT_TOKEN_ID_INC_TRIG
|
|
|
|
|
|
|
|
BEFORE INSERT
|
|
|
|
|
|
|
|
ON WINDOWS_ENROLLMENT_TOKEN
|
|
|
|
|
|
|
|
REFERENCING NEW AS NEW
|
|
|
|
|
|
|
|
FOR EACH ROW
|
|
|
|
|
|
|
|
BEGIN
|
|
|
|
|
|
|
|
SELECT WINDOWS_ENROLLMENT_TOKEN_ID_INC_SEQ.NEXTVAL INTO :NEW.ID FROM DUAL;
|
|
|
|
|
|
|
|
END;
|
|
|
|
/
|
|
|
|
/
|