stub-react-java-application/misc/db/h2/dati/001_BASE_SCRIPTS.sql

32 lines
2.9 KiB
SQL

DELETE FROM SE_AUTHORIZATION WHERE AUTHID = 'ADMIN.APP';
INSERT INTO SE_AUTHORIZATION (AUTHID, AUTHDESCR, APPLICATION)
VALUES (N'ADMIN.APP', N'Authorization to navigate admin application', NULL);
DELETE FROM SE_AUTHORIZATION WHERE AUTHID = 'APPLICATION';
INSERT INTO SE_AUTHORIZATION (AUTHID, AUTHDESCR, APPLICATION)
VALUES (N'APPLICATION', N'Authorization to navigate the application', NULL);
DELETE FROM SE_ROLES WHERE ROLEID = 'ADMIN';
INSERT INTO SE_ROLES (ROLEID, ROLEDESC, ID_USER_UPD, DATE_UPD, ID_USER_CRE, DATE_CRE, APPLICATION)
VALUES (N'ADMIN', N'Admin role', NULL, NULL, NULL, NULL, NULL);
DELETE FROM SE_ROLES WHERE ROLEID = 'USER';
INSERT INTO SE_ROLES (ROLEID, ROLEDESC, ID_USER_UPD, DATE_UPD, ID_USER_CRE, DATE_CRE, APPLICATION)
VALUES (N'USER', N'User role', NULL, NULL, NULL, NULL, NULL);
DELETE FROM SE_ROLES_AUTH WHERE ROLEID = 'ADMIN';
INSERT INTO SE_ROLES_AUTH (ROLEID, AUTHID, DTAUTH, ID_USER_UPD, DATE_UPD)
VALUES (N'ADMIN', N'ADMIN.APP', NULL, NULL, NULL);
INSERT INTO SE_ROLES_AUTH (ROLEID, AUTHID, DTAUTH, ID_USER_UPD, DATE_UPD)
VALUES (N'ADMIN', N'APPLICATION', NULL, NULL, NULL);
DELETE FROM SE_ROLES_AUTH WHERE ROLEID = 'USER';
INSERT INTO SE_ROLES_AUTH (ROLEID, AUTHID, DTAUTH, ID_USER_UPD, DATE_UPD)
VALUES (N'USER', N'APPLICATION', NULL, NULL, NULL);
DELETE FROM SE_USERS WHERE USERID = 'ZUXT2151';
INSERT INTO SE_USERS (USERID, NAME, LASTNAME, TITLE, EMAIL, PHONE, PASSWORD, FIRSTNAME, DTPASSWORD, LASTPASSWORD, COD_TYPEENT, USER_ACR, COD_LANG, COD_FIL, STATUS, EXT_KEY, COD_BANK, ID_USER_UPD, DATE_UPD, IS_FAKE, DATE_DELETED, DATE_LAST_LOGIN, TIPO_ACCOUNT, COD_COMPAGNIA, ID_PERSON, COD_PORT, IP_ADDRESS, PASS_TEMP, DATE_CRE, DATE_PREVIOUS_LOGIN, CLIENT_VERSION, DELETED, CONSECUTIVE_FAILURE, LOGIN_FAILURE, MASKED_MODE, LOGIN_SUCCESS, CODICE_INTERNO, IS_ENABLED, DATE_VERIFIED_EMAIL, DATE_VERIFIED_PHONE, EMAIL_TO_VERIFY, PHONE_TO_VERIFY, TOKEN_VERIFY_EMAIL, TOKEN_VERIFY_PHONE, DATE_EXPIRE_TOKEN_EMAIL, DATE_EXPIRE_TOKEN_PHONE, DATE_DISABLED, DATE_BLOCK, USERID_BO, COD_FISCALE, N_ISCRIZIONE_RUI, DT_ISCRIZIONE_RUI, DT_CANCELLAZIONE_RUI, COD_CDR, COD_REG, LICENSE, ACTIVE_JSESSIONID)
VALUES (N'ZUXT2151', NULL, N'Rosati', NULL, N'r.rosati@armundia.com', NULL, N'M/HBXZF8u1P6XWm3Lw+EQxrXD+fxZQjDPCbkTJPADYc=', NULL, '2024-01-01 00:00:00', NULL, NULL, NULL, N'IT', NULL, NULL, NULL, NULL, N'c.rosati', '2024-01-01 00:00:00', NULL, NULL, '2024-01-01 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2024-01-01 00:00:00', NULL, NULL, 0, 4, NULL, 4893, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'@', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
DELETE FROM SE_USERS_ROLES WHERE USERID = 'ZUXT2151';
INSERT INTO SE_USERS_ROLES (USERID, ROLEID, DTROLE, ENABLED, ID_USER_UPD, DATE_UPD)
VALUES (N'ZUXT2151', N'ADMIN', '2024-01-01 00:00:00', 1, NULL, NULL);
INSERT INTO SE_USERS_ROLES (USERID, ROLEID, DTROLE, ENABLED, ID_USER_UPD, DATE_UPD)
VALUES (N'ZUXT2151', N'USER', '2024-01-01 00:00:00', 1, NULL, NULL);