text stringlengths 6 9.38M |
|---|
drop table paf_single_crdt;
create table paf_single_crdt(
tx_brno varchar(10) comment '交易机构' ,
plat_date integer comment '平台日期' ,
plat_time integer comment '平台时间' ,
plat_trace integer comment '平台流水' ,
up_brno varchar(10) comment '上级机构' ,
log_id varchar(60) comment '日志ID' ,
log_dev varchar(20) comment '日志设备' ,
snd_date varchar(8) comment '发送方日期' ,
snd_time varchar(6) comment '发送方时间' ,
snd_seqno varchar(32) comment '发送方流水' ,
snd_unitno varchar(15) comment '公积金机构号' ,
snd_node varchar(6) comment '发送方节点号' ,
rcv_node varchar(6) comment '接收方节点号' ,
bdc_date varchar(8) comment '结算系统日期' ,
bdc_time varchar(6) comment '结算系统时间' ,
bdc_seqno varchar(32) comment '结算系统流水' ,
cus_no varchar(32) comment '银行客户编号' ,
opr_no varchar(21) comment '操作员编号' ,
tx_status varchar(1) comment '交易状态:0、登记;1、本金记账成功;2、利息记账成功;3、实时交易成功;4、实时部分成功;5、异步受理成功;9、失败' ,
cap_seqno varchar(32) comment '本金核心系统流水号' ,
cap_hostcode varchar(20) comment '本金核心系统响应代码' ,
cap_hostmsg varchar(120) comment '本金核心系统响应信息' ,
int_seqno varchar(32) comment '利息核心系统流水号' ,
int_hostcode varchar(20) comment '利息核心系统响应代码' ,
int_hostmsg varchar(120) comment '利息核心系统响应信息' ,
curr_no varchar(3) comment '币种,156' ,
curr_iden varchar(1) comment '钞汇鉴别:1、钞;2、汇' ,
settle_type varchar(1) comment '结算模式:1、同行;2、跨行实时;3、跨行非实时' ,
bus_type varchar(6) comment '业务类型' ,
de_acctno varchar(32) comment '付方账号' ,
de_acctname varchar(255) comment '付方户名' ,
de_acctclass varchar(1) comment '付方账户类别:1、对私;2、对公' ,
cap_amt decimal(16,2) comment '本金发生额' ,
de_intacctno varchar(32) comment '付息户账号 ',
de_intacctname varchar(255) comment '付息户户名 ',
de_intacctclass varchar(1) comment '付息户类别:1、对私;2、对公',
de_intcracct varchar(32) comment '利息收方账号',
int_amt decimal(16,2) comment '利息发生额',
cr_acctno varchar(32) comment '收方账号',
cr_acctname varchar(255) comment '收方户名 ',
cr_acctclass varchar(1) comment '收方账户类别:1、对私;2、对公',
cr_bankclass varchar(1) comment '收方账户行别:0、本行;1、跨行',
cr_bankname varchar(60) comment '收方行名 ',
cr_chgno varchar(12) comment '收方联行号 ',
amt decimal(16,2) comment '交易金额' ,
ref_acctno varchar(32) comment '业务明细账号',
ref_seqno1 varchar(32) comment '业务明细流水号 1',
ref_seqno2 varchar(32) comment '业务明细流水号 2',
summary varchar(60) comment '摘要',
remark varchar(255) comment '备注'
) comment='公积金单笔付款登记簿' ;
ALTER TABLE paf_single_crdt ADD PRIMARY KEY PK_paf_single_crdt (plat_date,plat_trace);
--CREATE INDEX paf_single_crdt_index1 ON paf_single_crdt (tx_status) ;
--CREATE INDEX paf_single_crdt_index2 ON paf_single_crdt (bdc_date,bdc_seqno) ; |
UPDATE alumnos
SET al_fecbaj = '2014-31-07'
WHERE al_matric NOT IN (SELECT pi_matric FROM padronini)
AND al_estatus = '1'
AND al_semes <> '6'
UPDATE alumnos
SET al_estatus = '3'
WHERE al_matric NOT IN (SELECT pi_matric FROM padronini)
AND al_estatus = '1'
AND al_semes <> '6' |
-- -----------------------------------------------------
-- Adds max file size and dropped dir config
-- -----------------------------------------------------
INSERT INTO `#__gorilla_config`
(`key`, `value`)
SELECT 'MAX_FILE_SIZE',''
FROM dual
WHERE not exists (SELECT 1 AS OK
FROM `#__gorilla_config`
WHERE `key` = 'MAX_FILE_SIZE' );
INSERT INTO `#__gorilla_config`
(`key`, `value`)
SELECT 'DROPPED_DIR',''
FROM dual
WHERE not exists (SELECT 1 AS OK
FROM `#__gorilla_config`
WHERE `key` = 'DROPPED_DIR' );
INSERT INTO `#__gorilla_config`
(`key`, `value`)
SELECT 'STORAGE',''
FROM dual
WHERE not exists (SELECT 1 AS OK
FROM `#__gorilla_config`
WHERE `key` = 'STORAGE' );
INSERT INTO `#__gorilla_config`
(`key`, `value`)
SELECT 'LOCAL_DIR',''
FROM dual
WHERE not exists (SELECT 1 AS OK
FROM `#__gorilla_config`
WHERE `key` = 'LOCAL_DIR' ); |
select course_id from takes
count(course_id) >= ALL (select count(*) from takes group by course_id);
select name, title from student, course
join takes on takes.ID = student.ID
where dept_name = 'Biology';
select takes.ID, semester from takes join student on student.ID = takes.ID where semester = 'Spring';
select name, title from student, course join takes on student.ID = takes.ID; |
select * from fnd_conc_req_summary_v where request_id = 7734306;
select * from po_requisitions_interface_all where batch_id like '13022020%';
delete from po_requisitions_interface_all where batch_id like '13022020%';
select * from po_requisition_headers_all where request_id = 7734342 order by creation_date desc;
select * from oe_headers_iface_all where orig_sys_document_ref IN ('538793',
'537791','537793');
SELECT responsibility_id,application_id,responsibility_name
-- INTO ln_resp_id,ln_app_id
from fnd_responsibility_tl where responsibility_name like'Order%Mana%';
select * from oe_order_headers_all where orig_sys_document_ref = '15915';
select * from oe_order_headers_all order by creation_date desc;--69334
SELECT organization_id
-- INTO ln_d_org_id
FROM org_organization_definitions
WHERE organization_code = 'M2';
SELECT count(0)
-- INTO ln_sn_count
FROM mtl_shipping_network_view a
WHERE from_organization_code = 'M1'
AND to_organization_code = 'M2'
AND intransit_type = 2;
SELECT *--segment1
-- INTO lv_req_number
FROM po_requisition_headers_all
WHERE request_id = 7734306
AND type_lookup_code = 'INTERNAL';
select order_number --into lv_order
from oe_order_headers_all
where orig_sys_document_ref = '15909';
select * from oe_order_sources where order_source_id = 10; |
prompt PL/SQL Developer import file
prompt Created on 2021年3月10日 by Mr.Tong
set feedback off
set define off
prompt Creating SYS_USER...
create table SYS_USER
(
id VARCHAR2(64) not null,
code VARCHAR2(64) not null,
name VARCHAR2(64) not null,
login_name VARCHAR2(64) not null,
login_password VARCHAR2(64) not null,
type NUMBER not null,
phone VARCHAR2(11),
email VARCHAR2(32),
create_user VARCHAR2(20) not null,
create_time DATE not null,
update_user VARCHAR2(20) not null,
update_time DATE not null,
is_delete NUMBER,
comments VARCHAR2(200)
)
tablespace DANGAN
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 64K
next 8K
minextents 1
maxextents unlimited
);
comment on table SYS_USER
is '用户表';
comment on column SYS_USER.id
is '用户ID';
comment on column SYS_USER.code
is '用户编码';
comment on column SYS_USER.name
is '用户名称';
comment on column SYS_USER.login_name
is '登录用户名';
comment on column SYS_USER.login_password
is '登录密码';
comment on column SYS_USER.type
is '用户类型:管理员用户(0),普通用户(1)';
comment on column SYS_USER.phone
is '用户手机号';
comment on column SYS_USER.email
is '用户邮箱';
comment on column SYS_USER.create_user
is '添加用戶';
comment on column SYS_USER.create_time
is '添加时间';
comment on column SYS_USER.update_user
is '修改用戶';
comment on column SYS_USER.update_time
is '修改日期';
comment on column SYS_USER.is_delete
is '删除flag:有效(0),逻辑删除(1)';
comment on column SYS_USER.comments
is '备注';
alter table SYS_USER
add constraint PK_SYS_USER_ID primary key (ID)
using index
tablespace DANGAN
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 64K
next 1M
minextents 1
maxextents unlimited
);
prompt Disabling triggers for SYS_USER...
alter table SYS_USER disable all triggers;
prompt Deleting SYS_USER...
delete from SYS_USER;
commit;
prompt Loading SYS_USER...
insert into SYS_USER (id, code, name, login_name, login_password, type, phone, email, create_user, create_time, update_user, update_time, is_delete, comments)
values ('1', '2021-01-15-000001', 'admin', 'admin', '21232f297a57a5a743894a0e4a801fc3', 0, null, 'zxt_0310@163.com', 'admin', to_date('15-01-2021 01:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'admin', to_date('15-01-2021 01:00:00', 'dd-mm-yyyy hh24:mi:ss'), 0, null);
commit;
prompt 1 records loaded
prompt Enabling triggers for SYS_USER...
alter table SYS_USER enable all triggers;
set feedback on
set define on
prompt Done.
|
use bookTraderTstdb;
DROP TABLE IF EXISTS books;
DROP TABLE IF EXISTS usertable;
DROP TABLE IF EXISTS authors;
DROP TABLE IF EXISTS forsale;
CREATE TABLE authors (
id int AUTO_INCREMENT NOT NULL,
author VARCHAR(50) NOT NULL,
bio VARCHAR(128),
PRIMARY KEY(id)
);
CREATE TABLE books(
id int AUTO_INCREMENT NOT NULL,
title VARCHAR(50) NOT NULL,
genre VARCHAR(50),
numpages int,
authorid int,
PRIMARY KEY(id),
FOREIGN KEY (authorid)
REFERENCES authors(id)
);
CREATE TABLE usertable(
id int AUTO_INCREMENT not null,
username VARCHAR(50) not null,
passwd VARCHAR(50) not null,
PRIMARY KEY(id)
);
CREATE TABLE forsale(
id int AUTO_INCREMENT NOT NULL,
bookID int not null,
sellerID int not null,
price FLOAT,
newused int,
PRIMARY KEY(id),
INDEX (bookID),
INDEX (sellerID),
FOREIGN KEY (bookID)
REFERENCES books(id),
FOREIGN KEY (sellerID)
REFERENCES usertable(id)
); |
SELECT president.first_name, president.last_name, president.birth, president.death, pres_term.term_start_date, pres_term.term_end_date, pres_term.reason_for_leaving_office
FROM president
INNER JOIN pres_term ON president.death = pres_term.term_end_date; |
CREATE TABLE organization (
id INT NOT NULL,
url varchar NOT NULL,
external_id VARCHAR NOT NULL,
name VARCHAR NOT NULL,
created_at TIMESTAMP WITH TIME ZONE,
details VARCHAR,
shared_tickets bit NOT NULL
);
CREATE TABLE organization_domain_names (
organization_id int NOT NULL,
domain_name varchar NOT NULL
);
CREATE TABLE organization_tags (
organization_id int NOT NULL,
tag varchar NOT NULL
);
CREATE TABLE user (
id INT NOT NULL,
url varchar NOT NULL,
external_id VARCHAR NOT NULL,
name VARCHAR,
alias VARCHAR,
active bit,
verified bit,
shared bit,
locale VARCHAR,
timezone VARCHAR,
email VARCHAR,
phone VARCHAR,
signature VARCHAR,
o_id Int,
suspended BIT,
role VARCHAR,
created_at TIMESTAMP WITH TIME ZONE,
last_login_at TIMESTAMP WITH TIME ZONE
);
CREATE TABLE user_tags (
user_id int NOT NULL,
tag varchar NOT NULL
);
CREATE TABLE ticket (
id VARCHAR NOT NULL,
o_id Int,
a_id Int,
s_id Int,
url varchar NOT NULL,
external_id VARCHAR NOT NULL,
type VARCHAR,
subject VARCHAR,
description VARCHAR,
priority VARCHAR,
status VARCHAR,
has_incidents bit,
via VARCHAR,
created_at TIMESTAMP WITH TIME ZONE,
due_at TIMESTAMP WITH TIME ZONE
);
CREATE TABLE ticket_tags (
ticket_id VARCHAR NOT NULL,
tag varchar NOT NULL
);
|
CREATE TABLE employee (
employee_id INTEGER,
first_name VARCHAR(255) NOT NULL,
last_name VARCHAR(255) NOT NULL,
salary INTEGER,
contract_length INTEGER,
PRIMARY KEY (employee_id)
);
INSERT INTO employee(employee_id,first_name, last_name, salary, contract_length) VALUES(1,'Steven', 'King', 10000, 3);
INSERT INTO employee(employee_id,first_name, last_name, salary, contract_length) VALUES(2,'Neena', 'Kochhar', 8000, 2);
INSERT INTO employee(employee_id,first_name, last_name, salary, contract_length) VALUES(3,'David', 'Austin', 12000, 2);
INSERT INTO employee(employee_id,first_name, last_name, salary, contract_length) VALUES(4,'Nancy', 'Greenberg', 3000, 1);
select * from employee;
-- 1.Write a query that returns the First and Last Name of every employee earning between 5-11k.
select first_name, last_name from employee where salary > 5000 and salary < 11000;
-- 2. Which employees are employed for less than 2 years?
select * from employee where contract_length < 2;
-- 3.Add two more employees to the table. Make up the data
INSERT INTO employee(employee_id,first_name, last_name, salary, contract_length) VALUES(5,'Brian', 'Brian', 12000, 2);
INSERT INTO employee(employee_id,first_name, last_name, salary, contract_length) VALUES(6,'Darren', 'Darren', 30000, 3);
-- 4.Nancy Greenberg got a new contract, 2 years with 8000 salary. Update the table.
update employee set salary = 8000, contract_length = 2 where first_name ='Nancy';
|
insert into avatars (avatar_base_type_id, level, skin, hair, picture_url, night_background_url, day_background_url, status, text_id, created_by, created_date)
values
(5, 1, 3, 2, 's3h2.png', 'night1.png', 'day1.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 2, 3, 2, 's3h2.png', 'night1.png', 'day1.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 3, 3, 2, 's3h2.png', 'night1.png', 'day1.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 4, 3, 2, 's3h2.png', 'night1.png', 'day1.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 5, 3, 2, 's3h2.png', 'night1.png', 'day1.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 6, 3, 2, 's3h2.png', 'night1.png', 'day1.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 7, 3, 2, 's3h2.png', 'night1.png', 'day1.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 8, 3, 2, 's3h2.png', 'night1.png', 'day1.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 9, 3, 2, 's3h2.png', 'night1.png', 'day1.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 10, 3, 2, 's3h2.png', 'night10.png', 'day10.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 11, 3, 2, 's3h2.png', 'night10.png', 'day10.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 12, 3, 2, 's3h2.png', 'night10.png', 'day10.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 13, 3, 2, 's3h2.png', 'night10.png', 'day10.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 14, 3, 2, 's3h2.png', 'night10.png', 'day10.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 15, 3, 2, 's3h2.png', 'night10.png', 'day10.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 16, 3, 2, 's3h2.png', 'night10.png', 'day10.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 17, 3, 2, 's3h2.png', 'night10.png', 'day10.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 18, 3, 2, 's3h2.png', 'night10.png', 'day10.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 19, 3, 2, 's3h2.png', 'night10.png', 'day10.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 20, 3, 2, 's3h2.png', 'night20.png', 'day20.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 21, 3, 2, 's3h2.png', 'night20.png', 'day20.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 22, 3, 2, 's3h2.png', 'night20.png', 'day20.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 23, 3, 2, 's3h2.png', 'night20.png', 'day20.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 24, 3, 2, 's3h2.png', 'night20.png', 'day20.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 25, 3, 2, 's3h2.png', 'night20.png', 'day20.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 26, 3, 2, 's3h2.png', 'night20.png', 'day20.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 27, 3, 2, 's3h2.png', 'night20.png', 'day20.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 28, 3, 2, 's3h2.png', 'night20.png', 'day20.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 29, 3, 2, 's3h2.png', 'night20.png', 'day20.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 30, 3, 2, 's3h2.png', 'night30.png', 'day30.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 31, 3, 2, 's3h2.png', 'night30.png', 'day30.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 32, 3, 2, 's3h2.png', 'night30.png', 'day30.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 33, 3, 2, 's3h2.png', 'night30.png', 'day30.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 34, 3, 2, 's3h2.png', 'night30.png', 'day30.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 35, 3, 2, 's3h2.png', 'night30.png', 'day30.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 36, 3, 2, 's3h2.png', 'night30.png', 'day30.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 37, 3, 2, 's3h2.png', 'night30.png', 'day30.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 38, 3, 2, 's3h2.png', 'night30.png', 'day30.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 39, 3, 2, 's3h2.png', 'night30.png', 'day30.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 40, 3, 2, 's3h2.png', 'night40.png', 'day40.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 41, 3, 2, 's3h2.png', 'night40.png', 'day40.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 42, 3, 2, 's3h2.png', 'night40.png', 'day40.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 43, 3, 2, 's3h2.png', 'night40.png', 'day40.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 44, 3, 2, 's3h2.png', 'night40.png', 'day40.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 45, 3, 2, 's3h2.png', 'night40.png', 'day40.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 46, 3, 2, 's3h2.png', 'night40.png', 'day40.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 47, 3, 2, 's3h2.png', 'night40.png', 'day40.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 48, 3, 2, 's3h2.png', 'night40.png', 'day40.png', 'ACTIVE', 1, 1, current_timestamp),
(5, 49, 3, 2, 's3h2.png', 'night40.png', 'day40.png', 'ACTIVE', 1, 1, current_timestamp);
|
CREATE DATABASE IF NOT EXISTS opsmeta;
USE opsmeta;
CREATE TABLE IF NOT EXISTS job_execution_master(
job_id numeric,
job_execution_id int AUTO_INCREMENT,
PRIMARY KEY (job_execution_id),
FOREIGN KEY (job_id) REFERENCES (metaapp.job_master.job_id)
);
CREATE TABLE IF NOT EXISTS job_execution_details(
job_execution_details_id int AUTO_INCREMENT,
job_execution_id int,
source_data_file_name varchar(50),
source_layout_file_name varchar(50),
source_data_file_location varchar(100),
source_layout_file_location varchar(100),
target_file_name varchar(50),
target_file_location varchar(100),
userid varchar(20),
job_start datetime,
job_end datetime,
job_result char(1),
job_comments varchar(100),
job_command varchar(100),
job_stage varchar(20),
PRIMARY KEY(job_execution_details_id),
FOREIGN KEY(job_execution_id) REFERENCES (job_execution_master.job_execution_id)
);
|
DROP TABLE `[#DB_PREFIX#]edm_unsubscription`;
DELETE FROM `[#DB_PREFIX#]system_setting` WHERE `varname` = 'request_route';
DELETE FROM `[#DB_PREFIX#]system_setting` WHERE `varname` = 'request_route_sys_1';
DELETE FROM `[#DB_PREFIX#]system_setting` WHERE `varname` = 'request_route_sys_2';
DELETE FROM `[#DB_PREFIX#]system_setting` WHERE `varname` = 'weixin_subscribe_message';
ALTER TABLE `[#DB_PREFIX#]weixin_reply_rule` ADD `event_key` VARCHAR( 32 ) NULL DEFAULT '';
ALTER TABLE `[#DB_PREFIX#]weixin_reply_rule` ADD INDEX ( `event_key` );
ALTER TABLE `[#DB_PREFIX#]weixin_reply_rule` ADD `is_subscribe` TINYINT( 1 ) NULL DEFAULT '0';
ALTER TABLE `[#DB_PREFIX#]weixin_reply_rule` ADD INDEX ( `is_subscribe` );
ALTER TABLE `[#DB_PREFIX#]users_attrib` CHANGE `qq` `qq` BIGINT( 15 ) NULL DEFAULT NULL;
|
-- Lesson 4: Filtering Data
-- use SELECT statement's WHERE clause to specify search conditions
SELECT prod_name, prod_price
FROM Products WHERE prod_price = 3.49;
-- checking against a single value
SELECT prod_name, prod_price
FROM Products WHERE prod_price < 10; # <= 10 returns same thing in this case
-- checking for nonmatches
SELECT vend_id, prod_name
FROM Products WHERE vend_id <> 'DLL01'; # or != 'DLL01'
-- checking for a range of values
SELECT prod_name, prod_price
FROM Products WHERE prod_price BETWEEN 5 and 10;
-- checking for no value
SELECT prod_name, prod_price
FROM Products WHERE prod_price IS NULL; #doesn't return anything
SELECT cust_name
FROM Customers WHERE cust_email IS NULL;
|
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Aug 31, 2019 at 07:48 AM
-- Server version: 5.7.26
-- PHP Version: 7.2.18
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `ticket`
--
-- --------------------------------------------------------
--
-- Table structure for table `auth`
--
DROP TABLE IF EXISTS `auth`;
CREATE TABLE IF NOT EXISTS `auth` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(50) NOT NULL,
`password` varchar(100) NOT NULL,
`name` varchar(50) CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL,
PRIMARY KEY (`username`,`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `auth`
--
INSERT INTO `auth` (`id`, `username`, `password`, `name`) VALUES
(1, 'logadmin', 'd033e22ae348aeb5660fc2140aec35850c4da997', 'احمدعلی');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`firstname` varchar(25) COLLATE utf8_persian_ci NOT NULL,
`lastname` varchar(25) COLLATE utf8_persian_ci NOT NULL,
`age` tinyint(4) NOT NULL,
`field` varchar(25) COLLATE utf8_persian_ci NOT NULL,
`image` varchar(50) COLLATE utf8_persian_ci NOT NULL,
`comment` text COLLATE utf8_persian_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=25 DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `firstname`, `lastname`, `age`, `field`, `image`, `comment`) VALUES
(20, 'تقی', 'تقی زاده', 25, 'امور مالی', 'image/1762950990/745157265.jpg', 'متن برای تقی'),
(12, 'هاشم', 'شیخی پور', 28, 'امور مالی', 'image/1261454105/18609559.jpg', 'متن برای هاشم شیخی پور'),
(19, 'محمد', 'عالی زاده', 30, 'امور مالی', 'image/229883331/1891151957.jpg', 'متن برای محمد'),
(24, 'ممد', 'تقی پور', 25, 'مدیریت', 'image/53295855/480849759.jpg', 'متن برای ممد تقی پور ');
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
/*==============================================================*/
/* itbook 的数据库脚本, 存储引擎使用的是MYISAM!*/
/*==============================================================*/
set names 'utf8';
use itbook;
/*==============================================================*/
/* Table:ib_users 用户表 */
/*==============================================================*/
drop table if exists ib_users;
create table ib_users
(
id int unsigned not null auto_increment,
email varchar(40) not null comment '用来登录的邮箱',
name varchar(20) not null comment '用户自己给自己起的ID',
pwd varchar(40) not null,
weibo varchar(255),
QQ varchar(20),
portrait varchar(255) comment '头像',
gender tinyint(1) not null comment '性别1:男,2:女,0:未知',
birth date,
job varchar(20),
province varchar(40),
city varchar(40),
resume varchar(512) comment '个人简介',
role tinyint(1) not null comment '用户角色',
score int unsigned not null comment '用户积分,利用百度知道的那套积分系统',
rank tinyint not null comment '等级,初入江湖等',
status tinyint(1) unsigned not null comment '可能是不法用户,0:ok,1:黑名单',
reg_time timestamp not null default CURRENT_TIMESTAMP,
this_login_time datetime comment '上次登录时间',
this_login_ip char(16) comment '上次登录的IP',
primary key (id)
)ENGINE=MYISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
create unique index idx_user_email on ib_users ( email );
create unique index idx_user_name on ib_users ( name );
/*==============================================================*/
/* Table:ib_book_catalogs 书籍的分类 */
/*==============================================================*/
drop table if exists ib_book_catalogs;
create table ib_book_catalogs
(
id int unsigned not null auto_increment,
name varchar(32) not null comment '分类名称',
ident varchar(50) not null comment '分类英文名称',
sort_order smallint not null comment '排序权值',
primary key (id)
)ENGINE=MYISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*==============================================================*/
/* Table:ib_books IT书籍 */
/*==============================================================*/
drop table if exists ib_books;
create table ib_books
(
id int unsigned not null auto_increment,
name varchar(128) not null comment '书名',
ident varchar(128) comment '书名english',
pic varchar(255) comment '图书封面',
content text comment '内容简介',
author varchar(128) not null comment '作者',
translator varchar(128) not null comment '译者',
publisher varchar(128) not null comment '出版社',
publication_year date not null comment '出版时间',
user_id int unsigned not null comment '上传书的贡献者',
pages_number mediumint unsigned not null comment '页数',
catalog_id int unsigned not null comment '书的分类',
price double unsigned not null comment '定价',
tags varchar(100) comment '标签',
status tinyint(1) not null comment '书的状态0:未审核,1:ok,2:不OK',
ctime timestamp not null default CURRENT_TIMESTAMP comment '创建时间',
view_times mediumint not null default 0 comment '点击次数',
comment_times mediumint not null default 0 comment '评论次数',
note_times mediumint not null default 0 comment '笔记次数',
as_top tinyint(1) not null default 0,
primary key (id)
)ENGINE=MYISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
create index idx_book_user on ib_books ( user_id );
create index idx_book_catalog on ib_books ( catalog_id );
/*==============================================================*/
/* Table:ib_tags 标签 */
/*==============================================================*/
drop table if exists ib_tags;
create table ib_tags
(
id int unsigned not null auto_increment,
name varchar(32) not null,
relevant_count int unsigned not null default 0 comment '这个tag关联的book数目',
primary key (id)
)ENGINE=MYISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
create index idx_tag_name on ib_tags ( name );
/*==============================================================*/
/* Table:ib_book_comments 书评 */
/*==============================================================*/
drop table if exists ib_book_comments;
create table ib_book_comments
(
id int unsigned not null auto_increment,
content text comment '内容',
user_id int unsigned not null comment '评论人',
book_id int unsigned not null comment '针对哪本book',
ctime timestamp not null default CURRENT_TIMESTAMP comment '创建时间',
useful int not null default 0 comment '有多少人评价是有用的',
useless int not null default 0 comment '有多少人评价是没用的',
score int not null comment '对书的评价得分',
primary key (id)
)ENGINE=MYISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
create index idx_b_c_bookid on ib_book_comments ( book_id );
/*==============================================================*/
/* Table:ib_comment_votes 对书评投票的记录,不允许多次投票 */
/*==============================================================*/
drop table if exists ib_comment_votes;
create table ib_comment_votes
(
id int unsigned not null auto_increment,
vote_type tinyint not null default 0 comment '投的什么票',
comment_id int unsigned not null comment '对哪个评论投的票',
user_id int unsigned not null comment '投票人',
primary key (id)
)ENGINE=MYISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
create index idx_c_v_user_id on ib_comment_votes ( user_id );
/*==============================================================*/
/* Table:ib_book_comments 对书评的回应 */
/*==============================================================*/
drop table if exists ib_comment_responses;
create table ib_comment_responses
(
id int unsigned not null auto_increment,
content text comment '内容',
user_id int unsigned not null comment '回应人',
book_id int unsigned not null comment '针对哪个书评',
ctime timestamp not null default CURRENT_TIMESTAMP comment '创建时间',
primary key (id)
)ENGINE=MYISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
create index idx_c_r_bookid on ib_comment_responses ( book_id );
/*==============================================================*/
/* Table:ib_links 友情链接 */
/*==============================================================*/
drop table if exists ib_links;
create table ib_links
(
id int unsigned not null auto_increment,
sort_order smallint unsigned not null,
title varchar(50) not null,
url varchar(100) not null,
primary key (id)
)ENGINE=MYISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
-- 12/02/2015 - vouchers manager
DROP TABLE IF EXISTS `vouchers`;
CREATE TABLE `vouchers` (
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`type` ENUM('receipt','payment') DEFAULT 'receipt',
`date_time` DATE NOT NULL,
`amount` INT(10) NOT NULL DEFAULT '0',
`description` TEXT NULL,
`user_id` INT(11) NOT NULL,
`created_dtm` DATETIME NOT NULL,
`modified_dtm` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`deleted` TINYINT(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=INNODB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
ALTER TABLE `shipping_details` ADD `order_id` INT(10) NULL AFTER `customer_id`; |
CREATE TABLE course_scenes (
course_id int REFERENCES courses (id),
scene_id int REFERENCES scenes (id),
CONSTRAINT course_scenes_pkey PRIMARY KEY (course_id, scene_id)
);
--;;
ALTER TABLE ONLY scenes
ADD COLUMN slug text,
ADD COLUMN lang text,
ADD COLUMN image_src text,
ADD COLUMN status text,
ADD COLUMN owner_id int;
--;;
|
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 11, 2020 at 03:59 PM
-- Server version: 10.4.13-MariaDB
-- PHP Version: 7.4.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `pkl`
--
-- --------------------------------------------------------
--
-- Table structure for table `absensi`
--
CREATE TABLE `absensi` (
`id` int(11) NOT NULL,
`tanggal` date DEFAULT NULL,
`datang` time DEFAULT NULL,
`pulang` time DEFAULT NULL,
`keterangan` text DEFAULT NULL,
`prakerin_siswa_id` int(11) NOT NULL,
`status_kehadiran_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `aspek_penilaian`
--
CREATE TABLE `aspek_penilaian` (
`id` int(11) NOT NULL,
`nama` varchar(45) DEFAULT NULL,
`nama_sekolah_id` int(11) NOT NULL,
`kelompok_penilaian_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `aspek_penilaian`
--
INSERT INTO `aspek_penilaian` (`id`, `nama`, `nama_sekolah_id`, `kelompok_penilaian_id`) VALUES
(1, 'Disiplin', 22, 5);
-- --------------------------------------------------------
--
-- Table structure for table `gol_darah`
--
CREATE TABLE `gol_darah` (
`id` int(11) NOT NULL,
`nama` varchar(45) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `gol_darah`
--
INSERT INTO `gol_darah` (`id`, `nama`) VALUES
(4, 'A'),
(5, 'B'),
(6, 'AB'),
(7, 'O');
-- --------------------------------------------------------
--
-- Table structure for table `groups`
--
CREATE TABLE `groups` (
`id` mediumint(8) UNSIGNED NOT NULL,
`name` varchar(20) NOT NULL,
`description` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `groups`
--
INSERT INTO `groups` (`id`, `name`, `description`) VALUES
(1, 'admin', 'Administrator'),
(2, 'members', 'General User'),
(3, 'Pembimbing Sekolah', 'Pembimbing');
-- --------------------------------------------------------
--
-- Table structure for table `jenis_kelamin`
--
CREATE TABLE `jenis_kelamin` (
`id` int(1) NOT NULL,
`nama` varchar(50) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `jenis_kelamin`
--
INSERT INTO `jenis_kelamin` (`id`, `nama`) VALUES
(1, 'Laki-laki'),
(2, 'Perempuan');
-- --------------------------------------------------------
--
-- Table structure for table `jenis_user`
--
CREATE TABLE `jenis_user` (
`id` int(11) NOT NULL,
`nama` varchar(45) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `jenis_user`
--
INSERT INTO `jenis_user` (`id`, `nama`) VALUES
(1, 'administrator'),
(2, 'siswa'),
(3, 'pembimbing sekolah'),
(7, 'pembimbing unit');
-- --------------------------------------------------------
--
-- Table structure for table `kegiatan`
--
CREATE TABLE `kegiatan` (
`id` int(11) NOT NULL,
`tanggal` date DEFAULT NULL,
`mulai` time DEFAULT NULL,
`selesai` time DEFAULT NULL,
`uraian_kegiatan` text DEFAULT NULL,
`sarana` text DEFAULT NULL,
`prakerin_siswa_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `kelas`
--
CREATE TABLE `kelas` (
`id` int(11) NOT NULL,
`nama` varchar(45) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `kelas`
--
INSERT INTO `kelas` (`id`, `nama`) VALUES
(18, 'RPL2'),
(19, 'ANM2');
-- --------------------------------------------------------
--
-- Table structure for table `kelompok_penilaian`
--
CREATE TABLE `kelompok_penilaian` (
`id` int(11) NOT NULL,
`nama` varchar(45) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `kelompok_penilaian`
--
INSERT INTO `kelompok_penilaian` (`id`, `nama`) VALUES
(4, 'Kepribadian'),
(5, 'Kedisiplinan'),
(6, 'produktivitas');
-- --------------------------------------------------------
--
-- Table structure for table `login_attempts`
--
CREATE TABLE `login_attempts` (
`id` int(11) UNSIGNED NOT NULL,
`ip_address` varchar(15) NOT NULL,
`login` varchar(100) NOT NULL,
`time` int(11) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `nama_sekolah`
--
CREATE TABLE `nama_sekolah` (
`id` int(11) NOT NULL,
`nama` varchar(45) DEFAULT NULL,
`alamat` varchar(45) DEFAULT NULL,
`hp` varchar(45) DEFAULT NULL,
`logo` varchar(45) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `nama_sekolah`
--
INSERT INTO `nama_sekolah` (`id`, `nama`, `alamat`, `hp`, `logo`) VALUES
(22, 'SMK NEGERI 1 CIOMAS', 'nio', '66', NULL),
(23, 'SMK NEGERI 1 CIBINONG', 'cibinong permai', '98989', NULL),
(24, 'SMK PGRI', 'BOGOR', '434234', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `pembimbing_sekolah`
--
CREATE TABLE `pembimbing_sekolah` (
`id` int(11) NOT NULL,
`nama` varchar(45) DEFAULT NULL,
`no_hp` varchar(45) DEFAULT NULL,
`nama_sekolah_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `pembimbing_sekolah`
--
INSERT INTO `pembimbing_sekolah` (`id`, `nama`, `no_hp`, `nama_sekolah_id`) VALUES
(3, 'Sample', '088577', 22),
(29, 'Tubagus', '085210245332', 24);
-- --------------------------------------------------------
--
-- Table structure for table `pembimbing_unit`
--
CREATE TABLE `pembimbing_unit` (
`id` int(11) NOT NULL,
`nama` varchar(45) DEFAULT NULL,
`no_hp` varchar(45) DEFAULT NULL,
`nip` varchar(45) DEFAULT NULL,
`unit_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `pembimbing_unit`
--
INSERT INTO `pembimbing_unit` (`id`, `nama`, `no_hp`, `nip`, `unit_id`) VALUES
(4, 'Asep Mulyana', '084', '13213', 5),
(30, 'Udin Saprudin', '0852', '34131341', 6);
-- --------------------------------------------------------
--
-- Table structure for table `penilaian`
--
CREATE TABLE `penilaian` (
`id` int(11) NOT NULL,
`nilai_angka` float DEFAULT NULL,
`nilai_huruf` varchar(45) DEFAULT NULL,
`keterangan` text DEFAULT NULL,
`prakerin_siswa_id` int(11) NOT NULL,
`aspek_penilaian_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `permasalahan`
--
CREATE TABLE `permasalahan` (
`id` int(11) NOT NULL,
`tanggal` date DEFAULT NULL,
`masalah` text DEFAULT NULL,
`solusi` text DEFAULT NULL,
`oleh` varchar(45) DEFAULT NULL,
`prakerin_siswa_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `prakerin_siswa`
--
CREATE TABLE `prakerin_siswa` (
`id` int(11) NOT NULL,
`unit_id` int(11) NOT NULL,
`kelas_id` int(11) NOT NULL,
`tanggal_mulai` date DEFAULT NULL,
`tanggal_selesai` date DEFAULT NULL,
`jabatan_pembimbing` varchar(255) DEFAULT NULL,
`siswa_id` int(11) NOT NULL,
`pembimbing_unit_id` int(11) NOT NULL,
`pembimbing_sekolah_id` int(11) NOT NULL,
`jabatan_pembimbing_sekolah` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `prakerin_siswa`
--
INSERT INTO `prakerin_siswa` (`id`, `unit_id`, `kelas_id`, `tanggal_mulai`, `tanggal_selesai`, `jabatan_pembimbing`, `siswa_id`, `pembimbing_unit_id`, `pembimbing_sekolah_id`, `jabatan_pembimbing_sekolah`) VALUES
(33, 5, 19, '2017-01-30', '2017-01-31', 'sekertariat', 21, 4, 3, 'kepala sekolah'),
(34, 5, 18, '2017-01-26', '2017-02-27', 'Kasubdit', 27, 4, 3, 'kepala sekolah');
-- --------------------------------------------------------
--
-- Table structure for table `program_keahlian`
--
CREATE TABLE `program_keahlian` (
`id` int(11) NOT NULL,
`nama` varchar(45) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `program_keahlian`
--
INSERT INTO `program_keahlian` (`id`, `nama`) VALUES
(5, 'RPL'),
(6, 'ANIMASI'),
(7, 'TKR'),
(8, 'LAS'),
(10, 'MULTIMEDIA');
-- --------------------------------------------------------
--
-- Table structure for table `rencana_kegiatan`
--
CREATE TABLE `rencana_kegiatan` (
`id` int(11) NOT NULL,
`uraian_kegiatan` varchar(45) DEFAULT NULL,
`tanggal_mulai` date DEFAULT NULL,
`tanggal_selesai` date DEFAULT NULL,
`keterangan` varchar(45) DEFAULT NULL,
`prakerin_siswa_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `siswa`
--
CREATE TABLE `siswa` (
`id` int(11) NOT NULL,
`nama` varchar(45) DEFAULT NULL,
`foto` varchar(45) DEFAULT NULL,
`nomor_induk` varchar(45) DEFAULT NULL,
`tempat_lahir` varchar(45) DEFAULT NULL,
`tanggal_lahir` date DEFAULT NULL,
`ayah` varchar(45) DEFAULT NULL,
`ibu` varchar(45) DEFAULT NULL,
`alamat` text DEFAULT NULL,
`kabkot` varchar(45) DEFAULT NULL,
`catatan_kesehatan` text DEFAULT NULL,
`nama_sekolah_id` int(11) NOT NULL,
`program_keahlian_id` int(11) NOT NULL,
`gol_darah_id` int(11) NOT NULL,
`jenis_kelamin_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `siswa`
--
INSERT INTO `siswa` (`id`, `nama`, `foto`, `nomor_induk`, `tempat_lahir`, `tanggal_lahir`, `ayah`, `ibu`, `alamat`, `kabkot`, `catatan_kesehatan`, `nama_sekolah_id`, `program_keahlian_id`, `gol_darah_id`, `jenis_kelamin_id`) VALUES
(21, 'febri', NULL, '6153545', 'Bogor', NULL, 'jyet', 'tbuyb4', 'yb4u', 'ywb', NULL, 22, 6, 5, 0),
(23, 'siswa b', NULL, '3256464525', 'bogor', '2000-01-01', 'dtce', ' ete', 'yryec', 't3e', NULL, 22, 10, 5, 0),
(27, 'Ihsan Arif', 'PHOTO27.png', '0821309', 'Kota Tasikmalaya', '1992-10-02', 'ihsan', 'ihsan', 'Tegal Manggah No 10A RT 04 RW 06 Kelurahan Tegal Lega Kecamatan Bogor Tengah Kota Bogor (Masuk gang TK Mexindo, Posisi Rumah Setengah Tanjakan, sebelah kanan tanjakan ada Rumah Merah)', 'Bogor Tengah, Kota Bogor', NULL, 22, 5, 4, 0);
-- --------------------------------------------------------
--
-- Table structure for table `status_kehadiran`
--
CREATE TABLE `status_kehadiran` (
`id` int(11) NOT NULL,
`nama` varchar(45) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `status_kehadiran`
--
INSERT INTO `status_kehadiran` (`id`, `nama`) VALUES
(1, 'Izin'),
(2, 'Sakit'),
(3, 'Alfa');
-- --------------------------------------------------------
--
-- Table structure for table `unit`
--
CREATE TABLE `unit` (
`id` int(11) NOT NULL,
`nama` varchar(45) DEFAULT NULL,
`bidang` varchar(45) DEFAULT NULL,
`alamat` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `unit`
--
INSERT INTO `unit` (`id`, `nama`, `bidang`, `alamat`) VALUES
(5, 'Direktorat Integrasi Data dan Sistem Informas', 'Sistem Informasi', 'Gedung Perpustakaan Lantai 2 Institut Pertanian Bogor Dramaga'),
(6, 'Publisher Andi', 'Penerbit', 'Ciapus');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`id` int(11) NOT NULL,
`username` varchar(45) DEFAULT NULL,
`password` varchar(255) DEFAULT NULL,
`jenis_user_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`id`, `username`, `password`, `jenis_user_id`) VALUES
(0, NULL, NULL, 2),
(2, 'siswa@gmail.com', 'password', 2),
(3, 'pembimbing@gmail.com', 'password', 3),
(4, 'pembimbing.unit@gmail.com', 'password', 7),
(11, 'rahman@gmail.com', '12345678', 2),
(12, 'vini@gmail.com', 'vini1234567', 2),
(14, 'dina@gmail.com', 'dina', 2),
(15, 'mele@gmail.com', '12345678', 2),
(17, 'nana@gmail.com', 'abcdefghij', 2),
(18, 'ada@gmail.com', 'qwertyuio', 2),
(19, 'hikmah@gmail.com', 'hikmah', 2),
(20, 'salsa@gmail.com', 'salsa12345678', 2),
(21, 'febri@gmail.com', 'febri12345678', 2),
(23, 'siswab@admin.com', 'siswab12345', 2),
(25, 'siswaz@gmail.com', 'siswaz12345678', 2),
(27, 'ihsanarifr@hotmail.com', 'Rahman13', 2),
(29, 'pempgri', 'password', 3),
(30, 'pemunit001@yahoo.com', 'password', 7);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) UNSIGNED NOT NULL,
`ip_address` varchar(45) NOT NULL,
`username` varchar(100) DEFAULT NULL,
`password` varchar(255) NOT NULL,
`salt` varchar(255) DEFAULT NULL,
`email` varchar(100) NOT NULL,
`activation_code` varchar(40) DEFAULT NULL,
`forgotten_password_code` varchar(40) DEFAULT NULL,
`forgotten_password_time` int(11) UNSIGNED DEFAULT NULL,
`remember_code` varchar(40) DEFAULT NULL,
`created_on` int(11) UNSIGNED NOT NULL,
`last_login` int(11) UNSIGNED DEFAULT NULL,
`active` tinyint(1) UNSIGNED DEFAULT NULL,
`first_name` varchar(50) DEFAULT NULL,
`last_name` varchar(50) DEFAULT NULL,
`company` varchar(100) DEFAULT NULL,
`phone` varchar(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `ip_address`, `username`, `password`, `salt`, `email`, `activation_code`, `forgotten_password_code`, `forgotten_password_time`, `remember_code`, `created_on`, `last_login`, `active`, `first_name`, `last_name`, `company`, `phone`) VALUES
(1, '127.0.0.1', 'administrator', '$2a$07$SeBknntpZror9uyftVopmu61qg0ms8Qv1yV6FG.kQOSM.9QhmTo36', '', 'admin@admin.com', '', NULL, NULL, 'As034EW04Z0VnC/ZL4aqYe', 1268889823, 1596872812, 1, 'Admin', 'istrator', 'ADMIN', '0'),
(2, '127.0.0.1', 'siswa@gmail.com', '$2y$08$PAzcc2XEvEUCdTi0biefhetobZSv7v6iUWccceZcDDlvvbBgfTdFW', NULL, 'siswa@gmail.com', NULL, NULL, NULL, 'xdfbYkIM4pGSJCS5Ghsr4u', 1480452665, 1577344949, 1, 'siswa', 'siswa', 'siswa', '085222828740'),
(3, '127.0.0.1', 'pembimbing@gmail.com', '$2y$08$dNIbRJSDubhfsNquzD3VJ.zgTYHfrL6ID3Si38B2QOt7IsaTc9bQS', NULL, 'pembimbing@gmail.com', NULL, NULL, NULL, NULL, 1480452705, 1480475958, 1, 'Pembimbing Sekolah', 'pembimbing', 'pembimbing', '085222828740'),
(4, '127.0.0.1', 'pembimbing.unit@gmail.com', '$2y$08$4lQmX90l4UIpxNj7ew4bJ.jCNP8Gi3QZQ7k7EO3KAN/70wISRcj7m', NULL, 'pembimbing.unit@gmail.com', NULL, NULL, NULL, NULL, 1482209254, NULL, 1, 'Pembimbing Unit', 'pembimbing', 'DIDSI', '085222828740'),
(5, '::1', 'ihsan@gmail.com', '$2y$08$EhzefYwrJhj12C2YlaGWseAoWTBSp26ohg.j7SwaoqPIMkYvBQ7hG', NULL, 'ihsan@gmail.com', NULL, NULL, NULL, NULL, 1483676820, 1484884195, 1, 'a', 'a', 'a', '0'),
(7, '127.0.0.1', 'ihsan@ihsan.com', '$2y$08$BcxAhpTFz0Hq8XlbFJwawuSPdnj6qip/m6CgPSK.xRCdnPOOibEHe', NULL, 'ihsan@ihsan.com', NULL, NULL, NULL, NULL, 1483787100, 1483787236, 1, 'Ben', 'Edmunds', 'as', '085222828740'),
(8, '::1', 'tetst@gmail.com', '$2y$08$y4ssvgoX4ulWZeDyFvStW.bc9jZ5A9pRRFvH3wy28xwclAHrrlpIS', NULL, 'tetst@gmail.com', NULL, NULL, NULL, NULL, 1484189195, NULL, 1, 'q', NULL, NULL, NULL),
(9, '::1', 'bla@gmail.com', '$2y$08$dB6w5/EgV19MosBmabt5sOaAYcUVpVPL9MB07BJGhRo5Qmdo59aFO', NULL, 'bla@gmail.com', NULL, NULL, NULL, NULL, 1484189342, NULL, 1, 'bla', NULL, NULL, NULL),
(11, '::1', 'rahman@gmail.com', '$2y$08$tmr1.JdPnM6zwRzWDkwS8uyjYE/7wdxZhpQlFxLyM2abt43WCP.SW', NULL, 'rahman@gmail.com', NULL, NULL, NULL, NULL, 1484546473, NULL, 1, 'ANM2', NULL, NULL, NULL),
(12, '::1', 'vini@gmail.com', '$2y$08$fLaWMAE5d7EqU8HJxezzvuaAiiOpTJbIHFsfC1k5Yz/QGmCODyK3.', NULL, 'vini@gmail.com', NULL, NULL, NULL, NULL, 1484547719, NULL, 1, 'ggq', NULL, NULL, NULL),
(14, '::1', 'dina@gmail.com', '$2y$08$w3uiHGbsnOCKfBddBkJl3.8L7myNNayZl59HwStte9q74tvqWhXKy', NULL, 'dina@gmail.com', NULL, NULL, NULL, NULL, 1484706557, 1577345276, 1, 'dina anjani', NULL, NULL, NULL),
(15, '::1', 'mele@gmail.com', '$2y$08$GZC7HHEBNRQcYpbl8liN7usDHnQmUfV/85o5wgywlFcWR/1ib26Ne', NULL, 'mele@gmail.com', NULL, NULL, NULL, NULL, 1484711745, NULL, 1, 'melee', NULL, NULL, NULL),
(16, '::1', 'andini@gmail.com', '$2y$08$VXTCnFqDTD23g50zTBercOURxJb/bd9tFiYd.dG0nygsZRVJrEZKm', NULL, 'andini@gmail.com', NULL, NULL, NULL, NULL, 1484726345, NULL, 1, 'andini', NULL, NULL, NULL),
(17, '::1', 'nana@gmail.com', '$2y$08$QHntVUJDyr8xFCxsc1PWLerxjswzVS0JhXcHn7McNsGLu7qN8akXy', NULL, 'nana@gmail.com', NULL, NULL, NULL, NULL, 1484726554, NULL, 1, 'nananana', NULL, NULL, NULL),
(18, '::1', 'ada@gmail.com', '$2y$08$octBYRIcn415xGIc0FcgL.Va4M7AywKz7rbWs.B3sInwiPYrNVK6a', NULL, 'ada@gmail.com', NULL, NULL, NULL, NULL, 1484727059, NULL, 1, 'aaaa', NULL, NULL, NULL),
(19, '::1', 'hikmah@gmail.com', '$2y$08$ZKevfbX.FeY1XnW8cl8f/.JICk.BmQDdQ6g.Q7lsu74sk/HgoD7WO', NULL, 'hikmah@gmail.com', NULL, NULL, NULL, NULL, 1485305070, NULL, 1, 'RPL', NULL, NULL, NULL),
(20, '::1', 'salsa@gmail.com', '$2y$08$iU1Tca1HRuukSjQNPSLDIuNicV/RH7IdKBz6NsESovcXGOip2kNMC', NULL, 'salsa@gmail.com', NULL, NULL, NULL, NULL, 1485399482, NULL, 1, 'salsa', NULL, NULL, NULL),
(21, '::1', 'febri@gmail.com', '$2y$08$NxZuguAKJ/N3qc.XDftHtebMKOIq5ewEiD54XrPNjLKcXeOYLuQpu', NULL, 'febri@gmail.com', NULL, NULL, NULL, NULL, 1485404240, NULL, 1, 'febri', NULL, NULL, NULL),
(23, '::1', 'siswab@admin.com', '$2y$08$OOuuRhcGNnLm1i7Acz7VGuFCx6x0mrctxPt2MpXsOYrv82./U59zS', NULL, 'siswab@admin.com', NULL, NULL, NULL, NULL, 1485414864, 1596865904, 1, 'siswa b', NULL, NULL, NULL),
(25, '::1', 'siswaz@gmail.com', '$2y$08$LIG18zWAT4U495VjWlr4R.ukxeqdEbtz8BF5.erkotyFWtPX5209q', NULL, 'siswaz@gmail.com', NULL, NULL, NULL, NULL, 1485499088, NULL, 1, 'siswaz', NULL, NULL, NULL),
(27, '127.0.0.1', 'ihsanarifr@hotmail.com', '$2y$08$Zsv7ZBY2RxPvWSrr7DbQEOegwmAVnBqYKE/xnOZPEBy/9foI9oca.', NULL, 'ihsanarifr@hotmail.com', NULL, NULL, NULL, NULL, 1485504974, 1485512077, 1, 'Ihsan Arif', NULL, NULL, NULL),
(29, '::1', 'pempgri', '$2y$08$XYxG.WfMwBVp3yYE5ea1vu6sd2UWWBmycCX7.9mRGqheTYVKxX7.C', NULL, 'pempgri', NULL, NULL, NULL, NULL, 1577347778, 1577347795, 1, 'Tubagus', NULL, NULL, NULL),
(30, '::1', 'pemunit001@yahoo.com', '$2y$08$HUaX1M96ge9hPRz6uqdncOUWBEM4ikPjKmZiBKWLp4fcIbIHu/D2y', NULL, 'pemunit001@yahoo.com', NULL, NULL, NULL, NULL, 1577347974, 1577348319, 1, 'Udin Saprudin', NULL, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `users_groups`
--
CREATE TABLE `users_groups` (
`id` int(11) UNSIGNED NOT NULL,
`user_id` int(11) UNSIGNED NOT NULL,
`group_id` mediumint(8) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `users_groups`
--
INSERT INTO `users_groups` (`id`, `user_id`, `group_id`) VALUES
(1, 1, 1),
(9, 2, 2),
(6, 3, 3),
(16, 5, 2),
(14, 7, 1),
(17, 8, 2),
(18, 9, 2),
(20, 11, 2),
(21, 12, 2),
(23, 14, 2),
(24, 15, 2),
(25, 17, 2),
(26, 18, 2),
(27, 19, 2),
(28, 20, 2),
(29, 21, 2),
(31, 23, 2),
(33, 25, 2),
(35, 27, 2),
(37, 29, 3);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `absensi`
--
ALTER TABLE `absensi`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_absensi_prakerin_siswa1_idx` (`prakerin_siswa_id`),
ADD KEY `fk_absensi_status_kehadiran1_idx` (`status_kehadiran_id`);
--
-- Indexes for table `aspek_penilaian`
--
ALTER TABLE `aspek_penilaian`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_aspek_penilaian_nama_sekolah1_idx` (`nama_sekolah_id`),
ADD KEY `fk_aspek_penilaian_kelompok_penilaian1_idx` (`kelompok_penilaian_id`);
--
-- Indexes for table `gol_darah`
--
ALTER TABLE `gol_darah`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `groups`
--
ALTER TABLE `groups`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `jenis_kelamin`
--
ALTER TABLE `jenis_kelamin`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `jenis_user`
--
ALTER TABLE `jenis_user`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `kegiatan`
--
ALTER TABLE `kegiatan`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_kegiatan_prakerin_siswa1_idx` (`prakerin_siswa_id`);
--
-- Indexes for table `kelas`
--
ALTER TABLE `kelas`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `kelompok_penilaian`
--
ALTER TABLE `kelompok_penilaian`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `login_attempts`
--
ALTER TABLE `login_attempts`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `nama_sekolah`
--
ALTER TABLE `nama_sekolah`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `pembimbing_sekolah`
--
ALTER TABLE `pembimbing_sekolah`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_pembimbing_sekolah_user1_idx` (`id`),
ADD KEY `fk_pembimbing_sekolah_nama_sekolah1_idx` (`nama_sekolah_id`);
--
-- Indexes for table `pembimbing_unit`
--
ALTER TABLE `pembimbing_unit`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_pembimbing_unit_user1_idx` (`id`),
ADD KEY `fk_pembimbing_unit_unit1_idx` (`unit_id`);
--
-- Indexes for table `penilaian`
--
ALTER TABLE `penilaian`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_penilaian_prakerin_siswa1_idx` (`prakerin_siswa_id`),
ADD KEY `fk_penilaian_aspek_penilaian1_idx` (`aspek_penilaian_id`);
--
-- Indexes for table `permasalahan`
--
ALTER TABLE `permasalahan`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_permasalahan_prakerin_siswa1_idx` (`prakerin_siswa_id`);
--
-- Indexes for table `prakerin_siswa`
--
ALTER TABLE `prakerin_siswa`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_prakerin_siswa_unit1_idx` (`unit_id`),
ADD KEY `fk_prakerin_siswa_kelas1_idx` (`kelas_id`),
ADD KEY `fk_prakerin_siswa_siswa1_idx` (`siswa_id`),
ADD KEY `fk_prakerin_siswa_pembimbing_unit1_idx` (`pembimbing_unit_id`),
ADD KEY `fk_prakerin_siswa_pembimbing_sekolah1_idx` (`pembimbing_sekolah_id`);
--
-- Indexes for table `program_keahlian`
--
ALTER TABLE `program_keahlian`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `rencana_kegiatan`
--
ALTER TABLE `rencana_kegiatan`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_rencana_kegiatan_prakerin_siswa1_idx` (`prakerin_siswa_id`);
--
-- Indexes for table `siswa`
--
ALTER TABLE `siswa`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_siswa_nama_sekolah_idx` (`nama_sekolah_id`),
ADD KEY `fk_siswa_program_keahlian1_idx` (`program_keahlian_id`),
ADD KEY `fk_siswa_gol_darah1_idx` (`gol_darah_id`),
ADD KEY `fk_siswa_user1_idx` (`id`);
--
-- Indexes for table `status_kehadiran`
--
ALTER TABLE `status_kehadiran`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `unit`
--
ALTER TABLE `unit`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_user_jenis_user1_idx` (`jenis_user_id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users_groups`
--
ALTER TABLE `users_groups`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `uc_users_groups` (`user_id`,`group_id`),
ADD KEY `fk_users_groups_users1_idx` (`user_id`),
ADD KEY `fk_users_groups_groups1_idx` (`group_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `absensi`
--
ALTER TABLE `absensi`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `aspek_penilaian`
--
ALTER TABLE `aspek_penilaian`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `gol_darah`
--
ALTER TABLE `gol_darah`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `groups`
--
ALTER TABLE `groups`
MODIFY `id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `jenis_kelamin`
--
ALTER TABLE `jenis_kelamin`
MODIFY `id` int(1) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `jenis_user`
--
ALTER TABLE `jenis_user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `kegiatan`
--
ALTER TABLE `kegiatan`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `kelas`
--
ALTER TABLE `kelas`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
--
-- AUTO_INCREMENT for table `kelompok_penilaian`
--
ALTER TABLE `kelompok_penilaian`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `login_attempts`
--
ALTER TABLE `login_attempts`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `nama_sekolah`
--
ALTER TABLE `nama_sekolah`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
--
-- AUTO_INCREMENT for table `penilaian`
--
ALTER TABLE `penilaian`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `permasalahan`
--
ALTER TABLE `permasalahan`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `prakerin_siswa`
--
ALTER TABLE `prakerin_siswa`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=35;
--
-- AUTO_INCREMENT for table `program_keahlian`
--
ALTER TABLE `program_keahlian`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `rencana_kegiatan`
--
ALTER TABLE `rencana_kegiatan`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `status_kehadiran`
--
ALTER TABLE `status_kehadiran`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `unit`
--
ALTER TABLE `unit`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;
--
-- AUTO_INCREMENT for table `users_groups`
--
ALTER TABLE `users_groups`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `absensi`
--
ALTER TABLE `absensi`
ADD CONSTRAINT `fk_absensi_prakerin_siswa1` FOREIGN KEY (`prakerin_siswa_id`) REFERENCES `prakerin_siswa` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_absensi_status_kehadiran1` FOREIGN KEY (`status_kehadiran_id`) REFERENCES `status_kehadiran` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `aspek_penilaian`
--
ALTER TABLE `aspek_penilaian`
ADD CONSTRAINT `fk_aspek_penilaian_kelompok_penilaian1` FOREIGN KEY (`kelompok_penilaian_id`) REFERENCES `kelompok_penilaian` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_aspek_penilaian_nama_sekolah1` FOREIGN KEY (`nama_sekolah_id`) REFERENCES `nama_sekolah` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `kegiatan`
--
ALTER TABLE `kegiatan`
ADD CONSTRAINT `fk_kegiatan_prakerin_siswa1` FOREIGN KEY (`prakerin_siswa_id`) REFERENCES `prakerin_siswa` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `pembimbing_sekolah`
--
ALTER TABLE `pembimbing_sekolah`
ADD CONSTRAINT `fk_pembimbing_sekolah_nama_sekolah1` FOREIGN KEY (`nama_sekolah_id`) REFERENCES `nama_sekolah` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_pembimbing_sekolah_user1` FOREIGN KEY (`id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `pembimbing_unit`
--
ALTER TABLE `pembimbing_unit`
ADD CONSTRAINT `fk_pembimbing_unit_unit1` FOREIGN KEY (`unit_id`) REFERENCES `unit` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_pembimbing_unit_user1` FOREIGN KEY (`id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `penilaian`
--
ALTER TABLE `penilaian`
ADD CONSTRAINT `fk_penilaian_aspek_penilaian1` FOREIGN KEY (`aspek_penilaian_id`) REFERENCES `aspek_penilaian` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_penilaian_prakerin_siswa1` FOREIGN KEY (`prakerin_siswa_id`) REFERENCES `prakerin_siswa` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `permasalahan`
--
ALTER TABLE `permasalahan`
ADD CONSTRAINT `fk_permasalahan_prakerin_siswa1` FOREIGN KEY (`prakerin_siswa_id`) REFERENCES `prakerin_siswa` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `prakerin_siswa`
--
ALTER TABLE `prakerin_siswa`
ADD CONSTRAINT `fk_prakerin_siswa_kelas1` FOREIGN KEY (`kelas_id`) REFERENCES `kelas` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_prakerin_siswa_pembimbing_sekolah1` FOREIGN KEY (`pembimbing_sekolah_id`) REFERENCES `pembimbing_sekolah` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_prakerin_siswa_pembimbing_unit1` FOREIGN KEY (`pembimbing_unit_id`) REFERENCES `pembimbing_unit` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_prakerin_siswa_siswa1` FOREIGN KEY (`siswa_id`) REFERENCES `siswa` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `fk_prakerin_siswa_unit1` FOREIGN KEY (`unit_id`) REFERENCES `unit` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `rencana_kegiatan`
--
ALTER TABLE `rencana_kegiatan`
ADD CONSTRAINT `fk_rencana_kegiatan_prakerin_siswa1` FOREIGN KEY (`prakerin_siswa_id`) REFERENCES `prakerin_siswa` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `siswa`
--
ALTER TABLE `siswa`
ADD CONSTRAINT `fk_siswa_gol_darah1` FOREIGN KEY (`gol_darah_id`) REFERENCES `gol_darah` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_siswa_nama_sekolah` FOREIGN KEY (`nama_sekolah_id`) REFERENCES `nama_sekolah` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_siswa_program_keahlian1` FOREIGN KEY (`program_keahlian_id`) REFERENCES `program_keahlian` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_siswa_user1` FOREIGN KEY (`id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `user`
--
ALTER TABLE `user`
ADD CONSTRAINT `fk_user_jenis_user1` FOREIGN KEY (`jenis_user_id`) REFERENCES `jenis_user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `users_groups`
--
ALTER TABLE `users_groups`
ADD CONSTRAINT `fk_users_groups_groups1` FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_users_groups_users1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
/* This project is about estimating the incremental cost of breast of cancers cases at their end of life*/
/*Declare libraries*/
libname disk21 'D:\Adam\eof-cervix';
libname disk22 'D:\Adam\eof-breast';
/* Select breast cancer cases that died */
data disk22.eof_br_;
set disk4.br_enrol_025;
if dod_mcr~=. and dod_cl~=.;
run;
proc sort data=disk22.eof_br_ nodupkeys;
by dcn;
run;
/* Create Survival time and Code Dx stages */
data disk22.eof_br_010;
set disk22.eof_br_;
if dod_mcr <'31dec2011'd then
dxdoddiff = floor(yrdif(dxdate,dod_mcr,'act/365')*12);
else if dod_cl~=. then
dxdoddiff = floor(yrdif(dxdate,dod_cl,'act/365')*12);
if n_3020 = 0 then dxstage = 1;
else if n_3020 = 1 then dxstage = 2;
else if n_3020 in (2,3,4,5) then dxstage = 3;
else if n_3020 = 7 then dxstage = 4;
else if n_3020 = 8 then dxstage = 5;
else dxstage = 6;
run;
/* Check the Distribution of the cases by age group */
proc univariate data=disk22.eof_br_010;
class dxstage;
var dxdoddiff;
HISTOGRAM / NORMAL (COLOR=RED W=5) NROWS=2;
run;
/* Run continuous enrollment */
%include 'D:\Adam\breast_cancer\eof_ce.sas';
%selectparticipants(data1=disk22.eof_br_010 /*Cases Characteristics from Cancer Registery*/,
data2=disk1.br_all_cl_030 /*Claims data*/,
breakcutoff=15 /*Number of days of allowed gap*/,
enrollrequired=6*30 /* Months*Days 'Number of months of continuous enrollment' */,
k=disk22 /* */);
/* Check the characteritics of those who died but not continuously enrolled */
proc sql;
create table eof_br_non_ce as
select distinct a.* from disk22.eof_br_010 a
left join disk22._mcr_final_6_eof b
on substr(a.dcn,1,8)=substr(b.dcn,1,8)
where b.dcn is null;
quit;
proc univariate data=eof_br_non_ce;
class dxstage;
var dxdoddiff;
HISTOGRAM / NORMAL (COLOR=RED W=5) NROWS=2;
run;
/* Compute the comorbidity index */
%include 'D:\Adam\breast_cancer\analysis_macro_eof.sas';
%analysiscaseeof(data1=disk22._cl_mcr_final_6_eof_icn, group=6, cancer=eof_br,med=all,disk=disk22);
/* Run descriptive statistics*/
%include 'd:\adam\breast_cancer\desc_stat.sas';
%descrCase(data1=disk22._mcr_final_6_eof,data2=disk22._eof_br_6_all);
/* Prepare Breast Cancers' cases */
proc sql;
create table disk22.br_eof_case as
select a.* from disk11.mcbrcse_030 a
inner join disk22._mcr_final_6_eof b
on substr(a.dcn_cse,1,8)=substr(b.dcn,1,8);
%runquit;
/* Prepare the case-control matching data */
proc sql;
create table disk22.brcasectrleof( bufsize=65536 )
(
dcn char(8) format=$8. informat=$8. label='DCN',
PAYCOUNTY char(3) format=$3. informat=$3. label='PAYCOUNTY',
MECODE char(2) format=$2. informat=$2. label='MECODE',
FINANCIALGRANTIND char(1) format=$1. informat=$1. label='FINANCIALGRANTIND',
DAYSPECIFICIND char(1) format=$1. informat=$1. label='DAYSPECIFICIND',
ELIGIBILITYSTARTDATE num format=DATETIME20. informat=DATETIME20.
label='ELIGIBILITYSTARTDATE',
ELIGIBILITYSTOPDATE num format=DATETIME20. informat=DATETIME20. label='ELIGIBILITYSTOPDATE',
dxdate num format=DATE9.,
dcn_cse char(12),
dod num format=DATE9.,
start num,
stop num,
dod_cl num,
_prev_stop num format=DATE9.,
enroll_cumsum num,
gap_count num,
startingap num,
startgaplength num,
enrollbreak num,
keeper num,
r num
);
%runquit;
*****run the control matching algorithm;
%include 'D:\Adam\BREAsT_CANCER\con_enrol_ctrl.sas';
%macro dolist;
%do i= 1 %to 4;
%matchCtrlCase(data1=disk22.br_eof_case/*case data*/,
data2=disk22.eof_ctrl_br/*control data*/,
data3=disk22.brcasectrleof/*case&control data*/,
breakcutoff=15,
enrollrequired=6*30,yrdiff=5);
%end;
%mend;
%dolist();
proc sort data=disk22.brcasectrleof;
by dcn_cse;
%runquit;
/* Prepare the data for cervical cancer patient */
/* Select Cases that die */
data disk21.eof_cr_;
set disk6.cr_enrol_030;
if dod_mcr~=. and dod_cl~=.;
run;
/* Compute the survival time */
data disk21.eof_cr_010;
set disk21.eof_cr_;
if dod_mcr <'31dec2011'd then
dxdoddiff = floor(yrdif(dxdate,dod_mcr,'act/365')*12);
else if dod_cl~=. then
dxdoddiff = floor(yrdif(dxdate,dod_cl,'act/365')*12);
run;
proc univariate data=disk21.eof_cr_010;
var dxdoddiff;
HISTOGRAM / NORMAL (COLOR=RED W=5) NROWS=2;
run;
/* Compute the Continuous enrollment */
%include 'D:\Adam\breast_cancer\eof_ce.sas';
%selectparticipants(data1=disk21.eof_cr_010,data2=disk6.cr_all_cl_040,breakcutoff=15, enrollrequired=6*30,disk=disk21);
/* Compute the comorbidity index */
%include 'D:\Adam\breast_cancer\analysis_macro_eof.sas';
%analysiscaseeof(data1=disk21._cl_mcr_final_6_eof_icn, group=6, cancer=eof_cr,med=all,disk=disk21);
/* Descriptive statistics */
%include 'd:\adam\breast_cancer\desc_stat.sas';
%descrCase(data1=disk21._mcr_final_6_eof,data2=disk21._eof_cr_6_all);
/* prpepare eof case group */
proc sql;
create table disk21.cr_eof_case as
select distinct a.* from disk15.mcrcse_020 a
inner join disk21._mcr_final_6_eof b
on substr(a.dcn_cse,1,8)=substr(b.dcn,1,8);
%runquit;
*****prepare the case-control matching data;
*****check whether non-disabled breast cancer patients are matched;
proc sql;
create table disk21.crcasectrleof( bufsize=65536 )
(
DCN char(8) format=$8. informat=$8. label='DCN',
PAYCOUNTY char(3) format=$3. informat=$3. label='PAYCOUNTY',
MECODE char(2) format=$2. informat=$2. label='MECODE',
FINANCIALGRANTIND char(1) format=$1. informat=$1. label='FINANCIALGRANTIND',
DAYSPECIFICIND char(1) format=$1. informat=$1. label='DAYSPECIFICIND',
ELIGIBILITYSTARTDATE num format=DATETIME20. informat=DATETIME20.
label='ELIGIBILITYSTARTDATE',
ELIGIBILITYSTOPDATE num format=DATETIME20. informat=DATETIME20. label='ELIGIBILITYSTOPDATE',
dxdate num format=DATE9.,
dcn_cse char(12),
dod num format=DATE9.,
start num,
stop num,
dod_cl num,
_prev_stop num format=DATE9.,
enroll_cumsum num,
gap_count num,
startingap num,
startgaplength num,
enrollbreak num,
keeper num,
r num
);
%runquit;
*****run the control matching algorithm;
%macro dolist();
%do i= 1 %to 4; %input cl&i._lline;
%include 'D:\Adam\BREAsT_CANCER\con_enrol_ctrl.sas';
%matchCtrlCase(data1=disk21.cr_eof_case/*case data*/,
data2=disk21.eof_ctrl_cr/*control data*/,
data3=disk21.crcasectrleof/*case&control data*/,
breakcutoff=15,
enrollrequired=6*30,yrdiff=5);
%end;
%mend dolist;
%dolist;
*****frequency analysis for case control match for cervical cancer;
proc sql;
create table crcountcasectrl as
select count(distinct dcn) as n_ctrl,
count(distinct dcn_cse) as n_case from disk21.crcasectrleof;
create table crctrlpercase as
select distinct dcn_cse, count(distinct dcn) as n_ctrl from disk21.crcasectrleof
group by dcn_cse;
quit;
proc freq data=crctrlpercase;
table n_ctrl;
run;
*****frequency analysis for case control match for breast cancer;
proc sql;
create table brcountcasectrl as
select count(distinct dcn) as n_ctrl,
count(distinct dcn_cse) as n_case from disk22.brcasectrleof;
create table brctrlpercase as
select distinct dcn_cse, count(distinct dcn) as n_ctrl from disk22.brcasectrleof
group by dcn_cse;
quit;
proc freq data=brctrlpercase;
table n_ctrl;
run;
/* conduct descriptive analysis on the case and control the case of breast cancer */
%include 'd:\adam\breast_cancer\analysis_macro.sas';
%analysisctrleof(data1=disk22.brcasectrleof,data2=disk14.ctrl_cls_030, group=6, cancer=br_eof,med=ctrl,disk=disk22);
%include 'D:\adam\breast_cancer\desc_stat_eof.sas';
%DataRegAnacase(data1=disk22._mcr_final_6_eof /*all cases*/,data2=disk22._eof_br_6_all /*claims cases*/,
data3=disk22.brcasectrleof /*control-case match*/,
data4=disk11.mcbrcse_020 /*all cases regardless of the window*/);
/* prepare the control data for the regression */
%include 'D:\adam\breast_cancer\desc_stat_eof.sas';
%DataRegAnaCtrl(data1=disk22.eof_ctrl_br,
data2= disk22._br_eof_6_ctrl,
data3=disk11.mcbrcse_020,
data4=disk22.brcasectrleof);
%include 'D:\adam\breast_cancer\desc_stat_eof.sas';
%appendcasectrl(data1=disk22._br_eof_6_ctrl_cost /*control groupdata*/,
data2=_mcr_final_6_eof_cost /*case group data*/, outds=eof_br_twopm_6);
%include 'D:\adam\breast_cancer\desc_stat_eof.sas';
%casectrldescr(data1=eof_br_twopm_6,grp=0);
%casectrldescr(data1=eof_br_twopm_6,grp=1);
%include 'D:\adam\breast_cancer\desc_stat_eof.sas';
%casectrlcost(data1=eof_br_twopm_6,grp=0);
%casectrlcost(data1=eof_br_twopm_6,grp=1);
proc export data= eof_br_twopm_ttl outfile='D:\Adam\Stata\eof\eof_br_twopm_ttl.dta'; %runquit;
proc export data=eof_br_twopm_6 outfile='D:\Adam\Stata\eof\eof_br_twopm_6.dta'; %runquit;
****export the data into stata:;
proc sql;
create table eof_br_twopm_ttl as
select distinct dcn, dcn_cse,grp,cci,age,dxstage,race, sum(sum_amt) as sum_amt
from eof_br_twopm_6
group by grp, dcn order grp, dcn_cse;
quit;
proc univariate data=eof_br_twopm_6;
class grp claim;
var sum_amt;
HISTOGRAM / NORMAL (COLOR=RED W=5) NROWS=2;
run;
******conduct descriptive analysis on the case and control the case of cervical cancer;
%include 'd:\adam\breast_cancer\analysis_macro.sas';
%analysisctrleof(data1=disk21.crcasectrleof,data2=disk14.ctrl_cls_030, group=6, cancer=cr_eof,med=ctrl,disk=disk21);
****Compute breast cancer time to death from dx date;
proc format;
value dxstage
1 = 'in situ'
2 = 'local'
3 = 'regional'
4 = 'distant'
5 = 'not applicable'
6 = 'unstaged';
run;
proc sql;
create table MonthToDeathALL as
select a.*,b.dxstage from disk22.brcasectrleof a
inner join disk22.eof_case b
on substr(left(a.dcn_cse),1,8)=substr(left(b.dcn_cse),1,8);
run;quit;
proc format;
value MonthToDeath
1 ='One Year or Less'
2 ='Two years'
3= 'More than 2 years';
run;
proc sql;
select count(distinct dcn) from disk22.brcasectrleof;
select count(distinct dcn_cse) from disk22.brcasectrleof;
run;quit;
data MonthToDeathALL;
set MonthToDeathALL;
NumMonthToDeathCtrl=intck('month',dxdate,dod) ;
NumMonthToDeathCase=intck('month',dxdate,dod_cl) ;
if NumMonthToDeathCase<=12 then MonthToDeathCase=1;
else if NumMonthToDeathCase>12 and NumMonthToDeathCase<=24 then MonthToDeathCase=2;
else MonthToDeathCase=3;
if NumMonthToDeathCtrl<=12 then MonthToDeathCtrl=1;
else if NumMonthToDeathCtrl>12 and NumMonthToDeathCtrl<=24 then MonthToDeathCtrl=2;
else MonthToDeathCtrl=3;
run;quit;
proc univariate data=MonthToDeathALL;
*class grp claim;
var NumMonthToDeathCtrl;
HISTOGRAM / NORMAL (COLOR=RED W=5) NROWS=2;
run;
proc freq data=MonthToDeathALL;
table (MonthToDeathCase MonthToDeathCtrl)*dxstage;
format MonthToDeathCtrl MonthToDeath. dxstage dxstage.;
run;
proc sql;
select dcn,dod,dxdate from MonthToDeathALL where NumMonthToDeathCtrl<0; run;quit;
urvival time and Code Dx stages */
data disk22.eof_br_010;
set disk22.eof_br_;
if dod_mcr <'31dec2011'd then
dxdoddiff = floor(yrdif(dxdate,dod_mcr,'act/365')*12);
else if dod_cl~=. then
dxdoddiff = floor(yrdif(dxdate,dod_cl,'act/365')*12);
if n_3020 = 0 then dxstage = 1;
else if n_3020 = 1 then dxstage = 2;
else if n_3020 in (2,3,4,5) then dxstage = 3;
else if n_3020 = 7 then dxstage = 4;
else if n_3020 = 8 then dxstage = 5;
else dxstage = 6;
run;
/* Check the Distribution of the cases by age group */
proc univariate data=disk22.eof_br_010;
class dxstage;
var dxdoddiff;
HISTOGRAM / NORMAL (COLOR=RED W=5) NROWS=2;
run;
/* Run continuous enrollment */
%include 'D:\Adam\breast_cancer\eof_ce.sas';
%selectparticipants(data1=disk22.eof_br_010 /*Cases Characteristics from Cancer Registery*/,
data2=disk1.br_all_cl_030 /*Claims data*/,
breakcutoff=15 /*Number of days of allowed gap*/,
enrollrequired=6*30 /* Months*Days 'Number of months of continuous enrollment' */,
k=disk22 /* */);
/* Check the characteritics of those who died but not continuously enrolled */
proc sql;
create table eof_br_non_ce as
select distinct a.* from disk22.eof_br_010 a
left join disk22._mcr_final_6_eof b
on substr(a.dcn,1,8)=substr(b.dcn,1,8)
where b.dcn is null;
quit;
proc univariate data=eof_br_non_ce;
class dxstage;
var dxdoddiff;
HISTOGRAM / NORMAL (COLOR=RED W=5) NROWS=2;
run;
/* Compute the comorbidity index */
%include 'D:\Adam\breast_cancer\analysis_macro_eof.sas';
%analysiscaseeof(data1=disk22._cl_mcr_final_6_eof_icn, group=6, cancer=eof_br,med=all,disk=disk22);
/* Run descriptive statistics*/
%include 'd:\adam\breast_cancer\desc_stat.sas';
%descrCase(data1=disk22._mcr_final_6_eof,data2=disk22._eof_br_6_all);
/* Prepare Breast Cancers' cases */
proc sql;
create table disk22.br_eof_case as
select a.* from disk11.mcbrcse_030 a
inner join disk22._mcr_final_6_eof b
on substr(a.dcn_cse,1,8)=substr(b.dcn,1,8);
%runquit;
/* Prepare the case-control matching data */
proc sql;
create table disk22.brcasectrleof( bufsize=65536 )
(
dcn char(8) format=$8. informat=$8. label='DCN',
PAYCOUNTY char(3) format=$3. informat=$3. label='PAYCOUNTY',
MECODE char(2) format=$2. informat=$2. label='MECODE',
FINANCIALGRANTIND char(1) format=$1. informat=$1. label='FINANCIALGRANTIND',
DAYSPECIFICIND char(1) format=$1. informat=$1. label='DAYSPECIFICIND',
ELIGIBILITYSTARTDATE num format=DATETIME20. informat=DATETIME20.
label='ELIGIBILITYSTARTDATE',
ELIGIBILITYSTOPDATE num format=DATETIME20. informat=DATETIME20. label='ELIGIBILITYSTOPDATE',
dxdate num format=DATE9.,
dcn_cse char(12),
dod num format=DATE9.,
start num,
stop num,
dod_cl num,
_prev_stop num format=DATE9.,
enroll_cumsum num,
gap_count num,
startingap num,
startgaplength num,
enrollbreak num,
keeper num,
r num
);
%runquit;
*****run the control matching algorithm;
%include 'D:\Adam\BREAsT_CANCER\con_enrol_ctrl.sas';
%macro dolist;
%do i= 1 %to 4;
%matchCtrlCase(data1=disk22.br_eof_case/*case data*/,
data2=disk22.eof_ctrl_br/*control data*/,
data3=disk22.brcasectrleof/*case&control data*/,
breakcutoff=15,
enrollrequired=6*30,yrdiff=5);
%end;
%mend;
%dolist();
proc sort data=disk22.brcasectrleof;
by dcn_cse;
%runquit;
/* Prepare the data for cervical cancer patient */
/* Select Cases that die */
data disk21.eof_cr_;
set disk6.cr_enrol_030;
if dod_mcr~=. and dod_cl~=.;
run;
/* Compute the survival time */
data disk21.eof_cr_010;
set disk21.eof_cr_;
if dod_mcr <'31dec2011'd then
dxdoddiff = floor(yrdif(dxdate,dod_mcr,'act/365')*12);
else if dod_cl~=. then
dxdoddiff = floor(yrdif(dxdate,dod_cl,'act/365')*12);
run;
proc univariate data=disk21.eof_cr_010;
var dxdoddiff;
HISTOGRAM / NORMAL (COLOR=RED W=5) NROWS=2;
run;
/* Compute the Continuous enrollment */
%include 'D:\Adam\breast_cancer\eof_ce.sas';
%selectparticipants(data1=disk21.eof_cr_010,data2=disk6.cr_all_cl_040,breakcutoff=15, enrollrequired=6*30,disk=disk21);
/* Compute the comorbidity index */
%include 'D:\Adam\breast_cancer\analysis_macro_eof.sas';
%analysiscaseeof(data1=disk21._cl_mcr_final_6_eof_icn, group=6, cancer=eof_cr,med=all,disk=disk21);
/* Descriptive statistics */
%include 'd:\adam\breast_cancer\desc_stat.sas';
%descrCase(data1=disk21._mcr_final_6_eof,data2=disk21._eof_cr_6_all);
/* prpepare eof case group */
proc sql;
create table disk21.cr_eof_case as
select distinct a.* from disk15.mcrcse_020 a
inner join disk21._mcr_final_6_eof b
on substr(a.dcn_cse,1,8)=substr(b.dcn,1,8);
%runquit;
*****prepare the case-control matching data;
*****check whether non-disabled breast cancer patients are matched;
proc sql;
create table disk21.crcasectrleof( bufsize=65536 )
(
DCN char(8) format=$8. informat=$8. label='DCN',
PAYCOUNTY char(3) format=$3. informat=$3. label='PAYCOUNTY',
MECODE char(2) format=$2. informat=$2. label='MECODE',
FINANCIALGRANTIND char(1) format=$1. informat=$1. label='FINANCIALGRANTIND',
DAYSPECIFICIND char(1) format=$1. informat=$1. label='DAYSPECIFICIND',
ELIGIBILITYSTARTDATE num format=DATETIME20. informat=DATETIME20.
label='ELIGIBILITYSTARTDATE',
ELIGIBILITYSTOPDATE num format=DATETIME20. informat=DATETIME20. label='ELIGIBILITYSTOPDATE',
dxdate num format=DATE9.,
dcn_cse char(12),
dod num format=DATE9.,
start num,
stop num,
dod_cl num,
_prev_stop num format=DATE9.,
enroll_cumsum num,
gap_count num,
startingap num,
startgaplength num,
enrollbreak num,
keeper num,
r num
);
%runquit;
*****run the control matching algorithm;
%macro dolist();
%do i= 1 %to 4; %input cl&i._lline;
%include 'D:\Adam\BREAsT_CANCER\con_enrol_ctrl.sas';
%matchCtrlCase(data1=disk21.cr_eof_case/*case data*/,
data2=disk21.eof_ctrl_cr/*control data*/,
data3=disk21.crcasectrleof/*case&control data*/,
breakcutoff=15,
enrollrequired=6*30,yrdiff=5);
%end;
%mend dolist;
%dolist;
*****frequency analysis for case control match for cervical cancer;
proc sql;
create table crcountcasectrl as
select count(distinct dcn) as n_ctrl,
count(distinct dcn_cse) as n_case from disk21.crcasectrleof;
create table crctrlpercase as
select distinct dcn_cse, count(distinct dcn) as n_ctrl from disk21.crcasectrleof
group by dcn_cse;
quit;
proc freq data=crctrlpercase;
table n_ctrl;
run;
*****frequency analysis for case control match for breast cancer;
proc sql;
create table brcountcasectrl as
select count(distinct dcn) as n_ctrl,
count(distinct dcn_cse) as n_case from disk22.brcasectrleof;
create table brctrlpercase as
select distinct dcn_cse, count(distinct dcn) as n_ctrl from disk22.brcasectrleof
group by dcn_cse;
quit;
proc freq data=brctrlpercase;
table n_ctrl;
run;
/* conduct descriptive analysis on the case and control the case of breast cancer */
%include 'd:\adam\breast_cancer\analysis_macro.sas';
%analysisctrleof(data1=disk22.brcasectrleof,data2=disk14.ctrl_cls_030, group=6, cancer=br_eof,med=ctrl,disk=disk22);
%include 'D:\adam\breast_cancer\desc_stat_eof.sas';
%DataRegAnacase(data1=disk22._mcr_final_6_eof /*all cases*/,data2=disk22._eof_br_6_all /*claims cases*/,
data3=disk22.brcasectrleof /*control-case match*/,
data4=disk11.mcbrcse_020 /*all cases regardless of the window*/);
/* prepare the control data for the regression */
%include 'D:\adam\breast_cancer\desc_stat_eof.sas';
%DataRegAnaCtrl(data1=disk22.eof_ctrl_br,
data2= disk22._br_eof_6_ctrl,
data3=disk11.mcbrcse_020,
data4=disk22.brcasectrleof);
%include 'D:\adam\breast_cancer\desc_stat_eof.sas';
%appendcasectrl(data1=disk22._br_eof_6_ctrl_cost /*control groupdata*/,
data2=_mcr_final_6_eof_cost /*case group data*/, outds=eof_br_twopm_6);
%include 'D:\adam\breast_cancer\desc_stat_eof.sas';
%casectrldescr(data1=eof_br_twopm_6,grp=0);
%casectrldescr(data1=eof_br_twopm_6,grp=1);
%include 'D:\adam\breast_cancer\desc_stat_eof.sas';
%casectrlcost(data1=eof_br_twopm_6,grp=0);
%casectrlcost(data1=eof_br_twopm_6,grp=1);
proc export data= eof_br_twopm_ttl outfile='D:\Adam\Stata\eof\eof_br_twopm_ttl.dta'; %runquit;
proc export data=eof_br_twopm_6 outfile='D:\Adam\Stata\eof\eof_br_twopm_6.dta'; %runquit;
****export the data into stata:;
proc sql;
create table eof_br_twopm_ttl as
select distinct dcn, dcn_cse,grp,cci,age,dxstage,race, sum(sum_amt) as sum_amt
from eof_br_twopm_6
group by grp, dcn order grp, dcn_cse;
quit;
proc univariate data=eof_br_twopm_6;
class grp claim;
var sum_amt;
HISTOGRAM / NORMAL (COLOR=RED W=5) NROWS=2;
run;
******conduct descriptive analysis on the case and control the case of cervical cancer;
%include 'd:\adam\breast_cancer\analysis_macro.sas';
%analysisctrleof(data1=disk21.crcasectrleof,data2=disk14.ctrl_cls_030, group=6, cancer=cr_eof,med=ctrl,disk=disk21);
****Compute breast cancer time to death from dx date;
proc format;
value dxstage
1 = 'in situ'
2 = 'local'
3 = 'regional'
4 = 'distant'
5 = 'not applicable'
6 = 'unstaged';
run;
proc sql;
create table MonthToDeathALL as
select a.*,b.dxstage from disk22.brcasectrleof a
inner join disk22.eof_case b
on substr(left(a.dcn_cse),1,8)=substr(left(b.dcn_cse),1,8);
run;quit;
proc format;
value MonthToDeath
1 ='One Year or Less'
2 ='Two years'
3= 'More than 2 years';
run;
proc sql;
select count(distinct dcn) from disk22.brcasectrleof;
select count(distinct dcn_cse) from disk22.brcasectrleof;
run;quit;
data MonthToDeathALL;
set MonthToDeathALL;
NumMonthToDeathCtrl=intck('month',dxdate,dod) ;
NumMonthToDeathCase=intck('month',dxdate,dod_cl) ;
if NumMonthToDeathCase<=12 then MonthToDeathCase=1;
else if NumMonthToDeathCase>12 and NumMonthToDeathCase<=24 then MonthToDeathCase=2;
else MonthToDeathCase=3;
if NumMonthToDeathCtrl<=12 then MonthToDeathCtrl=1;
else if NumMonthToDeathCtrl>12 and NumMonthToDeathCtrl<=24 then MonthToDeathCtrl=2;
else MonthToDeathCtrl=3;
run;quit;
proc univariate data=MonthToDeathALL;
*class grp claim;
var NumMonthToDeathCtrl;
HISTOGRAM / NORMAL (COLOR=RED W=5) NROWS=2;
run;
proc freq data=MonthToDeathALL;
table (MonthToDeathCase MonthToDeathCtrl)*dxstage;
format MonthToDeathCtrl MonthToDeath. dxstage dxstage.;
run;
proc sql;
select dcn,dod,dxdate from MonthToDeathALL where NumMonthToDeathCtrl<0; run;quit;
|
/*
Navicat MySQL Data Transfer
Source Server : docker
Source Server Version : 50721
Source Host : localhost:3306
Source Database : test
Target Server Type : MYSQL
Target Server Version : 50721
File Encoding : 65001
Date: 2018-02-05 18:00:19
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for t_classes
-- ----------------------------
DROP TABLE IF EXISTS `t_classes`;
CREATE TABLE `t_classes` (
`id` varchar(10) NOT NULL,
`classes_name` varchar(50) NOT NULL COMMENT '衣服类别名称',
`remark` varchar(255) DEFAULT NULL,
`parent_id` varchar(10) DEFAULT NULL,
`user_id` varchar(10) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `primary_id` (`id`) USING BTREE,
KEY `classes_user` (`user_id`),
KEY `classes_classes` (`parent_id`),
CONSTRAINT `classes_classes` FOREIGN KEY (`parent_id`) REFERENCES `t_classes` (`id`),
CONSTRAINT `classes_user` FOREIGN KEY (`user_id`) REFERENCES `t_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_classes
-- ----------------------------
INSERT INTO `t_classes` VALUES ('1', '春装', null, null, '1');
INSERT INTO `t_classes` VALUES ('2', '夏装', null, null, '1');
INSERT INTO `t_classes` VALUES ('3', '秋装', null, null, '1');
INSERT INTO `t_classes` VALUES ('4', '冬装', null, null, '1');
INSERT INTO `t_classes` VALUES ('5', '春装', null, null, '2');
INSERT INTO `t_classes` VALUES ('6', '针织衫', null, '1', '1');
-- ----------------------------
-- Table structure for t_clothes
-- ----------------------------
DROP TABLE IF EXISTS `t_clothes`;
CREATE TABLE `t_clothes` (
`id` varchar(10) NOT NULL,
`clo_name` varchar(25) NOT NULL,
`clo_color` varchar(20) DEFAULT NULL,
`clo_price` double(10,2) DEFAULT NULL,
`clo_picture` varchar(255) DEFAULT NULL,
`clo_start` char(2) NOT NULL,
`classes_id` varchar(10) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `primary_id` (`id`) USING BTREE,
KEY `clo_classes` (`classes_id`),
CONSTRAINT `clo_classes` FOREIGN KEY (`classes_id`) REFERENCES `t_classes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_clothes
-- ----------------------------
-- ----------------------------
-- Table structure for t_dictionary
-- ----------------------------
DROP TABLE IF EXISTS `t_dictionary`;
CREATE TABLE `t_dictionary` (
`id` varchar(10) NOT NULL,
`key` int(4) NOT NULL,
`value` varchar(25) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_dictionary
-- ----------------------------
INSERT INTO `t_dictionary` VALUES ('6f6a9d4e4d', '10', '颜色');
-- ----------------------------
-- Table structure for t_user
-- ----------------------------
DROP TABLE IF EXISTS `t_user`;
CREATE TABLE `t_user` (
`id` varchar(10) NOT NULL,
`user_name` varchar(25) NOT NULL,
`phone` decimal(11,0) NOT NULL,
`birthday` date NOT NULL,
`sex` char(1) NOT NULL,
`password` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `primary_id` (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_user
-- ----------------------------
INSERT INTO `t_user` VALUES ('1', 'dongbo', '13802305684', '2018-02-02', '1', '312312123');
INSERT INTO `t_user` VALUES ('2', 'lvxiang', '15630485623', '2018-02-15', '0', '123456');
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`email` varchar(255) NOT NULL,
`nick_name` varchar(255) DEFAULT NULL,
`pass_word` varchar(255) NOT NULL,
`reg_time` varchar(255) NOT NULL,
`user_name` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `UK_ob8kqyqqgmefl0aco34akdtpe` (`email`),
UNIQUE KEY `UK_lqjrcobrh9jc8wpcar64q1bfh` (`user_name`),
UNIQUE KEY `UK_d2ia11oqhsynodbsi46m80vfc` (`nick_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of user
-- ----------------------------
|
-- phpMyAdmin SQL Dump
-- version 4.6.6deb5
-- https://www.phpmyadmin.net/
--
-- Servidor: localhost:3306
-- Tiempo de generación: 04-04-2020 a las 19:54:45
-- Versión del servidor: 10.1.44-MariaDB-0ubuntu0.18.04.1
-- Versión de PHP: 7.2.24-0ubuntu0.18.04.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Base de datos: `fote`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `comision`
--
CREATE TABLE `comision` (
`id_comision` int(11) NOT NULL,
`numero` int(11) NOT NULL,
`sede_id` int(11) NOT NULL,
`referente_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `fote`
--
CREATE TABLE `fote` (
`dni` varchar(8) NOT NULL,
`ntramite` int(11) NOT NULL,
`apellido` varchar(40) NOT NULL,
`nombre` varchar(60) NOT NULL,
`sexo` varchar(1) NOT NULL,
`ejemplar` varchar(2) NOT NULL,
`fnac` varchar(10) NOT NULL,
`femision` varchar(10) NOT NULL,
`id` varchar(10) NOT NULL,
`sede_id` int(11) NOT NULL,
`referente_id` int(11) NOT NULL,
`cuatrimestre` int(11) NOT NULL,
`fecha_presento` varchar(10) NOT NULL,
`fecha_retiro` varchar(10) NOT NULL,
`quien_avalo` varchar(40) NOT NULL,
`recibio` varchar(45) NOT NULL,
`entrego` varchar(45) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `localidades`
--
CREATE TABLE `localidades` (
`id_localidad` int(11) NOT NULL,
`cp` varchar(10) NOT NULL,
`nombre` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `referente`
--
CREATE TABLE `referente` (
`dni` int(11) NOT NULL,
`apellido` varchar(30) NOT NULL,
`nombre` varchar(40) NOT NULL,
`email` varchar(60) NOT NULL,
`tel` varchar(30) NOT NULL,
`cel` varchar(30) NOT NULL,
`sede_id` int(11) NOT NULL,
`comision_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `sede`
--
CREATE TABLE `sede` (
`id_sede` int(11) NOT NULL,
`nombre` varchar(40) NOT NULL,
`domicilio` varchar(80) NOT NULL,
`telefono` varchar(30) NOT NULL,
`localidad_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `users`
--
CREATE TABLE `users` (
`email` varchar(45) NOT NULL,
`nombre` varchar(60) NOT NULL,
`password` varchar(32) NOT NULL,
`fecha` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Volcado de datos para la tabla `users`
--
INSERT INTO `users` (`email`, `nombre`, `password`, `fecha`) VALUES
('adan@gmail.com', 'adan', 'mandinga', '2020-03-26 09:32:12');
--
-- Índices para tablas volcadas
--
--
-- Indices de la tabla `comision`
--
ALTER TABLE `comision`
ADD PRIMARY KEY (`id_comision`);
--
-- Indices de la tabla `fote`
--
ALTER TABLE `fote`
ADD PRIMARY KEY (`dni`),
ADD UNIQUE KEY `dni` (`dni`);
--
-- Indices de la tabla `localidades`
--
ALTER TABLE `localidades`
ADD PRIMARY KEY (`id_localidad`);
--
-- Indices de la tabla `referente`
--
ALTER TABLE `referente`
ADD PRIMARY KEY (`dni`);
--
-- Indices de la tabla `sede`
--
ALTER TABLE `sede`
ADD PRIMARY KEY (`id_sede`);
--
-- Indices de la tabla `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`email`);
--
-- AUTO_INCREMENT de las tablas volcadas
--
--
-- AUTO_INCREMENT de la tabla `comision`
--
ALTER TABLE `comision`
MODIFY `id_comision` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `localidades`
--
ALTER TABLE `localidades`
MODIFY `id_localidad` int(11) NOT NULL AUTO_INCREMENT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
/* Formatted on 17/06/2014 18:07:40 (QP5 v5.227.12220.39754) */
CREATE OR REPLACE FORCE VIEW MCRE_OWN.V_MCREI_APP_DELIB_PAR_CONF
(
COD_ABI,
COD_PROTOCOLLO_DELIBERA,
COD_MICROTIPOLOGIA_DELIB,
DESC_MICROTIPOLOGIA,
COD_FASE_DELIBERA,
DESC_FASE_DELIBERA,
COD_PROTOCOLLO_PACCHETTO,
COD_NDG,
COD_SNDG,
STATO_ATTUALE,
DTA_CONFERMA_DELIBERA,
DTA_DELIBERA,
COD_ORGANO_DELIBERANTE,
COD_ORGANO_CALCOLATO,
DTA_CONFERMA_PACCHETTO,
COD_STATO_PROPOSTO,
UTILIZZATO_CASSA,
UTILIZZATO_FIRMA,
UTILIZZATO_DERIVATI,
TOT_UTILIZZATO,
TOTALE_RINUNCIA_PREGRESSA,
VAL_RINUNCIA_PROPOSTA,
TOTALE_RINUNCIA,
TERMINE_TRANSAZIONE,
TERMINE_TRANS_POST_PROROGA,
VAL_ESP_LORDA_MORA,
VAL_RDV_DELIB_BANCA_RETE,
"Cassa Rett.Esistente",
"Firma Rett.Esistente",
"Derivati Rett.Esistente",
"Cassa Rett.Proposta",
"Firma Rett.Proposta",
"Derivati Rett.Proposta",
"Cassa Totale Rett.",
"Firma Totale Rett.",
"Derivati Totale Rett.",
"Totale Rett.Esistente",
"Totale Rett.Proposta",
"Totale Rett.",
COD_FASE_MICROTIPOLOGIA,
DESC_FASE_MICROTIPOLOGIA,
COD_FASE_PACCHETTO,
DESC_FASE_PACCHETTO,
DESC_ORGANO_DELIBERANTE,
VAL_NUM_PROROGHE,
DTA_SCADENZA_PROROGA,
DTA_SCADENZA_PRECEDENTE
)
AS
SELECT /*+ no_parallel (f)*/
-- 0216 aggiunto filtro no_delibera = 0 e fase-delibera != 'AN
d.cod_abi,
d.cod_protocollo_delibera,
d.cod_microtipologia_delib,
(SELECT desc_microtipologia
FROM t_mcrei_cl_tipologie
WHERE cod_microtipologia = d.cod_microtipologia_delib)
AS desc_microtipologia,
---25 OCT
d.cod_fase_delibera,
(SELECT desc_dominio
FROM t_mcrei_cl_domini
WHERE cod_dominio = 'DELIBERA' AND val_dominio = d.cod_fase_delibera)
desc_fase_delibera,
--17 maggio
--19 marzo
d.cod_protocollo_pacchetto,
d.cod_ndg,
d.cod_sndg,
f.cod_stato AS stato_attuale,
d.dta_conferma_delibera,
d.dta_delibera_rete AS dta_delibera,
d.cod_organo_deliberante,
d.cod_organo_calcolato,
d.dta_conferma_pacchetto,
NVL (d.cod_stato_proposto,
DECODE (cod_microtipologia_delib, 'CI', 'IN', 'CS', 'SO', NULL))
AS cod_stato_proposto,
NVL (d.val_uti_cassa_scsb, d.val_esp_lorda) AS utilizzato_cassa,
NVL (d.val_uti_firma_scsb, d.val_esp_firma) AS utilizzato_firma,
d.val_uti_sosti_scsb AS utilizzato_derivati,
( NVL (NVL (d.val_uti_cassa_scsb, d.val_esp_lorda), 0)
+ --7 giu
NVL (NVL (d.val_uti_firma_scsb, d.val_esp_firma), 0)
+ NVL (d.val_uti_sosti_scsb, 0))
AS tot_utilizzato,
d.val_rinuncia_deliberata AS totale_rinuncia_pregressa,
d.val_rinuncia_proposta,
d.val_rinuncia_totale AS totale_rinuncia,
dta_scadenza_transaz AS termine_transazione,
NULL AS termine_trans_post_proroga,
NVL (d.val_esp_lorda_mora, 0) AS val_esp_lorda_mora,
DECODE (d.cod_abi, '01025', NULL, NVL (d.val_rdv_delib_banca_rete, 0))
AS val_rdv_delib_banca_rete, --17 luglio
(CASE
WHEN d.cod_microtipologia_delib NOT IN ('CI', 'CS', 'CH')
THEN
NVL (val_rdv_qc_ante_delib, 0) --7 giu
ELSE
TO_NUMBER (NULL)
END)
AS "Cassa Rett.Esistente",
(CASE
WHEN d.cod_microtipologia_delib NOT IN ('CI', 'CS', 'CH')
THEN
NVL (d.val_rdv_pregr_fi, 0)
ELSE
TO_NUMBER (NULL)
END)
AS "Firma Rett.Esistente",
TO_NUMBER (NULL) AS "Derivati Rett.Esistente",
--variazioni proposte
---maschero rdv per le classificazioni
(CASE
WHEN d.cod_microtipologia_delib NOT IN ('CI', 'CS', 'CH')
THEN
(NVL (val_rdv_qc_progressiva, 0) - NVL (val_rdv_qc_ante_delib, 0))
ELSE
TO_NUMBER (NULL)
END)
AS "Cassa Rett.Proposta",
(CASE
WHEN d.cod_microtipologia_delib NOT IN ('CI', 'CS', 'CH')
THEN
(NVL (d.val_rdv_progr_fi, 0) - NVL (d.val_rdv_pregr_fi, 0))
ELSE
TO_NUMBER (NULL)
END)
AS "Firma Rett.Proposta",
TO_NUMBER (NULL) AS "Derivati Rett.Proposta",
----totali_da_deliberare
---maschero rdv per le classificazioni
(CASE
WHEN d.cod_microtipologia_delib NOT IN ('CI', 'CS', 'CH')
THEN
NVL (val_rdv_qc_progressiva, 0)
ELSE
TO_NUMBER (NULL)
END)
AS "Cassa Totale Rett.",
(CASE
WHEN d.cod_microtipologia_delib NOT IN ('CI', 'CS', 'CH')
THEN
NVL (d.val_rdv_progr_fi, 0)
ELSE
TO_NUMBER (NULL)
END)
AS "Firma Totale Rett.",
TO_NUMBER (NULL) AS "Derivati Totale Rett.",
--totale
(CASE
WHEN d.cod_microtipologia_delib NOT IN ('CI', 'CS', 'CH')
THEN
(NVL (val_rdv_qc_ante_delib, 0) + NVL (d.val_rdv_pregr_fi, 0))
ELSE
TO_NUMBER (NULL)
END)
AS "Totale Rett.Esistente",
---maschero rdv per le classificazioni
(CASE
WHEN d.cod_microtipologia_delib NOT IN ('CI', 'CS', 'CH')
THEN
( NVL (val_rdv_qc_progressiva, 0)
- NVL (val_rdv_qc_ante_delib, 0))
+ (NVL (d.val_rdv_progr_fi, 0) - NVL (d.val_rdv_pregr_fi, 0))
ELSE
TO_NUMBER (NULL)
END)
AS "Totale Rett.Proposta",
(CASE
WHEN d.cod_microtipologia_delib NOT IN ('CI', 'CS', 'CH')
THEN
NVL (d.val_rdv_qc_deliberata, 0) --17 luglio
/*(NVL (val_rdv_qc_progressiva, 0)
+ NVL (d.val_rdv_progr_fi, 0))*/
ELSE
TO_NUMBER (NULL)
END)
AS "Totale Rett.",
--------------
d.cod_fase_microtipologia, --17/05/2012
t1.desc_dominio desc_fase_microtipologia,
d.cod_fase_pacchetto,
d1.desc_dominio desc_fase_pacchetto,
--12/06/2012
o1.desc_organo_deliberante AS desc_organo_deliberante,
P.VAL_NUM_PROROGHE,
P.DTA_SCADENZA_PROROGA,
P.DTA_SCADENZA_PRECEDENTE
FROM t_mcrei_app_delibere d,
t_mcre0_app_istituti i,
t_mcre0_app_all_data f,
t_mcrei_cl_domini t1,
t_mcrei_cl_domini d1,
t_mcre0_cl_organi_deliberanti o1,
(SELECT *
FROM (SELECT p.*,
MAX (
p.dta_richiesta)
OVER (
PARTITION BY p.cod_abi_cartolarizzato, p.cod_ndg)
last_richiesta
FROM t_mcre0_app_rio_proroghe p)
WHERE dta_richiesta = last_richiesta) p
WHERE d.cod_fase_delibera NOT IN ('AN', 'VA') --13dic
--AND d.cod_fase_pacchetto = 'COD' ----6 MARZO
AND d.flg_no_delibera = 0
AND d.flg_attiva = '1'
AND d.cod_abi = f.cod_abi_cartolarizzato
AND d.cod_ndg = f.cod_ndg
AND d.cod_abi = p.cod_abi_cartolarizzato(+)
AND d.cod_ndg = p.cod_ndg(+)
AND d.cod_abi = i.cod_abi
AND t1.cod_dominio = 'MICROTIPOLOGIA'
AND t1.val_dominio = d.cod_fase_microtipologia
AND d1.cod_dominio = 'PACCHETTO'
AND d1.val_dominio = d.cod_fase_pacchetto
AND d.cod_organo_deliberante = o1.cod_organo_deliberante(+)
AND d.cod_abi = o1.cod_abi_istituto(+)
AND o1.cod_stato_riferimento(+) = 'IN';
GRANT DELETE, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK, MERGE VIEW ON MCRE_OWN.V_MCREI_APP_DELIB_PAR_CONF TO MCRE_USR;
|
SELECT emp_no, AVG(salary) AS avg_salary
FROM salaries
GROUP BY emp_no
HAVING AVG(salary) > 120000; |
/* List actor/actress who plays in the movie of 'Saving Private Ryan'. */
select a.act_name
from actors_actresses a, casts c, movies m
where m.mid=c.mid
and c.actid=a.actid
and m.title='Saving Private Ryan'
/ |
-- 1. What is the average cost to rent a film in the stores?
SELECT AVG(rental_rate) AS "Average Rental" FROM film
-- 2. What is the average rental cost of films by rating? On average, what is the cheapest rating of films to rent? Most expensive?
SELECT AVG(rental_rate) AS "Average Rental Per Rating" FROM film
GROUP BY rating
-- 3. How much would it cost to replace all the films in the database?
SELECT SUM(replacement_cost) AS "Total Film Cost" from film
-- 4. How much would it cost to replace all the films in each ratings category?
SELECT SUM(replacement_cost) AS "Total Film Cost" from film
GROUP BY rating
-- 5. How long is the longest movie in the database? The shortest?
SELECT MAX(length) AS "Longest Film" FROM film
SELECT MIN(length) AS "Shortest Film" FROM film |
-- --------------------------------------------------------
--
-- Table structure for table `states`
--
CREATE TABLE IF NOT EXISTS `states` (
`id` int(11) NOT NULL auto_increment,
`state` varchar(25) default NULL,
`sid` varchar(10) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=52 ;
--
-- Dumping data for table `states`
--
INSERT INTO `states` (`id`, `state`, `sid`) VALUES
(1, 'Alabama', 'AL'),
(2, 'Alaska', 'AK'),
(3, 'Arizona', 'AZ'),
(4, 'Arkansas', 'AR'),
(5, 'California', 'CA'),
(6, 'Colorado', 'CO'),
(7, 'Connecticut', 'CT'),
(8, 'Delaware', 'DE'),
(9, 'District of Columbia', 'DC'),
(10, 'Florida', 'FL'),
(11, 'Georgia', 'GA'),
(12, 'Hawaii', 'HI'),
(13, 'Idaho', 'ID'),
(14, 'Illinois', 'IL'),
(15, 'Indiana', 'IN'),
(16, 'Iowa', 'IA'),
(17, 'Kansas', 'KS'),
(18, 'Kentucky', 'KY'),
(19, 'Louisiana', 'LA'),
(20, 'Maine', 'ME'),
(21, 'Maryland', 'MD'),
(22, 'Massachusetts', 'MA'),
(23, 'Michigan', 'MI'),
(24, 'Minnesota', 'MN'),
(25, 'Mississippi', 'MS'),
(26, 'Missouri', 'MO'),
(27, 'Montana', 'MT'),
(28, 'Nebraska', 'NE'),
(29, 'Nevada', 'NV'),
(30, 'New Hampshire', 'NH'),
(31, 'New Jersey', 'NJ'),
(32, 'New Mexico', 'NM'),
(33, 'New York', 'NY'),
(34, 'North Carolina', 'NC'),
(35, 'North Dakota', 'ND'),
(36, 'Ohio', 'OH'),
(37, 'Oklahoma', 'OK'),
(38, 'Oregon', 'OR'),
(39, 'Pennsylvania', 'PA'),
(40, 'Rhode Island', 'RI'),
(41, 'South Carolina', 'SC'),
(42, 'South Dakota', 'SD'),
(43, 'Tennessee', 'TN'),
(44, 'Texas', 'TX'),
(45, 'Utah', 'UT'),
(46, 'Vermont', 'VT'),
(47, 'Virginia', 'VA'),
(48, 'Washington', 'WA'),
(49, 'West Virginia', 'WV'),
(50, 'Wisconsin', 'WI'),
(51, 'Wyoming', 'WY');
|
-- Table definitions for the tournament project.
--
-- Put your SQL 'create table' statements in this file; also 'create view'
-- statements if you choose to use it.
--
-- You can write comments in this file by starting them with two dashes, like
-- these lines here.
DROP DATABASE IF EXISTS tournament;
CREATE DATABASE tournament;
\c tournament
-- A table to store the details of the players in the competition.
-- @columns: player_id - An automatically generated id number for a player
-- name - The players name, cannot be NULL.
-- wins - The amount of games the player has won in this tournament.
-- matches - The number of matches the player has participated in.
CREATE TABLE players (
player_id SERIAL PRIMARY KEY,
name TEXT NOT NULL,
wins int NOT NULL DEFAULT 0 CHECK (wins>=0),
matches int NOT NULL DEFAULT 0 CHECK (matches>=0)
);
-- A table to store the individual results of each match.
-- @columns: match_id - An automatically generated id number for the match.
-- winner - the player_id of the winner
-- loser - the player_id of the loser.
CREATE TABLE matches (
match_id SERIAL PRIMARY KEY,
winner int REFERENCES players(player_id),
loser int REFERENCES players(player_id)
);
-- A simple view as the count of players is frequently referenced.
CREATE VIEW players_size as
SELECT count(*)
from players;
-- A view to show the entire list of players ordered by the amount of games they have
-- won.
CREATE VIEW players_by_wins as
SELECT *
from players
ORDER BY wins DESC;
-- Exits the psql.
\q |
select company.name, count(*) as cnt
from company, person where person.company_id = company.id
group by company.name
order by cnt desc
limit 1; |
-- SAK-30667 Polls fails on Oracle migrated database
-- You should execute this only if you have not the column poll_poll.poll_details in CLOB datatype
ALTER TABLE poll_poll ADD (tmpdetails CLOB);
UPDATE poll_poll SET tmpdetails=poll_details;
ALTER TABLE poll_poll DROP COLUMN poll_details;
ALTER TABLE poll_poll RENAME COLUMN tmpdetails TO poll_details;
-- END SAK-30667 Polls fails on Oracle migrated database
|
CREATE TABLE verification_token (
TOKEN_ID BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
TOKEN VARCHAR (255) UNIQUE NOT NULL,
USER_ID BIGINT
);
ALTER TABLE verification_token
ADD CONSTRAINT verification_token_user_fk FOREIGN KEY (USER_ID)
REFERENCES user_entity;
ALTER TABLE user_entity
ADD CONSTRAINT user_entity_verification_token_fk FOREIGN KEY (verification_token_token_id)
REFERENCES verification_token; |
-- 记录用户登陆
CREATE TABLE `beiker_user_login_log` (
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '标识',
`user_id` INT(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '用户标识',
`user_email` VARCHAR(64) NOT NULL DEFAULT '' COMMENT '用户邮箱',
`login_ip` VARCHAR(50) NOT NULL DEFAULT '' COMMENT '用户登陆IP',
`login_time` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '用户登陆时间',
PRIMARY KEY (`id`)
)
COMMENT='用户登陆日志记录'
ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- 增加用户安全手机短信模板
INSERT INTO beiker_smstemplate ( smstitle, smscontent, smstype)
VALUES ('TRX_BEFORE_CHECK_PHONE_CODE', '您在千品网的动态支付密码是:{0},在网站输入后即可支付。【千品网】','TRX_BEFORE_CHECK_PHONE_CODE' ) ;
-- 订单号预取报警
insert into beiker_smstemplate (smstitle,smscontent,smstype)
values ('TGSN_PREFETCH_ALTER_SMS_TEMPLATE','订单号预取报警:{0},请立即处理。','TGSN_PREFETCH_ALTER_SMS_TEMPLATE');
|
# film name,category,langugage
SELECT
f.title, c.name, l.name
FROM
film f, language l, film_category fc, category c
WHERE
f.film_id = fc.film_id
and
c.category_id = fc.category_id
and
f.language_id = l.language_id
;
#Shortcut
SELECT
FROM
film f, language l, film_category fc, category c,
WHERE
|
CREATE TABLE IF NOT EXISTS `administrateur` (
`idu` int(11) NOT NULL REFERENCES `utilisateur` (`idu`) ON DELETE CASCADE ON UPDATE CASCADE,
`idadmin` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT
) ;
CREATE TABLE IF NOT EXISTS `article` (
`idarticle` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`idbailleur` int(11) NOT NULL REFERENCES `bailleur` (`idbailleur`) ON DELETE CASCADE ON UPDATE CASCADE,
`titre` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`idtb` int(11) DEFAULT NULL REFERENCES `type_de_bien` (`idtb`) ON DELETE CASCADE ON UPDATE CASCADE)
;
CREATE TABLE IF NOT EXISTS `artisan` (
`idartisan` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`nomcomplet` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`telephone` int(11) DEFAULT NULL,
`profession` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ville` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`quartier` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL
);
CREATE TABLE IF NOT EXISTS `bailleur` (
`idu` int(11) NOT NULL REFERENCES `utilisateur` (`idu`) ON DELETE CASCADE ON UPDATE CASCADE,
`idbailleur` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`numcni` int(11) DEFAULT NULL,
`ville` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`quartier` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`pays` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`datenaiss` date DEFAULT NULL,
`nomrep` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`telrep` int(11) DEFAULT NULL,
`signature` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL
);
CREATE TABLE IF NOT EXISTS `bien` (
`idbien` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`idtb` int(11) NOT NULL REFERENCES `type_de_bien` (`idtb`) ON DELETE CASCADE ON UPDATE CASCADE,
`idbailleur` int(11) NOT NULL REFERENCES `bailleur` (`idbailleur`) ON DELETE CASCADE ON UPDATE CASCADE,
`nom` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`numtitrefoncier` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`numpermisconst` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`image` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`superficie` decimal(8,0) DEFAULT NULL,
`ville` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`quartier` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`date` date DEFAULT NULL,
`etat` tinyint(4) DEFAULT '0'
);
CREATE TABLE IF NOT EXISTS `equipement` (
`idequipement` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`idpiece` int(11) NOT NULL REFERENCES `piece` (`idpiece`) ON DELETE CASCADE ON UPDATE CASCADE,
`nom` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`prix` decimal(8,0) DEFAULT NULL,
`quantite` int(11) DEFAULT NULL
) ;
CREATE TABLE IF NOT EXISTS `etatequipement` (
`idee` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`valeur` tinyint(4) DEFAULT NULL,
`date` date DEFAULT NULL,
`commentaire` text COLLATE utf8mb4_unicode_ci,
`idequipement` int(11) DEFAULT NULL REFERENCES `equipement` (`idequipement`) ON DELETE CASCADE ON UPDATE CASCADE
) ;
CREATE TABLE IF NOT EXISTS `etatpiece` (
`idep` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`idpiece` int(11) NOT NULL DEFAULT '0' REFERENCES `piece` (`idpiece`) ON DELETE CASCADE ON UPDATE CASCADE,
`valeur` tinyint(4) DEFAULT NULL,
`date` date DEFAULT NULL,
`commentaire` text COLLATE utf8mb4_unicode_ci
);
CREATE TABLE IF NOT EXISTS `etat_des_lieux` (
`idetatlieu` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`idbien` int(11) NOT NULL REFERENCES `bien` (`idbien`) ON DELETE CASCADE ON UPDATE CASCADE,
`description` text COLLATE utf8mb4_unicode_ci,
`datedebut` date DEFAULT NULL,
`datefin` date DEFAULT NULL,
`signbailleur` tinyint(1) DEFAULT NULL,
`signlocataire` tinyint(1) DEFAULT NULL
) ;
CREATE TABLE IF NOT EXISTS `facture` (
`idfacture` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`idlocation` int(11) NOT NULL REFERENCES `location` (`idlocation`) ON DELETE CASCADE ON UPDATE CASCADE,
`date` date DEFAULT NULL,
`datedebut` date DEFAULT NULL,
`datefin` date DEFAULT NULL,
`datelimite` date DEFAULT NULL,
`etat` tinyint(1) DEFAULT NULL
);
CREATE TABLE IF NOT EXISTS `inventaire` (
`idinventaire` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`idbien` int(11) NOT NULL REFERENCES `bien` (`idbien`) ON DELETE CASCADE ON UPDATE CASCADE,
`description` text COLLATE utf8mb4_unicode_ci,
`signbailleur` tinyint(1) DEFAULT '0',
`signlocataire` tinyint(1) DEFAULT '0',
`date` date DEFAULT NULL
);
CREATE TABLE IF NOT EXISTS `invitation` (
`idinvitation` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`date` date NOT NULL,
`etat` int(11) DEFAULT NULL,
`idbailleur` int(11) DEFAULT NULL REFERENCES `bailleur` (`idbailleur`) ON DELETE CASCADE ON UPDATE CASCADE,
`idlocataire` int(11) DEFAULT NULL REFERENCES `locataire` (`idlocataire`) ON DELETE CASCADE ON UPDATE CASCADE
);
CREATE TABLE IF NOT EXISTS `locataire` (
`idu` int(11) NOT NULL REFERENCES `utilisateur` (`idu`) ON DELETE CASCADE ON UPDATE CASCADE,
`idlocataire` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`numcni` int(11) DEFAULT NULL,
`ville` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`quartier` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`pays` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`datenaiss` date DEFAULT NULL,
`sexe` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`profession` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`telemployeur` int(11) DEFAULT NULL,
`nomemployeur` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`signature` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ;
CREATE TABLE IF NOT EXISTS `location` (
`idlocation` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`utilisation` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`activite` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`idlocataire` int(11) DEFAULT NULL REFERENCES `locataire` (`idlocataire`) ON DELETE CASCADE ON UPDATE CASCADE,
`idtl` int(11) DEFAULT NULL REFERENCES `type_de_location` (`idtl`) ON DELETE CASCADE ON UPDATE CASCADE,
`idbien` int(11) DEFAULT NULL REFERENCES `bien` (`idbien`) ON DELETE CASCADE ON UPDATE CASCADE,
`duree` int(11) DEFAULT NULL,
`montant` float DEFAULT NULL,
`montantcaution` float DEFAULT NULL,
`signlocataire` tinyint(4) DEFAULT '0',
`signbailleur` tinyint(4) DEFAULT '0'
);
CREATE TABLE IF NOT EXISTS `mesomb_deposits` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL ,
`service` enum('MTN','ORANGE') COLLATE utf8mb4_unicode_ci NOT NULL,
`receiver` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`amount` double(8,2) NOT NULL,
`message` text COLLATE utf8mb4_unicode_ci,
`redirect` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`success` tinyint(1) NOT NULL DEFAULT '0',
`status` enum('FAIL','SUCCESS') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`depositable_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`depositable_id` bigint(20) unsigned DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `mesomb_deposits_depositable_type_depositable_id_index` (`depositable_type`,`depositable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Les données exportées n'étaient pas sélectionnées.
-- Listage de la structure de la table immoasis. mesomb_payments
DROP TABLE IF EXISTS `mesomb_payments`;
CREATE TABLE IF NOT EXISTS `mesomb_payments` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`service` enum('MTN','ORANGE') COLLATE utf8mb4_unicode_ci NOT NULL,
`fees` tinyint(1) NOT NULL DEFAULT '1',
`payer` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`amount` double(8,2) NOT NULL,
`message` text COLLATE utf8mb4_unicode_ci,
`currency` enum('XAF','XOF') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'XAF',
`redirect` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`success` tinyint(1) NOT NULL DEFAULT '0',
`status` enum('FAIL','SUCCESS') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`payable_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`payable_id` bigint(20) unsigned DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `mesomb_payments_payable_type_payable_id_index` (`payable_type`,`payable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Les données exportées n'étaient pas sélectionnées.
-- Listage de la structure de la table immoasis. mesomb_transactions
DROP TABLE IF EXISTS `mesomb_transactions`;
CREATE TABLE IF NOT EXISTS `mesomb_transactions` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`pk` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`amount` double(8,2) NOT NULL,
`type` enum('COLLECT','REFILL','INIT','WITHDRAWAL','PAYMENT','DEPOSIT','TRANSFER','SendMoney','ReceiveMoney','P2PTransfer','AccountBalance','CashIn','CashOut','ENEOBill','FloatTransfer','SellAirtime','PayWithCoupon','PostpaidBill','AirtimePurchase','ENEOPrepaid','CDEBill') COLLATE utf8mb4_unicode_ci NOT NULL,
`service` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`message` text COLLATE utf8mb4_unicode_ci,
`b_party` text COLLATE utf8mb4_unicode_ci,
`fees` double(8,2) NOT NULL,
`external_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ts` timestamp NOT NULL,
`transacable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`transacable_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`reference` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`direction` enum('0','-1','1') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `mesomb_transactions_transacable_type_transacable_id_index` (`transacable_type`,`transacable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Les données exportées n'étaient pas sélectionnées.
-- Listage de la structure de la table immoasis. migrations
DROP TABLE IF EXISTS `migrations`;
CREATE TABLE IF NOT EXISTS `migrations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Les données exportées n'étaient pas sélectionnées.
-- Listage de la structure de la table immoasis. note
DROP TABLE IF EXISTS `note`;
CREATE TABLE IF NOT EXISTS `note` (
`idnote` int(11) NOT NULL AUTO_INCREMENT,
`idartisan` int(11) NOT NULL REFERENCES `artisan` (`idartisan`) ON DELETE CASCADE ON UPDATE CASCADE,
`valeur` int(11) DEFAULT NULL,
`idu` int(11) DEFAULT NULL REFERENCES `utilisateur` (`idu`) ON DELETE CASCADE ON UPDATE CASCADE,
PRIMARY KEY (`idnote`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Les données exportées n'étaient pas sélectionnées.
-- Listage de la structure de la table immoasis. package
DROP TABLE IF EXISTS `package`;
CREATE TABLE IF NOT EXISTS `package` (
`idpackage` int(11) NOT NULL AUTO_INCREMENT,
`nom` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`nombrebienmax` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`montant` decimal(8,0) DEFAULT NULL,
PRIMARY KEY (`idpackage`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Les données exportées n'étaient pas sélectionnées.
-- Listage de la structure de la table immoasis. photo
DROP TABLE IF EXISTS `photo`;
CREATE TABLE IF NOT EXISTS `photo` (
`idphoto` int(11) NOT NULL AUTO_INCREMENT,
`nom` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`idbien` int(11) NOT NULL REFERENCES `bien` (`idbien`) ON DELETE CASCADE ON UPDATE CASCADE,
PRIMARY KEY (`idphoto`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Les données exportées n'étaient pas sélectionnées.
-- Listage de la structure de la table immoasis. piece
DROP TABLE IF EXISTS `piece`;
CREATE TABLE IF NOT EXISTS `piece` (
`idpiece` int(11) NOT NULL AUTO_INCREMENT,
`idbien` int(11) NOT NULL REFERENCES `bien` (`idbien`) ON DELETE CASCADE ON UPDATE CASCADE,
`nom` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`idpiece`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Les données exportées n'étaient pas sélectionnées.
-- Listage de la structure de la table immoasis. quittance
DROP TABLE IF EXISTS `quittance`;
CREATE TABLE IF NOT EXISTS `quittance` (
`idquittance` int(11) NOT NULL AUTO_INCREMENT,
`idfacture` int(11) NOT NULL REFERENCES `facture` (`idfacture`) ON DELETE CASCADE ON UPDATE CASCADE,
PRIMARY KEY (`idquittance`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Les données exportées n'étaient pas sélectionnées.
-- Listage de la structure de la table immoasis. renovation
DROP TABLE IF EXISTS `renovation`;
CREATE TABLE IF NOT EXISTS `renovation` (
`idrenovation` int(11) NOT NULL AUTO_INCREMENT,
`libelle` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`montant` decimal(8,0) DEFAULT NULL,
`date` date DEFAULT NULL,
`statut` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`idartisan` int(11) DEFAULT NULL REFERENCES `artisan` (`idartisan`) ON DELETE CASCADE ON UPDATE CASCADE,
`idbien` int(11) DEFAULT NULL REFERENCES `bien` (`idbien`) ON DELETE CASCADE ON UPDATE CASCADE,
`idu` int(11) DEFAULT NULL REFERENCES `utilisateur` (`idu`) ON DELETE CASCADE ON UPDATE CASCADE,
PRIMARY KEY (`idrenovation`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Les données exportées n'étaient pas sélectionnées.
-- Listage de la structure de la table immoasis. transaction
DROP TABLE IF EXISTS `transaction`;
CREATE TABLE IF NOT EXISTS `transaction` (
`idtransaction` int(11) NOT NULL AUTO_INCREMENT,
`motif` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`date` date DEFAULT NULL,
`montant` double DEFAULT NULL,
`recepteur` int(11) DEFAULT NULL,
`idu` int(11) DEFAULT NULL REFERENCES `utilisateur` (`idu`) ON DELETE CASCADE ON UPDATE CASCADE,
`created_at` date DEFAULT NULL,
PRIMARY KEY (`idtransaction`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS `type_de_bien` (
`idtb` int(11) NOT NULL AUTO_INCREMENT,
`nom` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`idtb`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS `type_de_location` (
`idtl` int(11) NOT NULL AUTO_INCREMENT,
`nom` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`idtl`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS `utilisateur` (
`idu` int(11) NOT NULL AUTO_INCREMENT,
`nomcomplet` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`mdp` varchar(254) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`telephone` int(11) DEFAULT NULL,
`role` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`idu`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Les données exportées n'étaient pas sélectionnées.
-- Listage de la structure de la table immoasis. validitepackage
DROP TABLE IF EXISTS `validitepackage`;
CREATE TABLE IF NOT EXISTS `validitepackage` (
`idvp` int(11) NOT NULL AUTO_INCREMENT,
`datesous` date DEFAULT NULL,
`dateexp` date DEFAULT NULL,
`idpackage` int(11) DEFAULT NULL REFERENCES `package` (`idpackage`) ON DELETE CASCADE ON UPDATE CASCADE,
`idu` int(11) DEFAULT NULL REFERENCES `utilisateur` (`idu`) ON DELETE CASCADE ON UPDATE CASCADE,
PRIMARY KEY (`idvp`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 04, 2019 at 05:19 AM
-- Server version: 10.1.29-MariaDB
-- PHP Version: 7.3.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `zestweb`
--
-- --------------------------------------------------------
--
-- Table structure for table `announcement`
--
--
-- Dumping data for table `announcement`
--
-- --------------------------------------------------------
--
-- Table structure for table `community`
--
CREATE TABLE `community` (
`id` int(255) NOT NULL,
`ownerId` int(255) NOT NULL,
`title` varchar(255) DEFAULT NULL,
`category` varchar(255) DEFAULT NULL,
`contents` longtext NOT NULL,
`created` datetime NOT NULL,
`views` int(255) NOT NULL DEFAULT '0',
`isDelete` varchar(255) DEFAULT NULL,
`isClosed` varchar(255) DEFAULT NULL,
`slug` varchar(255) DEFAULT NULL,
`isComponent` varchar(255) DEFAULT NULL,
`componentFile` varchar(255) DEFAULT NULL,
`componentVersion` varchar(255) DEFAULT NULL,
`extra` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `community`
--
-- --------------------------------------------------------
--
-- Table structure for table `pages`
--
CREATE TABLE `pages` (
`id` int(255) NOT NULL,
`ownerId` int(255) NOT NULL,
`title` varchar(255) NOT NULL,
`type` varchar(255) NOT NULL,
`keyword` varchar(255) DEFAULT NULL,
`scontent` varchar(255) NOT NULL,
`content` longtext NOT NULL,
`created` datetime NOT NULL,
`updated` datetime DEFAULT NULL,
`views` int(255) NOT NULL DEFAULT '0',
`isDelete` varchar(255) DEFAULT NULL,
`slug` varchar(7) NOT NULL,
`token` varchar(15) NOT NULL,
`image` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `pages`
--
--
-- Table structure for table `sitesetting`
--
CREATE TABLE `sitesetting` (
`id` int(255) NOT NULL,
`name` varchar(255) NOT NULL,
`value` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `sitesetting`
--
INSERT INTO `sitesetting` (`id`, `name`, `value`) VALUES
(1, 'status', 'online'),
(2, 'name', ''),
(3, 'email', ''),
(4, 'description', ''),
(5, 'keywords', ''),
(6, 'gmeta', '');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(255) NOT NULL,
`name` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`salts` varchar(255) NOT NULL,
`token` varchar(255) DEFAULT NULL,
`resetToken` varchar(255) DEFAULT NULL,
`ip` varchar(255) NOT NULL,
`role` varchar(255) NOT NULL,
`ban` varchar(255) DEFAULT 'NULL',
`status` varchar(255) NOT NULL DEFAULT 'running',
`close` varchar(255) DEFAULT 'NULL',
`created` int(255) NOT NULL,
`lastOnline` int(255) NOT NULL,
`bio` varchar(255) DEFAULT NULL,
`pImg` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `users`
--
--
-- Indexes for dumped tables
--
--
-- Indexes for table `community`
--
ALTER TABLE `community`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `pages`
--
ALTER TABLE `pages`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sitesetting`
--
ALTER TABLE `sitesetting`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `community`
--
ALTER TABLE `community`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=96;
--
-- AUTO_INCREMENT for table `pages`
--
ALTER TABLE `pages`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=106;
--
-- AUTO_INCREMENT for table `sitesetting`
--
ALTER TABLE `sitesetting`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=52;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- https://modeanalytics.com/editor/code_for_san_francisco/reports/b55118c60f67
-- Query 2
-- The user enters the recipient_candidate_name.
-- This returns the election cycle, number of refunds, total refunded amount, total
-- contributions and a scaled amount demonstrating the impact on the total contributions.
with table_a as (
select
recipient_candidate_name,
election_cycle,
sum(transaction_amount) as total_trans_amount
from trg_analytics.candidate_contributions
where recipient_candidate_name like '%YEE, LELAND Y.%'
group by recipient_candidate_name, election_cycle
order by election_cycle desc
),
table_b as (
select
recipient_candidate_name,
election_cycle,
sum(transaction_amount) as refund_trans_amount,
count(transaction_amount) as num_refunds
from trg_analytics.candidate_contributions
where recipient_candidate_name like '%YEE, LELAND Y.%'
and transaction_amount < 0
group by recipient_candidate_name, election_cycle
order by election_cycle desc
)
select
table_a.recipient_candidate_name,
table_a.election_cycle,
num_refunds,
refund_trans_amount,
total_trans_amount,
-1 * refund_trans_amount / total_trans_amount as scaled_refund_amount
from table_a
join table_b
on table_a.recipient_candidate_name = table_b.recipient_candidate_name
and table_a.election_cycle = table_b.election_cycle
|
create table BASIN(
Id int not null,
Code varchar(20),
Name varchar(20),
primary key (Id)
); |
-- Created by Vertabelo (http://vertabelo.com)
-- Last modification date: 2021-04-05 12:56:53.13
-- foreign keys
ALTER TABLE Product_Warehouse DROP CONSTRAINT Product_Warehouse_Order;
ALTER TABLE "Order" DROP CONSTRAINT Receipt_Product;
ALTER TABLE Product_Warehouse DROP CONSTRAINT _Product;
ALTER TABLE Product_Warehouse DROP CONSTRAINT _Warehouse;
-- tables
DROP TABLE "Order";
DROP TABLE Product;
DROP TABLE Product_Warehouse;
DROP TABLE Warehouse;
-- End of file. |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
DROP TABLE IF EXISTS `post`;
CREATE TABLE `post` (
`id` int(11) NOT NULL,
`author` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`comment` text COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
INSERT INTO `post` (`id`, `author`, `comment`, `created_at`) VALUES
(1, 'admin', 'First post', '2018-01-03 14:13:02');
ALTER TABLE `post`
ADD PRIMARY KEY (`id`);
ALTER TABLE `post`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
select * from pheno2 where pheno = '¸Ô´Ù';
select count(*) from pheno;
select * from pheno
where pheno_id in (
select distinct pheno_id from pheno
except
select distinct pheno_id from munjin)
order by pheno_id;
select distinct pheno_id from pheno
except
select distinct pheno_id from munjin;
delete from pheno2 where pheno_id in (839,824,1143,841,220,822,823,922,811,799,1144,840,921,1146,1145,826,800,1077,681,1142,892,1099,809,132,1066,813,871,1180,218,919,1067,920,873,821,894,290,869,825,291,804,827,812,1147,1068,801,995,828
);
select * from pheno2 where pheno_id = 839
|
PARAMETERS [@PagoID] Text (255);
DELETE *
FROM TB_PagoProvision
WHERE PagoID= [@PagoID];
|
@@BasicTable\FM_CreateTables.sql
@@BasicTable\Fm610Datas.sql
set serveroutput on
declare
TYPE T_CURSOR is ref CURSOR;
CUR_TABLE T_CURSOR;
v_strsql varchar2(500):='';
begin
for CUR_TABLE in (select t.TABLE_NAME from user_tables t where t.TABLE_NAME like '%FM$$/_%' ESCAPE '/') loop
v_strsql:='alter table '||CUR_TABLE.table_name || ' rename to ' ||substr(CUR_TABLE.table_name,6,length(CUR_TABLE.table_name)-5);
execute immediate v_strsql;
end loop;
EXCEPTION
WHEN others THEN
dbms_output.put_line('ALTER RENAME TABLE NAME ERROR:'||SQLCODE||v_strsql);
end;
/
set serveroutput off
@@BasicTable\CreatePrimaryKey.sql
@@BasicTable\CreateIndex.sql
@@BasicTable\FM_CreateSeq.sql
declare
TYPE T_CURSOR IS REF CURSOR;
CUR_SEQ T_CURSOR;
OLD_SEQ_NAME VARCHAR2(40);
NEW_SEQ_NAME VARCHAR2(40);
OLD_SEQ_FLAG NUMBER := 0;
i_Key NUMBER := 0;
str_txt VARCHAR2(2000) := '';
str_SQL VARCHAR2(2000);
str_SQL_START VARCHAR2(2000) := '';
str_SQL_END VARCHAR2(2000) := '';
begin
str_SQL := '';
for CUR_SEQ in (select t.sequence_name, t.last_number from user_sequences t where t.sequence_name like 'FM$$/_%' ESCAPE '/') loop
NEW_SEQ_NAME := TRIM(CUR_SEQ.SEQUENCE_NAME);
OLD_SEQ_NAME := SUBSTR(TRIM(CUR_SEQ.SEQUENCE_NAME),
6,
LENGTH(TRIM(CUR_SEQ.SEQUENCE_NAME)) - 5);
SELECT COUNT(1)
INTO OLD_SEQ_FLAG
FROM USER_SEQUENCES N
WHERE N.sequence_name = OLD_SEQ_NAME;
IF OLD_SEQ_FLAG = 0 THEN
str_SQL := DBMS_METADATA.GET_DDL('SEQUENCE', NEW_SEQ_NAME);
str_SQL := substr(str_SQL, 1, instr(str_SQL, 'FM$$_') - 1) ||
substr(str_SQL, instr(str_SQL, 'FM$$_') + 5);
str_SQL := replace(str_SQL, '"', '');
str_txt := 'drop SEQUENCE ' || NEW_SEQ_NAME;
execute immediate str_txt;
--dbms_output.put_line(str_SQL);
execute immediate str_SQL;
ELSE
SELECT t.last_number
INTO i_Key
FROM USER_SEQUENCES t
WHERE t.sequence_name = OLD_SEQ_NAME;
str_SQL := DBMS_METADATA.GET_DDL('SEQUENCE', NEW_SEQ_NAME);
str_SQL_START := substr(str_SQL, 1, instr(str_SQL, 'START WITH') - 1);
str_SQL_START := substr(str_SQL_START,
1,
instr(str_SQL_START, 'FM$$_') - 1) ||
substr(str_SQL_START,
instr(str_SQL_START, 'FM$$_') + 5);
str_SQL_END := substr(str_SQL, instr(str_SQL, 'CACHE'));
str_SQL := str_SQL_START || ' START WITH ' || to_char(i_Key + 10) || ' ' ||
str_SQL_END;
str_txt := 'drop SEQUENCE ' || OLD_SEQ_NAME;
--dbms_output.put_line(str_txt);
execute immediate str_txt;
str_txt := 'drop SEQUENCE ' || NEW_SEQ_NAME;
execute immediate str_txt;
str_SQL := replace(str_SQL, '"', '');
execute immediate str_SQL;
--dbms_output.put_line(str_SQL);
end if;
end loop;
end;
/
@@BasicTable\TB_version.sql
|
-- MySQL Script generated by MySQL Workbench
-- Wed Jun 5 16:28:20 2019
-- Model: Sakila Full Version: 2.0
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
-- Schema DonPreguntonBBDD
-- -----------------------------------------------------
-- -----------------------------------------------------
-- Schema DonPreguntonBBDD
-- -----------------------------------------------------
CREATE SCHEMA IF NOT EXISTS `DonPreguntonBBDD` ;
USE `DonPreguntonBBDD` ;
-- -----------------------------------------------------
-- Table `DonPreguntonBBDD`.`Asignatura`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `DonPreguntonBBDD`.`Asignatura` (
`idAsignatura` VARCHAR(20) NOT NULL,
`Nombre` VARCHAR(20) NOT NULL,
`Clase_idClase` VARCHAR(20) NULL,
PRIMARY KEY (`idAsignatura`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `DonPreguntonBBDD`.`Profesor`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `DonPreguntonBBDD`.`Profesor` (
`idProfesor` VARCHAR(20) NOT NULL,
`Nombre` VARCHAR(20) NOT NULL,
`Apellido` VARCHAR(20) NOT NULL,
`DNI` VARCHAR(20) NOT NULL,
`Inicio_Jornadas` VARCHAR(20) NOT NULL,
`Final_Jornada` VARCHAR(20) NULL,
`NumSS` VARCHAR(30) NOT NULL,
`Sueldo` INT NOT NULL,
`Pr_Contrasenia` VARCHAR(45) NOT NULL,
`Num_cuenta` VARCHAR(45) NOT NULL,
`Clase_idClase` VARCHAR(20) NULL,
PRIMARY KEY (`idProfesor`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `DonPreguntonBBDD`.`Pago`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `DonPreguntonBBDD`.`Pago` (
`idPago` VARCHAR(20) NOT NULL,
`idProfesores` VARCHAR(20) NOT NULL,
`idClase` VARCHAR(20) NULL,
`idAlumno` VARCHAR(20) NOT NULL,
`cantidad` INT NOT NULL,
`cantToProf` INT NOT NULL,
PRIMARY KEY (`idPago`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `DonPreguntonBBDD`.`Clase`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `DonPreguntonBBDD`.`Clase` (
`idClase` VARCHAR(20) NOT NULL,
`idProfesor` VARCHAR(20) NOT NULL,
`idAlumno` VARCHAR(20) NOT NULL,
`idAsignatura` VARCHAR(20) NOT NULL,
`idHorario` VARCHAR(20) NOT NULL,
`Pago_idPago` VARCHAR(20) NOT NULL,
PRIMARY KEY (`idClase`, `Pago_idPago`),
INDEX `fk_Clase_Pagos1_idx` (`Pago_idPago` ASC),
CONSTRAINT `fk_Clase_Pagos1`
FOREIGN KEY (`Pago_idPago`)
REFERENCES `DonPreguntonBBDD`.`Pago` (`idPago`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `DonPreguntonBBDD`.`Alumno`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `DonPreguntonBBDD`.`Alumno` (
`idAlumno` VARCHAR(20) NOT NULL,
`Nombre` VARCHAR(20) NOT NULL,
`Apellido` VARCHAR(20) NOT NULL,
`DNI` VARCHAR(20) NOT NULL,
`tarjeta_bancaria` INT NOT NULL,
`Clase_idClase` VARCHAR(20) NULL,
`Al_Contrasenia` VARCHAR(45) NOT NULL,
PRIMARY KEY (`idAlumno`),
INDEX `fk_Alumno_Clase1_idx` (`Clase_idClase` ASC),
CONSTRAINT `fk_Alumno_Clase1`
FOREIGN KEY (`Clase_idClase`)
REFERENCES `DonPreguntonBBDD`.`Clase` (`idClase`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `DonPreguntonBBDD`.`Profesores_has_Asignatuas`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `DonPreguntonBBDD`.`Profesores_has_Asignatuas` (
`Profesores_idProfesor` VARCHAR(20) NOT NULL,
`Profesores_Clase_idClase` VARCHAR(20) NOT NULL,
`Asignatuas_idAsignatura` VARCHAR(20) NOT NULL,
`Asignatuas_Clase_idClase` VARCHAR(20) NOT NULL,
`Clase_idClase` VARCHAR(20) NOT NULL,
PRIMARY KEY (`Profesores_idProfesor`, `Profesores_Clase_idClase`, `Asignatuas_idAsignatura`, `Asignatuas_Clase_idClase`, `Clase_idClase`),
INDEX `fk_Profesores_has_Asignatuas_Asignatuas1_idx` (`Asignatuas_idAsignatura` ASC, `Asignatuas_Clase_idClase` ASC),
INDEX `fk_Profesores_has_Asignatuas_Profesores1_idx` (`Profesores_idProfesor` ASC, `Profesores_Clase_idClase` ASC),
INDEX `fk_Profesores_has_Asignatuas_Clase1_idx` (`Clase_idClase` ASC),
CONSTRAINT `fk_Profesores_has_Asignatuas_Profesores1`
FOREIGN KEY (`Profesores_idProfesor` , `Profesores_Clase_idClase`)
REFERENCES `DonPreguntonBBDD`.`Profesor` (`idProfesor` , `Clase_idClase`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_Profesores_has_Asignatuas_Asignatuas1`
FOREIGN KEY (`Asignatuas_idAsignatura` , `Asignatuas_Clase_idClase`)
REFERENCES `DonPreguntonBBDD`.`Asignatura` (`idAsignatura` , `Clase_idClase`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_Profesores_has_Asignatuas_Clase1`
FOREIGN KEY (`Clase_idClase`)
REFERENCES `DonPreguntonBBDD`.`Clase` (`idClase`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `DonPreguntonBBDD`.`Horario`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `DonPreguntonBBDD`.`Horario` (
`idHorario` VARCHAR(45) NOT NULL,
`fecha` DATE NOT NULL,
`hora` VARCHAR(20) NOT NULL,
`Clase_idClase` VARCHAR(20) NOT NULL,
PRIMARY KEY (`idHorario`),
INDEX `fk_Horario_Clase1_idx` (`Clase_idClase` ASC),
CONSTRAINT `fk_Horario_Clase1`
FOREIGN KEY (`Clase_idClase`)
REFERENCES `DonPreguntonBBDD`.`Clase` (`idClase`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
|
WITH Total AS (SELECT DISTINCT Category.Category_1 FROM Category, Bid WHERE Category.Category_1 IS NOT NULL AND Bid.ItemID == Category.ItemID AND Bid.Amount > 100
UNION
SELECT DISTINCT Category.Category_2 FROM Category, Bid WHERE Category.Category_2 IS NOT NULL AND Bid.ItemID == Category.ItemID AND Bid.Amount > 100
UNION
SELECT DISTINCT Category.Category_3 FROM Category, Bid WHERE Category.Category_3 IS NOT NULL AND Bid.ItemID == Category.ItemID AND Bid.Amount > 100
UNION
SELECT DISTINCT Category.Category_4 FROM Category, Bid WHERE Category.Category_4 IS NOT NULL AND Bid.ItemID == Category.ItemID AND Bid.Amount > 100
UNION
SELECT DISTINCT Category.Category_5 FROM Category, Bid WHERE Category.Category_5 IS NOT NULL AND Bid.ItemID == Category.ItemID AND Bid.Amount > 100
UNION
SELECT DISTINCT Category.Category_6 FROM Category, Bid WHERE Category.Category_6 IS NOT NULL AND Bid.ItemID == Category.ItemID AND Bid.Amount > 100
)
SELECT COUNT(*)
FROM Total
|
SELECT * FROM CITY C WHERE C.COUNTRYCODE = 'USA' AND C.POPULATION>100000; |
DROP DATABASE IF EXISTS ultimutt_db;
CREATE DATABASE ultimutt_db;
USE ultimutt_db;
CREATE TABLE ultimutt_breeds (
Breed varchar(255),
avg_height float,
avg_weight float,
Classification varchar(255),
Friendliness float,
Exercise float,
Trainability float,
Shedding float,
Health float
); |
DROP DATABASE IF EXISTS chatapp;
DROP ROLE IF EXISTS admin;
-- Comment the following lines to only drop newly created database and roles
CREATE ROLE admin WITH LOGIN PASSWORD 'admin';
CREATE DATABASE chatapp;
GRANT ALL PRIVILEGES ON DATABASE chatapp TO admin; |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ysh.fenu.mapper.LoginMapper">
<select id="selectAccToken_web" resultType="Map">
/* login.selectAccToken_web */
SELECT user_id
, name
, role
, email
FROM tb_user u
INNER JOIN (
SELECT user_web_id
FROM tb_user_web
WHERE login_id = #{ userId }
AND login_pw = #{ password }
)uw
ON u.user_web_id = uw.user_web_id
</select>
<select id="selectTokenUser" parameterType="com.ysh.fenu.comm.security.JwtUser" resultType="Map">
/* login.selectTokenUser */
select user_id
, name
, role
, email
from tb_user
where user_id = #{ userId }
AND name = #{ name }
</select>
<select id="selectUserInfo" resultType="Map">
/* login.selectUserInfo */
WITH gb AS (
SELECT IFNULL(SUM(good), 0) AS good
, IFNULL(SUM(bad), 0) AS bad
FROM (
SELECT food_id
FROM tb_food
WHERE user_id = #{ userId }
AND use_yn = 'Y') f
INNER JOIN tb_food_apprs fa
ON f.food_id = fa.food_id
)
SELECT name
, `desc`
, (SELECT good FROM gb) AS good
, (SELECT bad FROM gb) AS bad
from tb_user
where user_id = #{ userId }
</select>
<select id="selectUserInfoFromMenuId" resultType="Map">
/* login.selectUserInfoFromMenuId*/
WITH user AS (
SELECT u.user_id
, u.name
, u.`desc`
, m.title
, m.img
FROM tb_user u
INNER JOIN (
SELECT user_id
, title
, img
FROM fenu.tb_menu
where menu_id = #{ menu_id }
LIMIT 1 ) m
ON u.user_id = m.user_id
),
gb as (
SELECT IFNULL(SUM(good), 0) AS good
, IFNULL(SUM(bad), 0) AS bad
FROM (
SELECT food_id
FROM tb_food
WHERE menu_id = #{ menu_id }
AND use_yn = 'Y') f
INNER JOIN tb_food_apprs fa
ON f.food_id = fa.food_id
)
SELECT user_id
, name
, `desc`
, title
, img
, (SELECT img FROM tb_menu WHERE menu_id = #{ menu_id } LIMIT 1) AS img
, (SELECT good FROM gb) AS good
, (SELECT bad FROM gb) AS bad
FROM user
</select>
</mapper> |
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Creato il: Feb 12, 2019 alle 16:15
-- Versione del server: 10.1.37-MariaDB
-- Versione PHP: 7.3.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `db_ingsw`
--
-- --------------------------------------------------------
--
-- Struttura della tabella `ingiunzione`
--
CREATE TABLE `ingiunzione` (
`idIngiunzione` int(11) NOT NULL,
`importo` double NOT NULL,
`stato` enum('P','NE','E','C','S') NOT NULL,
`nProtocollo` varchar(32) DEFAULT NULL,
`mora` double NOT NULL,
`mcTotale` double NOT NULL,
`DataCreazione` date NOT NULL,
`dataUltimaModifica` date DEFAULT NULL,
`idUtenza` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dump dei dati per la tabella `ingiunzione`
--
INSERT INTO `ingiunzione` (`idIngiunzione`, `importo`, `stato`, `nProtocollo`, `mora`, `mcTotale`, `DataCreazione`, `dataUltimaModifica`, `idUtenza`) VALUES
(134, 2192.536, 'C', NULL, 0, 2458, '2017-10-09', '2017-10-02', 7),
(135, 2676, 'E', 'GCI-6-135', 0, 3000, '2017-11-09', '2017-10-02', 6),
(140, 2330, 'E', 'GCI-5-140', 100, 2500, '2017-01-10', '2017-10-02', 5),
(141, 2232.676, 'E', 'GCI-8-141', 0, 2503, '2017-02-10', '2017-10-02', 8),
(142, 4085.36, 'NE', NULL, 0, 4580, '2017-09-09', '2017-10-02', 9),
(143, 2515, 'NE', NULL, 0, 0, '2017-10-02', NULL, 10);
--
-- Trigger `ingiunzione`
--
DELIMITER $$
CREATE TRIGGER `aggiornaData` BEFORE UPDATE ON `ingiunzione` FOR EACH ROW SET NEW.dataUltimaModifica=CURRENT_DATE()
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `associaIngiunzione` AFTER INSERT ON `ingiunzione` FOR EACH ROW BEGIN
UPDATE utenza SET utenza.idIngiunzione = NEW.idIngiunzione WHERE utenza.idUtenza = NEW.idUtenza;
UPDATE lettura SET lettura.idIngiunzione = NEW.idIngiunzione WHERE lettura.idUtenza = NEW.idUtenza;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `dataDiCreazione` BEFORE INSERT ON `ingiunzione` FOR EACH ROW SET NEW.dataCreazione=CURRENT_DATE()
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Struttura della tabella `lettura`
--
CREATE TABLE `lettura` (
`idLettura` int(11) NOT NULL,
`mc` double NOT NULL,
`dataLettura` date NOT NULL,
`statoBolletta` enum('P','NP','','') NOT NULL,
`idIngiunzione` int(11) DEFAULT NULL,
`idUtenza` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dump dei dati per la tabella `lettura`
--
INSERT INTO `lettura` (`idLettura`, `mc`, `dataLettura`, `statoBolletta`, `idIngiunzione`, `idUtenza`) VALUES
(10, 1245, '2017-08-09', 'NP', 141, 8),
(12, 2458, '2017-08-02', 'NP', 134, 7),
(13, 1245, '2017-09-04', 'NP', 135, 6),
(14, 4580, '2017-09-05', 'NP', 142, 9),
(16, 458, '2017-09-01', 'NP', 140, 5),
(17, 258, '2017-09-14', 'NP', 140, 5),
(18, 850, '2017-09-15', 'NP', 140, 5),
(19, 285, '2017-09-23', 'NP', 140, 5),
(20, 985, '2017-05-15', 'NP', 140, 5),
(21, 1258, '2017-09-21', 'NP', 141, 8);
-- --------------------------------------------------------
--
-- Struttura della tabella `utenza`
--
CREATE TABLE `utenza` (
`idUtenza` int(11) NOT NULL,
`codContatore` int(11) NOT NULL,
`nome` varchar(32) NOT NULL,
`cognome` varchar(32) NOT NULL,
`indirizzo` varchar(64) NOT NULL,
`citta` varchar(32) NOT NULL,
`cF` varchar(32) NOT NULL,
`dataNascita` date NOT NULL,
`idIngiunzione` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dump dei dati per la tabella `utenza`
--
INSERT INTO `utenza` (`idUtenza`, `codContatore`, `nome`, `cognome`, `indirizzo`, `citta`, `cF`, `dataNascita`, `idIngiunzione`) VALUES
(5, 1001, 'Gianluca', 'Sabella', 'Via de Morgen 74', 'Napoli', 'SBLGL93LNC11OPR', '1992-08-14', 140),
(6, 1002, 'Luca', 'De Vincenzo', 'Via della croce', 'Napoli', 'DVCLVC981DRO25', '1974-09-21', 135),
(7, 2587, 'Domenico', 'Tarallo', 'Via dei Colli 58', 'Napoli', 'DMTRALL92SDRI', '1954-11-08', 134),
(8, 110, 'Dario', 'Palmieri', 'Via del mare', 'Napoli', 'PLMDRA91RSS', '1991-10-11', 141),
(9, 980, 'Lello', 'Lelli', 'Via dei mille', 'Napoli', 'LLDMCK987DKEE', '1970-01-05', 142),
(10, 784, 'Piergiorgio', 'Altobelli', 'Via sotto la collina 187', 'Bologna', 'PGRBHSB875GRIRHFT', '1980-03-04', 143),
(11, 777, 'Serena', 'Salatiello', 'Via Ripuaria', 'Napoli', 'SSERJENDJUTIOFKNH', '1990-10-10', NULL),
(12, 651, 'Ernesto', 'Locomotiva', 'Via Giacomo Leopardi', 'Milano', 'ERNURHNDBTHJRKTNU', '1949-02-25', NULL),
(13, 951, 'Filippo', 'Visone', 'Via Manzoni 545', 'Roma', 'FLPVSN894OIEYRH45', '1975-12-13', NULL),
(14, 394, 'Domenico', 'Taffuri', 'Via caserta 54', 'Caserta', 'DRMNTHF87945OITHRB', '1980-06-15', NULL);
--
-- Indici per le tabelle scaricate
--
--
-- Indici per le tabelle `ingiunzione`
--
ALTER TABLE `ingiunzione`
ADD PRIMARY KEY (`idIngiunzione`),
ADD UNIQUE KEY `idIngiunzione` (`idIngiunzione`),
ADD UNIQUE KEY `idUtenza` (`idUtenza`);
--
-- Indici per le tabelle `lettura`
--
ALTER TABLE `lettura`
ADD PRIMARY KEY (`idLettura`),
ADD KEY `idUtenza` (`idUtenza`),
ADD KEY `lettua_ibfk_2` (`idIngiunzione`);
--
-- Indici per le tabelle `utenza`
--
ALTER TABLE `utenza`
ADD PRIMARY KEY (`idUtenza`),
ADD UNIQUE KEY `codContatore` (`codContatore`),
ADD UNIQUE KEY `idIngiunzione` (`idIngiunzione`);
--
-- AUTO_INCREMENT per le tabelle scaricate
--
--
-- AUTO_INCREMENT per la tabella `ingiunzione`
--
ALTER TABLE `ingiunzione`
MODIFY `idIngiunzione` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=144;
--
-- AUTO_INCREMENT per la tabella `lettura`
--
ALTER TABLE `lettura`
MODIFY `idLettura` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
--
-- AUTO_INCREMENT per la tabella `utenza`
--
ALTER TABLE `utenza`
MODIFY `idUtenza` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- Limiti per le tabelle scaricate
--
--
-- Limiti per la tabella `ingiunzione`
--
ALTER TABLE `ingiunzione`
ADD CONSTRAINT `ingiunzione_ibfk_1` FOREIGN KEY (`idUtenza`) REFERENCES `utenza` (`idUtenza`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Limiti per la tabella `lettura`
--
ALTER TABLE `lettura`
ADD CONSTRAINT `lettua_ibfk_2` FOREIGN KEY (`idIngiunzione`) REFERENCES `ingiunzione` (`idIngiunzione`) ON DELETE SET NULL ON UPDATE CASCADE,
ADD CONSTRAINT `lettura_ibfk_1` FOREIGN KEY (`idUtenza`) REFERENCES `utenza` (`idUtenza`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Limiti per la tabella `utenza`
--
ALTER TABLE `utenza`
ADD CONSTRAINT `utenza_ibfk_1` FOREIGN KEY (`idIngiunzione`) REFERENCES `ingiunzione` (`idIngiunzione`) ON DELETE SET NULL ON UPDATE CASCADE;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT=0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Base de données: `Secret_Manager`
--
--
-- Contenu de la table `cvl_civilities`
--
INSERT INTO `cvl_civilities` (`cvl_id`, `cvl_last_name`, `cvl_first_name`, `cvl_sex`, `cvl_birth_date`, `cvl_born_town`, `cvl_logical_delete`) VALUES(1, 'de l\\''Outil', 'Administrateur', 0, '0000-00-00', '', 0);
--
-- Contenu de la table `ent_entities`
--
INSERT INTO `ent_entities` (`ent_id`, `ent_code`, `ent_label`, `ent_logical_delete`) VALUES(1, 'ORA', 'Orasys', 0);
--
-- Contenu de la table `env_environments`
--
INSERT INTO `env_environments` (`env_id`, `env_name`) VALUES(1, 'L_Environment_1');
INSERT INTO `env_environments` (`env_id`, `env_name`) VALUES(2, 'L_Environment_2');
INSERT INTO `env_environments` (`env_id`, `env_name`) VALUES(3, 'L_Environment_3');
INSERT INTO `env_environments` (`env_id`, `env_name`) VALUES(4, 'L_Environment_4');
--
-- Contenu de la table `idn_identities`
--
INSERT INTO `idn_identities` (`idn_id`, `ent_id`, `cvl_id`, `idn_login`, `idn_authenticator`, `idn_salt`, `idn_change_authenticator`, `idn_super_admin`, `idn_auditor`, `idn_attempt`, `idn_disable`, `idn_logical_delete`, `idn_last_connection`, `idn_expiration_date`, `idn_updated_authentication`) VALUES(1, 1, 1, 'root', '658be8288e1156eccbcf7c62a8d731d55fe81e7d', '0.X-n:A/9', 0, 1, 0, 0, 0, 0, '2012-11-13 22:44:46', '2013-04-29 00:00:00', '2012-10-29 21:10:48');
--
-- Contenu de la table `rgh_rights`
--
INSERT INTO `rgh_rights` (`rgh_id`, `rgh_name`) VALUES(1, 'L_Right_1');
INSERT INTO `rgh_rights` (`rgh_id`, `rgh_name`) VALUES(2, 'L_Right_2');
INSERT INTO `rgh_rights` (`rgh_id`, `rgh_name`) VALUES(3, 'L_Right_3');
INSERT INTO `rgh_rights` (`rgh_id`, `rgh_name`) VALUES(4, 'L_Right_4');
--
-- Contenu de la table `spr_system_parameters`
--
INSERT INTO `spr_system_parameters` (`spr_name`, `spr_value`) VALUES('alert_mail', '0');
INSERT INTO `spr_system_parameters` (`spr_name`, `spr_value`) VALUES('alert_syslog', '1');
INSERT INTO `spr_system_parameters` (`spr_name`, `spr_value`) VALUES('authentication_type', 'D');
INSERT INTO `spr_system_parameters` (`spr_name`, `spr_value`) VALUES('expiration_time', '60');
INSERT INTO `spr_system_parameters` (`spr_name`, `spr_value`) VALUES('mail_from', 'alert_SecretManager@societe.com');
INSERT INTO `spr_system_parameters` (`spr_name`, `spr_value`) VALUES('mail_to', 'admin@societe.com');
INSERT INTO `spr_system_parameters` (`spr_name`, `spr_value`) VALUES('verbosity_alert', '1');
INSERT INTO `spr_system_parameters` (`spr_name`, `spr_value`) VALUES('use_SecretServer', '1');
--
-- Contenu de la table `stp_secret_types`
--
INSERT INTO `stp_secret_types` (`stp_id`, `stp_name`) VALUES(1, 'L_Secret_Type_1');
INSERT INTO `stp_secret_types` (`stp_id`, `stp_name`) VALUES(2, 'L_Secret_Type_2');
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
CREATE OR REPLACE VIEW MAN_ADDFIELDS_CAT_WIDGETTYPE AS
SELECT 'QLineEdit' id, 'Casella de text' descript FROM DUAL
UNION
SELECT 'QComboBox' id, 'Desplegable' descript FROM DUAL
UNION
SELECT 'QCheckBox' id, 'Checkbox true/false' descript FROM DUAL
UNION
SELECT 'QDateEdit' id, 'Data' descript FROM DUAL; |
-- phpMyAdmin SQL Dump
-- version 3.5.2.2
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Oct 12, 2017 at 04:39 AM
-- Server version: 5.5.27
-- PHP Version: 5.4.7
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `db_mitigasi`
--
-- --------------------------------------------------------
--
-- Table structure for table `chat`
--
CREATE TABLE IF NOT EXISTS `chat` (
`chatid` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`chatroomid` int(11) NOT NULL,
`message` varchar(200) NOT NULL,
`chat_date` datetime NOT NULL,
PRIMARY KEY (`chatid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
--
-- Dumping data for table `chat`
--
INSERT INTO `chat` (`chatid`, `uid`, `chatroomid`, `message`, `chat_date`) VALUES
(5, 8, 10, 'adadaaa', '2017-09-29 17:38:47'),
(6, 9, 10, 'hanya tes a', '2017-09-29 17:40:13'),
(7, 8, 10, 'wrw', '2017-10-01 12:08:08'),
(8, 9, 10, 'ghh', '2017-10-01 12:30:11');
-- --------------------------------------------------------
--
-- Table structure for table `chatroom`
--
CREATE TABLE IF NOT EXISTS `chatroom` (
`chatroomid` int(11) NOT NULL AUTO_INCREMENT,
`chat_name` varchar(60) NOT NULL,
`date_created` datetime NOT NULL,
`chat_password` varchar(30) NOT NULL,
`uid` int(11) NOT NULL,
PRIMARY KEY (`chatroomid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;
--
-- Dumping data for table `chatroom`
--
INSERT INTO `chatroom` (`chatroomid`, `chat_name`, `date_created`, `chat_password`, `uid`) VALUES
(10, 'adada', '2017-09-29 17:18:38', '', 9),
(11, 'tes', '2017-10-08 10:56:04', '123', 8),
(12, 'ad', '2017-10-08 11:06:05', '', 12),
(13, 'ad', '2017-10-08 11:06:10', '', 12);
-- --------------------------------------------------------
--
-- Table structure for table `chat_member`
--
CREATE TABLE IF NOT EXISTS `chat_member` (
`chat_memberid` int(11) NOT NULL AUTO_INCREMENT,
`chatroomid` int(11) NOT NULL,
`uid` int(11) NOT NULL,
PRIMARY KEY (`chat_memberid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=28 ;
--
-- Dumping data for table `chat_member`
--
INSERT INTO `chat_member` (`chat_memberid`, `chatroomid`, `uid`) VALUES
(20, 10, 9),
(21, 10, 8),
(22, 11, 8),
(23, 11, 12),
(24, 10, 12),
(25, 12, 12),
(26, 13, 12),
(27, 11, 11);
-- --------------------------------------------------------
--
-- Table structure for table `panduan`
--
CREATE TABLE IF NOT EXISTS `panduan` (
`id_panduan` int(5) NOT NULL AUTO_INCREMENT,
`nama_panduan` varchar(20) COLLATE latin1_general_ci NOT NULL,
`judul` varchar(100) COLLATE latin1_general_ci NOT NULL,
`isi` text COLLATE latin1_general_ci NOT NULL,
`hari` varchar(20) COLLATE latin1_general_ci NOT NULL,
`tanggal` date NOT NULL,
`jam` time NOT NULL,
`gambar` varchar(100) COLLATE latin1_general_ci NOT NULL,
`dibaca` int(5) NOT NULL DEFAULT '1',
PRIMARY KEY (`id_panduan`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=10 ;
--
-- Dumping data for table `panduan`
--
INSERT INTO `panduan` (`id_panduan`, `nama_panduan`, `judul`, `isi`, `hari`, `tanggal`, `jam`, `gambar`, `dibaca`) VALUES
(8, 'banjir', 'panduan Benanc', '<p>qeeq</p>\r\n', 'Minggu', '2017-09-17', '22:35:52', 'user3.png', 0),
(9, 'gunung', 'adad', '<p>adada</p>\r\n', 'Minggu', '0000-00-00', '22:36:39', 'user3.png', 0);
-- --------------------------------------------------------
--
-- Table structure for table `tbl_bencana`
--
CREATE TABLE IF NOT EXISTS `tbl_bencana` (
`id_bencana` varchar(2) NOT NULL,
`nama_bencana` varchar(50) NOT NULL,
PRIMARY KEY (`id_bencana`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tbl_bencana`
--
INSERT INTO `tbl_bencana` (`id_bencana`, `nama_bencana`) VALUES
('01', 'Angin Topan'),
('02', 'Gempa Bumi'),
('03', 'Kekeringan'),
('04', 'Longsor'),
('05', 'Kebakaran'),
('06', 'Banjir'),
('07', 'Gunung Meletus');
-- --------------------------------------------------------
--
-- Table structure for table `tbl_info_bencana`
--
CREATE TABLE IF NOT EXISTS `tbl_info_bencana` (
`id_info` int(12) NOT NULL AUTO_INCREMENT,
`id_bencana` varchar(2) NOT NULL,
`tempat` varchar(250) NOT NULL,
`korban` varchar(100) NOT NULL,
`kronologis` text NOT NULL,
`tgl` date NOT NULL,
`foto` varchar(50) NOT NULL,
PRIMARY KEY (`id_info`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `tbl_info_bencana`
--
INSERT INTO `tbl_info_bencana` (`id_info`, `id_bencana`, `tempat`, `korban`, `kronologis`, `tgl`, `foto`) VALUES
(1, '01', 'kuningan', 'nihil', '<p>;kdncacm;sknmckdsnclsnvlkdkvna</p>\r\n', '2017-10-06', ''),
(2, '01', 'desa', 'ga', '<p>ta</p>\r\n', '2017-10-08', '');
-- --------------------------------------------------------
--
-- Table structure for table `tbl_peringatan_dini`
--
CREATE TABLE IF NOT EXISTS `tbl_peringatan_dini` (
`id_dini` int(5) NOT NULL AUTO_INCREMENT,
`isi` varchar(255) DEFAULT NULL,
`gambar` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id_dini`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `tbl_peringatan_dini`
--
INSERT INTO `tbl_peringatan_dini` (`id_dini`, `isi`, `gambar`) VALUES
(1, 'telah terjadi kadadadadadadada', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `tbl_rpt_bencana`
--
CREATE TABLE IF NOT EXISTS `tbl_rpt_bencana` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(5) DEFAULT NULL,
`keterangan` text,
`gambar` varchar(250) DEFAULT NULL,
`status` enum('-','Tidak Benar','Benar') DEFAULT NULL,
`dibuka` enum('0','1') DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--
-- Dumping data for table `tbl_rpt_bencana`
--
INSERT INTO `tbl_rpt_bencana` (`id`, `uid`, `keterangan`, `gambar`, `status`, `dibuka`) VALUES
(1, 9, 'zffs', 'sm-img-2.jpg', 'Tidak Benar', '0'),
(2, 12, 'sbdndn', '', 'Tidak Benar', '0'),
(3, 13, 'aflknlvanvlvlvnlsnlnv', 'PETA KRB G. CIREMAI.jpg', 'Tidak Benar', '0'),
(4, 13, 'gw', 'PETA KRB G. CIREMAI.jpg', 'Tidak Benar', '0');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE IF NOT EXISTS `user` (
`uid` int(10) NOT NULL AUTO_INCREMENT,
`nama` varchar(100) NOT NULL,
`pass` varchar(100) NOT NULL,
`level` varchar(10) NOT NULL,
`email` varchar(50) NOT NULL,
`w_login` datetime NOT NULL,
`photo` varchar(100) NOT NULL,
`nohp` varchar(15) NOT NULL,
`aktif` enum('Y','N') DEFAULT NULL,
PRIMARY KEY (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`uid`, `nama`, `pass`, `level`, `email`, `w_login`, `photo`, `nohp`, `aktif`) VALUES
(8, 'didin', '80f0ca7f9c9bf51dea99162632e351aa', 'admin', 'didinlukmanudin@gmail.com', '2017-10-09 19:56:27', 'dist/img/avatar04.png', '08988999', 'Y'),
(10, 'ade', '14e1b600b1fd579f47433b88e8d85291', 'user', 'ade@yahoo.com', '2017-09-20 13:22:57', 'dist/img/avatar04.png', '08989899989', 'Y'),
(11, 'dewi', 'e10adc3949ba59abbe56e057f20f883e', 'user', 'dewi@gs.com', '0000-00-00 00:00:00', 'dist/img/avatar04.png', '2424242', 'Y'),
(12, 'lukman', '80f0ca7f9c9bf51dea99162632e351aa', 'user', 'lukmanudin@gmail.com', '2017-10-09 23:25:06', 'dist/img/avatar04.png', '0977665688', 'Y'),
(13, 'andri', '6bd3108684ccc9dfd40b126877f850b0', 'user', 'andri@gmail.com', '2017-10-09 13:17:22', 'dist/img/avatar04.png', '986657667658', 'Y'),
(14, 'sutrisno', '82e29bc26cd3dd9eff684bb064f1855b', 'user', 'sutrisno@gmail.com', '0000-00-00 00:00:00', 'dist/img/avatar04.png', '988569757959', 'Y');
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
select * from sg_following where follower_id = $1 and tofollow_id = $2 limit 1; |
-- https://www.hackerrank.com/challenges/weather-observation-station-10
SELECT DISTINCT(CITY)
FROM STATION
WHERE UPPER(RIGHT(CITY, 1)) NOT IN ('A', 'E', 'I', 'O', 'U') |
/* Formatted on 17/06/2014 18:13:03 (QP5 v5.227.12220.39754) */
CREATE OR REPLACE FORCE VIEW MCRE_OWN.V_MCRES_FEN_RETTIFICHE_TRIM
(
COD_ABI,
COD_DIVISIONE,
VAL_RETTIFICA_MESE_TRIM,
VAL_DRC_TRIM
)
AS
SELECT ee.cod_abi,
NVL (div.cod_divisione, 3) cod_divisione,
SUM (ee.val_per_ce + ee.val_rett_sval + ee.val_rett_att)
val_rettifica_mese_trim,
SUM (
ee.val_per_ce
+ ee.val_rett_sval
+ ee.val_rett_att
- NVL (delta, 0))
val_drc_trim
FROM t_mcres_app_effetti_economici ee,
v_mcres_app_ultimo_annomeseabi am,
(SELECT p.cod_abi, p.cod_ndg, r.delta_iniziale - cp.delta_cp delta
FROM ( --soffrenze stimate per la prma volta nell'ultimo trimestre contabilizzato
SELECT DISTINCT d.cod_abi, d.cod_ndg
FROM t_mcres_app_delibere d,
v_mcres_app_ultimo_annomeseabi v
WHERE d.cod_abi = v.cod_abi
AND d.cod_delibera = 'NS'
AND TO_CHAR (d.dta_inserimento_delibera, 'YYYYMM') BETWEEN v.val_annomese_start_last_q_cont
AND v.val_annomese_end_last_q_cont) p,
( SELECT r.cod_abi,
r.cod_ndg,
SUM (
-R.VAL_IMP_GBV_INIZIALE
- (-R.VAL_IMP_NBV_INIZIALE))
delta_iniziale
FROM t_mcres_app_rapporti r
GROUP BY r.cod_abi, r.cod_ndg) r,
( SELECT scp.cod_abi,
scp.cod_ndg,
SUM (scp.val_uti_ret) delta_cp
FROM t_mcres_app_sisba_cp scp,
v_mcres_app_ultimo_annomeseabi v
WHERE scp.id_dper =
TO_CHAR (
TO_DATE (
v.val_annomese_start_last_q_cont,
'YYYYMM')
- 1,
'YYYYMMDD')
AND scp.cod_stato_rischio IN ('S', 'I')
GROUP BY scp.cod_abi, scp.cod_ndg) cp
WHERE p.cod_abi = r.cod_abi
AND p.cod_ndg = r.cod_ndg
AND p.cod_abi = cp.cod_abi
AND p.cod_ndg = cp.cod_ndg) n,
(SELECT DISTINCT
cp.cod_abi,
cp.cod_ndg,
CASE
WHEN o.cod_div IN ('DIVRE', 'DIVCI', 'DIVPR')
THEN
1
WHEN o.cod_div IN ('DIVCC', 'DIVLC', 'DIVFI', 'DIVES')
THEN
2
ELSE
3
END
cod_divisione
FROM t_mcres_app_sisba_cp cp,
v_mcres_app_ultimo_annomeseabi v,
t_mcre0_app_struttura_org o
WHERE cp.cod_abi = v.cod_abi
AND SUBSTR (cp.id_dper, 1, 6) =
v.val_annomese_ultimo_sisba_cp
AND cp.cod_abi = o.cod_abi_istituto(+)
AND cp.cod_filiale = o.cod_struttura_competente(+)) div
WHERE ee.cod_abi = am.cod_abi
AND ee.cod_abi = n.cod_abi(+)
AND ee.cod_ndg = n.cod_ndg(+)
AND ee.cod_abi = div.cod_abi(+)
AND ee.cod_ndg = div.cod_ndg(+)
AND SUBSTR (ee.id_dper, 1, 6) BETWEEN am.val_annomese_start_last_q_cont
AND am.val_annomese_end_last_q_cont
GROUP BY ee.cod_abi, NVL (div.cod_divisione, 3);
GRANT DELETE, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK, MERGE VIEW ON MCRE_OWN.V_MCRES_FEN_RETTIFICHE_TRIM TO MCRE_USR;
|
CREATE PROC ERP.Usp_Sel_Nombre_Servicio
@IdEmpresa INT
AS
BEGIN
SELECT DISTINCT Nombre
FROM ERP.Producto
WHERE IdEmpresa = @IdEmpresa AND IdTipoProducto = 2
END |
update trial_data_provenance set project='RIDER Lung CT' where trial_dp_pk_id=1335656449;
update general_image set project='RIDER Lung CT' where trial_dp_pk_id=1335656449;
update trial_data_provenance set project='RIDER Lung PET CT' where trial_dp_pk_id=1331298304;
update general_image set project='RIDER Lung PET CT' where trial_dp_pk_id=1331298304;
update trial_data_provenance set project='RIDER Neuro MRI' where trial_dp_pk_id=1333952515;
update general_image set project='RIDER Neuro MRI' where trial_dp_pk_id=1333952515;
update trial_data_provenance set project='RIDER Breast MRI' where trial_dp_pk_id=1337557007;
update general_image set project='RIDER Breast MRI' where trial_dp_pk_id=1337557007;
update submission_history set project='RIDER Lung CT' where project='RIDER' and site='MSKCC CTP';
update submission_history set project='RIDER Lung PET CT' where project='RIDER' and site='WashU-IRL';
update submission_history set project='RIDER Neuro MRI' where project='RIDER' and site='DUKE';
update submission_history set project='RIDER Breast MRI' where project='RIDER' and site='UMich';
|
/*primeira questao*/
DELIMITER &
CREATE PROCEDURE inserir_aluno(mat_aluno INTEGER, cod_curso INTEGER, data_nasc DATE,
total_cred INTEGER, mgp DOUBLE, nome_aluno VARCHAR(60) ,email VARCHAR(30))
DETERMINISTIC
BEGIN
INSERT INTO Aluno VALUES(mat_aluno, cod_curso, data_nasc, total_cred, mgp , nome_aluno , email);
SELECT nome_aluno AS Nome FROM Aluno ORDER BY mat_aluno DESC LIMIT 1;
END &
DROP PROCEDURE inserir_aluno;
CALL inserir_aluno( '' ,3 , '2001-06-4',70,2.3,'nomequalquer','nomequalquer.com');
SELECT* FROM Aluno;
/* 2 questao*/
DELIMITER $
CREATE PROCEDURE cont_while(limite TINYINT UNSIGNED)
BEGIN
DECLARE cont INT;
DECLARE resultado VARCHAR(50);
SET cont = 1;
SET resultado='' ;
WHILE cont<=5 DO
SET resultado = CONCAT(resultado,cont,',');
SET cont = cont + 1 ;
END WHILE ;
SELECT resultado;
END $
DROP PROCEDURE contador_while
CALL contador_while(1);
DELIMITER %
/* TERCEIRO QUESITO */
CREATE PROCEDURE contador_repeat(limite TINYINT UNSIGNED)
BEGIN
declare cont INT;
DECLARE resultado VARCHAR(50);
SET cont = 1;
SET resultado = '';
REPEAT
SET resultado = CONCAT(resultado, cont , ' , ');
SET cont = cont + 1 ;
UNTIL cont = 10
END REPEAT;
SELECT resultado;
END %
DROP PROCEDURE contador_repeat
|
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 03, 2021 at 05:17 PM
-- Server version: 10.4.19-MariaDB
-- PHP Version: 8.0.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `probookstore`
--
-- --------------------------------------------------------
--
-- Table structure for table `books`
--
CREATE TABLE `books` (
`title` varchar(50) NOT NULL,
`category` varchar(22) NOT NULL,
`author` varchar(22) NOT NULL,
`year` int(11) NOT NULL,
`id` int(11) NOT NULL,
`price` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `books`
--
INSERT INTO `books` (`title`, `category`, `author`, `year`, `id`, `price`) VALUES
('Linux Bible', 'Linux', 'Christopher Negus', 2005, 1, 2500),
('Mastering Django', 'Python', 'Nigel George', 2015, 2, 2599),
(' Modern PHP', 'PHP', 'Josh Lockhart', 2015, 3, 2100),
('PHP Cookbook', 'PHP', 'David Schlar', 2003, 4, 2450),
('Fluent Python', 'Python', 'Luciano Ramalho', 2015, 5, 2870),
('Think Python', 'Python', 'Allen B Downey', 2002, 6, 3500),
('PHP and MySql', 'PHP', 'Laura Thomson', 2001, 7, 2600),
('Intermediate Perl', 'Perl', 'Randal L Schwartz', 2006, 8, 3100),
('Learning Perl', 'Perl', 'Randal Schwartz', 1993, 9, 2980),
('Programming Perl', 'Perl', 'Randal L Schwartz', 1991, 10, 2100),
('Linux Device Drivers', 'Linux', 'Alessandro Rubini', 1998, 11, 3500),
('Linux from Scratch', 'Linux', 'Gerard Beekmans', 1999, 12, 2340),
('Effective Java', 'Java', 'Joshua Bloch', 2001, 13, 2400),
('Java Structures', 'Java', 'Duane A Bailey', 1998, 14, 2080),
('Core Java', 'Java', 'Gary Cornell', 1996, 15, 3210),
('What is CGI?', 'CGI', 'Alison Sage', 2005, 16, 3450),
('The Essential Blender', 'CGI', 'Roland Hess', 2007, 17, 3450),
('CGI Programming', 'CGI', 'Shishir Gundavaram', 1996, 18, 900),
('Linux Command Line', 'Shell', 'William E Shotts', 2009, 19, 2000),
('Shell Programming', 'Shell', 'Arnold Robins', 2005, 20, 4500);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `books`
--
ALTER TABLE `books`
ADD PRIMARY KEY (`id`);
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
create table STREAM_IMAGE (
ID int not null auto_increment,
URL varchar(255) not null,
IS_GET int not null,
CREATE_TIMESTAMP timestamp not null,
constraint STREAM_IMAGE_PK primary key(ID)
);
|
select count(InvoiceNumber) as NumInv
,SUM(InvoiceTotal) as TotBal
from Invoices
where InvoiceTotal -
PaymentTotal -
CreditTotal > 0
select 'After 9/1/2011' as SelDate
,count(*) as NumInv
,AVG(InvoiceTotal) as AvInv
,sum(InvoiceTotal) as Total
,MIN(InvoiceTotal) as LowInv
,MAX(InvoiceTotal) as MaxInv
from Invoices
where InvoiceDate > '9/1/2011'
|
-- Witness 1
SELECT id, name
FROM person
WHERE address_street_name = 'Northwestern Dr'
ORDER BY address_number DESC
LIMIT 1
-- id, name
-- 14887, Morty Chapiro |
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Хост: 127.0.0.1:3306
-- Время создания: Май 22 2021 г., 11:00
-- Версия сервера: 5.6.43
-- Версия PHP: 7.3.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- База данных: `task4`
--
-- --------------------------------------------------------
--
-- Структура таблицы `category`
--
CREATE TABLE `category` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `category`
--
INSERT INTO `category` (`id`, `name`) VALUES
(1, 'Первая');
-- --------------------------------------------------------
--
-- Структура таблицы `request`
--
CREATE TABLE `request` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`description` text NOT NULL,
`category_id` int(11) NOT NULL,
`status` varchar(255) NOT NULL,
`reject_reason` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `request`
--
INSERT INTO `request` (`id`, `name`, `description`, `category_id`, `status`, `reject_reason`) VALUES
(2, 'Тест', 'Тест', 1, 'Решена', ''),
(3, '123', '123', 1, 'Решена', ''),
(4, 'qwer', 'qwer', 1, 'Решена', '');
--
-- Индексы сохранённых таблиц
--
--
-- Индексы таблицы `category`
--
ALTER TABLE `category`
ADD PRIMARY KEY (`id`);
--
-- Индексы таблицы `request`
--
ALTER TABLE `request`
ADD PRIMARY KEY (`id`),
ADD KEY `category_id` (`category_id`);
--
-- AUTO_INCREMENT для сохранённых таблиц
--
--
-- AUTO_INCREMENT для таблицы `category`
--
ALTER TABLE `category`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT для таблицы `request`
--
ALTER TABLE `request`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- Ограничения внешнего ключа сохраненных таблиц
--
--
-- Ограничения внешнего ключа таблицы `request`
--
ALTER TABLE `request`
ADD CONSTRAINT `request_ibfk_1` FOREIGN KEY (`category_id`) REFERENCES `category` (`id`);
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- =============================================
-- Author: OMAR RODRIGUEZ
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
CREATE PROCEDURE Usp_Sel_PlanillaTrabajadores_Listado
@IdEmpresa int
AS
BEGIN
SELECT DISTINCT
pc.IdEmpresa,
pc.IdPeriodo,
pc.IdPlanilla,
p.Nombre,
tp.Nombre,
pc.FechaInicio,
pc.FechaFin,
pc.TotalIngreso,
pc.TotalDescuentos,
pc.TotalAportes,
pc.NetoAPagar
FROM ERP.PlanillaCabecera pc
LEFT JOIN MAESTRO.planilla p ON pc.IdPlanilla = p.id
LEFT JOIN Maestro.TipoPlanilla tp ON tp.Id = p.IdTipoPlanilla
WHERE pc.IdEmpresa = @IdEmpresa
END |
delete from UW_SERVICE_PROJECTTASK;
delete from UW_SERVICE_TASKTABLE;
delete from UW_SERVICE_PROJECT;
delete from UW_SERVICE_USER;
insert into UW_SERVICE_USER (UW_ID, UW_NAME) values (1, 'Saulo Araujo');
insert into UW_SERVICE_PROJECT (UW_ID, UW_NAME, UW_DESCRIPTION, UW_VISIBLE, UW_USER_ID) values (1, 'Project 01', 'Project 01', true, 1);
insert into UW_SERVICE_PROJECT (UW_ID, UW_NAME, UW_DESCRIPTION, UW_VISIBLE, UW_USER_ID) values (2, 'Project 02', 'Project 02', true, 1);
insert into UW_SERVICE_PROJECT (UW_ID, UW_NAME, UW_DESCRIPTION, UW_VISIBLE, UW_USER_ID) values (3, 'Project 03', 'Project 03', true, 1);
insert into UW_SERVICE_PROJECT (UW_ID, UW_NAME, UW_DESCRIPTION, UW_VISIBLE, UW_USER_ID) values (4, 'Project 04', 'Project 04', true, 1);
insert into UW_SERVICE_PROJECT (UW_ID, UW_NAME, UW_DESCRIPTION, UW_VISIBLE, UW_USER_ID) values (5, 'Project 05', 'Project 05', true, 1);
insert into UW_SERVICE_PROJECT (UW_ID, UW_NAME, UW_DESCRIPTION, UW_VISIBLE, UW_USER_ID) values (6, 'Project 06', 'Project 06', true, 1);
insert into UW_SERVICE_PROJECT (UW_ID, UW_NAME, UW_DESCRIPTION, UW_VISIBLE, UW_USER_ID) values (7, 'Project 07', 'Project 07', true, 1);
insert into UW_SERVICE_PROJECT (UW_ID, UW_NAME, UW_DESCRIPTION, UW_VISIBLE, UW_USER_ID) values (8, 'Project 08', 'Project 08', true, 1);
insert into UW_SERVICE_PROJECT (UW_ID, UW_NAME, UW_DESCRIPTION, UW_VISIBLE, UW_USER_ID) values (9, 'Project 09', 'Project 09', true, 1);
insert into UW_SERVICE_PROJECT (UW_ID, UW_NAME, UW_DESCRIPTION, UW_VISIBLE, UW_USER_ID) values (10, 'Project 10', 'Project 10', true, 1);
insert into UW_SERVICE_TASKTABLE (UW_ID, UW_NAME, UW_DESCRIPTION, UW_USER_ID) values (1, 'Task 01', 'Task 01', 1);
insert into UW_SERVICE_TASKTABLE (UW_ID, UW_NAME, UW_DESCRIPTION, UW_USER_ID) values (2, 'Task 02', 'Task 02', 1);
insert into UW_SERVICE_TASKTABLE (UW_ID, UW_NAME, UW_DESCRIPTION, UW_USER_ID) values (3, 'Task 03', 'Task 03', 1);
insert into UW_SERVICE_TASKTABLE (UW_ID, UW_NAME, UW_DESCRIPTION, UW_USER_ID) values (4, 'Task 04', 'Task 04', 1);
insert into UW_SERVICE_TASKTABLE (UW_ID, UW_NAME, UW_DESCRIPTION, UW_USER_ID) values (5, 'Task 05', 'Task 05', 1);
insert into UW_SERVICE_TASKTABLE (UW_ID, UW_NAME, UW_DESCRIPTION, UW_USER_ID) values (6, 'Task 06', 'Task 06', 1);
insert into UW_SERVICE_TASKTABLE (UW_ID, UW_NAME, UW_DESCRIPTION, UW_USER_ID) values (7, 'Task 07', 'Task 07', 1);
insert into UW_SERVICE_TASKTABLE (UW_ID, UW_NAME, UW_DESCRIPTION, UW_USER_ID) values (8, 'Task 08', 'Task 08', 1);
insert into UW_SERVICE_TASKTABLE (UW_ID, UW_NAME, UW_DESCRIPTION, UW_USER_ID) values (9, 'Task 09', 'Task 09', 1);
insert into UW_SERVICE_TASKTABLE (UW_ID, UW_NAME, UW_DESCRIPTION, UW_USER_ID) values (10, 'Task 10', 'Task 10', 1);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (1, 1, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (1, 2, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (1, 3, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (1, 4, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (1, 5, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (1, 6, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (1, 7, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (1, 8, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (1, 9, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (1, 10, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (2, 1, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (2, 2, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (2, 3, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (2, 4, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (2, 5, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (2, 6, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (2, 7, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (2, 8, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (2, 9, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (2, 10, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (3, 1, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (3, 2, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (3, 3, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (3, 4, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (3, 5, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (3, 6, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (3, 7, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (3, 8, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (3, 9, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (3, 10, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (4, 1, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (4, 2, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (4, 3, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (4, 4, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (4, 5, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (4, 6, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (4, 7, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (4, 8, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (4, 9, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (4, 10, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (5, 1, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (5, 2, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (5, 3, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (5, 4, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (5, 5, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (5, 6, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (5, 7, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (5, 8, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (5, 9, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (5, 10, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (6, 1, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (6, 2, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (6, 3, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (6, 4, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (6, 5, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (6, 6, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (6, 7, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (6, 8, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (6, 9, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (6, 10, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (7, 1, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (7, 2, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (7, 3, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (7, 4, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (7, 5, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (7, 6, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (7, 7, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (7, 8, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (7, 9, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (7, 10, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (8, 1, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (8, 2, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (8, 3, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (8, 4, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (8, 5, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (8, 6, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (8, 7, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (8, 8, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (8, 9, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (8, 10, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (9, 1, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (9, 2, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (9, 3, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (9, 4, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (9, 5, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (9, 6, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (9, 7, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (9, 8, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (9, 9, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (9, 10, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (10, 1, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (10, 2, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (10, 3, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (10, 4, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (10, 5, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (10, 6, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (10, 7, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (10, 8, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (10, 9, true);
insert into UW_SERVICE_PROJECTTASK (UW_PROJECT_ID, UW_TASK_ID, UW_VISIBLE) values (10, 10, true); |
/*
테이블 스페이스(space)
테이블(object) 및 다른 object(view, sequence...) 저장하는 논리적 공간
*/
CREATE TABLESPACE TABLESAPCE2
DATAFILE 'C:\temp\TEST_TBS.DBF' SIZE 10M
AUTOEXTEND ON NEXT 1M MAXSIZE UNLIMITED
LOGGING
EXTENT MANAGEMENT LOCAL AUTOALLOCATE
BLOCKSIZE 8K
SEGMENT SPACE MANAGEMENT AUTO
FLASHBACK ON;
-- object : CREATE(생성), ALTER(수정), DROP(삭제)
-- data : INSERT, UPDATE, DELETE, SELECT
ALTER TABLESPACE TABLESPACE1
RENAME TO TEST_TBS1;
ALTER DATABASE
DATAFILE 'C:\temp\FILE_SPECIFICATION1' RESIZE 7M;
DROP TABLESPACE TEST_TBS1
INCLUDING CONTENTS AND DATAFILES
CASCADE CONSTRAINTS;
/*
Table : 열(column)과 행(row)으로 구성
*/
CREATE TABLE TB_TEST01(
COL1 VARCHAR2(10),
COL2 VARCHAR2(10),
COL3 VARCHAR2(10)
);
CREATE TABLE TB_TEST02(
COL1 VARCHAR2(10),
COL2 VARCHAR2(10),
COL3 VARCHAR2(10)
)TABLESPACE TABLESAPCE2;
-- 테이블을 복제 : 데이터를 포함
CREATE TABLE TB_TEST03(JNAME, JTITLE, SALMIN, SALMAX)
AS
SELECT *
FROM jobs;
SELECT * FROM tb_test03;
DROP TABLE tb_test03;
-- 테이블을 복제 : 데이터를 미포함
CREATE TABLE TB_TEST04
AS
SELECT *
FROM employees
WHERE 1 = 2;
-- 테이블명 수정
ALTER TABLE TB_TEST04
RENAME
TO TB_TEST99;
-- 컬럼 추가
ALTER TABLE TB_TEST99
ADD
NEWCOL VARCHAR2(20);
-- 컬럼 수정
ALTER TABLE TB_TEST99
MODIFY
NEWCOL DATE;
-- 컬럼 삭제
ALTER TABLE TB_TEST99
DROP
COLUMN NEWCOL;
-- 컬럼명 수정
ALTER TABLE TB_TEST99
RENAME
COLUMN EMPLOYEE_ID TO EMPNO;
DROP TABLE TB_TEST99;
-- 데이터 추가 INSERT
INSERT INTO tb_test03(JNAME, JTITLE, SALMIN, SALMAX)
VALUES('SALES_AD', '영업부', 8000, 20000);
INSERT INTO tb_test03
VALUES('BALL_MO', '야구부', 8500, 25000);
INSERT INTO tb_test03(JTITLE, JNAME, SALMAX, SALMIN)
VALUES('창고부', 'SAVE', 23000, 10000);
INSERT INTO tb_test03(JNAME, JTITLE, SALMAX)
VALUES('PHONE', '전화상담', 25000);
-- 데이터 삭제 DELETE
DELETE FROM tb_test03
WHERE JNAME = 'SAVE';
DELETE FROM tb_test03
WHERE SALMAX = 25000;
-- 데이터 수정 UPDATE
UPDATE tb_test03
SET jtitle = '개발부', salmax = 25000, salmin = 9000
WHERE JNAME = 'SALES_AD';
|
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 15-11-2019 a las 05:28:07
-- Versión del servidor: 10.4.6-MariaDB
-- Versión de PHP: 7.3.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Base de datos: `api`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `comidas_bebidas`
--
CREATE TABLE `comidas_bebidas` (
`id` int(10) UNSIGNED NOT NULL,
`nombre` varchar(70) COLLATE utf8mb4_spanish_ci NOT NULL,
`precio` int(11) NOT NULL,
`tipo` varchar(1) COLLATE utf8mb4_spanish_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_spanish_ci;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `detalle_pedido`
--
CREATE TABLE `detalle_pedido` (
`id` int(10) UNSIGNED NOT NULL,
`id_pedido` int(10) UNSIGNED NOT NULL,
`id_producto` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_spanish_ci;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `facturacion`
--
CREATE TABLE `facturacion` (
`id` int(10) UNSIGNED NOT NULL,
`cajero_id` int(10) UNSIGNED NOT NULL,
`pedido_id` int(10) UNSIGNED NOT NULL,
`valor` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_spanish_ci;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(16, '2014_10_12_000000_create_users_table', 1),
(17, '2019_11_14_042428_create_comidas_bebidas_table', 1),
(18, '2019_11_14_042812_create_pedidos_table', 1),
(19, '2019_11_14_043302_create_detalle_pedido_table', 1),
(20, '2019_11_14_045110_create_facturacion_table', 1);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `pedidos`
--
CREATE TABLE `pedidos` (
`id` int(10) UNSIGNED NOT NULL,
`mesa` varchar(30) COLLATE utf8mb4_spanish_ci NOT NULL,
`piso` varchar(30) COLLATE utf8mb4_spanish_ci NOT NULL,
`mesero_id` int(10) UNSIGNED NOT NULL,
`estado` varchar(1) COLLATE utf8mb4_spanish_ci NOT NULL,
`valor` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_spanish_ci;
--
-- Volcado de datos para la tabla `pedidos`
--
INSERT INTO `pedidos` (`id`, `mesa`, `piso`, `mesero_id`, `estado`, `valor`, `created_at`, `updated_at`) VALUES
(1, '1', '3', 1, '3', 20000, '2019-11-15 09:10:19', '2019-11-15 09:10:19'),
(2, '1', '3', 1, '3', 20000, '2019-11-15 09:10:56', '2019-11-15 09:10:56'),
(3, '1', '3', 1, '3', 20000, '2019-11-15 09:12:54', '2019-11-15 09:12:54');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `users`
--
CREATE TABLE `users` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_spanish_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_spanish_ci NOT NULL,
`telefono` varchar(20) COLLATE utf8mb4_spanish_ci NOT NULL,
`rol` char(1) COLLATE utf8mb4_spanish_ci NOT NULL,
`password` varchar(255) COLLATE utf8mb4_spanish_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_spanish_ci;
--
-- Volcado de datos para la tabla `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `telefono`, `rol`, `password`, `created_at`, `updated_at`) VALUES
(1, 'Carlos Hincapie', 'carlos@hotmail.com', '3333335', '1', '12345', NULL, NULL);
--
-- Índices para tablas volcadas
--
--
-- Indices de la tabla `comidas_bebidas`
--
ALTER TABLE `comidas_bebidas`
ADD PRIMARY KEY (`id`);
--
-- Indices de la tabla `detalle_pedido`
--
ALTER TABLE `detalle_pedido`
ADD PRIMARY KEY (`id`),
ADD KEY `detalle_pedido_id_pedido_foreign` (`id_pedido`),
ADD KEY `detalle_pedido_id_producto_foreign` (`id_producto`);
--
-- Indices de la tabla `facturacion`
--
ALTER TABLE `facturacion`
ADD PRIMARY KEY (`id`),
ADD KEY `facturacion_cajero_id_foreign` (`cajero_id`),
ADD KEY `facturacion_pedido_id_foreign` (`pedido_id`);
--
-- Indices de la tabla `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indices de la tabla `pedidos`
--
ALTER TABLE `pedidos`
ADD PRIMARY KEY (`id`),
ADD KEY `pedidos_mesero_id_foreign` (`mesero_id`);
--
-- Indices de la tabla `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT de las tablas volcadas
--
--
-- AUTO_INCREMENT de la tabla `comidas_bebidas`
--
ALTER TABLE `comidas_bebidas`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `detalle_pedido`
--
ALTER TABLE `detalle_pedido`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `facturacion`
--
ALTER TABLE `facturacion`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
--
-- AUTO_INCREMENT de la tabla `pedidos`
--
ALTER TABLE `pedidos`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT de la tabla `users`
--
ALTER TABLE `users`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- Restricciones para tablas volcadas
--
--
-- Filtros para la tabla `detalle_pedido`
--
ALTER TABLE `detalle_pedido`
ADD CONSTRAINT `detalle_pedido_id_pedido_foreign` FOREIGN KEY (`id_pedido`) REFERENCES `pedidos` (`id`),
ADD CONSTRAINT `detalle_pedido_id_producto_foreign` FOREIGN KEY (`id_producto`) REFERENCES `comidas_bebidas` (`id`);
--
-- Filtros para la tabla `facturacion`
--
ALTER TABLE `facturacion`
ADD CONSTRAINT `facturacion_cajero_id_foreign` FOREIGN KEY (`cajero_id`) REFERENCES `users` (`id`),
ADD CONSTRAINT `facturacion_pedido_id_foreign` FOREIGN KEY (`pedido_id`) REFERENCES `pedidos` (`id`);
--
-- Filtros para la tabla `pedidos`
--
ALTER TABLE `pedidos`
ADD CONSTRAINT `pedidos_mesero_id_foreign` FOREIGN KEY (`mesero_id`) REFERENCES `users` (`id`);
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
USE DietaJa;
SET GLOBAL log_bin_trust_function_creators = 1;
-- FUNCTIONS
-- CONVERT ENUMS: Sentimento, Refeicao, DiaDaSemana
DROP FUNCTION IF EXISTS CONVERT_ENUM_SENTIMENTO_STR;
CREATE FUNCTION CONVERT_ENUM_SENTIMENTO_STR(
enumerador INT
)
RETURNS VARCHAR(255)
RETURN
(CASE
WHEN enumerador = 1 THEN "Muito Satisfeito"
WHEN enumerador = 2 THEN "Satisfeito"
WHEN enumerador = 3 THEN "Razoavelmente satisfeito"
WHEN enumerador = 4 THEN "Um pouco insatisfeito"
WHEN enumerador = 5 THEN "Insatisfeito"
WHEN enumerador = 6 THEN "Totalmente insatisfeito"
END);
DROP FUNCTION IF EXISTS CONVERT_ENUM_REFEICAO_STR;
CREATE FUNCTION CONVERT_ENUM_REFEICAO_STR(
enumerador INT
)
RETURNS VARCHAR(255)
RETURN
(CASE
WHEN enumerador = 1 THEN "Café da manhã"
WHEN enumerador = 2 THEN "Brunch"
WHEN enumerador = 3 THEN "Almoço"
WHEN enumerador = 4 THEN "Lanche"
WHEN enumerador = 5 THEN "Jantar"
WHEN enumerador = 6 THEN "Ceia"
END);
DROP FUNCTION IF EXISTS CONVERT_ENUM_DIA_DA_SEMANA_STR;
CREATE FUNCTION CONVERT_ENUM_DIA_DA_SEMANA_STR(
enumerador INT
)
RETURNS VARCHAR(255)
RETURN
(CASE
WHEN enumerador = 1 THEN "Segunda-Feira"
WHEN enumerador = 2 THEN "Terça-Feira"
WHEN enumerador = 3 THEN "Quarta-Feira"
WHEN enumerador = 4 THEN "Quinta-Feira"
WHEN enumerador = 5 THEN "Sexta-Feira"
WHEN enumerador = 6 THEN "Sábado"
WHEN enumerador = 7 THEN "Domingo"
END);
-- SPLIT
DROP FUNCTION IF EXISTS SPLIT_STR;
CREATE FUNCTION SPLIT_STR(
x VARCHAR(255),
delim VARCHAR(12),
pos INT
)
RETURNS VARCHAR(255)
RETURN REPLACE(SUBSTRING(SUBSTRING_INDEX(x, delim, pos),
LENGTH(SUBSTRING_INDEX(x, delim, pos -1)) + 1),
delim, '');
-- INSERE PORÇÃO DE ALIMENTO, PARA REFEICOES, DIAS DA SEMANA E DIETA;
DROP FUNCTION IF EXISTS INSERE_PORCAO_ALIMENTO_REFEICAO_DIETA_DIA_DA_SEMANA;
DELIMITER $$
CREATE FUNCTION INSERE_PORCAO_ALIMENTO_REFEICAO_DIETA_DIA_DA_SEMANA (
porcaoDeAlimentoID INT,
dietaID INT,
diaDaSemana INT,
refeicao INT)
RETURNS INT DETERMINISTIC
BEGIN
INSERT INTO PorcaoDeAlimentoDiasDaSemanaDietaRefeicao (
ID_PorcaoDeAlimento, ID_Dieta, DiaDaSemana, Refeicao)
VALUES (porcaoDeAlimentoID, dietaID, diaDaSemana, refeicao);
RETURN LAST_INSERT_ID();
END
$$
-- TESTES FUNCTIONS
SELECT CONVERT_ENUM_SENTIMENTO_STR(1);
SELECT CONVERT_ENUM_REFEICAO_STR(2);
SELECT CONVERT_ENUM_DIA_DA_SEMANA_STR(3);
SELECT SPLIT_STR("dietaja,podeser", "podeser", 1);
-- ESTA FUNÇÃO TEM MAIS SENTIDO SENDO UTILIZADA NA PROCEDURE;
SELECT INSERE_PORCAO_ALIMENTO_REFEICAO_DIETA_DIA_DA_SEMANA(1, 3, 4, 5); |
SELECT last_name, first_name, DATE (birthdate) AS birthdate
FROM user_card
WHERE YEAR (birthdate) = '1989'
ORDER BY last_name ASC; |
-- CHECK AFL PAL FUNCTIONS ARE INSTALLED
SELECT * FROM SYS.AFL_FUNCTIONS WHERE PACKAGE_NAME='PAL';
-- START SCRIPT SERVER
ALTER SYSTEM ALTER CONFIGURATION ('daemon.ini', 'SYSTEM') SET ('scriptserver', 'instances') = '1' WITH RECONFIGURE;
-- AUTHORIZE DEVUSER TO EXECUTE PAL FUNCTIONS
GRANT AFL__SYS_AFL_AFLPAL_EXECUTE TO DEVUSER;
|
-- MySQL Script generated by MySQL Workbench
-- Mon Dec 12 15:33:20 2016
-- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
-- Schema recurDB
-- -----------------------------------------------------
-- -----------------------------------------------------
-- Schema recurDB
-- -----------------------------------------------------
CREATE SCHEMA IF NOT EXISTS `recurDB` DEFAULT CHARACTER SET utf8 ;
USE `recurDB` ;
-- -----------------------------------------------------
-- Table `recurDB`.`UserType`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `recurDB`.`UserType`
(
`userTypeID` INT NOT NULL AUTO_INCREMENT
,`userType` VARCHAR(45) NOT NULL
,CONSTRAINT `PK_UserType` PRIMARY KEY (`userTypeID`)
,UNIQUE INDEX `ix_uq_userTypeID` (`userTypeID` ASC)
,UNIQUE INDEX `ix_uq_userType` (`userType` ASC)
)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `recurDB`.`User`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `recurDB`.`User`
(
`userID` INT NOT NULL AUTO_INCREMENT
,`userTypeID_FK` INT NOT NULL
,`username` VARCHAR(25) NOT NULL
,`password` VARCHAR(20) NOT NULL COMMENT 'Encrypt using SHA256'
,`firstName` VARCHAR(30) NULL
,`lastName` VARCHAR(30) NULL
,`email` VARCHAR(80) NULL
,`phone` VARCHAR(15) NULL
,CONSTRAINT `PK_User` PRIMARY KEY (`userID`)
,UNIQUE INDEX `ix_uq_username` (`username` ASC)
,UNIQUE INDEX `ix_uq_userID` (`userID` ASC)
,INDEX `ix_fk_user_userType` (`userTypeID_FK` ASC)
,CONSTRAINT `FK_User_UserType` FOREIGN KEY (`userTypeID_FK`)
REFERENCES `recurDB`.`UserType` (`userTypeID`)
ON DELETE NO ACTION
ON UPDATE NO ACTION
)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `recurDB`.`Event`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `recurDB`.`Event`
(
`eventID` INT NOT NULL AUTO_INCREMENT
,`scheduleID_FK` INT NOT NULL
,`name` VARCHAR(50) NOT NULL
,`description` VARCHAR(200) NOT NULL
,CONSTRAINT `PK_Event` PRIMARY KEY (`eventID`)
,UNIQUE INDEX `ix_uq_eventID` (`eventID` ASC)
)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `recurDB`.`Schedule`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `recurDB`.`Schedule`
(
`scheduleID` INT NOT NULL AUTO_INCREMENT
,`userID_FK` INT NOT NULL
,`eventID_FK` INT NOT NULL
,`repeatAfterDays` INT NOT NULL
,`repeatTime` VARCHAR(10) NOT NULL
,CONSTRAINT `PK_Schedule` PRIMARY KEY (`scheduleID`)
,UNIQUE INDEX `ix_uq_scheduleID` (`scheduleID` ASC)
,INDEX `ix_fk_schedule_user` (`userID_FK` ASC)
,INDEX `ix_fk_schedule_event` (`eventID_FK` ASC)
,CONSTRAINT `FK_Schedule_User` FOREIGN KEY (`userID_FK`)
REFERENCES `recurDB`.`User` (`userID`)
ON DELETE NO ACTION
ON UPDATE NO ACTION
,CONSTRAINT `FK_Schedule_Event` FOREIGN KEY (`eventID_FK`)
REFERENCES `recurDB`.`Event` (`eventID`)
ON DELETE NO ACTION
ON UPDATE NO ACTION
)
ENGINE = InnoDB;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
|
-- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64)
--
-- Host: localhost Database: procurso
-- ------------------------------------------------------
-- Server version 5.7.24-0ubuntu0.18.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `amistoso`
--
DROP TABLE IF EXISTS `amistoso`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `amistoso` (
`data` date NOT NULL,
`local` varchar(250) CHARACTER SET utf8 NOT NULL,
`idamistoso` int(11) NOT NULL AUTO_INCREMENT,
`mandante` int(11) NOT NULL,
`visitante` int(11) NOT NULL,
PRIMARY KEY (`idamistoso`),
KEY `fk_amistoso_time1_idx` (`mandante`),
KEY `fk_amistoso_time2_idx` (`visitante`),
CONSTRAINT `fk_amistoso_time1` FOREIGN KEY (`mandante`) REFERENCES `time` (`id_time`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_amistoso_time2` FOREIGN KEY (`visitante`) REFERENCES `time` (`id_time`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `amistoso`
--
LOCK TABLES `amistoso` WRITE;
/*!40000 ALTER TABLE `amistoso` DISABLE KEYS */;
/*!40000 ALTER TABLE `amistoso` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `notificacao`
--
DROP TABLE IF EXISTS `notificacao`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `notificacao` (
`mensagem` varchar(500) CHARACTER SET utf8 NOT NULL,
`destinatario` int(11) NOT NULL,
`remetente` int(11) NOT NULL,
`idnotificacao` int(11) NOT NULL AUTO_INCREMENT,
`resposta` char(3) NOT NULL,
`tempresp` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`idnotificacao`),
KEY `fk_notificacao_usuario1_idx` (`destinatario`),
KEY `fk_notificacao_usuario2_idx` (`remetente`),
CONSTRAINT `fk_notificacao_usuario1` FOREIGN KEY (`destinatario`) REFERENCES `usuario` (`id_usuario`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_notificacao_usuario2` FOREIGN KEY (`remetente`) REFERENCES `usuario` (`id_usuario`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `notificacao`
--
LOCK TABLES `notificacao` WRITE;
/*!40000 ALTER TABLE `notificacao` DISABLE KEYS */;
INSERT INTO `notificacao` VALUES ('Você foi ad',0,0,1,'',NULL),('Você foi ad',0,0,2,'',NULL),('Você foi ad',0,0,3,'',NULL),('Você foi ad',0,0,4,'',NULL);
/*!40000 ALTER TABLE `notificacao` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `time`
--
DROP TABLE IF EXISTS `time`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `time` (
`nome_time` varchar(100) CHARACTER SET utf8 NOT NULL,
`id_time` int(11) NOT NULL AUTO_INCREMENT,
`data_criacao` date NOT NULL,
`cidade` varchar(100) CHARACTER SET utf8 NOT NULL,
`sigla` varchar(3) CHARACTER SET utf8 NOT NULL,
`senha_time` varchar(100) CHARACTER SET utf8mb4 NOT NULL,
`desc_time` varchar(300) CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`id_time`),
UNIQUE KEY `nome_time` (`nome_time`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `time`
--
LOCK TABLES `time` WRITE;
/*!40000 ALTER TABLE `time` DISABLE KEYS */;
INSERT INTO `time` VALUES ('time',10,'2001-11-12','joinville','REC','827ccb0eea8a706c4c34a16891f84e7b','só tapa'),('Santa Bárbara FC',11,'2002-04-21','Joinville','SFC','827ccb0eea8a706c4c34a16891f84e7b','time do vagner'),('Resenha Esporte Clube',12,'2001-11-12','Joinville','REC','827ccb0eea8a706c4c34a16891f84e7b','só tapa');
/*!40000 ALTER TABLE `time` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `usuario`
--
DROP TABLE IF EXISTS `usuario`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `usuario` (
`id_usuario` int(11) NOT NULL AUTO_INCREMENT,
`sobrenome` varchar(120) DEFAULT NULL,
`nome_usuario` varchar(80) NOT NULL,
`email_usuario` varchar(80) NOT NULL,
`data_nascimento` varchar(30) NOT NULL,
`senha` varchar(120) NOT NULL,
`time_id_time` int(11) NOT NULL,
PRIMARY KEY (`id_usuario`),
UNIQUE KEY `email_usuario` (`email_usuario`),
KEY `fk_usuario_time1_idx` (`time_id_time`)
) ENGINE=MyISAM AUTO_INCREMENT=526 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `usuario`
--
LOCK TABLES `usuario` WRITE;
/*!40000 ALTER TABLE `usuario` DISABLE KEYS */;
INSERT INTO `usuario` VALUES (513,'Cardoso','Cardoso','Abc@gmail.com','2008-01-10','900150983cd24fb0d6963f7d28e17f72',12),(512,'Cardoso','Enrique','2007@gmail.com','2007-08-22','202cb962ac59075b964b07152d234b70',12),(514,'Cardoso','Mateus','Mateuscardoso3112@gmail.com','2222-12-31','202cb962ac59075b964b07152d234b70',12),(524,'quintino','matheus','matheus.henrique.quintino@gmail.com','0','827ccb0eea8a706c4c34a16891f84e7b',12),(517,'zika','matheus','beicin@gmail.com','0','81dc9bdb52d04dc20036dbd8313ed055',12),(518,'zika','nego','negolua@gay.com','0','81dc9bdb52d04dc20036dbd8313ed055',12),(519,'ribeiro','aline','ribeiro@gmail.com','0','827ccb0eea8a706c4c34a16891f84e7b',0),(520,'victor','john ','johnvictor.trabalho@gmail.com','0','25d55ad283aa400af464c76d713c07ad',0),(521,'Riegel','Ivo ','ivo@gmail.com','0','20e04899c46cd16355f0f2ca77fa83b9',0),(522,'silva','matheus','testa@gmail.copm','0','81dc9bdb52d04dc20036dbd8313ed055',0),(523,'cardoso','mateus','matcardoso@gmail.com','0','827ccb0eea8a706c4c34a16891f84e7b',0),(525,'SOSTER','cardoso31','ribeiro@gmail.comm','0','827ccb0eea8a706c4c34a16891f84e7b',0);
/*!40000 ALTER TABLE `usuario` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `usuario_has_time`
--
DROP TABLE IF EXISTS `usuario_has_time`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `usuario_has_time` (
`usuario_id_usuario` int(11) NOT NULL,
`time_id_time` int(11) NOT NULL,
`time_usuario_id_usuario` int(11) NOT NULL,
PRIMARY KEY (`usuario_id_usuario`,`time_id_time`,`time_usuario_id_usuario`),
KEY `fk_usuario_has_time_time1_idx` (`time_id_time`,`time_usuario_id_usuario`),
KEY `fk_usuario_has_time_usuario1_idx` (`usuario_id_usuario`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `usuario_has_time`
--
LOCK TABLES `usuario_has_time` WRITE;
/*!40000 ALTER TABLE `usuario_has_time` DISABLE KEYS */;
/*!40000 ALTER TABLE `usuario_has_time` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `usuario_has_time1`
--
DROP TABLE IF EXISTS `usuario_has_time1`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `usuario_has_time1` (
`usuario_id_usuario` int(11) NOT NULL,
`time_id_time` int(11) NOT NULL,
PRIMARY KEY (`usuario_id_usuario`,`time_id_time`),
KEY `fk_usuario_has_time1_time1_idx` (`time_id_time`),
KEY `fk_usuario_has_time1_usuario1_idx` (`usuario_id_usuario`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `usuario_has_time1`
--
LOCK TABLES `usuario_has_time1` WRITE;
/*!40000 ALTER TABLE `usuario_has_time1` DISABLE KEYS */;
/*!40000 ALTER TABLE `usuario_has_time1` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `usuario_has_tipousuario`
--
DROP TABLE IF EXISTS `usuario_has_tipousuario`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `usuario_has_tipousuario` (
`usuario_id_usuario` int(11) NOT NULL,
`tipousuario_idtipousuario` int(11) NOT NULL,
PRIMARY KEY (`usuario_id_usuario`,`tipousuario_idtipousuario`),
KEY `fk_usuario_has_tipousuario_tipousuario1_idx` (`tipousuario_idtipousuario`),
KEY `fk_usuario_has_tipousuario_usuario_idx` (`usuario_id_usuario`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `usuario_has_tipousuario`
--
LOCK TABLES `usuario_has_tipousuario` WRITE;
/*!40000 ALTER TABLE `usuario_has_tipousuario` DISABLE KEYS */;
/*!40000 ALTER TABLE `usuario_has_tipousuario` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2019-11-13 15:44:46
|
.echo on
select load_extension('/home/pi/root/sys/env/tool/sqlite_ext/libExtensionFunctions.so');
select PI();
|
update audit_version set patch=3;
alter table role add(dummy3 NUMBER ); |
/************************ KYTE RESIZE *********************************************************/
-- find possible savings by resizing datafiles (takes awhile)
-- added minimum value but not quite precise
set verify off
column file_name format a60 word_wrapped
column smallest format 9,999,990 heading "Smallest|Poss."
column currsize format 9,999,990 heading "Current|Size"
column savings format 9,999,990 heading "Poss.|Savings"
break on report
compute sum of savings on report
column value new_val blksize
select value from v$parameter where name = 'db_block_size';
select c.tablespace_name,
sum(greatest(ceil( (nvl(b.hwm,1)*&&blksize)/1024/1024), ((c.min_extents*c.initial_extent+a.bytes-a.user_bytes)/1024/1024) )) smallest,
sum(ceil( a.blocks*&&blksize/1024/1024)) currsize,
sum(ceil( a.blocks*&&blksize/1024/1024) - greatest(ceil( (nvl(b.hwm,1)*&&blksize)/1024/1024), ((c.min_extents*c.initial_extent+a.bytes-a.user_bytes)/1024/1024) )) savings
from dba_data_files a, dba_tablespaces c,
( select file_id, max(block_id+blocks-1) hwm
from dba_extents
group by file_id ) b
where a.file_id = b.file_id(+) and a.tablespace_name=c.tablespace_name
group by c.tablespace_name order by c.tablespace_name;
-- actual resizing
set lines 200 pages 0
set head off
spool tbs_shrink.out;
select 'alter database datafile '''||a.file_name||''' resize ' ||greatest(ceil( (nvl(b.hwm,1)*&&blksize)), (c.min_extents*c.initial_extent)+(a.bytes - a.user_bytes))|| ';'
from dba_data_files a, dba_tablespaces c,
( select file_id, max(block_id+blocks-1) hwm
from dba_extents
group by file_id ) b
where a.file_id = b.file_id(+) and a.tablespace_name=c.tablespace_name
and a.tablespace_name='DQI_TABLES_X4M'
and ceil( a.blocks*&&blksize/1024/1024) -
ceil( (nvl(b.hwm,1)*&&blksize)/1024/1024 ) > 0;
spool off;
@tbs_shrink.out
|
WITH item_details AS (
SELECT id AS item_id, name, number_cells
FROM clusters
WHERE lower(code) = lower('Z1')
), item_ids AS (SELECT item_id FROM item_details)
SELECT ROW_NUMBER() OVER (ORDER BY 1) AS id, det.name, ct.created_at, (ct.c0*100@/det.number_cells) AS complete, ct.kpi FROM item_details AS det
INNER JOIN
(
SELECT
COALESCE(e2.created_at, e3.created_at, e4.created_at) AS created_at,
COALESCE(e2.item_id, e3.item_id, e4.item_id) AS item_id,
COALESCE(e2.c0, e3.c0, e4.c0) AS c0,
(e2.c2@+e3.c3@+e4.c4) AS kpi
FROM
(
SELECT created_at, item_id, c0, c2
FROM eri.counters_2g_cluster_rop
WHERE created_at >= '2019-01-13 17:00' AND created_at <= '2019-01-13 19:00' AND item_id IN (SELECT * FROM item_ids)
) AS e2
FULL JOIN
(
SELECT created_at, item_id, c0, c2, c3, c4
FROM eri.counters_3g_cluster_rop
WHERE created_at >= '2019-01-13 17:00' AND created_at <= '2019-01-13 19:00' AND item_id IN (SELECT * FROM item_ids)
) AS e3
ON e3.item_id = e2.item_id AND e3.created_at = e2.created_at
FULL JOIN
(
SELECT created_at, item_id, c0, c3, c4
FROM eri.counters_4g_cluster_rop
WHERE created_at >= '2019-01-13 17:00' AND created_at <= '2019-01-13 19:00' AND item_id IN (SELECT * FROM item_ids)
) AS e4
ON e4.item_id = coalesce(e2.item_id, e3.item_id) AND e4.created_at = coalesce(e2.created_at, e3.created_at)
) AS ct
ON ct.item_id = det.item_id
ORDER BY ct.created_at DESC, ct.item_id ASC
|
/*
Navicat Premium Data Transfer
Source Server : self
Source Server Type : MySQL
Source Server Version : 50644
Source Host : localhost:3306
Source Schema : yanan
Target Server Type : MySQL
Target Server Version : 50644
File Encoding : 65001
Date: 14/05/2020 15:02:00
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for kit_access
-- ----------------------------
DROP TABLE IF EXISTS `kit_access`;
CREATE TABLE `kit_access` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`access_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '权限名称',
`access_url` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '权限的地址',
`access_parent_id` int(11) NOT NULL COMMENT '上级权限',
`create_time` datetime(0) NOT NULL COMMENT '创建时间',
`update_time` datetime(0) NOT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 120 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '权限表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of kit_access
-- ----------------------------
INSERT INTO `kit_access` VALUES (1, 'PC、APP 端', '/admin/Homepage', 0, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (2, '网站总配置', '/admin/Website/index', 1, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (3, '网站总配置 修改', '/admin/Website/update_edit', 2, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (7, '头像管理', '/admin/Head_pic/index', 1, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (8, '头像管理 修改', '/admin/Head_pic/update_edit', 7, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (9, '爱情历程', '/admin/Love_history', 1, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (10, '爱情历程 列表', '/admin/Love_history/index', 9, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (11, '爱情历程 添加', '/admin/Love_history/add_img', 9, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (12, '爱情历程 删除', '/admin/Love_history/img_del', 9, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (13, '爱情历程 修改', '/admin/Love_history/update_edit', 9, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (14, '经典时刻', '/admin/Fine_mark', 1, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (15, '经典时刻 列表', '/admin/Fine_mark/index', 14, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (16, '经典时刻 添加', '/admin/Fine_mark/add_img', 14, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (17, '经典时刻 删除', '/admin/Fine_mark/img_del', 14, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (18, '经典时刻 修改', '/admin/Fine_mark/update_edit', 14, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (103, '系统管理', '/admin/system', 0, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (104, '权限管理', 'admin/access', 103, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (105, '管理员', '/admin/user', 104, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (106, '管理员 列表', '/admin/user/index', 105, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (107, '管理员 添加', '/admin/user/add_img', 105, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (108, '管理员 删除', '/admin/user/img_del', 105, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (109, '管理员 修改', '/admin/user/update_edit', 105, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (110, '角色', '/admin/role', 104, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (111, '角色 列表', '/admin/role/index', 110, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (112, '角色 添加', '/admin/role/add_img', 110, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (113, '角色 删除', '/admin/role/img_del', 110, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (114, '角色 修改', '/admin/role/update_edit', 110, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (115, '权限资源', '/admin/access', 104, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (116, '权限资源 列表', '/admin/access/index', 115, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (117, '权限资源 添加', '/admin/access/add_img', 115, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (118, '权限资源 删除', '/admin/access/img_del', 115, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
INSERT INTO `kit_access` VALUES (119, '权限资源 修改', '/admin/access/update_edit', 115, '2019-10-28 20:10:15', '2019-10-28 20:10:15');
-- ----------------------------
-- Table structure for kit_fine_mark
-- ----------------------------
DROP TABLE IF EXISTS `kit_fine_mark`;
CREATE TABLE `kit_fine_mark` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`mark_title` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`mark_pic` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`sort` int(10) NOT NULL DEFAULT 100,
`create_time` datetime(0) NOT NULL,
`update_time` datetime(0) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '心动时刻' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of kit_fine_mark
-- ----------------------------
INSERT INTO `kit_fine_mark` VALUES (4, '第一次相见', '/uploads/20191224/6b49898807bd70ab7868c1913fc98eb0.jpg', 100, '2019-12-20 09:45:59', '2019-12-24 13:38:19');
INSERT INTO `kit_fine_mark` VALUES (5, '第一次约会', '/uploads/20191224/76d065032e8ec88e0e6a52c8a0d1f37f.jpg', 20, '2019-12-20 09:46:15', '2019-12-24 14:00:22');
INSERT INTO `kit_fine_mark` VALUES (6, '约会', '/uploads/20191224/9dbf0a94cc370da2da829019026ba646.jpg', 40, '2019-12-20 09:46:31', '2019-12-24 14:00:40');
INSERT INTO `kit_fine_mark` VALUES (7, '看电影', '/uploads/20191224/8208e4a6eb120235168bbc9ed4f46ec4.jpg', 30, '2019-12-20 09:47:00', '2019-12-24 14:00:30');
INSERT INTO `kit_fine_mark` VALUES (8, '拥抱', '/uploads/20191224/2515e2fa65acd7a43305c24c6702235d.jpg', 100, '2019-12-20 09:47:15', '2019-12-24 13:34:24');
INSERT INTO `kit_fine_mark` VALUES (9, '婚纱照', '/uploads/20191224/3380ff2ccb06695999bf8bdde99d9cc4.jpg', 10, '2019-12-24 13:45:09', '2019-12-24 13:59:42');
INSERT INTO `kit_fine_mark` VALUES (10, '婚纱照', '/uploads/20191224/5ccd549f545ea3aa50f1b33bd8917f4e.jpg', 50, '2019-12-24 13:47:07', '2019-12-24 14:00:52');
INSERT INTO `kit_fine_mark` VALUES (11, '想吃双铺烧饼', '/uploads/20191224/bf992f70d8ddbbd9ed7bc83181b22096.jpg', 100, '2019-12-24 13:48:46', '2019-12-24 13:48:46');
INSERT INTO `kit_fine_mark` VALUES (12, '旅游', '/uploads/20191224/9d6da67c26f0d915602dac718ad57bb2.jpg', 100, '2019-12-24 13:50:30', '2019-12-24 13:50:30');
-- ----------------------------
-- Table structure for kit_head_pic
-- ----------------------------
DROP TABLE IF EXISTS `kit_head_pic`;
CREATE TABLE `kit_head_pic` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`boy_head` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`girl_head` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`create_time` datetime(0) NOT NULL,
`update_time` datetime(0) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '头像' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of kit_head_pic
-- ----------------------------
INSERT INTO `kit_head_pic` VALUES (1, '/uploads/20191224/a57d6bae7d1fcfbabedd1e77f64f19ae.jpg', '/uploads/20191224/e14e68ac6ec70454f1445dd97faf7ab6.jpg', '2019-12-20 15:45:01', '2019-12-24 13:15:58');
-- ----------------------------
-- Table structure for kit_love_history
-- ----------------------------
DROP TABLE IF EXISTS `kit_love_history`;
CREATE TABLE `kit_love_history` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`history_year` datetime(0) NOT NULL COMMENT '时间',
`history_contents` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '故事',
`history_pic` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '代表图',
`create_time` datetime(0) NOT NULL,
`update_time` datetime(0) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 20 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '爱情历史' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of kit_love_history
-- ----------------------------
INSERT INTO `kit_love_history` VALUES (8, '2019-07-05 00:00:00', '之前不认识,这是首次加上微信', '/uploads/20191220/f655e07ca3b98072e32ba9f49eefd3ae.jpg', '2019-12-20 17:12:03', '2019-12-20 17:12:03');
INSERT INTO `kit_love_history` VALUES (9, '2019-07-19 00:00:00', '第一次见面', '/uploads/20191224/2d2a67aca97bee23f0bcecd5a6fb7a0b.jpg', '2019-12-20 17:23:45', '2019-12-24 13:21:14');
INSERT INTO `kit_love_history` VALUES (10, '2019-08-09 00:00:00', '第一次约会', '/uploads/20191224/9e1aa5d9e2467964312ae8aa728d55b0.jpg', '2019-12-20 17:24:40', '2019-12-24 13:23:21');
INSERT INTO `kit_love_history` VALUES (11, '2019-08-10 00:00:00', '第一次看电影', '/uploads/20191220/7d1a466c20928d5a2839ab6ea6554a91.png', '2019-12-20 17:25:15', '2019-12-20 17:25:15');
INSERT INTO `kit_love_history` VALUES (12, '2019-08-10 00:00:00', '第一次逛街', '/uploads/20191224/e1a4381f519e20bcf2297b6b7a3e8a53.jpg', '2019-12-20 17:25:47', '2019-12-24 13:26:39');
INSERT INTO `kit_love_history` VALUES (13, '2019-07-20 00:00:00', '第一次牵手', '/uploads/20191220/7c38be3514529305a7588bfb107aca03.jpg', '2019-12-20 17:26:19', '2019-12-20 17:34:30');
INSERT INTO `kit_love_history` VALUES (14, '2019-08-10 00:00:00', '第一次合影', '/uploads/20191220/6826f9adc1daeee0a02edf9b7110d273.jpg', '2019-12-20 17:27:14', '2019-12-20 17:36:45');
INSERT INTO `kit_love_history` VALUES (15, '2019-07-19 00:00:00', '第一次送花', '/uploads/20191224/435f71f2c9f10947559a01dba1193c81.jpg', '2019-12-20 17:27:41', '2019-12-24 13:19:55');
INSERT INTO `kit_love_history` VALUES (16, '2019-08-10 00:00:00', '第一次旅行', '/uploads/20191220/168433abb2c1376d8e5ada752d7e1c1a.jpg', '2019-12-20 17:29:17', '2019-12-20 17:39:28');
INSERT INTO `kit_love_history` VALUES (17, '2019-10-04 00:00:00', '拍婚纱照', '/uploads/20191220/81bc675c0706de379fcead15498defd2.jpg', '2019-12-20 17:32:04', '2019-12-20 17:32:04');
INSERT INTO `kit_love_history` VALUES (18, '2019-08-06 00:00:00', '第一送巧克力', '/uploads/20191220/48888ac711f1d0db3f6342c664d9cfb1.jpg', '2019-12-20 17:43:12', '2019-12-20 17:43:12');
INSERT INTO `kit_love_history` VALUES (19, '2019-08-02 00:00:00', '第一次送项链', '/uploads/20191220/b63e8d196eb4c1add8a3e1f919a3374c.jpg', '2019-12-20 17:45:41', '2019-12-20 18:01:02');
-- ----------------------------
-- Table structure for kit_role
-- ----------------------------
DROP TABLE IF EXISTS `kit_role`;
CREATE TABLE `kit_role` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`role_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '角色',
`parent_id` int(11) NOT NULL DEFAULT 0 COMMENT '父类角色id',
`create_time` datetime(0) NOT NULL COMMENT '创建时间',
`update_time` datetime(0) NOT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of kit_role
-- ----------------------------
INSERT INTO `kit_role` VALUES (1, '老大', 0, '2019-10-17 16:11:38', '2019-10-17 16:11:38');
-- ----------------------------
-- Table structure for kit_role_access
-- ----------------------------
DROP TABLE IF EXISTS `kit_role_access`;
CREATE TABLE `kit_role_access` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`access_id` int(11) NOT NULL COMMENT '权限id',
`role_id` int(11) NOT NULL COMMENT '角色id',
`create_time` datetime(0) NOT NULL COMMENT '创建时间',
`update_time` datetime(0) NOT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 127 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色-权限' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of kit_role_access
-- ----------------------------
INSERT INTO `kit_role_access` VALUES (112, 1, 1, '2019-12-24 14:59:38', '2019-12-24 14:59:38');
INSERT INTO `kit_role_access` VALUES (113, 2, 1, '2019-12-24 14:59:38', '2019-12-24 14:59:38');
INSERT INTO `kit_role_access` VALUES (114, 3, 1, '2019-12-24 14:59:38', '2019-12-24 14:59:38');
INSERT INTO `kit_role_access` VALUES (115, 7, 1, '2019-12-24 14:59:38', '2019-12-24 14:59:38');
INSERT INTO `kit_role_access` VALUES (116, 8, 1, '2019-12-24 14:59:38', '2019-12-24 14:59:38');
INSERT INTO `kit_role_access` VALUES (117, 9, 1, '2019-12-24 14:59:38', '2019-12-24 14:59:38');
INSERT INTO `kit_role_access` VALUES (118, 10, 1, '2019-12-24 14:59:38', '2019-12-24 14:59:38');
INSERT INTO `kit_role_access` VALUES (119, 11, 1, '2019-12-24 14:59:38', '2019-12-24 14:59:38');
INSERT INTO `kit_role_access` VALUES (120, 12, 1, '2019-12-24 14:59:38', '2019-12-24 14:59:38');
INSERT INTO `kit_role_access` VALUES (121, 13, 1, '2019-12-24 14:59:38', '2019-12-24 14:59:38');
INSERT INTO `kit_role_access` VALUES (122, 14, 1, '2019-12-24 14:59:38', '2019-12-24 14:59:38');
INSERT INTO `kit_role_access` VALUES (123, 15, 1, '2019-12-24 14:59:38', '2019-12-24 14:59:38');
INSERT INTO `kit_role_access` VALUES (124, 16, 1, '2019-12-24 14:59:38', '2019-12-24 14:59:38');
INSERT INTO `kit_role_access` VALUES (125, 17, 1, '2019-12-24 14:59:38', '2019-12-24 14:59:38');
INSERT INTO `kit_role_access` VALUES (126, 18, 1, '2019-12-24 14:59:38', '2019-12-24 14:59:38');
-- ----------------------------
-- Table structure for kit_user
-- ----------------------------
DROP TABLE IF EXISTS `kit_user`;
CREATE TABLE `kit_user` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`user_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户名',
`is_superme` int(3) NOT NULL DEFAULT 2 COMMENT '是否为超级管理员 1是 2否',
`user_sex` int(3) NOT NULL DEFAULT 1 COMMENT '性别 1男 2女 ',
`user_email` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '邮箱',
`phone` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '手机号',
`user_password` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户密码',
`create_time` datetime(0) NOT NULL COMMENT '创建时间',
`update_time` datetime(0) NOT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of kit_user
-- ----------------------------
INSERT INTO `kit_user` VALUES (1, 'hyn', 1, 1, '1465935391@qq.com', '15638861289', '2d7de9da0b0a970e2f5dd0f12a133438', '2019-07-18 14:49:58', '2019-07-18 14:50:03');
INSERT INTO `kit_user` VALUES (3, 'root', 2, 1, '5123@qq.com', '15638861256', '5b9c56ff3fcaeb43beb5afc289cfa673', '2019-10-17 16:27:46', '2019-10-28 20:20:21');
-- ----------------------------
-- Table structure for kit_user_role
-- ----------------------------
DROP TABLE IF EXISTS `kit_user_role`;
CREATE TABLE `kit_user_role` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL COMMENT '用户id',
`role_id` int(11) NOT NULL COMMENT '角色id',
`create_time` datetime(0) NOT NULL COMMENT '创建时间',
`update_time` datetime(0) NOT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户-角色表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of kit_user_role
-- ----------------------------
INSERT INTO `kit_user_role` VALUES (1, 3, 1, '2019-10-17 16:27:46', '2019-10-17 16:27:46');
-- ----------------------------
-- Table structure for kit_website
-- ----------------------------
DROP TABLE IF EXISTS `kit_website`;
CREATE TABLE `kit_website` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`web_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '网站名称',
`web_logo` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '网站logo',
`head_title` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '头部标题',
`head_dec` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '头部描述',
`love_title` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`agree_title` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`agree_des` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`wintness_title` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`website_title` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`footer` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`create_time` datetime(0) NOT NULL,
`update_time` datetime(0) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '网站配置信息' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of kit_website
-- ----------------------------
INSERT INTO `kit_website` VALUES (1, 'HXC & HYL', '/uploads/20191219/589c7030d1a3e620d680da53040de8fa.png', '陪伴是最长情的告白', '我们的遇见,是爱情的开始@\n我们的爱情,是幸福的开始@\n我们的幸福,是平平淡淡的陪伴', '我们的爱情历程', '我们的山盟海誓', '与你的相遇,是命中注定的一生一世。与你的相爱,是命中注定的地老天荒@\n今生携手徜徉天地间,为你遮风挡雨,相濡以沫,并肩悠游滚滚红尘中@\n即使有一天,你的步履变得蹒跚,青丝变成白发,红润的脸上爬满了皱纹,但我仍要携着你的手,漫步在夕阳的余辉下@\n你,我一生最爱的人;你,我一生最想的人;你,我一生守候的人;你,我一生唯一的人@\n不论你生病或是健康、富有或贫穷,始终忠於你,直到离开世界', '我们的爱情见证', NULL, '最终版权归 HXC & HYN 所有', '2019-12-19 14:30:08', '2019-12-19 17:39:32');
SET FOREIGN_KEY_CHECKS = 1;
|
USE `company_web_service`;
INSERT INTO `company` VALUES (1,'dagpi','f7ca48b4e4375f4f1df0c374ae4e4b43 ','1_-r1howh0qoDUZluj2OO-JmDWRgcoztLUcmWVu_daQM');
INSERT INTO `company_meeting` VALUES (1,1,'Réunion','2017-07-05 16:00:00','2017-07-05 17:00:00','Talence'),(2,1,'Réunion 2','2017-07-06 16:00:00','2017-07-06 18:00:00','Pessac'),(3,1,'Réunion 3','2017-07-07 16:00:00','2017-07-07 17:30:00','Gradignan');
|
-- CMSC 461, Spring 2019
-- Robert Rose
-- robrose2
-- Drop the views first because they depend on a lot of stuff
DROP VIEW IF EXISTS barcode_lookup_view;
DROP VIEW IF EXISTS activities_view;
DROP VIEW IF EXISTS pots_view;
DROP VIEW IF EXISTS tray_view;
-- Drop the tables that we created in reverse order
DROP TABLE IF EXISTS activity_log;
DROP TABLE IF EXISTS weather_event;
DROP TABLE IF EXISTS weather_station;
DROP TABLE IF EXISTS pots;
DROP TABLE IF EXISTS trays;
DROP TABLE IF EXISTS plants;
DROP TABLE IF EXISTS barcodes; |
create table Product
(
Product_key integer not null,
ProductID varchar(20) not null,
WeightUnitMeasureCode char(3) null,
SizeUnitMeasureCode char(3) null,
ProductName varchar(50) not null,
StandardCost number(19,4) null,
FinishedGoodsFlag varchar(4) null,
Color varchar(15) null,
SafetyStockLevel number(5) null,
ReorderPoint number(5) null,
ListPrice number(19,4) null,
"Size" varchar(50) null,
SizeRange varchar(50) null,
Weight float(49) null,
DaysToManufacture integer null,
ProductLine char(2) null,
DealerPrice number(19,4) null,
"Class" char(2) null,
"Style" char(2) null,
ModelName varchar(50) null,
"Description" varchar(400) null,
StartDate date null,
EndDate date null,
Status varchar(7) null,
constraint Product_PK Primary key (product_key)
);
Create table SalesTerritory
(
SalesTerritoryKey int not null,
SalesTerritoryID int not null,
SalesTerritoryRegion varchar(50) not null,
SalesTerritoryCountry varchar(50) not null,
SalesTerritoryGroup varchar(50) null,
constraint Territory_PK Primary key (SalesTerritoryKey));
Drop table Customer;
Create table Customer
(
CustomerKey int not null,
CustomerID varchar(15) not null,
Title varchar(8) null,
FirstName varchar(50) null,
MiddleName varchar(50) null,
LastName varchar(50) null,
NameStyle varchar(10) null,
BirthDate date null,
MaritalStatus char(1) null,
"Suffix" varchar(10) null,
Gender varchar(1) null,
EmailAddress varchar(100) null,
YearlyIncome number(19,4) null,
TotalChildren number(3) null,
NumberChildrenAtHome number(3) null,
Education varchar(40) null,
Occupation varchar(10) null,
HouseOwnerFlag varchar(1) null,
NumberCarsOwned number(3) null,
AddressLine1 varchar(120) null,
AddressLine2 varchar(120) null,
Phone varchar(20) null,
DateFirstPurchase date null,
CommuteDistance varchar(15) null,
constraint Customers_PK Primary Key (CustomerKey)
);
create table Dim_Time
(
DateKey int not null,
FullDate date not null,
DayNumberOfWeek number(3) not null,
DayNameOfWeek varchar(10) not null,
DayNumberOfMonth number(3) not null,
DayNumberOfYear number(5) not null,
WeekNumberOfYear number(3) not null,
MonthName varchar(15) not null,
MonthNumberOfYear number(3) not null,
CalendarQuarter number(3) not null,
CalendarYear number(5) not null,
CalendarSemester number(3) not null,
FiscalQuarter number(3) not null,
FiscalYear number(5) not null,
FiscalSemester number(3) not null,
Constraint TimeDimension_PK Primary key (DateKey));
Create table Fact_Transaction
(
ProductKey int not null,
OrderDateKey int not null,
DueDateKey int not null,
ShipDateKey int not null,
CustomerKey int not null,
PromotionKey int not null,
SalesTerritoryKey int not null,
SalesOrderNumber varchar(20) not null,
SalesOrderLineNumber number(3) not null,
RevisionNumber number(3) null,
OrderQuantity number(5) null,
UnitPrice number(19,4) null,
ExtendedAmount number(19,4) null,
UnitPriceDiscountPct float(49) null,
DiscountAmount float(49) null,
ProductStandardCost number(19,4) null,
TotalProductCost number(19,4) null,
SalesAmount number(19,4) null,
TaxAmt number(19,4) null,
Freight number(19,4) null,
CarrierTrackingNumber varchar(25) null,
CustomerPONumber varchar(25) null,
OrderDate date null,
DueDate date null,
ShipDate date null,
constraint Transactions_PK Primary key (SalesOrderNumber,SalesOrderLineNumber),
constraint Transactions_FK_Product Foreign key (ProductKey) References Product(ProductKey),
constraint Transactions_FK_Customer Foreign key (CustomerKey) References Customer (CustomerKey),
constraint Transactions_FK_Promotion Foreign key (PromotionKey) References Dim_Promotions (PromotionKey),
constraint Transactions_FK_Territory Foreign key (SalesTerritoryKey) References SalesTerritory (SalesTerritoryKey),
constraint Transactions_FK_Date1 Foreign key (OrderDateKey) References Dim_Time (DateKey),
constraint Transactions_FK_Date2 Foreign key (DueDateKey) References Dim_Time (DateKey),
constraint Transactions_FK_Date3 Foreign key (ShipDateKey) References Dim_Time (DateKey)
);
select * from product;
Create table Dim_Promotions
(
PromotionKey int not null,
PromotionID int not null,
PromotionName varchar(255) null,
DiscountPct float(49) null,
PromotionType varchar(50) null,
PromotionCategory varchar(50) null,
StartDate date not null,
EndDate date not null,
MinQty int null,
MaxQty int null,
constraint Promotions_PK Primary key (PromotionKey));
alter table Product
Rename column "Description" to Product_Description;
commit;
select * from product;
alter tabl
drop table product;
create table addr_cat_code2(
AddrCatCodeKey integer not null,
AddrCatCodeId varchar2(4) not null,
AddrCatDesc varchar2(30) not null,
constraint addr_cat_code2_PK Primary Key(AddrCatCodeKey)
);
|
SELECT regexp_match('abc(', '123')
FROM sqlite_master;
|
insert into Product values(1,'Product 1') |
ALTER DATABASE @db RENAME TO @newDB;
|
CREATE TABLE Tbl_Error_Logs
(
fld_error_code varchar(10) Default '',
fld_error_description varchar(300) Not Null,
fld_error_username varchar(50) Not Null,
fld_error_timestamp datetime Not Null
) |
DO $$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20191009095511_v1.37') THEN
ALTER TABLE org_branches ADD area_of_common_premises text NULL;
END IF;
END $$;
DO $$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20191009095511_v1.37') THEN
ALTER TABLE org_branches ADD total_area text NULL;
END IF;
END $$;
DO $$
BEGIN
IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20191009095511_v1.37') THEN
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20191009095511_v1.37', '2.2.2-servicing-10034');
END IF;
END $$;
|
DROP TABLE IF EXISTS hbd_dirty CASCADE ;
DROP TABLE IF EXISTS hbd_ccon CASCADE ;
DROP TABLE IF EXISTS hbd_cnha CASCADE ;
DROP TABLE IF EXISTS hbd_cnct CASCADE ;
DROP TABLE IF EXISTS hbd_cnin CASCADE ;
DROP TABLE IF EXISTS hbd_cnsr CASCADE ;
DROP TABLE IF EXISTS hbd_cngr CASCADE ;
DROP TABLE IF EXISTS hbd_cnsu CASCADE ;
DROP TABLE IF EXISTS hbd_cnoe CASCADE ;
DROP TABLE IF EXISTS hbd_cnem CASCADE ;
CREATE TABLE hbd_dirty
(
file_id character varying COLLATE pg_catalog."default",
country_code character varying COLLATE pg_catalog."default",
city_code character varying COLLATE pg_catalog."default",
hotel_code character varying COLLATE pg_catalog."default",
room_type character varying COLLATE pg_catalog."default" default '',
room_type_qty integer,
meal_type character varying COLLATE pg_catalog."default",
check_in date,
check_out date,
currency_code character varying COLLATE pg_catalog."default",
adult_price numeric(20,7),
child_price numeric(20,7),
min_nights integer,
total_price numeric(20,7)
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;
ALTER TABLE hbd_dirty
OWNER to oex_dev;
CREATE TABLE hbd_ccon
(
file_id character varying COLLATE pg_catalog."default" primary key ,
external_inventory character varying COLLATE pg_catalog."default",
destination_code character varying COLLATE pg_catalog."default",
office_code integer,
contract_number integer,
contract_name character varying COLLATE pg_catalog."default",
company_code character varying COLLATE pg_catalog."default",
type_of_service character varying COLLATE pg_catalog."default",
hotel_code character varying COLLATE pg_catalog."default",
giata_hotel_code integer,
initial_date date,
end_date date,
no_hotel character varying COLLATE pg_catalog."default",
currency character varying COLLATE pg_catalog."default",
base_board character varying COLLATE pg_catalog."default",
classification character varying COLLATE pg_catalog."default",
payment_model character varying COLLATE pg_catalog."default",
daily_price character varying COLLATE pg_catalog."default",
release_days character varying COLLATE pg_catalog."default",
minimum_child_age integer,
maximum_child_age integer,
opaque character varying COLLATE pg_catalog."default",
fix_rate character varying COLLATE pg_catalog."default",
contract_type character varying COLLATE pg_catalog."default",
maximum_rooms integer,
hotel_content integer,
selling_price character varying COLLATE pg_catalog."default",
internal_field character varying COLLATE pg_catalog."default",
internal_field_data character varying COLLATE pg_catalog."default",
internal_classification character varying COLLATE pg_catalog."default",
is_total_price_per_stay character varying COLLATE pg_catalog."default"
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;
ALTER TABLE hbd_ccon
OWNER to oex_dev;
CREATE TABLE hbd_cnsu
(
file_id character varying COLLATE pg_catalog."default",
hotel_id integer,
initial_date date,
final_date date,
application_initial_date date,
application_final_date date,
supplement_or_discount_code character varying COLLATE pg_catalog."default",
type character varying COLLATE pg_catalog."default",
is_per_pax character varying COLLATE pg_catalog."default",
opaque character varying COLLATE pg_catalog."default",
"order" integer,
application_type character varying COLLATE pg_catalog."default",
amount numeric(20,7) DEFAULT 0,
percentage numeric(20,7) DEFAULT 0,
is_cumulative character varying COLLATE pg_catalog."default",
rate integer,
room_type character varying COLLATE pg_catalog."default" default '',
characteristic character varying COLLATE pg_catalog."default" default '',
board character varying COLLATE pg_catalog."default",
adults integer,
pax_order integer,
min_age integer,
max_age integer,
number_of_days integer,
length_of_stay integer,
limit_date character varying COLLATE pg_catalog."default",
on_monday character varying COLLATE pg_catalog."default",
on_tuesday character varying COLLATE pg_catalog."default",
on_wednesday character varying COLLATE pg_catalog."default",
on_thursday character varying COLLATE pg_catalog."default",
on_friday character varying COLLATE pg_catalog."default",
on_saturday character varying COLLATE pg_catalog."default",
on_sunday character varying COLLATE pg_catalog."default",
net_price numeric(20,7) DEFAULT 0,
price numeric(20,7) DEFAULT 0
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;
ALTER TABLE hbd_cnsu
OWNER to oex_dev;
CREATE TABLE hbd_cnct
(
file_id character varying COLLATE pg_catalog."default",
hotel_id integer,
id integer primary key,
initial_date date,
final_date date,
room_type character varying COLLATE pg_catalog."default" default '',
characteristic character varying COLLATE pg_catalog."default" default '',
"generic Rate" character varying COLLATE pg_catalog."default",
market_price character varying COLLATE pg_catalog."default",
is_price_per_pax character varying COLLATE pg_catalog."default",
net_price character varying COLLATE pg_catalog."default",
price character varying COLLATE pg_catalog."default",
"specific Rate" character varying COLLATE pg_catalog."default",
base_board character varying COLLATE pg_catalog."default",
amount numeric(20,7)
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;
ALTER TABLE hbd_cnct
OWNER to oex_dev;
CREATE TABLE hbd_cnin
(
file_id character varying COLLATE pg_catalog."default",
hotel_id integer,
id integer PRIMARY KEY,
initial_date date,
final_date date,
room_type character varying COLLATE pg_catalog."default" default '',
characteristic character varying COLLATE pg_catalog."default" default '',
rate integer,
release integer,
allotment integer
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;
ALTER TABLE hbd_cnin
OWNER to oex_dev;
CREATE TABLE hbd_cnha
(
file_id character varying COLLATE pg_catalog."default",
hotel_id integer,
room_type character varying COLLATE pg_catalog."default" default '',
characteristic character varying COLLATE pg_catalog."default" default '',
standard_capacity integer,
min_pax integer,
max_pax integer,
max_adult integer,
max_children integer,
max_infant integer,
min_adults integer,
min_children integer,
primary key (file_id, room_type, characteristic)
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;
ALTER TABLE hbd_cnha
OWNER to oex_dev;
CREATE TABLE hbd_cnsr
(
file_id character varying COLLATE pg_catalog."default",
hotel_id integer,
initial_date date,
final_date date,
board_code character varying COLLATE pg_catalog."default",
is_per_pax character varying COLLATE pg_catalog."default",
amount numeric(20,7) DEFAULT 0,
percentage numeric(20,7) DEFAULT 0,
rate integer,
room_type character varying COLLATE pg_catalog."default" default '',
characteristic character varying COLLATE pg_catalog."default" default '',
min_age integer,
max_age integer,
on_monday character varying COLLATE pg_catalog."default",
on_tuesday character varying COLLATE pg_catalog."default",
on_wednesday character varying COLLATE pg_catalog."default",
on_thursday character varying COLLATE pg_catalog."default",
on_friday character varying COLLATE pg_catalog."default",
on_saturday character varying COLLATE pg_catalog."default",
on_sunday character varying COLLATE pg_catalog."default",
internal_field character varying COLLATE pg_catalog."default",
net_price numeric(20,7) DEFAULT 0,
price numeric(20,7) DEFAULT 0
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;
ALTER TABLE hbd_cnsr
OWNER to oex_dev;
CREATE TABLE hbd_cngr
(
file_id character varying COLLATE pg_catalog."default",
hotel_id integer,
initial_date date,
final_date date,
application_initial_date date,
application_final_date date,
min_days integer,
max_days integer,
rate integer,
room_type character varying COLLATE pg_catalog."default" default '',
characteristic character varying COLLATE pg_catalog."default" default '',
board character varying COLLATE pg_catalog."default",
frees integer,
free_code character varying COLLATE pg_catalog."default",
discount numeric(20,7) DEFAULT 0,
application_base_type character varying COLLATE pg_catalog."default",
application_board_type character varying COLLATE pg_catalog."default",
application_discount_type character varying COLLATE pg_catalog."default",
application_stay_type character varying COLLATE pg_catalog."default",
on_monday character varying COLLATE pg_catalog."default",
on_tuesday character varying COLLATE pg_catalog."default",
on_wednesday character varying COLLATE pg_catalog."default",
on_thursday character varying COLLATE pg_catalog."default",
on_friday character varying COLLATE pg_catalog."default",
on_saturday character varying COLLATE pg_catalog."default",
on_sunday character varying COLLATE pg_catalog."default",
week_day_validation_type character varying COLLATE pg_catalog."default"
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;
ALTER TABLE hbd_cngr
OWNER to oex_dev;
CREATE TABLE hbd_cnoe
(
file_id character varying COLLATE pg_catalog."default",
hotel_id integer,
code1 character varying COLLATE pg_catalog."default",
code2 character varying COLLATE pg_catalog."default",
is_included character varying COLLATE pg_catalog."default"
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;
ALTER TABLE hbd_cnoe
OWNER to oex_dev;
CREATE TABLE hbd_cnem
(
file_id character varying COLLATE pg_catalog."default",
hotel_id integer,
application_date date,
initial_date date,
final_date date,
type character varying COLLATE pg_catalog."default",
rate integer,
room_type character varying COLLATE pg_catalog."default" default '',
characteristic character varying COLLATE pg_catalog."default" default '',
board character varying COLLATE pg_catalog."default",
minimum_days integer,
maximum_days integer,
on_monday character varying COLLATE pg_catalog."default",
on_tuesday character varying COLLATE pg_catalog."default",
on_wednesday character varying COLLATE pg_catalog."default",
on_thursday character varying COLLATE pg_catalog."default",
on_friday character varying COLLATE pg_catalog."default",
on_saturday character varying COLLATE pg_catalog."default",
on_sunday character varying COLLATE pg_catalog."default"
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;
ALTER TABLE hbd_cnem
OWNER to oex_dev;
|
-- Script generated by com.jnj.gtsc.harmony.migration.script.enrich.EnrichRoleToUserAssignments
-- Script generated on 28/May/2013 00:43:08
-- Source = jdbc:oracle:thin:@hpxc83p03.ncsbe.eu.jnj.com:2664:DVLUX153
-- Set ampersand definitions off
set define off;
begin
-- Set larger dbms output buffer
-- DBMS_OUTPUT.ENABLE(1000000);
DBMS_OUTPUT.ENABLE(NULL);
-- Enrich RoleToUserAssignments
harmony.usermgt.enrich_role_to_user('AABDYLDA', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AABDYLDA', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AABDYLDA', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AABDYLDA', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AABDYLDA', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AABDYLDA', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AABDYLDA', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AABDYLDA', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AABDYLDA', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('AABDYLDA', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AABDYLDA', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AABDYLDA', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AABDYLDA', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AABKARI', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AACOSTA1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AACOSTA1', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AACOSTA1', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AACOSTA1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AACOSTA1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AACOSTA1', 'OO_AFF_ACCOUNT_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AADIR', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AADIR', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AADIR', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('AAGYILI', 'BATCH_PAYMENT_PROCESSING', 3);
harmony.usermgt.enrich_role_to_user('AAGYILI', 'BF_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AAGYILI', 'OO_AFF_SAMEDAY_COCO_AUTH/REL', 3);
harmony.usermgt.enrich_role_to_user('AAGYILI', 'SWIFTCOM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AALIFANT', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AALIFANT', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AALIFANT', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AALIFANT', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AALIFANT', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AALIFANT', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AALIFANT', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AALIFANT', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AALIFANT', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AALIFANT', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AAMBROSI', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AANTENOR', 'NETTING_AFF_REPORTER_ST', 2);
harmony.usermgt.enrich_role_to_user('AARGOSO', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AAVENDA1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AAVENDA1', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AAVENDA1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AAVENDA1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AAVENDA1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AAVENDA1', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AAVENDA1', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AAVENDA1', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AAVENDA1', 'TPP_P2P_AFF_OFFER_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ABACUYLI', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABACUYLI', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ABAJAJ', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABAJAJ', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ABAJAJ', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABAKSI', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABALOGH', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ABALOGH', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABALOGH', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABALOGH', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ABALOGH', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABALOGH', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ABALOGH', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ABALOGH', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABARENDS', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ABARENDS', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABARENDS', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ABARKER1', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABARKER1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ABARKER1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABARKER1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABARKER1', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABARKER1', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ABARKER1', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABARKER1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABASUAN', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ABAUDET', 'BF_AFF_AUTHORIZER', 2);
harmony.usermgt.enrich_role_to_user('ABERGER1', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABERGER1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ABERGER1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABERGER1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABERGER1', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABERGER1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABERGER1', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ABERGER1', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ABERGER1', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABERGER1', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ABOGDAN1', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ABOGDAN1', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABORSODY', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ABORSODY', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABORSODY', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABORSODY', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABORSODY', 'OO_AFF_SAMEDAY_ACCNT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ABROWN9', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABROWN9', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ABROWN9', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ABROWN9', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABROWN9', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABROWN9', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABROWN9', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABROWN9', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ABROWN9', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABROWN9', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ABROWN9', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ABURNS3', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ABUTLER1', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ABUTLER1', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ABUTNARU', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ABUTNARU', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ACAMPO22', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ACANELAS', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ACANELAS', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ACANELAS', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ACANELAS', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ACANELAS', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ACANELAS', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ACANELAS', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ACASTI10', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ACASTI10', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ACELENS', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ACELENS', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ACELENS', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ACELENS', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ACELENS', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ACELENS', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ACELENS', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ACELENS', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ACELENS', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ACHAMPIO', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ACHEW1', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ACHEW1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ACHEW1', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ACHEW1', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ACHEW1', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ACHEW1', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ACHU1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ACHU1', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ACHU1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ACHU1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ACHU1', 'OO_AFF_SAMEDAY_ACCNT_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ACHU1', 'SAP_PRD_US_ACC_CIHB_USER', 3);
harmony.usermgt.enrich_role_to_user('ACOIMBRA', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ACOIMBRA', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ACOLLIN5', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ACOMBATE', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ACONDINO', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ACOOKE1', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ACOOKE1', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ACOOKE1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ACOOKE1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ACOOKE1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ACOOKE1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ACOOKE1', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ACOOKE1', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ACORNEJO', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ACOTOS', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ACOTOS', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ACRO_OLD', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ACRO_OLD', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ACRO_OLD', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'ACCESS_EDGE_REQUESTOR_EMEA', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'ACCESS_EDGE_REQUESTOR_US', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'AMMF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'AMMF_AFF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'AMMF_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'BF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'E-ICD_USER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'ECP_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'EFS_AFF_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'EFS_AFF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'HB_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'HB_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'HERMES_CASHMGT_EFFICIENCY_REP', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'ICL_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'ICL_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'ICL_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'IHCTF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'IHCTF_AFF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'JPMORGAN_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'L-DRIVE_FO_IRELAND', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'MR_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'MR_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'NETTING_AFF_REPORTER_ST', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'NETTING_REPORTER_TC', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'NETTING_REQUESTOR_TC', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'OO_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'OO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'OO_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'SAP_PRD_FO_IRELAND_USER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'SUNGARD_FO_USER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'SWIFTCOM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'TOPS2', 3);
harmony.usermgt.enrich_role_to_user('ACULLEN1', 'TOPS_FO_USER', 3);
harmony.usermgt.enrich_role_to_user('ADAMBRO', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'AMMF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'BAM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'BF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'CHAINS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'DLINK_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'EFS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'GXRS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'HARMONY_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'HB_COMBINATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'HB_COMBI_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'HERMES_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'ICL_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'IHCTF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'IT_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'MR_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'OO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'P2P_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'RCM_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'SAP_PRD_IT_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'SAP_PRD_IT_USER_DISPLAY', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'SUBLEDGER_CASH_POOL_REPORTS', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'SWIFTCOM_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'TOPS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'TPP_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('ADCNODDE', 'UME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ADELMOR1', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ADESAIR', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ADESAIR', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADESAIR', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADESAIR', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADESAIR', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ADESAIR', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADESAIR', 'REPORT_C4S_TO_SYM', 3);
harmony.usermgt.enrich_role_to_user('ADESAIR', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADESTEFA', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ADESTEFA', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADESTEFA', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADESTEFA', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADESTEFA', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADESTEFA', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADESTEFA', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADESTEFA', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ADETORRE', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ADETORRE', 'TPP_P2P_AFF_OFFER_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ADEVONSH', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADEVONSH', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ADEVONSH', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADEVONSH', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADEVONSH', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADEVONSH', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ADIAS', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADIAS', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ADIAS', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADIAS', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADIAS', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADIAS', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADIAS', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ADIAS', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADIAS', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ADIAS', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADIAS', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADIAS', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ADIAZ4', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ADIBARRA', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ADLOUHA', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADLOUHA', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ADLOUHA', 'BF_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ADLOUHA', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ADLOUHA', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADLOUHA', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADLOUHA', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADLOUHA', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ADLOUHA', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADLOUHA', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ADLOUHA', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ADLOUHA', 'OO_AFF_COCO_AUTH/REL', 1);
harmony.usermgt.enrich_role_to_user('ADLOUHA', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ADLOUHA', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ADLOUHA', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ADLOUHA', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ADLOUHA', 'TPP_P2P_AFF_OFFER_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ADLUNA', 'EFS_AFF_AUTHORIZER', 2);
harmony.usermgt.enrich_role_to_user('ADLUNA', 'NETTING_AFF_REPORTER_ST', 2);
harmony.usermgt.enrich_role_to_user('ADLUNA', 'NETTING_AFF_REQUESTOR_ST', 2);
harmony.usermgt.enrich_role_to_user('ADLUNA', 'RCM_TRANSACTION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('ADLUNA', 'SUBLEDGER_CASH_POOL_REPORTS', 2);
harmony.usermgt.enrich_role_to_user('AECKSTEI', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AECKSTEI', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AECKSTEI', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AECKSTEI', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AELLIXSO', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('AFAES2', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AFAES2', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AFAES2', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AFAES2', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AFAES2', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AFAES2', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('AFAES2', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AFAES2', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AFAES2', 'TPP_P2P_AFF_OFFER_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AFAES2', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AFAKIRI', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AFAKIRI', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AFAKIRI', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AFAKIRI', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AFAKIRI', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AFAKIRI', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AFAKIRI', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AFAKIRI', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AFARUQUI', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AFARUQUI', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AFARUQUI', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AFARUQUI', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AFARUQUI', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AFARUQUI', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AFERNA28', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AFERNA28', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AFERNA28', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AFINCK', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AFINCK', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('AGANRIJA', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AGANRIJA', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AGANRIJA', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGANRIJA', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGANRIJA', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGANRIJA', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('AGERMISE', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGERMISE', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AGERMISE', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGERMISE', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGERMISE', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGERMISE', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGERMISE', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGERMISE', 'MR_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGERMISE', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('AGERMISE', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('AGERMISE', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGERMISE', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGERMISE', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AGERMISE', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGERMISE', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGLAROS', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGLAROS', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AGLAROS', 'BF_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AGLAROS', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGLAROS', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGLAROS', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGLAROS', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AGLAROS', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGLAROS', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('AGLAROS', 'OO_AFF_COCO_AUTH/REL', 1);
harmony.usermgt.enrich_role_to_user('AGLAROS', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGLAROS', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AGODINHO', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGODINHO', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AGODINHO', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGODINHO', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGODINHO', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGODINHO', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AGODINHO', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGODINHO', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGODINHO', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AGODINHO', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGODLEW1', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AGONDARE', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AGONDARE', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('AGONZA26', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('AGONZA26', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AGOSIM', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AGPEREZ', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AGRAY5', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AGRAY5', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AGRAY5', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AHAJKOVA', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AHAJKOVA', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AHAJKOVA', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AHAJKOVA', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AHAJKOVA', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AHAJKOVA', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AHAJKOVA', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AHAJKOVA', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AHAJKOVA', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AHAJKOVA', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('AHAJKOVA', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('AHAJKOVA', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AHAJKOVA', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AHAJKOVA', 'TPP_P2P_AFF_OFFER_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AHAJKOVA', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AHERRIN2', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('AHOLLAN', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AHOLLAN', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AHOLLAN', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AHOLLAN', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AHOLLAN', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AHOLLAN', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AHOLLAN', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AHOLLAN', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AHOLLAN', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AHOLLAN', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('AHOLLAN', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AHOLLAN', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AHOLLAN', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AHOLLAN', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AHUMMEL2', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('AHUMMEL2', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AINO', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('AITEN', 'BANKREPORTING', 2);
harmony.usermgt.enrich_role_to_user('AITEN', 'HERMES_AFF_STATEMENT_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AITEN', 'HERMES_AFF_TRANSACTION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AITEN', 'IHC_AFF_POSITION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AIVANSZK', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AIVANSZK', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AIVANSZK', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AIVANSZK', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AIVANSZK', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AIVANSZK', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AIVANSZK', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AIVANSZK', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AIVANSZK', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AIVANSZK', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('AIVANSZK', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AIWANIUK', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AIWANIUK', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AIWANIUK', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AIWANIUK', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AIWANIUK', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AIWANIUK', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AIWANIUK', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AIWANIUK', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('AJANSSEN', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AJANSSEN', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AJANSSEN', 'BF_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AJANSSEN', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AJANSSEN', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AJANSSEN', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AJANSSEN', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AJANSSEN', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AJANSSEN', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AJANSSEN', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AJANSSEN', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AJANSSEN', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('AJANSSEN', 'OO_AFF_COCO_AUTH/REL', 1);
harmony.usermgt.enrich_role_to_user('AJANSSEN', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AJANSSEN', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AJANSSEN', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AJANSSEN', 'TPP_P2P_AFF_OFFER_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AJHANWAR', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AJHUTY', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AJUGGOO', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('AKALAPAC', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AKALAPAC', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('AKALAPAC', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKEATES', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKEATES', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AKEATES', 'BF_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AKEATES', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKEATES', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AKEATES', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AKEATES', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKEATES', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKEATES', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKEATES', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AKEATES', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKEATES', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('AKEATES', 'OO_AFF_COCO_AUTH/REL', 1);
harmony.usermgt.enrich_role_to_user('AKEATES', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKEATES', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AKEATES', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKEATES', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AKIMLER', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKIMLER', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('AKING', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKING', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AKING', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKING', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AKING', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKING', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('AKING', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKING', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AKING', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AKINGHOR', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKINGHOR', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AKINGHOR', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKINGHOR', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKINGHOR', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKINGHOR', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKINGHOR', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKINGHOR', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AKINGHOR', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKLOTZ', 'BF_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AKLOTZ', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKLOTZ', 'OO_AFF_COCO_AUTH/REL', 1);
harmony.usermgt.enrich_role_to_user('AKLOTZ', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AKRASZNA', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKRASZNA', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AKRASZNA', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKRASZNA', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKRASZNA', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AKRASZNA', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('AKRASZNA', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKRASZNA', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AKRISHN2', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKUBIKOV', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AKUBIKOV', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKUBIKOV', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKUBIKOV', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKUBIKOV', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AKUBIKOV', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ALAM9', 'EFS_AFF_REQUESTOR', 2);
harmony.usermgt.enrich_role_to_user('ALAM9', 'IHC_AFF_POSITION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('ALAM9', 'NETTING_AFF_REQUESTOR_ST', 2);
harmony.usermgt.enrich_role_to_user('ALAM9', 'SUBLEDGER_CASH_POOL_REPORTS', 2);
harmony.usermgt.enrich_role_to_user('ALAMONI', 'BF_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ALAMONI', 'OO_AFF_SAMEDAY_COCO_AUTH/REL', 3);
harmony.usermgt.enrich_role_to_user('ALAMONI', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ALAMRAOU', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ALAPONIS', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ALAU5', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ALEE11', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'ACCESS_EDGE_REPORTER_EMEA', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'ACCESS_EDGE_REPORTER_US', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'ACCESS_EDGE_SECURITY_ADMINISTRATOR_EMEA', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'ACCESS_EDGE_SECURITY_ADMINISTRATOR_US', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'AGENT_BANKDIR_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'AMMF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'APPLOG_ENDSTAMP_UPDATE', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'APPLOG_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'BAM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'BATCH_MT940_UPLOAD', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'BATCH_PAYMENT_PROCESSING', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'BF_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'BF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'BF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'CITIDIRECT_USER_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'COMMONS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'CURRENEX_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'DLINK_BO_SUPERVISOR', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'DLINK_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'DLINK_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'E-ICD_USER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'ECP_APPROVER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'EFS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'FM_RULES_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'GXRS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'HARMONY_TSGAM', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'HARMONY_TSGRM', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'HB_COMBINATION_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'HB_COMBI_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'HERMES_CASHMGT_EFFICIENCY_REP', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'HERMES_ID_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'ICL_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'IHCTF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'IHCTF_AFF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'JPMORGAN_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'L-DRIVE_TSG_USER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'MISYS_SUPERVISOR', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'NETTING_AFF_REPORTER_ST', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'NETTING_BO_SUPERVISOR', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'NETTING_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'NETTING_REPORTER_TC', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'OO_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'OO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'P2P_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'RCM_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'SAA_BO_KEY_USER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'SAP_PRD_TSG_USER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'SUNGARD_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'SWIFTCOM_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'SWIFTCOM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'SWIFTCOM_STATIC_DATA_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'SWIFTREF_KEY_USER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'TOPS2', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'TOPS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'TPP_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'TRAX_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('ALENAER1', 'UME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ALEUNG4', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ALINOWS', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ALINOWS', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ALINOWS', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ALINOWS', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ALINOWS', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ALLONA', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ALO1', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ALO1', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ALO2', 'NETTING_AFF_REQUESTOR_ST', 2);
harmony.usermgt.enrich_role_to_user('ALPINTO', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ALUNA2', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ALUNA2', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ALUNA2', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ALUNA2', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ALUNA2', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ALUNA2', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ALUNA2', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ALUTENKO', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ALUTENKO', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AMAGED', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('AMAGYARI', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AMAGYARI', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AMAGYARI', 'BF_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AMAGYARI', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AMAGYARI', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AMAGYARI', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AMAGYARI', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AMAGYARI', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AMAGYARI', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AMAGYARI', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AMAGYARI', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AMAGYARI', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('AMAGYARI', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('AMAGYARI', 'OO_AFF_COCO_AUTH/REL', 1);
harmony.usermgt.enrich_role_to_user('AMAGYARI', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AMAGYARI', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AMAGYARI', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AMAGYARI', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AMAGYARI', 'TPP_P2P_AFF_OFFER_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AMAKSIMO', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AMANGALI', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AMANZI', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AMANZI', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AMANZI', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AMANZI', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AMANZI', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AMANZI', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AMANZI', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AMANZI', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AMANZI', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AMANZI', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AMANZI', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AMARTIR', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AMARTIR', 'BF_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AMARTIR', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AMARTIR', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AMARTIR', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AMARTIR', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AMARTIR', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AMARTIR', 'HERMES_CASHMGT_EFFICIENCY_REP', 3);
harmony.usermgt.enrich_role_to_user('AMARTIR', 'HERMES_ID_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AMARTIR', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AMARTIR', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AMARTIR', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AMARTIR', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AMARTIR', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('AMARTIR', 'SAP_PRD_PR_ACC_USER', 3);
harmony.usermgt.enrich_role_to_user('AMARY', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AMCCART3', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AMCCART3', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('AMCMANI5', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AMINA1', 'IHC_AFF_POSITION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AMINA1', 'NETTING_AFF_REQUESTOR_ST', 2);
harmony.usermgt.enrich_role_to_user('AMINASSI', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AMOON2', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AMORAWSK', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AMORAWSK', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AMORAWSK', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AMORAWSK', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AMORAWSK', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AMORAWSK', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AMORAWSK', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'AMMF_AFF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'BAM_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'BAM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'BATCH_MT940_UPLOAD_US', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'BF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'BF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'HB_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'HB_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'HERMES_CASHMGT_EFFICIENCY_REP', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'ICL_AFF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'ICL_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'MR_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'MR_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'OO_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'OO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'OO_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'RCM_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'SAA_REPORTING', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'SAP_PRD_LA_FO_USER', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'SAP_PRD_PR_FO_USER', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'SUNGARD_FO_USER', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'SWIFTCOM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'TOPS2', 3);
harmony.usermgt.enrich_role_to_user('AMOURA3', 'TOPS_COUNTERPARTY_EXPOSURE', 3);
harmony.usermgt.enrich_role_to_user('AMUELLE5', 'AMMF_AFF_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AMUELLE5', 'AMMF_AFF_REQUESTOR', 2);
harmony.usermgt.enrich_role_to_user('AMUELLE5', 'BANKREPORTING', 2);
harmony.usermgt.enrich_role_to_user('AMUELLE5', 'BF_AFF_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AMUELLE5', 'EFS_AFF_AUTHORIZER', 2);
harmony.usermgt.enrich_role_to_user('AMUELLE5', 'EFS_AFF_REQUESTOR', 2);
harmony.usermgt.enrich_role_to_user('AMUELLE5', 'HERMES_AFF_STATEMENT_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AMUELLE5', 'HERMES_AFF_TRANSACTION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AMUELLE5', 'ICL_AFF_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AMUELLE5', 'IHCTF_AFF_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AMUELLE5', 'IHCTF_AFF_REQUESTOR', 2);
harmony.usermgt.enrich_role_to_user('AMUELLE5', 'IHC_AFF_POSITION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AMUELLE5', 'NETTING_AFF_REPORTER_ST', 2);
harmony.usermgt.enrich_role_to_user('AMUELLE5', 'NETTING_AFF_REQUESTOR_ST', 2);
harmony.usermgt.enrich_role_to_user('AMUELLE5', 'NETTING_REPORTER_TC', 3);
harmony.usermgt.enrich_role_to_user('AMUELLE5', 'OO_AFF_COCO_AUTH/REL', 2);
harmony.usermgt.enrich_role_to_user('AMUELLE5', 'OO_AFF_COCO_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AMUELLE5', 'OO_AFF_COCO_REQUESTOR', 2);
harmony.usermgt.enrich_role_to_user('AMUELLE5', 'RCM_TRANSACTION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AMUELLE5', 'SUBLEDGER_CASH_POOL_REPORTS', 2);
harmony.usermgt.enrich_role_to_user('AMUELLE5', 'TPP_AFF_AUTHORIZER', 2);
harmony.usermgt.enrich_role_to_user('AMUELLE5', 'TPP_AFF_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AMUELLE5', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 2);
harmony.usermgt.enrich_role_to_user('ANAQVI3', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ANAQVI3', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ANAQVI3', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ANAQVI3', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ANARCA1', 'NETTING_AFF_REQUESTOR_ST', 2);
harmony.usermgt.enrich_role_to_user('ANEMORIN', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ANEMORIN', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ANEMORIN', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ANEMORIN', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ANEMORIN', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ANG1', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ANG1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ANILSSO5', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ANILSSO5', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ANILSSO5', 'BF_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ANILSSO5', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ANILSSO5', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ANILSSO5', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ANILSSO5', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ANILSSO5', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ANILSSO5', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ANILSSO5', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ANILSSO5', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ANILSSO5', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ANILSSO5', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ANILSSO5', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ANILSSO5', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ANILSSO5', 'OO_AFF_COCO_AUTH/REL', 1);
harmony.usermgt.enrich_role_to_user('ANILSSO5', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ANILSSO5', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ANILSSO5', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ANILSSO5', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ANILSSO5', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ANORWOOD', 'BF_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ANORWOOD', 'OO_AFF_SAMEDAY_COCO_AUTH/REL', 3);
harmony.usermgt.enrich_role_to_user('ANORWOOD', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ANUNEZ10', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ANUNEZ10', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ANZEDIEU', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AOGORMAN', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AOGORMAN', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AOGORMAN', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AOGORMAN', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AOGORMAN', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AOGORMAN', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AOGORMAN', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AOGORMAN', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AOGORMAN', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AOGORMAN', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('AOGORMAN', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AOSTINE1', 'BANKREPORTING', 2);
harmony.usermgt.enrich_role_to_user('AOSTINE1', 'HERMES_AFF_STATEMENT_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AOSTINE1', 'HERMES_AFF_TRANSACTION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AOSTINE1', 'TPP_AFF_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AOTHNAY', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('APANGANT', 'IHC_AFF_POSITION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('APANGANT', 'NETTING_AFF_REQUESTOR_ST', 2);
harmony.usermgt.enrich_role_to_user('APASKEVI', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('APASKEVI', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('APASKEVI', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('APASKEVI', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('APASKEVI', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('APEIRCE2', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('APERIMEN', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('APETER', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('APETER', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('APETER', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('APETER', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('APETER', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('APETER', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('APETER', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('APETER', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('APIRAS', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('APIRAS', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('APIRAS', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ARANDOL1', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AREBOSU', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AREBOSU', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AREBOSU', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AREBOSU', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AREBOSU', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AREBOSU', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AREBOSU', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AREBOSU', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AREBOSU', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('AREBOSU', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AREBOSU', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AREBOSU', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AREBOSU', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ARENDA1', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ARIZETTI', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ARIZETTI', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ARIZETTI', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ARIZETTI', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ARODRI32', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ARODRI40', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ARODRI40', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ARODRI40', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ARODRI40', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ARODRI40', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ARODRI40', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ARODRI40', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ARODRI40', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ARODRI40', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AROSA88', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AROSA88', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ARUTKOWS', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ARUTKOWS', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ARUTKOWS', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ARUTKOWS', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ARUTKOWS', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ARUTKOWS', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASABELO', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASALAYOG', 'IHC_AFF_POSITION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('ASALAYOG', 'NETTING_AFF_REPORTER_ST', 2);
harmony.usermgt.enrich_role_to_user('ASALMON', 'ACCESS_EDGE_REQUESTOR_US', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'AMMF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'AMMF_AFF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'APPLOG_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'BAM_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'BAM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'BATCH_HERMES-IHB', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'BATCH_MT940_UPLOAD_US', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'BF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'BF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'EFS_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'EFS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'HB_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'HB_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'HERMES_CASHMGT_EFFICIENCY_REP', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'HERMES_ID_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'MR_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'MR_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'NETTING_AFF_REPORTER_ST', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'OO_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'OO_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'OO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'OO_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'RCM_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'SAP_PRD_US/PR_FO_USER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'SUNGARD_FO_USER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'SWIFTCOM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'TOPS2', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'TOPS_COUNTERPARTY_EXPOSURE', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'TPP_AFF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ASALMON', 'TPP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ASALNAIT', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ASALNAIT', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASALNAIT', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASALNAIT', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ASALNAIT', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASANTI31', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ASARANDI', 'AMMF_AFF_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('ASARANDI', 'BANKREPORTING', 2);
harmony.usermgt.enrich_role_to_user('ASARANDI', 'BF_AFF_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('ASARANDI', 'EFS_AFF_REQUESTOR', 2);
harmony.usermgt.enrich_role_to_user('ASARANDI', 'HERMES_AFF_STATEMENT_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('ASARANDI', 'HERMES_AFF_TRANSACTION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('ASARANDI', 'ICL_AFF_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('ASARANDI', 'IHCTF_AFF_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('ASARANDI', 'IHCTF_AFF_REQUESTOR', 2);
harmony.usermgt.enrich_role_to_user('ASARANDI', 'IHC_AFF_POSITION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('ASARANDI', 'NETTING_AFF_REPORTER_ST', 2);
harmony.usermgt.enrich_role_to_user('ASARANDI', 'NETTING_AFF_REQUESTOR_ST', 2);
harmony.usermgt.enrich_role_to_user('ASARANDI', 'OO_AFF_COCO_AUTH/REL', 2);
harmony.usermgt.enrich_role_to_user('ASARANDI', 'OO_AFF_COCO_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('ASARANDI', 'OO_AFF_COCO_REQUESTOR', 2);
harmony.usermgt.enrich_role_to_user('ASARANDI', 'RCM_TRANSACTION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('ASARANDI', 'SUBLEDGER_CASH_POOL_REPORTS', 2);
harmony.usermgt.enrich_role_to_user('ASARANDI', 'TPP_P2P_AFF_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('ASCHEPKE', 'E-ICD_USER', 3);
harmony.usermgt.enrich_role_to_user('ASCHEPKE', 'L-DRIVE_SEC_USER', 3);
harmony.usermgt.enrich_role_to_user('ASCHMID', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASETIAW3', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ASETIAW3', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ASETIAW3', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASETIAW3', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASETIAW3', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ASETIAW3', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASHAH74', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ASHAH74', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ASHAH74', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ASHAH74', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASHAH74', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASHAH74', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ASHAH74', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ASHAH74', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ASHANY', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ASILVA25', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ASINGSON', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ASINGSON', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASINGSON', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASINGSON', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASINGSON', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASINGSON', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ASINGSON', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASINGSON', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ASIVAGUR', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ASIVAGUR', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASIVAGUR', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ASIVAGUR', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASIVAGUR', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ASMITH83', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ASMITH83', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ASMITH83', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASMITH83', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASMITH83', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASMITH83', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ASMOLJE', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ASMOLJE', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ASTEINDO', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASTEINDO', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ASTEINDO', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASTEINDO', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASTEINDO', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASTEINDO', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASTEINDO', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASTEINDO', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASTEINDO', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ASTPICZY', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ASTRAIT', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ASUALLO', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ATASSIS', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ATASSIS', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ATASSIS', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ATASSIS', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ATASSIS', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ATASSIS', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ATASSIS', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ATASSIS', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ATASSIS', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ATASSIS', 'TPP_P2P_AFF_OFFER_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ATAYLO25', 'AP2OLLO_SSC_USER', 2);
harmony.usermgt.enrich_role_to_user('ATORRES5', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ATORRES5', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ATSAPOGA', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ATSAPOGA', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ATSAPOGA', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ATSAPOGA', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ATSAPOGA', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ATSAPOGA', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ATSAPOGA', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ATSAPOGA', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ATSAPOGA', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ATSAPOGA', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ATSAPOGA', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ATSAPOGA', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ATSAPOGA', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ATUAZON', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ATUAZON', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ATULKAN', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ATULKAN', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ATULKAN', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ATULKAN', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ATULKAN', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ATULKAN', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ATULKAN', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AVANZYL', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AVANZYL', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AVARDAR', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AVBILJOU', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AVBILJOU', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AVBILJOU', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AVBILJOU', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AVBILJOU', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AVBILJOU', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AVBILJOU', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AVBILJOU', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AVBILJOU', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AVDSTRAE', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AVDSTRAE', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AVDSTRAE', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AVDSTRAE', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AVDSTRAE', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AVDSTRAE', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AVOGEL2', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AVOGEL2', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AVOSTER1', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AVUILLED', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AWEINBER', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AWEINBER', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AWEINBER', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AWEINBER', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AWEINBER', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AWEYERMA', 'AMMF_AFF_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AWEYERMA', 'AMMF_AFF_REQUESTOR', 2);
harmony.usermgt.enrich_role_to_user('AWEYERMA', 'BANKREPORTING', 2);
harmony.usermgt.enrich_role_to_user('AWEYERMA', 'BF_AFF_AUTHORIZER', 2);
harmony.usermgt.enrich_role_to_user('AWEYERMA', 'BF_AFF_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AWEYERMA', 'EFS_AFF_AUTHORIZER', 2);
harmony.usermgt.enrich_role_to_user('AWEYERMA', 'EFS_AFF_REQUESTOR', 2);
harmony.usermgt.enrich_role_to_user('AWEYERMA', 'HERMES_AFF_STATEMENT_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AWEYERMA', 'HERMES_AFF_TRANSACTION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AWEYERMA', 'ICL_AFF_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AWEYERMA', 'ICL_AFF_REQUESTOR', 2);
harmony.usermgt.enrich_role_to_user('AWEYERMA', 'IHCTF_AFF_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AWEYERMA', 'IHCTF_AFF_REQUESTOR', 2);
harmony.usermgt.enrich_role_to_user('AWEYERMA', 'IHC_AFF_POSITION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AWEYERMA', 'NETTING_AFF_REPORTER_ST', 2);
harmony.usermgt.enrich_role_to_user('AWEYERMA', 'OO_AFF_COCO_AUTH/REL', 2);
harmony.usermgt.enrich_role_to_user('AWEYERMA', 'OO_AFF_COCO_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AWEYERMA', 'OO_AFF_COCO_REQUESTOR', 2);
harmony.usermgt.enrich_role_to_user('AWEYERMA', 'RCM_TRANSACTION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('AWEYERMA', 'SUBLEDGER_CASH_POOL_REPORTS', 2);
harmony.usermgt.enrich_role_to_user('AWEYERMA', 'TPP_AFF_AUTHORIZER', 2);
harmony.usermgt.enrich_role_to_user('AWEYERMA', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 2);
harmony.usermgt.enrich_role_to_user('AWIMMER2', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('AWIMMER2', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AWIMMER2', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AWINGER', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AWOELFL', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('AYEO', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AYEO', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AYONG', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('AYONG', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('AZIEMINS', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('AZIEMINS', 'E-ICD_USER', 3);
harmony.usermgt.enrich_role_to_user('AZIEMINS', 'GXRS_GS_KEY_USER', 3);
harmony.usermgt.enrich_role_to_user('AZIEMINS', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AZIEMINS', 'HERMES_ID_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AZIEMINS', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AZIEMINS', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AZIEMINS', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AZIEMINS', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AZIEMINS', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AZIEMINS', 'IHC_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AZIEMINS', 'L-DRIVE_GS_USER', 3);
harmony.usermgt.enrich_role_to_user('AZIEMINS', 'NETTING_AFF_REPORTER_ST', 3);
harmony.usermgt.enrich_role_to_user('AZIEMINS', 'P2P_GS_KEY_USER', 3);
harmony.usermgt.enrich_role_to_user('AZIEMINS', 'REPORT_C4S_TO_SYM', 3);
harmony.usermgt.enrich_role_to_user('AZIEMINS', 'SAA_REPORTING', 3);
harmony.usermgt.enrich_role_to_user('AZIEMINS', 'SAP_PRD_GS_USER', 3);
harmony.usermgt.enrich_role_to_user('AZIEMINS', 'SWIFTCOM_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('AZIEMINS', 'SWIFTCOM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('AZIEMINS', 'SWIFTCOM_STATIC_DATA_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('AZIEMINS', 'TPP_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('AZIZZI', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('AZIZZI', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AZIZZI', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AZIZZI', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AZIZZI', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AZIZZI', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('AZIZZI', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('AZIZZI', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('AZIZZI', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('BARUGAY', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('BARUGAY', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('BBALLET', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BBARTOLJ', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('BBARTOLJ', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('BBICHO', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('BBICHO', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BBICHO', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BBOKETTA', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('BBOYLES', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('BBUREL', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('BBUREL', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('BBUREL', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('BCHABLOW', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('BCHEN47', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('BCOOLS', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BCOOLS', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('BCOOLS', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BCOOLS', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BCOOLS', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BCOOLS', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BCOOLS', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('BCOOLS', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BCOOLS', 'TPP_P2P_AFF_OFFER_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('BCORDER1', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('BCOUPAT', 'BF_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('BCOUPAT', 'OO_AFF_COCO_AUTH/REL', 1);
harmony.usermgt.enrich_role_to_user('BCOUPAT', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BCOUPAT', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('BCSASZAR', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BCSASZAR', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('BCSASZAR', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BCSASZAR', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BCSASZAR', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('BCSASZAR', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('BCSASZAR', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BCSASZAR', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'AMMF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'BAM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'BF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'CHAINS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'DLINK_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'EFS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'GXRS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'HARMONY_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'HB_COMBINATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'HB_COMBI_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'HERMES_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'ICL_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'IHCTF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'IT_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'MR_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'OO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'P2P_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'SAA_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'SAP_PRD_IT_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'SAP_PRD_IT_USER_DISPLAY', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'SUBLEDGER_CASH_POOL_REPORTS', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'SWIFTCOM_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'TOPS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'TPP_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BDEPAUW', 'UME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDIAZ', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('BDIAZ', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BDIAZ', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'ACCESS_EDGE_REPORTER_EMEA', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'ACCESS_EDGE_REPORTER_US', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'ACCESS_EDGE_SECURITY_ADMINISTRATOR_EMEA', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'ACCESS_EDGE_SECURITY_ADMINISTRATOR_US', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'AGENT_BANKDIR_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'APPLOG_ENDSTAMP_UPDATE', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'APPLOG_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'BAM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'BATCH_MT940_UPLOAD', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'BATCH_PAYMENT_PROCESSING', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'BF_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'BF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'CITIDIRECT_USER_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'COMMONS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'CURRENEX_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'DLINK_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'DLINK_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'E-ICD_ADMINISTRATOR', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'ECP_APPROVER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'EFS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'FM_RULES_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'HARMONY_TSGAM', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'HARMONY_TSGRM', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'HB_COMBINATION_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'HB_COMBI_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'HERMES_CASHMGT_EFFICIENCY_REP', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'HERMES_ID_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'ICL_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'IHCTF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'JPMORGAN_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'L-DRIVE_TSG_USER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'MISYS_USER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'MR_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'NETTING_AFF_REPORTER_ST', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'NETTING_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'NETTING_REPORTER_TC', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'OO_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'OO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'RCM_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'SAA_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'SAP_PRD_TSG_USER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'SUNGARD_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'SWIFTCOM_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'SWIFTCOM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'SWIFTCOM_STATIC_DATA_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'SWIFTREF_KEY_USER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'TOPS2', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'TOPS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'TPP_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'TRAX_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BDIELTJE', 'UME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BEREN1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('BEREN1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BEREN1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BERNSTBE', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('BERNSTBE', 'OO_AFF_ACCOUNT_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('BFABELLA', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('BFABELLA', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BFABELLA', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BFABELLA', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BFABER', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('BFABER', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BFABER', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BFABER', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BFABER', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BFABER', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('BFABER', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('BFABER', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BFELLOWS', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('BFELLOWS', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BFELLOWS', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('BFELLOWS', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('BFELLOWS', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('BFRICKER', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BFRICKER', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('BHERNAN5', 'IHC_AFF_POSITION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('BHERNAN5', 'NETTING_AFF_REQUESTOR_ST', 2);
harmony.usermgt.enrich_role_to_user('BHUFF', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('BIRIZAR1', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('BIRIZAR1', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('BJAMIES1', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BJAMIES1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('BJAMIES1', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BJAMIES1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BJAMIES1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BJAMIES1', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BJAMIES1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BJAMIES1', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('BJAMIES1', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('BJAMIES1', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BJAMIES1', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('BJAMIES1', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BJELTEMA', 'GXRS_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('BKILICER', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('BKILICER', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('BLETALLE', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('BLETALLE', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BLETALLE', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BMEDICA', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('BMEDICA', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BMEDICA', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('BMELGAZO', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('BMELGAZO', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('BMERTENS', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BMIS', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('BMIS', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BMIS', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BMIS', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BMYRGA', 'GXRS_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('BNAUDE', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('BOLEARY1', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BOLEARY1', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('BOLEARY1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('BOLEARY1', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('BOLEARY1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BOLEARY1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BOLEARY1', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BOLEARY1', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('BOLEARY1', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BOLEARY1', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('BOLEARY1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BOLEARY1', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('BOLEARY1', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BOLEARY1', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BONG', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BOSULLIV', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BPHARAOH', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('BPHARAOH', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('BPHARAOH', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BPHARAOH', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BPHARAOH', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BPHARAOH', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('BPIETRUS', 'GXRS_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('BPOLACIK', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BPOLACIK', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('BPOLACIK', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BPOLACIK', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BPOLACIK', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BPOLACIK', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BPOLACIK', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BPOLACIK', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('BPOLACIK', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BPOLACIK', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BPOLACIK', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('BPOLACIK', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BPRITCH1', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('BRAABE', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BRAABE', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('BRAABE', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('BRAABE', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BRAABE', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BRAABE', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BRAABE', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BRAABE', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BRAABE', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('BRAABE', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BRANERO', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('BRANERO', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BRANERO', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('BRANERO', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('BREITME1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('BREITME1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BREITME1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BREITME1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BREITME1', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('BREITME1', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('BRENGERW', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('BRENGERW', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BRODRIG8', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('BSABA', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('BSABA', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BSABA', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BSANDIN', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('BSANDIN', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('BSANDIN', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('BSANDIN', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('BSANDIN', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('BSANDIN', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('BSARENS', 'AMMF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'BAM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'BF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'CHAINS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'DLINK_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'EFS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'GXRS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'HARMONY_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'HB_COMBINATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'HB_COMBI_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'HERMES_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'ICL_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'IHCTF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'IHCTF_AFF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'IT_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'MR_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'OO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'P2P_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'SAA_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'SAP_PRD_IT_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'SAP_PRD_IT_USER_DISPLAY', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'SUBLEDGER_CASH_POOL_REPORTS', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'SWIFTCOM_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'TOPS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'TPP_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BSARENS', 'UME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BSEETUL', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('BSHAFFER', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('BSHAFFER', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('BSPEAR12', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'ACCESS_EDGE_REPORTER_EMEA', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'ACCESS_EDGE_REPORTER_US', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'ACCESS_EDGE_SECURITY_ADMINISTRATOR_EMEA', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'ACCESS_EDGE_SECURITY_ADMINISTRATOR_US', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'AGENT_BANKDIR_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'APPLOG_ENDSTAMP_UPDATE', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'APPLOG_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'BAM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'BATCH_MT940_UPLOAD', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'BATCH_PAYMENT_PROCESSING', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'BF_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'BF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'CITIDIRECT_USER_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'COMMONS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'CURRENEX_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'DLINK_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'DLINK_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'E-ICD_ADMINISTRATOR', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'ECP_APPROVER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'EFS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'FM_RULES_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'HARMONY_TSGAM', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'HARMONY_TSGRM', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'HB_COMBINATION_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'HB_COMBI_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'HERMES_CASHMGT_EFFICIENCY_REP', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'HERMES_ID_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'ICL_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'IHCTF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'JPMORGAN_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'L-DRIVE_TSG_USER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'MISYS_USER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'MR_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'NETTING_AFF_REPORTER_ST', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'NETTING_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'NETTING_REPORTER_TC', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'OO_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'OO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'RCM_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'SAA_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'SAP_PRD_TSG_USER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'SUNGARD_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'SWIFTCOM_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'SWIFTCOM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'SWIFTCOM_STATIC_DATA_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'SWIFTREF_KEY_USER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'TOPS2', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'TOPS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'TPP_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'TRAX_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BTHIJS2', 'UME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BTHOMAS1', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('BTHOMAS1', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('BTHOMAS1', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'AMMF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'BAM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'CHAINS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'DLINK_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'EFS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'GXRS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'HARMONY_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'HB_COMBINATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'HB_COMBI_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'HERMES_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'ICL_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'IHCTF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'IT_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'MR_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'OO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'P2P_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'SAP_PRD_IT_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'SAP_PRD_IT_USER_DISPLAY', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'SUBLEDGER_CASH_POOL_REPORTS', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'SWIFTCOM_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'TOPS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'TPP_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('BUNTERNA', 'UME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'ACCESS_EDGE_REPORTER_EMEA', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'ACCESS_EDGE_REPORTER_US', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'ACCESS_EDGE_SECURITY_ADMINISTRATOR_EMEA', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'ACCESS_EDGE_SECURITY_ADMINISTRATOR_US', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'AGENT_BANKDIR_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'AMMF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'APPLOG_ENDSTAMP_UPDATE', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'APPLOG_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'BAM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'BATCH_MT940_UPLOAD', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'BATCH_PAYMENT_PROCESSING', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'BF_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'BF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'BF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'CITIDIRECT_USER_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'COMMONS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'CURRENEX_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'DLINK_BO_SUPERVISOR', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'DLINK_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'DLINK_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'E-ICD_USER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'ECP_APPROVER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'EFS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'FM_RULES_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'GXRS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'HARMONY_TSGAM', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'HARMONY_TSGRM', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'HB_COMBINATION_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'HB_COMBI_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'HERMES_CASHMGT_EFFICIENCY_REP', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'HERMES_ID_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'ICL_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'IHCTF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'IHCTF_AFF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'JPMORGAN_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'L-DRIVE_TSG_USER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'MISYS_SUPERVISOR', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'MR_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'NETTING_AFF_REPORTER_ST', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'NETTING_BO_SUPERVISOR', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'NETTING_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'NETTING_REPORTER_TC', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'OO_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'OO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'P2P_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'RCM_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'SAA_BO_KEY_USER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'SAP_PRD_TSG_USER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'SUNGARD_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'SWIFTCOM_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'SWIFTCOM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'SWIFTCOM_STATIC_DATA_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'SWIFTREF_KEY_USER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'TOPS2', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'TOPS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'TPP_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'TRAX_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('BVERCAUT', 'UME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('BVEYCK', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('BVEYCK', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('BWENZEL', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('BYAN5', 'BANKREPORTING', 2);
harmony.usermgt.enrich_role_to_user('BYAN5', 'HERMES_AFF_STATEMENT_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('BYAN5', 'HERMES_AFF_TRANSACTION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('BYAN5', 'IHC_AFF_POSITION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('BYAN5', 'NETTING_AFF_REPORTER_ST', 2);
harmony.usermgt.enrich_role_to_user('BYAN5', 'NETTING_AFF_REQUESTOR_ST', 2);
harmony.usermgt.enrich_role_to_user('BYAN5', 'SUBLEDGER_CASH_POOL_REPORTS', 2);
harmony.usermgt.enrich_role_to_user('BYAN5', 'TPP_AFF_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('CACKENBO', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('CACUNA', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CACUNA', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CACUNA', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CAGAPIT3', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CAGAPIT3', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('CAMBAS', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CAMBAS', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CAMBROSI', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CAMBROSI', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('CAPGAR1', 'GXRS_SSC_MANAGER', 2);
harmony.usermgt.enrich_role_to_user('CAPGAR1', 'SWIFTCOM_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('CASSMANN', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('CASSMANN', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CBAILEY', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CBARONA', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('CBARTHEL', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('CBARTHEL', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CBARTHEL', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CBIGI', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CBIGI', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CBIGI', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CBODART', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CBODART', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CBODART', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CBODART', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CBOLIVAR', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CBOLLER', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CBOLLER', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CBOLLER', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CBOLLER', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CBOLLER', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CBOLLER', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CBOLLER', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('CBOUDAKI', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CBRAHMB1', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CBRIARD', 'BF_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('CBRIARD', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CBRIARD', 'OO_AFF_COCO_AUTH/REL', 1);
harmony.usermgt.enrich_role_to_user('CBRIARD', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CBRIARD', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CCAMERO', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CCAMERO', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CCAMERO', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CCAMERO', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CCAMERO', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CCAMERO', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CCAMERO', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CCAMERO', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CCARANDA', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CCERPA1', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CCERPA1', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CCERPA1', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CCERPA1', 'BATCH_MT940_UPLOAD_US', 3);
harmony.usermgt.enrich_role_to_user('CCERPA1', 'BF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CCERPA1', 'BF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('CCERPA1', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CCERPA1', 'HB_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('CCERPA1', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CCERPA1', 'OO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CCERPA1', 'OO_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('CCERPA1', 'SAA_REPORTING', 3);
harmony.usermgt.enrich_role_to_user('CCERPA1', 'SAP_PRD_PR_FO_USER', 3);
harmony.usermgt.enrich_role_to_user('CCERPA1', 'SUNGARD_FO_USER', 3);
harmony.usermgt.enrich_role_to_user('CCHAUHA', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CCORNEL3', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CCORNEL3', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('CCUSUMA2', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CCUSUMA2', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CCUSUMA2', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CDAVENPO', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('CDENG2', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CDENG2', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('CDIAS', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CDIAS', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CDIAS', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CDIAS', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CDIAS', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CDIAS', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CDIAS', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CDIAS', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('CDIAS', 'TPP_P2P_AFF_OFFER_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CDIAS', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CDILLA', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CDIMAANO', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CDIMAANO', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CDOSHI', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CDOSHI', 'BF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CDOSHI', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CDOSHI', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CDOSHI', 'OO_AFF_SAMEDAY_COCO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CESCALA', 'IHC_AFF_POSITION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('CESCALA', 'NETTING_AFF_REQUESTOR_ST', 2);
harmony.usermgt.enrich_role_to_user('CFERNAN7', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CFINOGEN', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CFISHER', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('CFUHS', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CFUHS', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CFUHS', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CFUHS', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CFUHS', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CFUHS', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('CFUHS', 'TPP_P2P_AFF_OFFER_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CGASKILL', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CGASKILL', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CGASKILL', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CGASKILL', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CGASKILL', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CGASKILL', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CGASKILL', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CGASKILL', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CGASKILL', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CGASKILL', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CGASKILL', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CGASKILL', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('CGASKILL', 'TPP_P2P_AFF_OFFER_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CGEERTSE', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CGEERTSE', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CGEERTSE', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CGEERTSE', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CGEERTSE', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CGEERTSE', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CGEERTSE', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CGEERTSE', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CGEERTSE', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CGEERTSE', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CGEERTSE', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CGEERTSE', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CGEERTSE', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CGEERTSE', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('CGEERTSE', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CGHEORGH', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CGOULBOU', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CGOULBOU', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CGRANDSI', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CGRANDSI', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CGRANDSI', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CGRANDSI', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CGRANDSI', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CGRANDSI', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('CGRANDSI', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CGREEN', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('CHAHNE', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CHAHNE', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CHAHNE', 'OO_AFF_ACCOUNT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CHAHNE', 'OO_AFF_ACCOUNT_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CHEDEBY', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CHEDEBY', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CHEDEBY', 'BF_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('CHEDEBY', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CHEDEBY', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CHEDEBY', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CHEDEBY', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CHEDEBY', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CHEDEBY', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CHEDEBY', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('CHEDEBY', 'OO_AFF_COCO_AUTH/REL', 1);
harmony.usermgt.enrich_role_to_user('CHEDEBY', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CHEDEBY', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('CHEDEBY', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('CHERNA65', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CHERNA65', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CHERNA65', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CHERNA65', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CHERNA65', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CHERNA65', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CHERNA65', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CHERNA65', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CHERNA65', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CHERNA65', 'MR_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CHERNA65', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('CHERNA65', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CHERNA65', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CHERNA65', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CHERNA65', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('CHERNA65', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CHERNA65', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CHIGUCHI', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CHUANG10', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CIAVARON', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CIAVARON', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('CJACINT1', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CJACINT1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CJACINT1', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CJACINT1', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CJACINT1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CJACINT1', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CJACINT1', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CJACINT1', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CLEBRUN2', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('CLEE28', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('CLEE28', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('CLI13', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CLI13', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CLIN1', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('CLIN6', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CLOPES7', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CLOPES7', 'BAM_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('CLOPES7', 'BAM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CLOPES7', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('CLOPES7', 'HB_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('CLOPES7', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CLOPES7', 'HB_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('CLOPES7', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CLOPES7', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CLOPES7', 'HERMES_CASHMGT_EFFICIENCY_REP', 3);
harmony.usermgt.enrich_role_to_user('CLOPES7', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CLOPES7', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CLOPES7', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CLOPES7', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CLOPES7', 'ICL_AFF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('CLOPES7', 'ICL_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CLOPES7', 'MR_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CLOPES7', 'RCM_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CLOPES7', 'SAP_PRD_LA_FO_USER', 3);
harmony.usermgt.enrich_role_to_user('CLOPES7', 'SWIFTCOM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CLOPES7', 'TOPS2', 3);
harmony.usermgt.enrich_role_to_user('CLOPES7', 'TOPS_COUNTERPARTY_EXPOSURE', 3);
harmony.usermgt.enrich_role_to_user('CLOVIE', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('CLOZANO1', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('CLOZANO1', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('CMALLILL', 'NETTING_AFF_REQUESTOR_ST', 2);
harmony.usermgt.enrich_role_to_user('CMALLILL', 'RCM_TRANSACTION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('CMALLILL', 'SUBLEDGER_CASH_POOL_REPORTS', 2);
harmony.usermgt.enrich_role_to_user('CMARIAGE', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CMARIAGE', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CMARIAGE', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CMARIAGE', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CMARIAGE', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CMARIAGE', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CMARIAGE', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('CMARIAGE', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CMARQUEZ', 'IHC_AFF_POSITION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('CMARQUEZ', 'NETTING_AFF_REQUESTOR_ST', 2);
harmony.usermgt.enrich_role_to_user('CMARSIAN', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CMCCLEAR', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CMCCLEAR', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CMCDONN4', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CMEDRAN1', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CMEDRAN1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CMEDRAN1', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CMEDRAN1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CMEDRAN1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CMEDRAN1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CMEDRAN1', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('CMEDRAN1', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CMEDRAN1', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CMEDRAN1', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CMEDRAN1', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('CMEDRAN1', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CMEDRAN1', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CMICHEL1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CMICHEL1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CMICHEL1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CMICHEL1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CMICHEL1', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('CMICHEL1', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CMISSIN1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CMISSIN1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CMISSIN1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CMISSIN1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CMOLINA4', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CMOREL', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('CMORELL', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('CMORELL', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('CMUNDHEN', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('CMURRAY1', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CMURRAY1', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CMURRAY1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CMURRAY1', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('CMURRAY1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CMURRAY1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CMURRAY1', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CMURRAY1', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CMURRAY1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CMURRAY1', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('CNAUWELA', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('CNAUWELA', 'DLINK_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CNAUWELA', 'GXRS_GS_KEY_USER', 3);
harmony.usermgt.enrich_role_to_user('CNAUWELA', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CNAUWELA', 'HERMES_ID_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CNAUWELA', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CNAUWELA', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CNAUWELA', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CNAUWELA', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CNAUWELA', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CNAUWELA', 'IHC_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CNAUWELA', 'L-DRIVE_GS_USER', 3);
harmony.usermgt.enrich_role_to_user('CNAUWELA', 'NETTING_AFF_REPORTER_ST', 3);
harmony.usermgt.enrich_role_to_user('CNAUWELA', 'P2P_GS_KEY_USER', 3);
harmony.usermgt.enrich_role_to_user('CNAUWELA', 'REPORT_C4S_TO_SYM', 3);
harmony.usermgt.enrich_role_to_user('CNAUWELA', 'SAA_REPORTING', 3);
harmony.usermgt.enrich_role_to_user('CNAUWELA', 'SAP_PRD_GS_USER', 3);
harmony.usermgt.enrich_role_to_user('CNAUWELA', 'SWIFTCOM_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('CNAUWELA', 'SWIFTCOM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CNAUWELA', 'SWIFTCOM_STATIC_DATA_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('CNAUWELA', 'TPP_GS_KEY_USER', 3);
harmony.usermgt.enrich_role_to_user('CNELSO13', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CNOGUEIR', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CNOGUEIR', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CNOGUEIR', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('COLIVEI3', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('CPICARI1', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CPICARI1', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('CPINOVEN', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CPIOT', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('CPIOT', 'CITIDIRECT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CPIOT', 'E-ICD_ADMINISTRATOR', 3);
harmony.usermgt.enrich_role_to_user('CPIOT', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CPIOT', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CPIOT', 'HERMES_ID_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CPIOT', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CPIOT', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CPIOT', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CPIOT', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CPIOT', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CPIOT', 'IHC_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CPIOT', 'L-DRIVE_BR_USER', 3);
harmony.usermgt.enrich_role_to_user('CPIOT', 'NETTING_AFF_REPORTER_ST', 3);
harmony.usermgt.enrich_role_to_user('CPIOT', 'P2P_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CPIOT', 'REPORT_C4S_TO_SYM', 3);
harmony.usermgt.enrich_role_to_user('CPIOT', 'SAA_REPORTING', 3);
harmony.usermgt.enrich_role_to_user('CPIOT', 'SAP_PRD_BR_USER', 3);
harmony.usermgt.enrich_role_to_user('CPOLO1', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CREAL', 'IHC_AFF_POSITION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('CREAL', 'NETTING_AFF_REQUESTOR_ST', 2);
harmony.usermgt.enrich_role_to_user('CREAL', 'SUBLEDGER_CASH_POOL_REPORTS', 2);
harmony.usermgt.enrich_role_to_user('CRENTMEI', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CRENTMEI', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CRENTMEI', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CRENTMEI', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CRENTMEI', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CRENTMEI', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('CRENTMEI', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CRENTMEI', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('CRENTMEI', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CREZEND4', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CSAHAGUN', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSAHAGUN', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CSAHAGUN', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSAHAGUN', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSAHAGUN', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSAHAGUN', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSAHAGUN', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSAHAGUN', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('CSAHAGUN', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CSAHAGUN', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSALVAD1', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSALVAD1', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('CSALVAD1', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CSANTELL', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('CSCHMITZ', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSCHMITZ', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CSCHMITZ', 'OO_AFF_ACCOUNT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSCHMITZ', 'OO_AFF_ACCOUNT_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CSETYONO', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('CSLATTER', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSLATTER', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CSLATTER', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSLATTER', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSLATTER', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSLATTER', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSLATTER', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSLATTER', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('CSOBOT1', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSOBOT1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CSOBOT1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSOBOT1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSOBOT1', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSOBOT1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSOBOT1', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('CSOBOT1', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('CSOBOT1', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSOULIE1', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSOULIE1', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('CSOUZ11', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CSTEENSS', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSTEENSS', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CSTEENSS', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSTEENSS', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSTEENSS', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSTEENSS', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSTEENSS', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSTEENSS', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('CSTORMS1', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSTORMS1', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CSTORMS1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CSTORMS1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSTORMS1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSTORMS1', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSTORMS1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSTORMS1', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CSTORMS1', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSTORMS1', 'REPORT_C4S_TO_SYM', 3);
harmony.usermgt.enrich_role_to_user('CSTORMS1', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('CSTORMS1', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CSTRAUSS', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CSUNDIN', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CTAGUCH1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CTAGUCH1', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CTAGUCH1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CTAGUCH1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CTAGUCH1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CTAGUCH1', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CTAGUCH1', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CTAGUCH1', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('CTAN5', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('CTHORNE', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CTHORNE', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CTHORNE', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'AMMF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'AMMF_AFF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'APPLOG_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'BATCH_HERMES-IHB', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'BATCH_MT940_UPLOAD_US', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'BF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'BF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'EFS_AFF_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'EFS_AFF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'EFS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'HB_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'HB_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'HERMES_CASHMGT_EFFICIENCY_REP', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'HERMES_ID_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'MR_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'MR_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'NETTING_AFF_REPORTER_ST', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'OO_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'OO_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'OO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'OO_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'RCM_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'SAP_PRD_US/PR_FO_USER', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'SUBLEDGER_CASH_POOL_REPORTS', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'SUNGARD_FO_USER', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'SWIFTCOM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'TOPS2', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'TOPS_COUNTERPARTY_EXPOSURE', 3);
harmony.usermgt.enrich_role_to_user('CTOMCZAK', 'TPP_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CTWOMEY1', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CTWOMEY1', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CVAES', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CVAES', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CVAES', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CVAES', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CVAES', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CVAES', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('CVANSTE1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CVANSTE1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CVANSTE1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CVANSTE1', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CVANSTE1', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CVANSTE1', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CVERGARA', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CVERGARA', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CVERGARA', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CVERGARA', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CVERGARA', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CVERGARA', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CVERGARA', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CVERGARA', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CVERGARA', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('CVILLAN1', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CVILLAN1', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CVILLARE', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CVONLANT', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CWAGNER5', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CWAGNER5', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('CWAGNER5', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CWAGNER5', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CWAGNER5', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CWAGNER5', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CWAGNER5', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CWAGNER5', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CWAGNER5', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CWAGNER5', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('CWAGNER5', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CWALKER5', 'NETTING_AFF_REPORTER_ST', 2);
harmony.usermgt.enrich_role_to_user('CWALKER8', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CWONG3', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CWONG3', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('CWU13', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('CYEAP', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('CYEAP', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('CYEAP', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('CYEO1', 'AMMF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'AMMF_AFF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'AMMF_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'APPLOG_ENDSTAMP_UPDATE', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'BAM_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'BAM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'BATCH_MT940_UPLOAD', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'BF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'EFS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'HB_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'HB_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'HERMES_CASHMGT_EFFICIENCY_REP', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'HERMES_ID_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'ICL_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'ICL_AFF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'ICL_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'ICL_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'IHCTF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'MR_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'MR_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'NETTING_AFF_REPORTER_ST', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'NETTING_AFF_REQUESTOR_ST', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'NETTING_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'NETTING_REPORTER_TC', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'OO_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'OO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'OO_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'RCM_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'SAP_PRD_AP_FO_USER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'SUBLEDGER_CASH_POOL_REPORTS', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'SWIFTCOM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'TOPS2', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'TOPS_COUNTERPARTY_EXPOSURE', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'TPP_AFF_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('CYEO1', 'TPP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('CYONG1', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CYONG1', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CYONG1', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('CYONG1', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('DAMAYA7', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DASHITEY', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DASHITEY', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DASHITEY', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DASHITEY', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DASHITEY', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DASHITEY', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DASHITEY', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('DBELL6', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DBHAWSAR', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DBIBON', 'IHC_AFF_POSITION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('DBIBON', 'NETTING_AFF_REQUESTOR_ST', 2);
harmony.usermgt.enrich_role_to_user('DBIBON', 'SUBLEDGER_CASH_POOL_REPORTS', 2);
harmony.usermgt.enrich_role_to_user('DBRACHS', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DBREUGEL', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DBREUGEL', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DBREUGEL', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DBRINTZI', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('DCAMPO0', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DCAMPO0', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DCAMPOS2', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DCATTANE', 'EFS_AFF_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('DCERA1', 'IHC_AFF_POSITION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('DCERA1', 'NETTING_AFF_REQUESTOR_ST', 2);
harmony.usermgt.enrich_role_to_user('DCERA1', 'SUBLEDGER_CASH_POOL_REPORTS', 2);
harmony.usermgt.enrich_role_to_user('DCHAO1', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DCORDOVE', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DCORDOVE', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('DCRILLY', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DCRILLY', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DCRILLY', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DCRILLY', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DCRILLY', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('DCRILLY', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'AGENT_FO_IHB_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'AMMF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'AMMF_AFF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'APPLOG_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'BAM_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'BAM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'BATCH_C4S_TO_SYM', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'BATCH_MT940_UPLOAD', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'BF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'CITIDIRECT_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'E-ICD_USER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'EFS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'HB_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'HB_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'HERMES_CASHMGT_EFFICIENCY_REP', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'HERMES_ID_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'ICL_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'ICL_AFF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'ICL_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'ICL_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'IHCTF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'IHCTF_AFF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'IHCTF_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'IHC_EXPORT', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'L-DRIVE_FO_USER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'MR_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'MR_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'NETTING_AFF_REPORTER_ST', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'NETTING_AFF_REQUESTOR_ST', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'NETTING_REPORTER_TC', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'NETTING_REQUESTOR_TC', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'OO_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'OO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'OO_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'RCM_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'SAP_PRD_RCM_EMEA_USER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'SUBLEDGER_CASH_POOL_REPORTS', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'SWIFTCOM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DCRUANES', 'TPP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DDELACRU', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DDELACRU', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('DEDWARD2', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DEDWARD2', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DEDWARD2', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DEDWARD2', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DEDWARD2', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('DEDWARD2', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DEDWARD2', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DEGGERS1', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('DEGGERS1', 'DLINK_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DEGGERS1', 'GXRS_GS_KEY_USER', 3);
harmony.usermgt.enrich_role_to_user('DEGGERS1', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DEGGERS1', 'HERMES_ID_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DEGGERS1', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DEGGERS1', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DEGGERS1', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DEGGERS1', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DEGGERS1', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DEGGERS1', 'IHC_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DEGGERS1', 'L-DRIVE_GS_USER', 3);
harmony.usermgt.enrich_role_to_user('DEGGERS1', 'NETTING_AFF_REPORTER_ST', 3);
harmony.usermgt.enrich_role_to_user('DEGGERS1', 'P2P_GS_KEY_USER', 3);
harmony.usermgt.enrich_role_to_user('DEGGERS1', 'REPORT_C4S_TO_SYM', 3);
harmony.usermgt.enrich_role_to_user('DEGGERS1', 'SAA_REPORTING', 3);
harmony.usermgt.enrich_role_to_user('DEGGERS1', 'SAP_PRD_GS_USER', 3);
harmony.usermgt.enrich_role_to_user('DEGGERS1', 'SWIFTCOM_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('DEGGERS1', 'SWIFTCOM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DEGGERS1', 'SWIFTCOM_STATIC_DATA_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('DEGGERS1', 'TPP_GS_KEY_USER', 3);
harmony.usermgt.enrich_role_to_user('DFEJES', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DFEJES', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DFEJES', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DFEJES', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DFEJES', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DFEJES', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DFEJES', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DFELLER1', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DFELLER1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DFELLER1', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DFELLER1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DFELLER1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DFELLER1', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DFELLER1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DFELLER1', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('DFELLER1', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DFELLER1', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DFELLER1', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('DFELLER1', 'TPP_P2P_AFF_OFFER_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DFOO3', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DFOO3', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DFOO3', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('DFORTUN3', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DFORTUN3', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DFORTUN3', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DFORTUN3', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DFORTUN3', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DFRISOVA', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DFRISOVA', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DFRISOVA', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DFRISOVA', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DFRISOVA', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DFRISOVA', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DFRISOVA', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('DFRISOVA', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DFRISOVA', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('DFRISOVA', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DGEELAN', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DGEELAN', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DGEELAN', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DGEELAN', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DGEELAN', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DGEELAN', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DGEELAN', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DGEELAN', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DGEELAN', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DGEELAN', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('DGEELAN', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DGOVAERT', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DGOVAERT', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DGOVAERT', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DGOVAERT', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DGOVAERT', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DGOVAERT', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DGOVAERT', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DGOVAERT', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DHANKI33', 'GXRS_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('DHEALY1', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DHEALY1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DHEALY1', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DHEALY1', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DHEALY1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DHEALY1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DHEALY1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DHEALY1', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DHEALY1', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('DHEALY1', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DHO3', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DHO3', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DHOSOKAW', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DHUERLIM', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DHUERLIM', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DHUERLIM', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DHUERLIM', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DHUERLIM', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DHUERLIM', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DHUERLIM', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DHUERLIM', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DHUERLIM', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DHUERLIM', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('DHUERLIM', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DIEPHT', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DIEPHT', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DIEPHT', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DINZE', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DIZURIET', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DJACOBS5', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DJACOBS5', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DJACOBS5', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DJACOBS5', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DJACOBS5', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DJACOBS5', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DJACOBS5', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DJACOBS5', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('DJACOBS5', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DJACOBS5', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('DJAKUBIA', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DJAKUBIA', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DJAKUBIA', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DJAKUBIA', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DJAKUBIA', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DJAKUBIA', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DJAKUBIA', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DJAKUBIA', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DJAKUBIA', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('DJANDEJS', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DJANDEJS', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DJANDEJS', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DJANDEJS', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DJANDEJS', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DJANDEJS', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DJOHNS45', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DKUBEJOV', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DKUBEJOV', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DKUBEJOV', 'BF_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DKUBEJOV', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DKUBEJOV', 'BF_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('DKUBEJOV', 'BF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('DKUBEJOV', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DKUBEJOV', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DKUBEJOV', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DKUBEJOV', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DKUBEJOV', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DKUBEJOV', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('DKUBEJOV', 'OO_AFF_COCO_AUTH/REL', 1);
harmony.usermgt.enrich_role_to_user('DKUBEJOV', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DKUBEJOV', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DKUBEJOV', 'TPP_P2P_AFF_OFFER_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DLABUDE', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DLABUDE', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DLABUDE', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DLABUDE', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DLABUDE', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DLABUDE', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('DLOSKOVA', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DLOSKOVA', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DLOSKOVA', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DLOSKOVA', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DLOSKOVA', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DLOSKOVA', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DLOSKOVA', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DLOSKOVA', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('DLOSKOVA', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DLOSKOVA', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('DMABANT', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DMABANT', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DMABANT', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DMABANT', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DMABANT', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DMABANT', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DMABANT', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DMABANT', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DMABANT', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DMABANT', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('DMABANT', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DMABANT', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DMABANT', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DMABANT', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DMABANT', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DMACALIN', 'IHC_AFF_POSITION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('DMACALIN', 'NETTING_AFF_REPORTER_ST', 2);
harmony.usermgt.enrich_role_to_user('DMACALIN', 'NETTING_AFF_REQUESTOR_ST', 2);
harmony.usermgt.enrich_role_to_user('DMACALIN', 'SUBLEDGER_CASH_POOL_REPORTS', 2);
harmony.usermgt.enrich_role_to_user('DMANSFELD', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DMANSFELD', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DMANSFELD', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DMANSFELD', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DMANSFELD', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DMANSFELD', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DMANSFELD', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DMARINO3', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DMARKALO', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DMARKALO', 'BF_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DMARKALO', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DMARKALO', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DMARKALO', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DMARKALO', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DMARKALO', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DMARKALO', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DMARKALO', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('DMARKALO', 'OO_AFF_COCO_AUTH/REL', 1);
harmony.usermgt.enrich_role_to_user('DMARKALO', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DMARKALO', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DMARKALO', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('DMARKALO', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DMARKALO', 'TPP_P2P_AFF_OFFER_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DMENARD', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DMENARD', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('DMICKEY', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DMOLINEA', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DMOLINEA', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DMOLINEA', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DMOLINEA', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DMOLINEA', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DMOLINEA', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DMOLINEA', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DNAKAMIT', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DOCONNE2', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DOLIVE20', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DOMAHONY', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DOMAHONY', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DOMAHONY', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'AMMF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'BAM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'BF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'CHAINS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'DLINK_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'EFS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'GXRS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'HARMONY_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'HB_COMBINATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'HB_COMBI_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'HERMES_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'ICL_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'IHCTF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'IT_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'MR_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'OO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'P2P_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'SAP_PRD_IT_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'SAP_PRD_IT_USER_DISPLAY', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'SUBLEDGER_CASH_POOL_REPORTS', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'SWIFTCOM_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'TOPS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'TPP_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('DOPDBEEC', 'UME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DOSULLI9', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DOSULLI9', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DOSULLI9', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DOSULLI9', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DOSULLI9', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DOSULLI9', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DOSULLI9', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DOSULLI9', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DOSULLI9', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DOSULLI9', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('DOSULLI9', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DOSULLI9', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DOSULLI9', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('DPANELO', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DPANELO', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DPANELO', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DPHILL11', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DPINEDA7', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DPIROCHO', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DPIROCHO', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DPIROCHO', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DPIROCHO', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DPIROCHO', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DPIROCHO', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DPLOSCA2', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DPLOSCA2', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DPLOSCA2', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('DPLOSCA2', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DPLOSCA2', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('DPLOSCA2', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DPOWER', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DPOWER', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DPOWER', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DPOWER', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DPOWER', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DPOWER', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DPOWER', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DRICHAR4', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DRIVERA1', 'NETTING_AFF_REQUESTOR_ST', 2);
harmony.usermgt.enrich_role_to_user('DRIVERA1', 'RCM_TRANSACTION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('DRIVERA1', 'SUBLEDGER_CASH_POOL_REPORTS', 2);
harmony.usermgt.enrich_role_to_user('DROBBIN3', 'BF_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DROBBIN3', 'OO_AFF_SAMEDAY_COCO_AUTH/REL', 3);
harmony.usermgt.enrich_role_to_user('DROBBIN3', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DROSE3', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DROSE3', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DROSE3', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DROSE3', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DROSE3', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DROSE3', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DROSE3', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DROSE3', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DROSE3', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('DRUAN', 'NETTING_AFF_REQUESTOR_ST', 2);
harmony.usermgt.enrich_role_to_user('DSANER', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DSANER', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('DSCAVIL2', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DSELETAR', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSELETAR', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DSELETAR', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSELETAR', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSELETAR', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSELETAR', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSELETAR', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSELETAR', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DSELETAR', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSELETAR', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSELETAR', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('DSELETAR', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSELETAR', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSIDLOW', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DSIDLOW', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSIDLOW', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DSIDLOW', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSIDLOW', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSIDLOW', 'OO_AFF_ACCOUNT_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DSILVA52', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DSIMON4', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DSLADKOV', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DSLADKOV', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DSMITH10', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DSMITH10', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DSMITH40', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('DSNELLG1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DSNELLG1', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSNELLG1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSNELLG1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSNELLG1', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSNELLG1', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DSNELLG1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSNELLG1', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DSNELLG1', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSUAREZ2', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('DSUJICA', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSUJICA', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DSUJICA', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DSUJICA', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSUJICA', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSUJICA', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSUJICA', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSUJICA', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DSUJICA', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSUJICA', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('DSUJICA', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DSUJICA', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DTANG1', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DTANG1', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DTANG1', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('DUDECHUK', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DUDECHUK', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DUDECHUK', 'BF_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DUDECHUK', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DUDECHUK', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DUDECHUK', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DUDECHUK', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DUDECHUK', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DUDECHUK', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DUDECHUK', 'OO_AFF_COCO_AUTH/REL', 1);
harmony.usermgt.enrich_role_to_user('DUDECHUK', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DUDECHUK', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DUDECHUK', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('DUDECHUK', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DUNGPT', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DUNGPT', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DUNGPT', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('DVANAEL', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DVANAEL', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('DVANAEL', 'BATCH_MT940_UPLOAD', 3);
harmony.usermgt.enrich_role_to_user('DVANAEL', 'EFS_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DVANAEL', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DVANAEL', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DVANAEL', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DVANAEL', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DVANAEL', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DVANAEL', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DVANAEL', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DVANAEL', 'ICL_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DVANAEL', 'IHCTF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DVANAEL', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DVANAEL', 'L-DRIVE_ACC_USER', 3);
harmony.usermgt.enrich_role_to_user('DVANAEL', 'NETTING_AFF_REPORTER_ST', 3);
harmony.usermgt.enrich_role_to_user('DVANAEL', 'NETTING_REPORTER_TC', 3);
harmony.usermgt.enrich_role_to_user('DVANAEL', 'RCM_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DVANAEL', 'SAP_PRD_ACC_USER', 3);
harmony.usermgt.enrich_role_to_user('DVANAEL', 'SUBLEDGER_CASH_POOL_REPORTS', 3);
harmony.usermgt.enrich_role_to_user('DVANAEL', 'TPP_P2P_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DVANAEL', 'TPP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('DVANARS', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('DVANARS', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DVERDIER', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('DWAHYUNI', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DWILDMAN', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DWILDMAN', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('DYEH', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('DZARN', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('DZARN', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DZARN', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('DZARN', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EAGAWIN', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EAGAWIN', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EAGAWIN', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EAGAWIN', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EAGAWIN', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EAGAWIN', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EAGAWIN', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EAGAWIN', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('EAGAWIN', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('EAGAWIN', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EAGAWIN', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EAGAWIN', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('EAGAWIN', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EAGAWIN', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EALCANT2', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('EALCANT2', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('EALCANT2', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('EAMATO2', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EAMATO2', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EAMATO2', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EAMATO2', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EAMATO2', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EAMATO2', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EAMATO2', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EAMATO2', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EAMATO2', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EAMATO2', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('EAMATO2', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EAMATO2', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('EAMATO2', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EANWAR', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EANWAR', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EANWAR', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('EAQUINO3', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('EAQUINO3', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('EAQUINO3', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EARENBO', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EARENBO', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EARENBO', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EARENBO', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EARENBO', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EARENBO', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EARENBO', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EARENBO', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EARENBO', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('EARENBO', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EARENBO', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EARENBO', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'ACCESS_EDGE_REPORTER_EMEA', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'ACCESS_EDGE_REPORTER_US', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'ACCESS_EDGE_SECURITY_ADMINISTRATOR_EMEA', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'ACCESS_EDGE_SECURITY_ADMINISTRATOR_US', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'AGENT_BANKDIR_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'APPLOG_ENDSTAMP_UPDATE', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'APPLOG_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'BAM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'BATCH_MT940_UPLOAD', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'BATCH_PAYMENT_PROCESSING', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'BF_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'BF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'COMMONS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'CURRENEX_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'DLINK_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'ECP_APPROVER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'EFS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'FM_RULES_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'HARMONY_STATIC_DATA_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'HARMONY_TSGAM', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'HARMONY_TSGRM', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'HB_COMBINATION_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'HB_COMBI_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'HERMES_CASHMGT_EFFICIENCY_REP', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'HERMES_ID_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'ICL_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'IHCTF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'JPMORGAN_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'L-DRIVE_TSG_USER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'MISYS_USER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'NETTING_AFF_REPORTER_ST', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'NETTING_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'NETTING_REPORTER_TC', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'OO_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'OO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'RCM_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'SAA_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'SAP_PRD_TSG_USER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'SUNGARD_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'SWIFTCOM_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'SWIFTCOM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'SWIFTCOM_STATIC_DATA_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'SWIFTREF_KEY_USER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'TOPS2', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'TOPS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'TPP_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'TRAX_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EAUGUSTY', 'UME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EAVILA2', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('EBALADJA', 'NETTING_AFF_REPORTER_ST', 2);
harmony.usermgt.enrich_role_to_user('EBALADJA', 'RCM_TRANSACTION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('EBALADJA', 'SUBLEDGER_CASH_POOL_REPORTS', 2);
harmony.usermgt.enrich_role_to_user('EBARGAS', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('EBARNA', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EBARNA', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EBARNA', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EBARNA', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('EBARNA', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EBARNA', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EBARNA', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EBARNA', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('EBARNA', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('EBARNA', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EBARNA', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('EBARUCH', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('EBARUCH', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EBARUCH', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('EBENAYON', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('EBERGAMA', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EBRUGGE', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ECAP', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ECAP', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ECAP', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ECAP', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ECAP', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ECAP', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ECAP', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ECAP', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ECAP', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ECAP', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ECAP', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'ACCESS_EDGE_REPORTER_EMEA', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'ACCESS_EDGE_REPORTER_US', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'ACCESS_EDGE_SECURITY_ADMINISTRATOR_EMEA', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'ACCESS_EDGE_SECURITY_ADMINISTRATOR_US', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'AGENT_BANKDIR_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'APPLOG_ENDSTAMP_UPDATE', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'APPLOG_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'BAM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'BATCH_MT940_UPLOAD', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'BATCH_PAYMENT_PROCESSING', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'BF_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'BF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'COMMONS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'CURRENEX_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'DLINK_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'DLINK_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'ECP_APPROVER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'EFS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'FM_RULES_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'HARMONY_TSGAM', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'HARMONY_TSGRM', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'HB_COMBINATION_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'HB_COMBI_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'HERMES_CASHMGT_EFFICIENCY_REP', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'HERMES_ID_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'ICL_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'IHCTF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'JPMORGAN_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'L-DRIVE_TSG_USER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'MISYS_USER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'NETTING_AFF_REPORTER_ST', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'NETTING_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'NETTING_REPORTER_TC', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'OO_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'OO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'RCM_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'SAA_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'SAP_PRD_TSG_USER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'SUNGARD_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'SWIFTCOM_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'SWIFTCOM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'SWIFTCOM_STATIC_DATA_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'SWIFTREF_KEY_USER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'TOPS2', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'TOPS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'TPP_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'TRAX_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('ECOECKEL', 'UME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EDEFORRE', 'TPP_AFF_STOP_PAYMENT', 1);
harmony.usermgt.enrich_role_to_user('EDELACR1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EDELACR1', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EDELACR1', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EDELACR1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EDELACR1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EDELACR1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EDELACR1', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('EDELACR1', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EDELACR1', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EDELACR1', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('EDELGADO', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('EENRADE', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EENRADE', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EENRADE', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EENRADE', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EENRADE', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EENRADE', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('EENRADE', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('EENRADE', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EENRADE', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('EENRADE', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EENRADE', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EESTRELL', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EESTRELL', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EESTRELL', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EESTRELL', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EFIORI', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EFIORI', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EFIORI', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EFIORI', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EFOLDI', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EFOLDI', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EFOLDI', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EFOLDI', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EFOLDI', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EFOLDI', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EFOLDI', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EFOLDI', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EFOLDI', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('EFOLDI', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('EFRASER', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EFRASER', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EFRASER', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EFRASER', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EFRASER', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EFRASER', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EFRASER', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('EFRASER', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EGALINAT', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('EGALINAT', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EGAN5', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'APPLOG_ENDSTAMP_UPDATE', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'APPLOG_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'BAM_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'BAM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'BATCH_C4S_TO_SYM', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'BATCH_MT940_UPLOAD', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'BATCH_PAYMENT_PROCESSING', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'BF_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'BF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'BF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'EFS_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'EFS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'HERMES_CASHMGT_EFFICIENCY_REP', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'HERMES_ID_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'ICL_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'IHCTF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'IHC_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'MR_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'NETTING_AFF_REPORTER_ST', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'NETTING_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'NETTING_REPORTER_TC', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'OO_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'OO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'P2P_RTSC_ASIAPAC_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'RCM_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'REPORT_C4S_TO_SYM', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'SAA_REPORTING', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'SAP_PRD_AP_MO_ACC_USER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'SAP_PRD_AP_MO_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'SUBLEDGER_CASH_POOL_REPORTS', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'SWIFTCOM_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'SWIFTCOM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'TOPS2', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'TOPS_COUNTERPARTY_EXPOSURE', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'TPP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EGAN5', 'TRAX_MO_USER', 3);
harmony.usermgt.enrich_role_to_user('EGHATTAS', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EGHATTAS', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EGHATTAS', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EGHATTAS', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EGHATTAS', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EGHATTAS', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EGHATTAS', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('EGHATTAS', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('EGHATTAS', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EGHATTAS', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('EGHATTAS', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EGHATTAS', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EGIRONI1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EGIRONI1', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('EGIRONI1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EGIRONI1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EGIRONI1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EGIRONI1', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('EGODELNK', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EGODELNK', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('EGOH', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('EGOH', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('EGOUHIER', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EGOUHIER', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EGOUHIER', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('EGOUHIER', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EGOUHIER', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EGOUHIER', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EGOUHIER', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EGOUHIER', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EGOUHIER', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('EGOUHIER', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EGOUHIER', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EGOUHIER', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('EGOUHIER', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EGUY', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EGUY', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('EGUY', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'AGENT_FO_IHB_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'AMMF_AFF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'APPLOG_ENDSTAMP_UPDATE', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'BATCH_C4S_TO_SYM', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'BATCH_MT940_UPLOAD', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'CITIDIRECT_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'E-ICD_USER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'HB_COMBI_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'HB_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'HB_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'HERMES_CASHMGT_EFFICIENCY_REP', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'HERMES_ID_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'HERMES_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'ICL_AFF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'ICL_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'IHCTF_AFF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'IHCTF_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'IHC_EXPORT', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'L-DRIVE_FO_USER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'MR_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'MR_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'NETTING_AFF_REPORTER_ST', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'NETTING_AFF_REQUESTOR_ST', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'NETTING_REPORTER_TC', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'NETTING_REQUESTOR_TC', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'OO_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'OO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'OO_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'RCM_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'SAP_PRD_CCM_EMEA_USER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'SUBLEDGER_CASH_POOL_REPORTS', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'SWIFTCOM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'TPP_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHERMAN6', 'TPP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHOFLER', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EHOFLER', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EHOFLER', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EHOFLER', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EHOFLER', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EHOFLER', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EHOFLER', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EHOFLER', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EHOFLER', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EHOFLER', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EHOFLER', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('EHOFLER', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EHOFLER', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EHOFLER', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('EHOFLER', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EHOHL', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EHOHL', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EHOHL', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EHOHL', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EHOHL', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EHOHL', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EHOHL', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('EHOHL', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EHOHL', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('EHOHL', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EHU1', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EHU1', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'AMMF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'BAM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'BF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'CHAINS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'DLINK_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'EFS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'GXRS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'HARMONY_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'HB_COMBINATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'HB_COMBI_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'HERMES_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'ICL_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'IHCTF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'IT_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'MR_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'OO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'P2P_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'SAP_PRD_IT_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'SAP_PRD_IT_USER_DISPLAY', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'SUBLEDGER_CASH_POOL_REPORTS', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'SWIFTCOM_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'TOPS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'TPP_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('EHUISMA', 'UME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EJANICK', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EJANICK', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EJANICK', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EJANICK', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EJANICK', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EJANICK', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EJANICK', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EJANICK', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('EJANICK', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EJANICK', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('EJANICK', 'TPP_P2P_AFF_OFFER_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EJASOVA1', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EJASOVA1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EJASOVA1', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EJASOVA1', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EJASOVA1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EJASOVA1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EJASOVA1', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EJASOVA1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EJASOVA1', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('EJASOVA1', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('EJASOVA1', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EJASOVA1', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EJASOVA1', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('EJASOVA1', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EJASOVA1', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EJONES58', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EKAERS', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('EKAERS', 'BRAVO_APPROVER', 3);
harmony.usermgt.enrich_role_to_user('EKAERS', 'EFS_AFF_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('EKAERS', 'EFS_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EKAERS', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EKAERS', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EKAERS', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EKAERS', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EKAERS', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EKAERS', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EKAERS', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EKAERS', 'L-DRIVE_ACC_USER', 3);
harmony.usermgt.enrich_role_to_user('EKAERS', 'NETTING_AFF_REPORTER_ST', 3);
harmony.usermgt.enrich_role_to_user('EKAERS', 'NETTING_REPORTER_TC', 3);
harmony.usermgt.enrich_role_to_user('EKAERS', 'SAP_PRD_ACC_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('EKAERS', 'SUBLEDGER_CASH_POOL_REPORTS', 3);
harmony.usermgt.enrich_role_to_user('EKAERS', 'TPP_P2P_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EKAERS', 'TPP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EKENKEL', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EKENKEL', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('EKENKEL', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EKENKEL', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EKENKEL', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EKENKEL', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EKENKEL', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EKENKEL', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('EKENKEL', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EKSIKALO', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EKSIKALO', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EKSIKALO', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EKSIKALO', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EKSIKALO', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EKSIKALO', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EKSIKALO', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EKSIKALO', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EKSIKALO', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('EKSIKALO', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EKSIKALO', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EKSIKALO', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ELEGEZIN', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ELEGEZIN', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ELEGEZIN', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ELEGEZIN', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ELENARD', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ELEVY29', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ELEVY29', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ELEVY29', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ELIU5', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ELOY', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ELOY', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('EMARTI40', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('EMASON5', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('EMASON5', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('EMAVRIAS', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EMAVRIAS', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EMAVRIAS', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EMAVRIAS', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EMAVRIAS', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EMAVRIAS', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EMAVRIAS', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EMAVRIAS', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EMAVRIAS', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('EMAVRIAS', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EMCKIBBI', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('EMEDKOVA', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EMEDKOVA', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EMEDKOVA', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EMEDKOVA', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EMEDKOVA', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('EMEZZINO', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EMEZZINO', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EMEZZINO', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EMEZZINO', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EMEZZINO', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EMEZZINO', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EMEZZINO', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EMEZZINO', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EMEZZINO', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EMEZZINO', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('EMYSZKOW', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EMYSZKOW', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EMYSZKOW', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EMYSZKOW', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EMYSZKOW', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EMYSZKOW', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('EMYSZKOW', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('EMYSZKOW', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ENUEVAES', 'IHC_AFF_POSITION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('ENUEVAES', 'NETTING_AFF_REQUESTOR_ST', 2);
harmony.usermgt.enrich_role_to_user('EOREGAN1', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EOREGAN1', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('EOZVALD', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EOZVALD', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EOZVALD', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EOZVALD', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EOZVALD', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EOZVALD', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EOZVALD', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EPERIKHA', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('EPOZZONI', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ERIVER21', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ERIVER21', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ERIVER21', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ERIVER21', 'HERMES_CASHMGT_EFFICIENCY_REP', 3);
harmony.usermgt.enrich_role_to_user('ERIVER21', 'HERMES_ID_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ERIVER21', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ERIVER21', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ERIVER21', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ERIVER21', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ERIVER21', 'SAP_PRD_PR_ACC_USER', 3);
harmony.usermgt.enrich_role_to_user('ERIVERAQ', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ERONDARI', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ERONDARI', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ERUBIO', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ESALUM', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ESALUM', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESALUM', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESALUM', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESALUM', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESALUM', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ESALUM', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ESANCH10', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESANCH10', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ESANCH10', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ESAUSA', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ESCHNEI2', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESCHNEI2', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ESCHNEI2', 'BF_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ESCHNEI2', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESCHNEI2', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ESCHNEI2', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESCHNEI2', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESCHNEI2', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESCHNEI2', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESCHNEI2', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ESCHNEI2', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESCHNEI2', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ESCHNEI2', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ESCHNEI2', 'OO_AFF_COCO_AUTH/REL', 1);
harmony.usermgt.enrich_role_to_user('ESCHNEI2', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESCHNEI2', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ESCHNEI2', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESCHNEI2', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ESCHNEI2', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ESCHNEI2', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ESCHNEI2', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESCHROET', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ESCHROET', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESCHROET', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESCHROET', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESCHROET', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ESCHROET', 'OO_AFF_COCO_AUTH/REL', 1);
harmony.usermgt.enrich_role_to_user('ESCHROET', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESCHROET', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ESCHROET', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESCHROET', 'REPORT_C4S_TO_SYM', 3);
harmony.usermgt.enrich_role_to_user('ESIRON', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESIRON', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ESIRON', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESIRON', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESIRON', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESIRON', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESIRON', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ESIRON', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ESIRON', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESIRON', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ESIZOVA', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ESIZOVA', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ESLIWINS', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ESLIWINS', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESLIWINS', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESLIWINS', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESLIWINS', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ESLIWINS', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESOLDATO', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESOLDATO', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ESOLDATO', 'BF_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ESOLDATO', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ESOLDATO', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESOLDATO', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESOLDATO', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESOLDATO', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ESOLDATO', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESOLDATO', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ESOLDATO', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ESOLDATO', 'OO_AFF_COCO_AUTH/REL', 1);
harmony.usermgt.enrich_role_to_user('ESOLDATO', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ESOLDATO', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ESOLDATO', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ESOLDATO', 'TPP_P2P_AFF_OFFER_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ESOLDATO', 'TPP_P2P_AFF_OFFER_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ETANG', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ETANG2', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ETIRADO3', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ETIRADO3', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ETIRADO3', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ETIRADO3', 'HERMES_CASHMGT_EFFICIENCY_REP', 3);
harmony.usermgt.enrich_role_to_user('ETIRADO3', 'HERMES_ID_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ETIRADO3', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ETIRADO3', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ETIRADO3', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ETIRADO3', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('ETIRADO3', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ETIRADO3', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('ETIRADO3', 'SAP_PRD_PR_ACC_USER', 3);
harmony.usermgt.enrich_role_to_user('ETSAO1', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ETSEPOU', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ETUINIER', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ETUINIER', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ETUINIER', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ETUINIER', 'BF_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ETUINIER', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ETUINIER', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ETUINIER', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ETUINIER', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ETUINIER', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ETUINIER', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ETUINIER', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('ETUINIER', 'OO_AFF_COCO_AUTH/REL', 1);
harmony.usermgt.enrich_role_to_user('ETUINIER', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ETUINIER', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('ETUZUN', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ETUZUN', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('ETUZUN', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('ETUZUN', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ETUZUN', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ETUZUN', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('ETUZUN', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('ETUZUN', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EVALINO', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EVALINO', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EVALINO', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EVALINO', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EVALINO', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EVALINO', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EVALINO', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EVALINO', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EVALINO', 'MR_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EVALINO', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('EVALINO', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('EVALINO', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EVALINO', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EVALINO', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('EVALINO', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EVALINO', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EVDHEUVE', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDHEUVE', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('EVDHEUVE', 'BATCH_MT940_UPLOAD', 3);
harmony.usermgt.enrich_role_to_user('EVDHEUVE', 'EFS_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDHEUVE', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDHEUVE', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDHEUVE', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDHEUVE', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDHEUVE', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDHEUVE', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDHEUVE', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDHEUVE', 'ICL_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDHEUVE', 'IHCTF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDHEUVE', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDHEUVE', 'L-DRIVE_ACC_USER', 3);
harmony.usermgt.enrich_role_to_user('EVDHEUVE', 'NETTING_AFF_REPORTER_ST', 3);
harmony.usermgt.enrich_role_to_user('EVDHEUVE', 'NETTING_REPORTER_TC', 3);
harmony.usermgt.enrich_role_to_user('EVDHEUVE', 'RCM_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDHEUVE', 'SAP_PRD_ACC_USER', 3);
harmony.usermgt.enrich_role_to_user('EVDHEUVE', 'SUBLEDGER_CASH_POOL_REPORTS', 3);
harmony.usermgt.enrich_role_to_user('EVDHEUVE', 'TPP_P2P_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDHEUVE', 'TPP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'ACCESS_EDGE_REPORTER_EMEA', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'ACCESS_EDGE_REPORTER_US', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'ACCESS_EDGE_SECURITY_ADMINISTRATOR_EMEA', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'ACCESS_EDGE_SECURITY_ADMINISTRATOR_US', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'AFRAX_APPROVER_L-DRIVE', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'AFRAX_APPROVER_SAP_RPS_200', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'AGENT_BANKDIR_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'AMMF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'APPLOG_ENDSTAMP_UPDATE', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'APPLOG_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'BAM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'BATCH_MT940_UPLOAD', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'BATCH_PAYMENT_PROCESSING', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'BF_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'BF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'BF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'BRAVO_ADMINISTRATOR', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'CITIDIRECT_USER_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'COMMONS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'CURRENEX_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'DLINK_BO_SUPERVISOR', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'DLINK_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'DLINK_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'E-ICD_POWER_USER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'ECP_APPROVER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'EFS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'FM_RULES_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'GXRS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'HARMONY_STATIC_DATA_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'HARMONY_TSGAM', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'HARMONY_TSGRM', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'HB_COMBINATION_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'HB_COMBI_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'HERMES_CASHMGT_EFFICIENCY_REP', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'HERMES_ID_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'ICL_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'IHCTF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'JPMORGAN_AUTHORIZER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'L-DRIVE_TSG_USER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'MISYS_SUPERVISOR', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'MR_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'NETTING_AFF_REPORTER_ST', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'NETTING_BO_SUPERVISOR', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'NETTING_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'NETTING_REPORTER_TC', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'OO_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'OO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'P2P_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'RCM_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'SAA_BO_KEY_USER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'SAP_PRD_TSG_USER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'SUNGARD_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'SWIFTCOM_RELEASER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'SWIFTCOM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'SWIFTCOM_STATIC_DATA_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'SWIFTREF_KEY_USER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'SWIFTREF_MANAGER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'TOPS2', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'TOPS_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'TPP_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'TRAX_BO_USER', 3);
harmony.usermgt.enrich_role_to_user('EVDSCHRA', 'UME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'AMMF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'BAM_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'BF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'CHAINS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'DLINK_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'EFS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'GXRS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'HARMONY_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'HB_COMBINATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'HB_COMBI_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'HERMES_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'ICL_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'IHCTF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'IHCTF_AFF_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'IT_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'MR_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'OO_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'P2P_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'SAP_PRD_IT_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'SAP_PRD_IT_USER_DISPLAY', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'SUBLEDGER_CASH_POOL_REPORTS', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'SWIFTCOM_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'TOPS_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'TPP_IM_SUPPORT', 3);
harmony.usermgt.enrich_role_to_user('EVDYCK', 'UME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('EVRIEL', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EVRIEL', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EVRIEL', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EVRIEL', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EVRIEL', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EVRIEL', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EVRIEL', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('EVRIEL', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EVRIEL', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('EVRIEL', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EWAN', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('EWAN', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EWELSH1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EWELSH1', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('EWIJAYA1', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('EWIJAYA1', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('EWRAY', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('EZBOROVJ', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EZBOROVJ', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('EZBOROVJ', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EZBOROVJ', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EZBOROVJ', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EZBOROVJ', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EZBOROVJ', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('EZBOROVJ', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('EZEMLICK', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('FALFREDS', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FALFREDS', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FALFREDS', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('FALFREDS', 'BF_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('FALFREDS', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('FALFREDS', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FALFREDS', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FALFREDS', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FALFREDS', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FALFREDS', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FALFREDS', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('FALFREDS', 'OO_AFF_COCO_AUTH/REL', 1);
harmony.usermgt.enrich_role_to_user('FALFREDS', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FALFREDS', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FALVARE3', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FALVARE3', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('FASSEM', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FASSEM', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FBELLAN', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FBRADY', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('FBRADY', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FBRADY', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FBRADY', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FBRADY', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FCALUYO', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FCALUYO', 'TPP_P2P_AFF_OFFER_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FCASAPUL', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FCASAPUL', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('FCASAPUL', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FCASAPUL', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FCASAPUL', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FCASAPUL', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FCASAPUL', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FCASAPUL', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('FCASAPUL', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FCASAPUL', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FCASAPUL', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('FCASAPUL', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FCAUBIT4', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FCHOY', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('FCHOY', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FCHOY', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FCHOY', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FCHOY', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FCHOY', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('FCIPRIAN', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FCIPRIAN', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FCIPRIAN', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('FCIPRIAN', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FCIPRIAN', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FCIPRIAN', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FCIPRIAN', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FCIPRIAN', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FCIPRIAN', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FCIPRIAN', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('FCIPRIAN', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FDECLER', 'AMMF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('FDECLER', 'BANKREPORTING', 3);
harmony.usermgt.enrich_role_to_user('FDECLER', 'BATCH_MT940_UPLOAD', 3);
harmony.usermgt.enrich_role_to_user('FDECLER', 'BRAVO_REQUESTOR', 3);
harmony.usermgt.enrich_role_to_user('FDECLER', 'EFS_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('FDECLER', 'HB_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('FDECLER', 'HERMES_ACCOUNT_GROUP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('FDECLER', 'HERMES_ACCOUNT_STATUS_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('FDECLER', 'HERMES_RECONCILIATION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('FDECLER', 'HERMES_STATEMENT_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('FDECLER', 'HERMES_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('FDECLER', 'HERMES_VALUE_VOLUME_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('FDECLER', 'ICL_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('FDECLER', 'IHCTF_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('FDECLER', 'IHC_POSITION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('FDECLER', 'L-DRIVE_ACC_USER', 3);
harmony.usermgt.enrich_role_to_user('FDECLER', 'NETTING_AFF_REPORTER_ST', 3);
harmony.usermgt.enrich_role_to_user('FDECLER', 'NETTING_REPORTER_TC', 3);
harmony.usermgt.enrich_role_to_user('FDECLER', 'RCM_TRANSACTION_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('FDECLER', 'SAP_PRD_ACC_USER', 3);
harmony.usermgt.enrich_role_to_user('FDECLER', 'SUBLEDGER_CASH_POOL_REPORTS', 3);
harmony.usermgt.enrich_role_to_user('FDECLER', 'TPP_P2P_AFF_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('FDECLER', 'TPP_REPORTER', 3);
harmony.usermgt.enrich_role_to_user('FENACHE', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FENACHE', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('FENACHE', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FENACHE', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FENACHE', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FENACHE', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('FFAMORCA', 'IHC_AFF_POSITION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('FFAMORCA', 'NETTING_AFF_REQUESTOR_ST', 2);
harmony.usermgt.enrich_role_to_user('FGONZAL4', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FGONZAL4', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FGRAF1', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('FKLEIN2', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FLAMBRE2', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('FLAMBRE2', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FLAMBRE2', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('FLAMBRE2', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FLAMBRE2', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FLAMBRE2', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FLAMBRE2', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('FLAMBRE2', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FLAMBRE2', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FLAMBRE2', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('FLANNOYE', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('FLANNOYE', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('FLANNOYE', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('FLANNOYE', 'TPP_P2P_AFF_OFFER_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FLEMBO', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FLEMBO', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('FLEMBO', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FLEMBO', 'BF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FLEMBO', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FLEMBO', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FLEMBO', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FLEMBO', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FLEMBO', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FLEMBO', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('FLEMBO', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('FLEMBO', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FLEMBO', 'OO_AFF_COCO_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FLEMBO', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FLEMBO', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('FLEMBO', 'TPP_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FLEMBO', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FLIM', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FMALONE2', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FMALONE2', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('FMALONE2', 'BF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FMALONE2', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FMALONE2', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FMALONE2', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FMALONE2', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FMALONE2', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FMALONE2', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('FMALONE2', 'OO_AFF_COCO_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FMALONE2', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FMALONE2', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('FMARTELL', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FMARTELL', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('FMARTELL', 'BF_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('FMARTELL', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FMARTELL', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FMARTELL', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FMARTELL', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FMARTELL', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FMARTELL', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FMARTELL', 'OO_AFF_COCO_AUTH/REL', 1);
harmony.usermgt.enrich_role_to_user('FMARTELL', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FMARTELL', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('FMELLO3', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('FMELO', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FMONTEIR', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('FMONTEIR', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FMONTEIR', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FMUNKES1', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('FOCONNO3', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FOCONNO3', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FOCONNO3', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('FOCONNO3', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('FOCONNO3', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FOCONNO3', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FOCONNO3', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FOCONNO3', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FOCONNO3', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FOCONNO3', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FOCONNO3', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('FPEASE', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FPEASE', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('FPEASE', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FPIREDDA', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('FREMEDIA', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('FRIESEN', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('FRIESEN', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('FRIESEN', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FRIESEN', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FRIESEN', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FRIESEN', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FRIESEN', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FRIESEN', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FRIESEN', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FRIESEN', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('FRIESEN', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('FROUSSEA', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('FRYAN1', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FRYAN1', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('FRYAN1', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('FRYAN1', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FRYAN1', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FRYAN1', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FRYAN1', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('FRYAN1', 'TPP_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('FRYAN1', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FSALAYO', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('FSALAYO', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FSALAYO', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FSAMBIT', 'NETTING_AFF_REQUESTOR_ST', 1);
harmony.usermgt.enrich_role_to_user('FSAMBIT', 'TPP_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FSAMBIT', 'TPP_P2P_AFF_OFFER_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FSAMBIT', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FSANCHE3', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FSANTO18', 'EFS_AFF_AUTHORIZER', 1);
harmony.usermgt.enrich_role_to_user('FSIBAYAN', 'EFS_AFF_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('FSIBAYAN', 'NETTING_AFF_REPORTER_ST', 2);
harmony.usermgt.enrich_role_to_user('FSIBAYAN', 'RCM_TRANSACTION_REPORTER', 2);
harmony.usermgt.enrich_role_to_user('FSIBAYAN', 'SUBLEDGER_CASH_POOL_REPORTS', 2);
harmony.usermgt.enrich_role_to_user('FSPANSWI', 'EFS_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FSPANSWI', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('FSTIMPSO', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FSTIMPSO', 'AMMF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FSTIMPSO', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('FSTIMPSO', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FSTIMPSO', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FSTIMPSO', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FSTIMPSO', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FSTIMPSO', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FSTIMPSO', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FSTIMPSO', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FSTIMPSO', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('FSTIMPSO', 'RCM_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FSTIMPSO', 'SUBLEDGER_CASH_POOL_REPORTS', 1);
harmony.usermgt.enrich_role_to_user('FTROTTIN', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('FTROTTIN', 'HERMES_AFF_STATEMENT_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FTROTTIN', 'HERMES_AFF_TRANSACTION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FTROTTIN', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FTROTTIN', 'ICL_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FTROTTIN', 'IHCTF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FTROTTIN', 'IHCTF_AFF_REQUESTOR', 1);
harmony.usermgt.enrich_role_to_user('FTROTTIN', 'IHC_AFF_POSITION_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FVOTOCEK', 'AMMF_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FVOTOCEK', 'BANKREPORTING', 1);
harmony.usermgt.enrich_role_to_user('FVOTOCEK', 'EFS_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FVOTOCEK', 'ICL_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FVOTOCEK', 'NETTING_AFF_REPORTER_ST', 1);
harmony.usermgt.enrich_role_to_user('FVOTOCEK', 'TPP_P2P_AFF_REPORTER', 1);
harmony.usermgt.enrich_role_to_user('FWARD1', 'AMMF_AFF_REQUESTOR', 1);
commit;
exception when others then
rollback;
raise;
end;
/
|
-- Adminer 4.3.1 MySQL dump
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
DROP TABLE IF EXISTS `admin`;
CREATE TABLE `admin` (
`id_admin` int(11) NOT NULL AUTO_INCREMENT,
`fname_admin` varchar(255) NOT NULL,
`lname_admin` varchar(255) NOT NULL,
`email_admin` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`phone_admin` varchar(255) NOT NULL,
PRIMARY KEY (`id_admin`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `admin` (`id_admin`, `fname_admin`, `lname_admin`, `email_admin`, `password`, `phone_admin`) VALUES
(1, 'mba', 'dina', 'dina@admin.umn.ac.id', '8d80b28fa63fc17e8a45d9a9d0775736', '085959509754'),
(2, 'Wendy', '', 'wendy@admin.umn.ac.id', 'ad931de51833f907eeee5f708a2e89d0', '08485487542');
DROP TABLE IF EXISTS `dosen`;
CREATE TABLE `dosen` (
`id_dosen` int(11) NOT NULL AUTO_INCREMENT,
`fname_dosen` varchar(255) NOT NULL,
`lname_dosen` varchar(255) NOT NULL,
`nomorinduk_dosen` varchar(255) NOT NULL,
`email_dosen` varchar(255) NOT NULL,
`foto_dosen` varchar(255) NOT NULL,
PRIMARY KEY (`id_dosen`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `dosen` (`id_dosen`, `fname_dosen`, `lname_dosen`, `nomorinduk_dosen`, `email_dosen`, `foto_dosen`) VALUES
(1, 'Johannes', 'Immanuel', 'L00892', 'johannes_imanuel@umn.ac.id', 'assets/images/joim.jpg'),
(2, 'Ryan', 'Pramana', 'L12322', 'ryan.pramana@umn.ac.id', 'assets/images/ryan.jpg'),
(3, 'Agung', 'Chandranata', 'L15119', 'agung@umn.ac.id', 'assets/images/agung.jpg');
DROP TABLE IF EXISTS `mahasiswa`;
CREATE TABLE `mahasiswa` (
`id_mahasiswa` int(11) NOT NULL AUTO_INCREMENT,
`fname_mahasiswa` varchar(255) NOT NULL,
`lname_mahasiswa` varchar(255) NOT NULL,
`nomorinduk_mahasiswa` varchar(255) NOT NULL,
`email_mahasiswa` varchar(255) NOT NULL,
`tugas_mahasiswa` int(11) NOT NULL,
`uts_mahasiswa` int(11) NOT NULL,
`uas_mahasiswa` int(11) NOT NULL,
PRIMARY KEY (`id_mahasiswa`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `mahasiswa` (`id_mahasiswa`, `fname_mahasiswa`, `lname_mahasiswa`, `nomorinduk_mahasiswa`, `email_mahasiswa`, `tugas_mahasiswa`, `uts_mahasiswa`, `uas_mahasiswa`) VALUES
(1, 'Adrian', 'Hartanto', '14110110037', 'adrian.hartanto@gmail.com', 100, 87, 90),
(2, 'Sintya', 'Oktaviani', '14110110021', 'sintya.oktaviani@student.umn.ac.id', 100, 45, 58),
(3, 'Annastasya', 'Indarsin', '14110110024', 'annastasya.indarsin@student.umn.ac.id', 85, 47, 21);
-- 2017-12-05 04:52:05
|
/*********************************************************************************
# Copyright 2015 Observational Health Data Sciences and Informatics
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
********************************************************************************/
/*******************************************************************************
PURPOSE: Use this script to convert your OMOP V4 common data model to CDM V5.
last revised: 04 August 2015
authors: Patrick Ryan, Chris Knoll, Anthony Sena
!!!!!!!!!!!!!!!!!!!!! PLEASE READ THESE INSTRUCTIONS !!!!!!!!!!!!!!!!!!!!!!!!!!!
This script was authored using OHDSI-SQL which will require you to run this
script through SqlRender to creat a version that is compatible with your target
RDBMS. We have pre-generated these scripts using SQL Render and have placed
them in folders for each RDBMS. Depending on which script you are viewing, your
instructions will be slightly different.
General Assumptions
-------------------
This script assumes that your V4 and V5 database are located on the same
RDBMS server. It also assumes that the V4 and V5 databases were created
using the standard data definition scripts for these databases. If you
altered your V4 database in any way, this script will likely require
some mo
Getting Started
---------------
Before you can use this script, there are some prerequisites:
1. Create a target CDMv5 database on your database server using the
appropriate script from https://github.com/OHDSI/CommonDataModel
2. Load VocabV5 into the target database/schema that will contain CDMv5 using
Athena: http://ohdsi.org/web/ATHENA
OHDSI-SQL File Instructions
-----------------------------
1. Set parameter name of schema that contains CDMv4 instance
([SOURCE_CDMV4], [SOURCE_CDMV4].[SCHEMA])
2. Set parameter name of schema that contains CDMv5 instance
([TARGET_CDMV5], [TARGET_CDMV5].[SCHEMA])
3. Run this script through SqlRender to produce a script that will work in your
source dialect. SqlRender can be found here: https://github.com/OHDSI/SqlRender
4. Run the script produced by SQL Render on your target RDBDMS.
<RDBMS> File Instructions
-------------------------
1. This script will hold a number of placeholders for your CDM V4 and CDMV5
database/schema. In order to make this file work in your environment, you
should plan to do a global "FIND AND REPLACE" on this file to fill in the
file with values that pertain to your environment. The following are the
tokens you should use when doing your "FIND AND REPLACE" operation:
a. [SOURCE_CDMV4]
b. [SOURCE_CDMV4].[SCHEMA]
c. [TARGET_CDMV5]
d. [TARGET_CDMV5].[SCHEMA]
2. Run the resulting script on your target RDBDMS.
*********************************************************************************/
/* SCRIPT PARAMETERS */
-- The CDMv4 database name
-- The CDMv4 database plus schema
-- The target CDMv5 database name
-- the target CDMv5 database plus schema
SET search_path TO [TARGET_CDMV5];
/*
* The #concept_map table will hold the mapping of source_concept_ids to target_concept_ids
* and their respective domain_ids. As a result, the results of this table will have
* some source_concept_ids that map to multiple target_concept_ids which is expected.
*
* In some of the conversion queries below, we will use the distinct values from the
* #concept_map table since our need in those instances is to understand the domain_id
* that will provide the destination table in the target V5 database. To make the code
* easier to read, we dervied a #concept_map_distinct table that holds the distinct
* source_concept_id and target domain_id.
*
* As of the dateof this script, the following domains contain source_concept_ids that
* map to multiple target_concept_ids:
*
* Condition
* Device
* Drug
* Measurement
* Observation
* Procedure
* Spec Anatomic Site
*
* Also, as of the date which this script was authored, no source_concept_ids map to multiple domains
*/
DROP TABLE IF EXISTS concept_map;
/* / */
CREATE TEMP TABLE concept_map
AS
SELECT
concept_id AS source_concept_id
,concept_id AS target_concept_id
,domain_id AS domain_id
FROM
[TARGET_CDMV5].[SCHEMA].concept
WHERE 1 = 0;
/* / */
INSERT INTO concept_map
--standard concepts
SELECT concept_id AS source_concept_id
,concept_id AS target_concept_id
,domain_id
FROM [TARGET_CDMV5].[SCHEMA].concept
WHERE standard_concept = 'S'
AND invalid_reason IS NULL
UNION
--concepts with 'map to' standard
SELECT DISTINCT c1.concept_id AS source_concept_id
,c2.concept_id AS target_concept_id
,c2.domain_id
FROM (
SELECT concept_id
FROM [TARGET_CDMV5].[SCHEMA].concept
WHERE (
(
standard_concept <> 'S'
OR standard_concept IS NULL
)
OR invalid_reason IS NOT NULL
)
) c1
INNER JOIN [TARGET_CDMV5].[SCHEMA].concept_relationship cr1 ON c1.concept_id = cr1.concept_id_1
INNER JOIN [TARGET_CDMV5].[SCHEMA].concept c2 ON cr1.concept_id_2 = c2.concept_id
WHERE c2.standard_concept = 'S'
AND c2.invalid_reason IS NULL
AND cr1.relationship_id IN ('Maps to')
AND cr1.invalid_reason IS NULL
UNION
--concepts without 'map to' standard with another non 'is a' relation to standard
SELECT DISTINCT c1.concept_id AS source_concept_id
,c2.concept_id AS target_concept_id
,c2.domain_id
FROM (
SELECT A.concept_id
FROM [TARGET_CDMV5].[SCHEMA].concept A
LEFT JOIN (
SELECT DISTINCT c1.concept_id
FROM (
SELECT concept_id
FROM [TARGET_CDMV5].[SCHEMA].concept
WHERE (
(
standard_concept <> 'S'
OR standard_concept IS NULL
)
OR invalid_reason IS NOT NULL
)
) c1
INNER JOIN [TARGET_CDMV5].[SCHEMA].concept_relationship cr1 ON c1.concept_id = cr1.concept_id_1
INNER JOIN [TARGET_CDMV5].[SCHEMA].concept c2 ON cr1.concept_id_2 = c2.concept_id
WHERE c2.standard_concept = 'S'
AND c2.invalid_reason IS NULL
AND cr1.relationship_id IN ('Maps to')
AND cr1.invalid_reason IS NULL
) B ON A.concept_id = B.concept_id
WHERE (
(
A.standard_concept <> 'S'
OR A.standard_concept IS NULL
)
OR A.invalid_reason IS NOT NULL
)
AND B.concept_id IS NULL
) c1
INNER JOIN [TARGET_CDMV5].[SCHEMA].concept_relationship cr1 ON c1.concept_id = cr1.concept_id_1
INNER JOIN [TARGET_CDMV5].[SCHEMA].concept c2 ON cr1.concept_id_2 = c2.concept_id
WHERE c2.standard_concept = 'S'
AND c2.invalid_reason IS NULL
AND cr1.relationship_id IN (
'RxNorm replaced by'
,'SNOMED replaced by'
,'UCUM replaced by'
,'Concept replaced by'
,'ICD9P replaced by'
,'LOINC replaced by'
,'Concept same_as to'
,'Concept was_a to'
,'Concept alt_to to'
)
AND cr1.invalid_reason IS NULL
UNION
--concepts without 'map to' standard with 'is a' relation to standard
SELECT DISTINCT c1.concept_id AS source_concept_id
,c2.concept_id AS target_concept_id
,c2.domain_id
FROM (
SELECT A.concept_id
FROM [TARGET_CDMV5].[SCHEMA].concept A
LEFT JOIN (
SELECT DISTINCT c1.concept_id
FROM (
SELECT concept_id
FROM [TARGET_CDMV5].[SCHEMA].concept
WHERE (
(
standard_concept <> 'S'
OR standard_concept IS NULL
)
OR invalid_reason IS NOT NULL
)
) c1
INNER JOIN [TARGET_CDMV5].[SCHEMA].concept_relationship cr1 ON c1.concept_id = cr1.concept_id_1
INNER JOIN [TARGET_CDMV5].[SCHEMA].concept c2 ON cr1.concept_id_2 = c2.concept_id
WHERE c2.standard_concept = 'S'
AND c2.invalid_reason IS NULL
AND cr1.relationship_id IN (
'Maps to'
,'RxNorm replaced by'
,'SNOMED replaced by'
,'UCUM replaced by'
,'Concept replaced by'
,'ICD9P replaced by'
,'LOINC replaced by'
,'Concept same_as to'
,'Concept was_a to'
,'Concept alt_to to'
)
AND cr1.invalid_reason IS NULL
) B ON A.concept_id = B.concept_id
WHERE (
(
standard_concept <> 'S'
OR standard_concept IS NULL
)
OR invalid_reason IS NOT NULL
)
AND B.concept_id IS NULL
) c1
INNER JOIN [TARGET_CDMV5].[SCHEMA].concept_relationship cr1 ON c1.concept_id = cr1.concept_id_1
INNER JOIN [TARGET_CDMV5].[SCHEMA].concept c2 ON cr1.concept_id_2 = c2.concept_id
WHERE c2.standard_concept = 'S'
AND c2.invalid_reason IS NULL
AND cr1.relationship_id IN ('Is a')
AND cr1.invalid_reason IS NULL;
DROP TABLE IF EXISTS concept_map_distinct;
/* / */
CREATE TEMP TABLE concept_map_distinct
AS
SELECT
source_concept_id
,domain_id
,COUNT(*) AS targetConceptCount
FROM
concept_map
WHERE 1 = 0
GROUP BY source_concept_id
,domain_id;
/* / */
INSERT INTO concept_map_distinct
SELECT source_concept_id
,domain_id
,COUNT(*)
FROM concept_map
GROUP BY source_concept_id
,domain_id;
DROP TABLE IF EXISTS [TARGET_CDMV5].[SCHEMA].ETL_WARNINGS;
/* / */
CREATE TABLE [TARGET_CDMV5].[SCHEMA].ETL_WARNINGS (WARNING_MESSAGE VARCHAR(4000));
/* / */
/****
CDM_SOURCE
****/
INSERT INTO [TARGET_CDMV5].[SCHEMA].cdm_source (
cdm_source_name
,cdm_version
,vocabulary_version
,cdm_release_date
)
SELECT '[TARGET_CDMV5]'
,'V5'
,v.vocabulary_version
,CURRENT_DATE
FROM [TARGET_CDMV5].[SCHEMA].vocabulary v
WHERE vocabulary_id = 'Vocabulary';
/****
LOCATION
****/
INSERT INTO [TARGET_CDMV5].[SCHEMA].location
SELECT location_id
,address_1
,address_2
,city
,STATE
,zip
,county
,location_source_value
FROM [SOURCE_CDMV4].[SCHEMA].LOCATION;
/****
CARE_SITE
****/
INSERT INTO [TARGET_CDMV5].[SCHEMA].care_site
SELECT care_site_id
,cast(NULL AS VARCHAR(255)) AS care_site_name
,place_of_service_concept_id
,location_id
,care_site_source_value
,place_of_service_source_value
FROM [SOURCE_CDMV4].[SCHEMA].CARE_SITE;
/****
Provider
****/
INSERT INTO [TARGET_CDMV5].[SCHEMA].provider
SELECT provider_id
,cast(NULL AS VARCHAR(255)) AS provider_name
,NPI
,DEA
,specialty_concept_id
,care_site_id
,cast(NULL AS INT) AS year_of_birth
,cast(NULL AS INT) AS gender_concept_id
,provider_source_value
,specialty_source_value
,0 AS specialty_source_concept_id
,cast(NULL AS VARCHAR(50)) AS gender_source_value
,cast(NULL AS INT) AS gender_source_concept_id
FROM [SOURCE_CDMV4].[SCHEMA].provider;
/****
PERSON
****/
INSERT INTO [TARGET_CDMV5].[SCHEMA].person
SELECT person_id
,coalesce(gender.target_concept_id, 0) AS gender_concept_id
,year_of_birth
,month_of_birth
,day_of_birth
,CAST(NULL AS VARCHAR(10)) time_of_birth
,coalesce(race.target_concept_id, 0) AS race_concept_id
,coalesce(ethnicity.target_concept_id, 0) AS ethnicity_concept_id
,location_id
,provider_id
,care_site_id
,person_source_value
,gender_source_value
,CAST(NULL AS INT) gender_source_concept_id
,CAST(NULL AS INT) race_source_value
,CAST(NULL AS INT) race_source_concept_id
,ethnicity_source_value
,CAST(NULL AS INT) ethnicity_source_concept_id
FROM [SOURCE_CDMV4].[SCHEMA].PERSON p
LEFT JOIN concept_map gender ON LOWER(gender.DOMAIN_ID) IN ('gender')
AND p.gender_concept_id = gender.source_concept_id
LEFT JOIN concept_map race ON LOWER(race.DOMAIN_ID) IN ('race')
AND p.race_concept_id = race.source_concept_id
LEFT JOIN concept_map ethnicity ON LOWER(ethnicity.DOMAIN_ID) IN ('ethnicity')
AND p.ETHNICITY_CONCEPT_ID = ethnicity.source_concept_id;
INSERT INTO [TARGET_CDMV5].[SCHEMA].ETL_WARNINGS (WARNING_MESSAGE)
SELECT 'PERSON: ' || CAST(NUM_INVALID_RECORDS AS VARCHAR) || ' records in the source CDMv4 database have invalid GENDER_CONCEPT_ID'
FROM (
SELECT COUNT(PERSON_ID) AS NUM_INVALID_RECORDS
FROM [SOURCE_CDMV4].[SCHEMA].PERSON
WHERE GENDER_CONCEPT_ID NOT IN (
SELECT CONCEPT_ID
FROM [TARGET_CDMV5].[SCHEMA].CONCEPT
WHERE CONCEPT_ID = 0
OR (
STANDARD_CONCEPT = 'S'
AND LOWER(DOMAIN_ID) IN ('gender')
)
)
HAVING COUNT(PERSON_ID) > 0
) warn;
INSERT INTO [TARGET_CDMV5].[SCHEMA].ETL_WARNINGS (WARNING_MESSAGE)
SELECT 'PERSON: ' || CAST(NUM_INVALID_RECORDS AS VARCHAR) || ' records in the source CDMv4 database have invalid RACE_CONCEPT_ID'
FROM (
SELECT COUNT(PERSON_ID) AS NUM_INVALID_RECORDS
FROM [SOURCE_CDMV4].[SCHEMA].PERSON
WHERE RACE_CONCEPT_ID IS NOT NULL
AND RACE_CONCEPT_ID NOT IN (
SELECT CONCEPT_ID
FROM [TARGET_CDMV5].[SCHEMA].CONCEPT
WHERE CONCEPT_ID = 0
OR (
STANDARD_CONCEPT = 'S'
AND LOWER(DOMAIN_ID) IN ('race')
)
)
HAVING COUNT(PERSON_ID) > 0
) warn;
INSERT INTO [TARGET_CDMV5].[SCHEMA].ETL_WARNINGS (WARNING_MESSAGE)
SELECT 'PERSON: ' || CAST(NUM_INVALID_RECORDS AS VARCHAR) || ' records in the source CDMv4 database have invalid ETHNICITY_CONCEPT_ID'
FROM (
SELECT COUNT(PERSON_ID) AS NUM_INVALID_RECORDS
FROM [SOURCE_CDMV4].[SCHEMA].PERSON
WHERE ETHNICITY_CONCEPT_ID IS NOT NULL
AND ETHNICITY_CONCEPT_ID NOT IN (
SELECT CONCEPT_ID
FROM [TARGET_CDMV5].[SCHEMA].CONCEPT
WHERE CONCEPT_ID = 0
OR (
STANDARD_CONCEPT = 'S'
AND LOWER(DOMAIN_ID) IN ('ethnicity')
)
)
HAVING COUNT(PERSON_ID) > 0
) warn;
/****
OBSERVATION_PERIOD
****/
INSERT INTO [TARGET_CDMV5].[SCHEMA].observation_period
SELECT observation_period_id
,person_id
,observation_period_start_date
,observation_period_end_date
,44814722 AS period_type_concept_id
FROM [SOURCE_CDMV4].[SCHEMA].OBSERVATION_PERIOD;
/****
DEATH
****/
INSERT INTO [TARGET_CDMV5].[SCHEMA].death
SELECT person_id
,death_date
,COALESCE(death_type_concept_id, 0) AS death_type_concept_id
,cause_of_death_concept_id AS cause_concept_id
,cause_of_death_source_value AS cause_source_value
,CAST(NULL AS INT) AS cause_source_concept_id
FROM [SOURCE_CDMV4].[SCHEMA].DEATH
LEFT JOIN concept_map_distinct cm1 ON DEATH.DEATH_TYPE_CONCEPT_ID = CM1.SOURCE_CONCEPT_ID
AND LOWER(DOMAIN_ID) IN ('death type');
INSERT INTO [TARGET_CDMV5].[SCHEMA].ETL_WARNINGS (WARNING_MESSAGE)
SELECT 'DEATH: ' || CAST(NUM_INVALID_RECORDS AS VARCHAR) || ' records in the source CDMv4 database have invalid DEATH_TYPE_CONCEPT_ID'
FROM (
SELECT COUNT(PERSON_ID) AS NUM_INVALID_RECORDS
FROM [SOURCE_CDMV4].[SCHEMA].DEATH
WHERE DEATH_TYPE_CONCEPT_ID NOT IN (
SELECT CONCEPT_ID
FROM [TARGET_CDMV5].[SCHEMA].CONCEPT
WHERE CONCEPT_ID = 0
OR (
STANDARD_CONCEPT = 'S'
AND LOWER(DOMAIN_ID) IN ('death type')
)
)
HAVING COUNT(PERSON_ID) > 0
) warn;
/****
VISIT_OCCURRENCE
****/
INSERT INTO [TARGET_CDMV5].[SCHEMA].visit_occurrence
SELECT visit_occurrence_id
,person_id
,COALESCE(cm1.target_concept_id, 0) AS visit_concept_id
,visit_start_date
,CAST(NULL AS VARCHAR(10)) visit_start_time
,visit_end_date
,CAST(NULL AS VARCHAR(10)) visit_end_time
,44818517 AS visit_type_concept_id
,CAST(NULL AS INT) provider_id
,care_site_id
,place_of_service_source_value AS visit_source_value
,CAST(NULL AS INT) visit_source_concept_id
FROM [SOURCE_CDMV4].[SCHEMA].VISIT_OCCURRENCE
LEFT JOIN concept_map cm1 ON VISIT_OCCURRENCE.PLACE_OF_SERVICE_CONCEPT_ID = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('visit');
INSERT INTO [TARGET_CDMV5].[SCHEMA].ETL_WARNINGS (WARNING_MESSAGE)
SELECT 'VISIT_OCCURRENCE: ' || CAST(NUM_INVALID_RECORDS AS VARCHAR) || ' records in the source CDMv4 database have invalid VISIT_CONCEPT_ID (from the CDMv4 PLACE_OF_SERVICE_CONCEPT_ID field)'
FROM (
SELECT COUNT(PERSON_ID) AS NUM_INVALID_RECORDS
FROM [SOURCE_CDMV4].[SCHEMA].VISIT_OCCURRENCE
WHERE PLACE_OF_SERVICE_CONCEPT_ID NOT IN (
SELECT CONCEPT_ID
FROM [TARGET_CDMV5].[SCHEMA].CONCEPT
WHERE CONCEPT_ID = 0
OR (
STANDARD_CONCEPT = 'S'
AND LOWER(DOMAIN_ID) IN ('visit')
)
)
HAVING COUNT(PERSON_ID) > 0
) warn;
/****
PROCEDURE_OCCURRENCE
****/
DROP TABLE IF EXISTS po_map;
/* / */
CREATE TEMP TABLE po_map
AS
SELECT
po.procedure_occurrence_id
,po.person_id
,po.procedure_concept_id
,po.procedure_date
,po.procedure_type_concept_id
,po.modifier_concept_id
,po.quantity
,po.provider_id
,po.visit_occurrence_id
,po.procedure_source_value
,po.procedure_source_concept_id
,po.qualifier_source_value
,de.drug_exposure_id AS origional_drug_id
FROM
[TARGET_CDMV5].[SCHEMA].procedure_occurrence po
LEFT JOIN [TARGET_CDMV5].[SCHEMA].drug_exposure de ON 1 = 0
WHERE 0 = 1;
/* / */
--find valid procedures from procedure table
INSERT INTO po_map
SELECT procedure_occurrence_id
,person_id
,COALESCE(cm1.target_concept_id, 0) AS procedure_concept_id
,procedure_date
,COALESCE(cm2.target_concept_id, 0) AS procedure_type_concept_id
,CAST(NULL AS INT) AS modifier_concept_id
,CAST(NULL AS INT) AS quantity
,associated_provider_id AS provider_id
,visit_occurrence_id
,procedure_source_value
,CAST(NULL AS INT) AS procedure_source_concept_id
,NULL AS qualifier_source_value
,CAST(NULL AS INT) AS origional_drug_id
FROM [SOURCE_CDMV4].[SCHEMA].PROCEDURE_OCCURRENCE
INNER JOIN concept_map cm1 ON PROCEDURE_OCCURRENCE.PROCEDURE_CONCEPT_ID = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('procedure')
INNER JOIN concept_map_distinct cmdis ON cm1.source_concept_id = cmdis.source_concept_id
AND cm1.domain_id = cmdis.domain_id
AND cmdis.targetConceptCount = 1
LEFT JOIN concept_map cm2 ON PROCEDURE_OCCURRENCE.PROCEDURE_TYPE_CONCEPT_ID = cm2.source_concept_id
AND LOWER(cm2.domain_id) IN ('procedure type')
LEFT JOIN concept_map_distinct cmdis2 ON cm2.source_concept_id = cmdis2.source_concept_id
AND cm2.domain_id = cmdis2.domain_id
AND cmdis2.targetConceptCount = 1
UNION ALL
-- All procedures that did not map to a standard concept in V4 should also carry over to V5
SELECT procedure_occurrence_id
,person_id
,procedure_concept_id
,procedure_date
,procedure_type_concept_id
,CAST(NULL AS INT) AS modifier_concept_id
,CAST(NULL AS INT) AS quantity
,associated_provider_id AS provider_id
,visit_occurrence_id
,procedure_source_value
,CAST(NULL AS INT) procedure_source_concept_id
,NULL qualifier_source_value
,CAST(NULL AS INT) AS origional_drug_id
FROM [SOURCE_CDMV4].[SCHEMA].PROCEDURE_OCCURRENCE
WHERE procedure_concept_id = 0
UNION ALL
-- All PROCEDURE_OCCURRENCE that do not map to a standard concept in V5 should also carry over with procedure_concept_id = 0
SELECT procedure_occurrence_id
,person_id
,0 AS procedure_concept_id
,procedure_date
,COALESCE(cm2.target_concept_id, 0) AS procedure_type_concept_id
,CAST(NULL AS INT) AS modifier_concept_id
,CAST(NULL AS INT) AS quantity
,associated_provider_id AS provider_id
,visit_occurrence_id
,procedure_source_value
,CAST(NULL AS INT) procedure_source_concept_id
,NULL qualifier_source_value
,CAST(NULL AS INT) AS origional_drug_id
FROM [SOURCE_CDMV4].[SCHEMA].PROCEDURE_OCCURRENCE
LEFT JOIN concept_map cm1 ON procedure_concept_id = cm1.source_concept_id
LEFT JOIN concept_map cm2 ON procedure_concept_id = cm2.source_concept_id
AND LOWER(cm2.domain_id) IN ('procedure type')
WHERE procedure_concept_id <> 0
AND cm1.domain_id IS NULL
UNION ALL
SELECT CASE
WHEN MAXROW.MAXROWID IS NULL
THEN 0
ELSE MAXROW.MAXROWID
END + row_number() OVER (
ORDER BY OCCURRENCE_ID
) AS procedure_occurrence_id
,person_id
,procedure_concept_id
,procedure_date
,procedure_type_concept_id
,modifier_concept_id
,quantity
,provider_id
,visit_occurrence_id
,procedure_source_value
,procedure_source_concept_id
,qualifier_source_value
,origional_drug_id
FROM (
--find valid procedures from procedure table that map to more than 1
--target concept in V5
SELECT person_id
,COALESCE(cm1.target_concept_id, 0) AS procedure_concept_id
,procedure_date
,COALESCE(cm2.target_concept_id, 0) AS procedure_type_concept_id
,CAST(NULL AS INT) AS modifier_concept_id
,CAST(NULL AS INT) AS quantity
,associated_provider_id AS provider_id
,visit_occurrence_id
,procedure_source_value
,CAST(NULL AS INT) procedure_source_concept_id
,NULL qualifier_source_value
,CAST(NULL AS INT) AS origional_drug_id
,CAST(NULL AS INT) AS OCCURRENCE_ID
FROM [SOURCE_CDMV4].[SCHEMA].PROCEDURE_OCCURRENCE
INNER JOIN concept_map cm1 ON PROCEDURE_OCCURRENCE.PROCEDURE_CONCEPT_ID = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('procedure')
INNER JOIN concept_map_distinct cmdis ON cm1.source_concept_id = cmdis.source_concept_id
AND cm1.domain_id = cmdis.domain_id
AND cmdis.targetConceptCount > 1
LEFT JOIN concept_map cm2 ON PROCEDURE_OCCURRENCE.PROCEDURE_TYPE_CONCEPT_ID = cm2.source_concept_id
AND LOWER(cm2.domain_id) IN ('procedure type')
UNION ALL
--find procedures that were previously classified as condition
SELECT person_id
,cm1.target_concept_id AS procedure_concept_id
,condition_start_date AS procedure_date
,0 AS procedure_type_concept_id
,CAST(NULL AS INT) AS modifier_concept_id
,CAST(NULL AS INT) AS quantity
,associated_provider_id AS provider_id
,visit_occurrence_id
,condition_source_value AS procedure_source_value
,CAST(NULL AS INT) AS procedure_source_concept_id
,NULL AS qualifier_source_value
,CAST(NULL AS INT) AS origional_drug_id
,condition_occurrence_id AS OCCURRENCE_ID
FROM [SOURCE_CDMV4].[SCHEMA].CONDITION_OCCURRENCE
INNER JOIN concept_map cm1 ON condition_occurrence.condition_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('procedure')
UNION ALL
--find procedures that were previously classified as drug
SELECT person_id
,cm1.target_concept_id AS procedure_concept_id
,drug_exposure_start_date AS procedure_date
,0 AS procedure_type_concept_id
,CAST(NULL AS INT) AS modifier_concept_id
,CAST(NULL AS INT) AS quantity
,prescribing_provider_id AS provider_id
,visit_occurrence_id
,drug_source_value AS procedure_source_value
,CAST(NULL AS INT) AS procedure_source_concept_id
,NULL AS qualifier_source_value
,drug_exposure_id AS origional_drug_id
,drug_exposure_id AS OCCURRENCE_ID
FROM [SOURCE_CDMV4].[SCHEMA].DRUG_EXPOSURE
INNER JOIN concept_map cm1 ON drug_exposure.drug_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('procedure')
--find procedures that were previously classified as observation
UNION ALL
SELECT person_id
,cm1.target_concept_id AS procedure_concept_id
,observation_date AS procedure_date
,0 AS procedure_type_concept_id
,CAST(NULL AS INT) AS modifier_concept_id
,CAST(NULL AS INT) AS quantity
,associated_provider_id AS provider_id
,visit_occurrence_id
,observation_source_value AS procedure_source_value
,CAST(NULL AS INT) AS procedure_source_concept_id
,NULL AS qualifier_source_value
,CAST(NULL AS INT) AS origional_drug_id
,OBSERVATION_ID AS OCCURRENCE_ID
FROM [SOURCE_CDMV4].[SCHEMA].OBSERVATION
INNER JOIN concept_map cm1 ON observation.observation_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('procedure')
) OTHERS
,(
SELECT MAX(PROCEDURE_OCCURRENCE_ID) AS MAXROWID
FROM [SOURCE_CDMV4].[SCHEMA].PROCEDURE_OCCURRENCE
) MAXROW;
INSERT INTO [TARGET_CDMV5].[SCHEMA].procedure_occurrence (
procedure_occurrence_id
,person_id
,procedure_concept_id
,procedure_date
,procedure_type_concept_id
,modifier_concept_id
,quantity
,provider_id
,visit_occurrence_id
,procedure_source_value
,procedure_source_concept_id
,qualifier_source_value
)
SELECT procedure_occurrence_id
,person_id
,procedure_concept_id
,procedure_date
,procedure_type_concept_id
,modifier_concept_id
,quantity
,provider_id
,visit_occurrence_id
,procedure_source_value
,procedure_source_concept_id
,qualifier_source_value
FROM po_map;
--warnings of invalid records
INSERT INTO [TARGET_CDMV5].[SCHEMA].ETL_WARNINGS (WARNING_MESSAGE)
SELECT 'PROCEDURE_OCCURRENCE: ' || CAST(NUM_INVALID_RECORDS AS VARCHAR) || ' records in the source CDMv4 database have invalid PROCOEDURE_CONCEPT_ID'
FROM (
SELECT COUNT(PERSON_ID) AS NUM_INVALID_RECORDS
FROM [SOURCE_CDMV4].[SCHEMA].PROCEDURE_OCCURRENCE
WHERE PROCEDURE_CONCEPT_ID NOT IN (
SELECT CONCEPT_ID
FROM [TARGET_CDMV5].[SCHEMA].CONCEPT
WHERE CONCEPT_ID = 0
OR STANDARD_CONCEPT = 'S'
)
HAVING COUNT(PERSON_ID) > 0
) warn;
INSERT INTO [TARGET_CDMV5].[SCHEMA].ETL_WARNINGS (WARNING_MESSAGE)
SELECT 'PROCEDURE_OCCURRENCE: ' || CAST(NUM_INVALID_RECORDS AS VARCHAR) || ' records in the source CDMv4 database have invalid PROCOEDURE_TYPE_CONCEPT_ID'
FROM (
SELECT COUNT(PERSON_ID) AS NUM_INVALID_RECORDS
FROM [SOURCE_CDMV4].[SCHEMA].PROCEDURE_OCCURRENCE
WHERE PROCEDURE_TYPE_CONCEPT_ID NOT IN (
SELECT CONCEPT_ID
FROM [TARGET_CDMV5].[SCHEMA].CONCEPT
WHERE CONCEPT_ID = 0
OR (
STANDARD_CONCEPT = 'S'
AND LOWER(DOMAIN_ID) IN ('procedure type')
)
)
HAVING COUNT(PERSON_ID) > 0
) warn;
/****
DRUG_EXPOSURE
****/
--find valid drugs from drug_exposure table
DROP TABLE IF EXISTS drgexp_map;
/* / */
CREATE TEMP TABLE drgexp_map
AS
SELECT
de.drug_exposure_id
,de.person_id
,de.drug_concept_id
,de.drug_exposure_start_date
,de.drug_exposure_end_date
,de.drug_type_concept_id
,de.stop_reason
,de.refills
,de.quantity
,de.days_supply
,de.sig
,de.route_concept_id
,de.effective_drug_dose
,de.dose_unit_concept_id
,de.lot_number
,de.provider_id
,de.visit_occurrence_id
,de.drug_source_value
,de.drug_source_concept_id
,de.route_source_value
,de.dose_unit_source_value
,po.procedure_occurrence_id AS origional_procedure_id
FROM
[TARGET_CDMV5].[SCHEMA].drug_exposure de
LEFT JOIN [TARGET_CDMV5].[SCHEMA].procedure_occurrence po ON 1 = 0
WHERE 0 = 1;
/* / */
INSERT INTO drgexp_map
SELECT drug_exposure_id
,person_id
,COALESCE(cm1.target_concept_id, 0) AS drug_concept_id
,drug_exposure_start_date
,drug_exposure_end_date
,COALESCE(cm2.target_concept_id, 0) drug_type_concept_id
,stop_reason
,refills
,quantity
,days_supply
,sig
,CAST(NULL AS INT) AS route_concept_id
,CAST(NULL AS NUMERIC) AS effective_drug_dose
,CAST(NULL AS INT) AS dose_unit_concept_id
,NULL AS lot_number
,prescribing_provider_id AS provider_id
,visit_occurrence_id
,drug_source_value
,CAST(NULL AS INT) AS drug_source_concept_id
,NULL AS route_source_value
,NULL AS dose_unit_source_value
,CAST(NULL AS INT) AS origional_procedure_id
FROM [SOURCE_CDMV4].[SCHEMA].DRUG_EXPOSURE
INNER JOIN concept_map cm1 ON drug_exposure.drug_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('drug')
INNER JOIN concept_map_distinct cmdis ON cm1.source_concept_id = cmdis.source_concept_id
AND cm1.domain_id = cmdis.domain_id
AND cmdis.targetConceptCount = 1
LEFT JOIN concept_map cm2 ON drug_exposure.drug_type_concept_id = cm2.source_concept_id
AND LOWER(cm2.domain_id) IN ('drug type')
INNER JOIN concept_map_distinct cmdis2 ON cm2.source_concept_id = cmdis2.source_concept_id
AND cm2.domain_id = cmdis2.domain_id
AND cmdis2.targetConceptCount = 1
WHERE drug_concept_id > 0 -- This condition will map those concepts that were mapped to valid concepts in V4
UNION ALL
-- All drug exposures that did not map to a standard concept in V4 should also carry over to V5
SELECT drug_exposure_id
,person_id
,drug_concept_id
,drug_exposure_start_date
,drug_exposure_end_date
,drug_type_concept_id
,stop_reason
,refills
,quantity
,days_supply
,sig
,CAST(NULL AS INT) AS route_concept_id
,CAST(NULL AS NUMERIC) AS effective_drug_dose
,CAST(NULL AS INT) AS dose_unit_concept_id
,NULL AS lot_number
,prescribing_provider_id AS provider_id
,visit_occurrence_id
,drug_source_value
,CAST(NULL AS INT) AS drug_source_concept_id
,NULL AS route_source_value
,NULL AS dose_unit_source_value
,CAST(NULL AS INT) AS origional_procedure_id
FROM [SOURCE_CDMV4].[SCHEMA].DRUG_EXPOSURE
WHERE drug_concept_id = 0
UNION ALL
-- All drug exposures that do not map to a standard concept in V5 should also carry over with condition_concept_id = 0
SELECT drug_exposure_id
,person_id
,0
,drug_exposure_start_date
,drug_exposure_end_date
,COALESCE(cm2.target_concept_id, 0) drug_type_concept_id
,stop_reason
,refills
,quantity
,days_supply
,sig
,CAST(NULL AS INT) AS route_concept_id
,CAST(NULL AS NUMERIC) AS effective_drug_dose
,CAST(NULL AS INT) AS dose_unit_concept_id
,NULL AS lot_number
,prescribing_provider_id AS provider_id
,visit_occurrence_id
,drug_source_value
,CAST(NULL AS INT) AS drug_source_concept_id
,NULL AS route_source_value
,NULL AS dose_unit_source_value
,CAST(NULL AS INT) AS origional_procedure_id
FROM [SOURCE_CDMV4].[SCHEMA].DRUG_EXPOSURE
LEFT JOIN concept_map cm1 ON drug_concept_id = cm1.source_concept_id
LEFT JOIN concept_map cm2 ON drug_exposure.drug_type_concept_id = cm2.source_concept_id
AND LOWER(cm2.domain_id) IN ('drug type')
WHERE drug_concept_id <> 0
AND cm1.domain_id IS NULL
UNION ALL
SELECT CASE
WHEN MAXROW.MAXROWID IS NULL
THEN 0
ELSE MAXROW.MAXROWID
END + row_number() OVER (
ORDER BY OCCURRENCE_ID
) AS drug_exposure_id
,person_id
,drug_concept_id
,drug_exposure_start_date
,drug_exposure_end_date
,drug_type_concept_id
,stop_reason
,refills
,quantity
,days_supply
,sig
,route_concept_id
,effective_drug_dose
,dose_unit_concept_id
,lot_number
,provider_id
,visit_occurrence_id
,drug_source_value
,drug_source_concept_id
,route_source_value
,dose_unit_source_value
,origional_procedure_id
FROM (
--find valid drugs from drug_exposure table that map to > 1 target concept
SELECT person_id
,COALESCE(cm1.target_concept_id, 0) AS drug_concept_id
,drug_exposure_start_date
,drug_exposure_end_date
,COALESCE(cm2.target_concept_id, 0) drug_type_concept_id
,stop_reason
,refills
,quantity
,days_supply
,sig
,CAST(NULL AS INT) AS route_concept_id
,CAST(NULL AS NUMERIC) AS effective_drug_dose
,CAST(NULL AS INT) AS dose_unit_concept_id
,NULL AS lot_number
,prescribing_provider_id AS provider_id
,visit_occurrence_id
,drug_source_value
,CAST(NULL AS INT) AS drug_source_concept_id
,NULL AS route_source_value
,NULL AS dose_unit_source_value
,CAST(NULL AS INT) AS origional_procedure_id
,CAST(NULL AS INT) AS OCCURRENCE_ID
FROM [SOURCE_CDMV4].[SCHEMA].DRUG_EXPOSURE
INNER JOIN concept_map cm1 ON drug_exposure.drug_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('drug')
INNER JOIN concept_map_distinct cmdis ON cm1.source_concept_id = cmdis.source_concept_id
AND cm1.domain_id = cmdis.domain_id
AND cmdis.targetConceptCount > 1
LEFT JOIN concept_map cm2 ON drug_exposure.drug_type_concept_id = cm2.source_concept_id
AND LOWER(cm2.domain_id) IN ('drug type')
UNION ALL
--find drugs that were previously classified as condition
SELECT person_id
,cm1.target_concept_id AS drug_concept_id
,condition_start_date AS drug_exposure_start_date
,NULL AS drug_exposure_end_date
,0 AS drug_type_concept_id
,NULL AS stop_reason
,CAST(NULL AS INT) AS refills
,CAST(NULL AS NUMERIC) AS quantity
,CAST(NULL AS INT) AS days_supply
,NULL AS sig
,CAST(NULL AS INT) AS route_concept_id
,CAST(NULL AS NUMERIC) AS effective_drug_dose
,CAST(NULL AS INT) AS dose_unit_concept_id
,NULL AS lot_number
,CAST(NULL AS INT) AS provider_id
,visit_occurrence_id
,condition_source_value AS drug_source_value
,CAST(NULL AS INT) AS drug_source_concept_id
,NULL AS route_source_value
,NULL AS dose_unit_source_value
,CAST(NULL AS INT) AS origional_procedure_id
,condition_occurrence_id AS occurrence_id
FROM [SOURCE_CDMV4].[SCHEMA].CONDITION_OCCURRENCE
INNER JOIN concept_map cm1 ON condition_occurrence.condition_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('drug')
--find drugs that were previously classified as procedure
UNION ALL
SELECT person_id
,cm1.target_concept_id AS drug_concept_id
,procedure_date AS drug_exposure_start_date
,TO_DATE(NULL , 'yyyymmdd') AS drug_exposure_end_date
,0 AS drug_type_concept_id
,NULL AS stop_reason
,CAST(NULL AS INT) AS refills
,CAST(NULL AS NUMERIC) AS quantity
,CAST(NULL AS INT) AS days_supply
,NULL AS sig
,CAST(NULL AS INT) AS route_concept_id
,CAST(NULL AS NUMERIC) AS effective_drug_dose
,CAST(NULL AS INT) AS dose_unit_concept_id
,NULL AS lot_number
,CAST(NULL AS INT) AS provider_id
,visit_occurrence_id
,procedure_source_value AS drug_source_value
,CAST(NULL AS INT) AS drug_source_concept_id
,NULL AS route_source_value
,NULL AS dose_unit_source_value
,procedure_occurrence_id AS origional_procedure_id
,procedure_occurrence_id AS occurrence_id
FROM [SOURCE_CDMV4].[SCHEMA].PROCEDURE_OCCURRENCE
INNER JOIN concept_map cm1 ON procedure_occurrence.procedure_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('drug')
--find drugs that were previously classified as observation
UNION ALL
SELECT person_id
,cm1.target_concept_id AS drug_concept_id
,observation_date AS drug_exposure_start_date
,TO_DATE(NULL , 'yyyymmdd') AS drug_exposure_end_date
,0 AS drug_type_concept_id
,NULL AS stop_reason
,CAST(NULL AS INT) AS refills
,CAST(NULL AS NUMERIC) AS quantity
,CAST(NULL AS INT) AS days_supply
,NULL AS sig
,CAST(NULL AS INT) AS route_concept_id
,CAST(NULL AS NUMERIC) AS effective_drug_dose
,CAST(NULL AS INT) AS dose_unit_concept_id
,NULL AS lot_number
,CAST(NULL AS INT) AS provider_id
,visit_occurrence_id
,observation_source_value AS drug_source_value
,CAST(NULL AS INT) AS drug_source_concept_id
,NULL AS route_source_value
,NULL AS dose_unit_source_value
,CAST(NULL AS INT) AS origional_procedure_id
,observation_id AS occurrence_id
FROM [SOURCE_CDMV4].[SCHEMA].OBSERVATION
INNER JOIN concept_map cm1 ON observation.observation_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('drug')
) OTHERS
,(
SELECT MAX(DRUG_EXPOSURE_ID) AS MAXROWID
FROM [SOURCE_CDMV4].[SCHEMA].DRUG_EXPOSURE
) MAXROW;
INSERT INTO [TARGET_CDMV5].[SCHEMA].drug_exposure (
drug_exposure_id
,person_id
,drug_concept_id
,drug_exposure_start_date
,drug_exposure_end_date
,drug_type_concept_id
,stop_reason
,refills
,quantity
,days_supply
,sig
,route_concept_id
,effective_drug_dose
,dose_unit_concept_id
,lot_number
,provider_id
,visit_occurrence_id
,drug_source_value
,drug_source_concept_id
,route_source_value
,dose_unit_source_value
)
SELECT drug_exposure_id
,person_id
,drug_concept_id
,drug_exposure_start_date
,drug_exposure_end_date
,drug_type_concept_id
,stop_reason
,refills
,quantity
,days_supply
,sig
,route_concept_id
,effective_drug_dose
,dose_unit_concept_id
,lot_number
,provider_id
,visit_occurrence_id
,drug_source_value
,drug_source_concept_id
,route_source_value
,dose_unit_source_value
FROM drgexp_map;
--warnings of invalid records
INSERT INTO [TARGET_CDMV5].[SCHEMA].ETL_WARNINGS (WARNING_MESSAGE)
SELECT 'DRUG_EXPOSURE: ' || CAST(NUM_INVALID_RECORDS AS VARCHAR) || ' records in the source CDMv4 database have invalid DRUG_CONCEPT_ID'
FROM (
SELECT COUNT(PERSON_ID) AS NUM_INVALID_RECORDS
FROM [SOURCE_CDMV4].[SCHEMA].DRUG_EXPOSURE
WHERE DRUG_CONCEPT_ID NOT IN (
SELECT CONCEPT_ID
FROM [TARGET_CDMV5].[SCHEMA].CONCEPT
WHERE CONCEPT_ID = 0
OR STANDARD_CONCEPT = 'S'
)
HAVING COUNT(PERSON_ID) > 0
) warn;
INSERT INTO [TARGET_CDMV5].[SCHEMA].ETL_WARNINGS (WARNING_MESSAGE)
SELECT 'DRUG_EXPOSURE: ' || CAST(NUM_INVALID_RECORDS AS VARCHAR) || ' records in the source CDMv4 database have invalid DRUG_TYPE_CONCEPT_ID'
FROM (
SELECT COUNT(PERSON_ID) AS NUM_INVALID_RECORDS
FROM [SOURCE_CDMV4].[SCHEMA].DRUG_EXPOSURE
WHERE DRUG_TYPE_CONCEPT_ID NOT IN (
SELECT CONCEPT_ID
FROM [TARGET_CDMV5].[SCHEMA].CONCEPT
WHERE CONCEPT_ID = 0
OR (
STANDARD_CONCEPT = 'S'
AND LOWER(DOMAIN_ID) IN ('drug type')
)
)
HAVING COUNT(PERSON_ID) > 0
) warn;
/****
CONDITION_OCCURRENCE
****/
--find valid conditions from condition_occurrence table
INSERT INTO [TARGET_CDMV5].[SCHEMA].condition_occurrence
SELECT condition_occurrence_id
,person_id
,COALESCE(cm1.target_concept_id, 0) AS condition_concept_id
,condition_start_date
,condition_end_date
,COALESCE(cm2.target_concept_id, 0) AS condition_type_concept_id
,stop_reason
,associated_provider_id AS provider_id
,visit_occurrence_id
,condition_source_value
,CAST(NULL AS INT) condition_source_concept_id
FROM [SOURCE_CDMV4].[SCHEMA].CONDITION_OCCURRENCE
INNER JOIN concept_map cm1 ON condition_occurrence.condition_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('condition')
INNER JOIN concept_map_distinct cmdis ON cm1.source_concept_id = cmdis.source_concept_id
AND cm1.domain_id = cmdis.domain_id
AND cmdis.targetConceptCount = 1
LEFT JOIN concept_map cm2 ON condition_occurrence.condition_type_concept_id = cm2.source_concept_id
AND LOWER(cm2.domain_id) IN ('condition type')
WHERE condition_concept_id > 0 -- This condition will map those concepts that were mapped to valid concepts in V4
UNION ALL
-- All conditions that did not map to a standard concept in V4 should also carry over to V5
SELECT condition_occurrence_id
,person_id
,condition_concept_id
,condition_start_date
,condition_end_date
,COALESCE(condition_type_concept_id, 0) AS condition_type_concept_id
,stop_reason
,associated_provider_id AS provider_id
,visit_occurrence_id
,condition_source_value
,CAST(NULL AS INT) condition_source_concept_id
FROM [SOURCE_CDMV4].[SCHEMA].CONDITION_OCCURRENCE
WHERE condition_concept_id = 0
UNION ALL
-- All conditions that do not map to a standard concept in V5 should also carry over with condition_concept_id = 0
SELECT condition_occurrence_id
,person_id
,0 AS condition_concept_id
,condition_start_date
,condition_end_date
,COALESCE(cm2.target_concept_id, 0) AS condition_type_concept_id
,stop_reason
,associated_provider_id AS provider_id
,visit_occurrence_id
,condition_source_value
,CAST(NULL AS INT) condition_source_concept_id
FROM [SOURCE_CDMV4].[SCHEMA].CONDITION_OCCURRENCE
LEFT JOIN concept_map cm1 ON condition_occurrence.condition_concept_id = cm1.source_concept_id
LEFT JOIN concept_map cm2 ON condition_occurrence.condition_type_concept_id = cm2.source_concept_id
AND LOWER(cm2.domain_id) IN ('condition type')
WHERE condition_concept_id <> 0
AND cm1.domain_id IS NULL
UNION ALL
SELECT CASE
WHEN MAXROW.MAXROWID IS NULL
THEN 0
ELSE MAXROW.MAXROWID
END + row_number() OVER (
ORDER BY OCCURRENCE_ID
) AS drug_exposure_id
,person_id
,condition_concept_id
,condition_start_date
,condition_end_date
,condition_type_concept_id
,stop_reason
,provider_id
,visit_occurrence_id
,condition_source_value
,condition_source_concept_id
FROM (
--find valid conditions from condition_occurrence table that map to > 1 target concept
SELECT person_id
,COALESCE(cm1.target_concept_id, 0) AS condition_concept_id
,condition_start_date
,condition_end_date
,COALESCE(cm2.target_concept_id, 0) AS condition_type_concept_id
,stop_reason
,associated_provider_id AS provider_id
,visit_occurrence_id
,condition_source_value
,CAST(NULL AS INT) condition_source_concept_id
,NULL AS OCCURRENCE_ID
FROM [SOURCE_CDMV4].[SCHEMA].CONDITION_OCCURRENCE
INNER JOIN concept_map cm1 ON condition_occurrence.condition_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('condition')
INNER JOIN concept_map_distinct cmdis ON cm1.source_concept_id = cmdis.source_concept_id
AND cm1.domain_id = cmdis.domain_id
AND cmdis.targetConceptCount > 1
LEFT JOIN concept_map cm2 ON condition_occurrence.condition_type_concept_id = cm2.source_concept_id
AND LOWER(cm2.domain_id) IN ('condition type')
WHERE condition_concept_id > 0 -- This condition will map those concepts that were mapped to valid concepts in V4
UNION ALL
--find conditions that were previously classified as procedure
SELECT person_id
,cm1.target_concept_id AS condition_concept_id
,procedure_date AS condition_start_date
,NULL AS condition_end_date
,0 AS condition_type_concept_id
,NULL AS stop_reason
,associated_provider_id AS provider_id
,visit_occurrence_id
,procedure_source_value AS condition_source_value
,CAST(NULL AS INT) condition_source_concept_id
,procedure_occurrence_id AS OCCURRENCE_ID
FROM [SOURCE_CDMV4].[SCHEMA].PROCEDURE_OCCURRENCE
INNER JOIN concept_map cm1 ON procedure_occurrence.procedure_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('condition')
--find conditions that were previously classified as drug
UNION ALL
SELECT person_id
,cm1.target_concept_id AS condition_concept_id
,drug_exposure_start_date AS condition_start_date
,NULL AS condition_end_date
,0 AS condition_type_concept_id
,NULL AS stop_reason
,prescribing_provider_id AS provider_id
,visit_occurrence_id
,drug_source_value AS condition_source_value
,CAST(NULL AS INT) condition_source_concept_id
,drug_exposure_id AS OCCURRENCE_ID
FROM [SOURCE_CDMV4].[SCHEMA].DRUG_EXPOSURE
INNER JOIN concept_map cm1 ON drug_exposure.drug_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('condition')
--find conditions that were previously classified as observation
UNION ALL
SELECT person_id
,cm1.target_concept_id AS condition_concept_id
,observation_date AS condition_start_date
,NULL AS condition_end_date
,0 AS condition_type_concept_id
,NULL AS stop_reason
,associated_provider_id AS provider_id
,visit_occurrence_id
,observation_source_value AS condition_source_value
,CAST(NULL AS INT) condition_source_concept_id
,observation_id AS OCCURRENCE_ID
FROM [SOURCE_CDMV4].[SCHEMA].OBSERVATION
INNER JOIN concept_map cm1 ON observation.observation_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('condition')
) OTHERS
,(
SELECT MAX(condition_occurrence_id) AS MAXROWID
FROM [SOURCE_CDMV4].[SCHEMA].CONDITION_OCCURRENCE
) MAXROW;
--warnings of invalid records
INSERT INTO [TARGET_CDMV5].[SCHEMA].ETL_WARNINGS (WARNING_MESSAGE)
SELECT 'CONDITION_OCCURRENCE: ' || CAST(NUM_INVALID_RECORDS AS VARCHAR) || ' records in the source CDMv4 database have invalid CONDITION_CONCEPT_ID'
FROM (
SELECT COUNT(PERSON_ID) AS NUM_INVALID_RECORDS
FROM [SOURCE_CDMV4].[SCHEMA].CONDITION_OCCURRENCE
WHERE CONDITION_CONCEPT_ID NOT IN (
SELECT CONCEPT_ID
FROM [TARGET_CDMV5].[SCHEMA].CONCEPT
WHERE CONCEPT_ID = 0
OR STANDARD_CONCEPT = 'S'
)
HAVING COUNT(PERSON_ID) > 0
) warn;
INSERT INTO [TARGET_CDMV5].[SCHEMA].ETL_WARNINGS (WARNING_MESSAGE)
SELECT 'CONDIITON_OCCURRENCE: ' || CAST(NUM_INVALID_RECORDS AS VARCHAR) || ' records in the source CDMv4 database have invalid CONDITION_TYPE_CONCEPT_ID'
FROM (
SELECT COUNT(PERSON_ID) AS NUM_INVALID_RECORDS
FROM [SOURCE_CDMV4].[SCHEMA].CONDITION_OCCURRENCE
WHERE CONDITION_TYPE_CONCEPT_ID NOT IN (
SELECT CONCEPT_ID
FROM [TARGET_CDMV5].[SCHEMA].CONCEPT
WHERE CONCEPT_ID = 0
OR (
STANDARD_CONCEPT = 'S'
AND LOWER(DOMAIN_ID) IN ('condition type')
)
)
HAVING COUNT(PERSON_ID) > 0
) warn;
/****
DEVICE_EXPOSURE
****/
INSERT INTO [TARGET_CDMV5].[SCHEMA].device_exposure
SELECT row_number() OVER (
ORDER BY OCCURRENCE_ID
) AS device_exposure_id
,person_id
,device_concept_id
,device_exposure_start_date
,device_exposure_end_date
,device_type_concept_id
,unique_device_id
,quantity
,provider_id
,visit_occurrence_id
,device_source_value
,device_source_concept_id
FROM (
--find devices that were previously classified as procedures
SELECT PERSON_ID
,cm1.target_concept_id AS DEVICE_CONCEPT_ID
,PROCEDURE_DATE AS DEVICE_EXPOSURE_START_DATE
,TO_DATE(NULL , 'yyyymmdd') AS DEVICE_EXPOSURE_END_DATE
,0 AS DEVICE_TYPE_CONCEPT_ID
,CAST(NULL AS VARCHAR(50)) unique_device_id
,CAST(NULL AS INT) quantity
,ASSOCIATED_PROVIDER_ID AS PROVIDER_ID
,VISIT_OCCURRENCE_ID
,PROCEDURE_SOURCE_VALUE AS DEVICE_SOURCE_VALUE
,0 AS device_source_concept_id
,PROCEDURE_OCCURRENCE_ID AS OCCURRENCE_ID
FROM [SOURCE_CDMV4].[SCHEMA].PROCEDURE_OCCURRENCE
INNER JOIN concept_map cm1 ON procedure_occurrence.procedure_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('device')
--find devices that were previously classified as drug exposure
UNION ALL
SELECT PERSON_ID
,cm1.target_concept_id AS DEVICE_CONCEPT_ID
,DRUG_EXPOSURE_START_DATE AS DEVICE_EXPOSURE_START_DATE
,TO_DATE(NULL , 'yyyymmdd') AS DEVICE_EXPOSURE_END_DATE
,0 AS DEVICE_TYPE_CONCEPT_ID
,CAST(NULL AS VARCHAR(50)) unique_device_id
,quantity
,PRESCRIBING_PROVIDER_ID AS PROVIDER_ID
,VISIT_OCCURRENCE_ID
,DRUG_SOURCE_VALUE AS DEVICE_SOURCE_VALUE
,0 AS device_source_concept_id
,DRUG_EXPOSURE_ID AS OCCURRENCE_ID
FROM [SOURCE_CDMV4].[SCHEMA].DRUG_EXPOSURE
INNER JOIN concept_map cm1 ON drug_exposure.drug_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('device')
--find devices that were previously classified as conditions
UNION ALL
SELECT PERSON_ID
,cm1.target_concept_id AS DEVICE_CONCEPT_ID
,CONDITION_START_DATE AS DEVICE_EXPOSURE_START_DATE
,TO_DATE(NULL , 'yyyymmdd') AS DEVICE_EXPOSURE_END_DATE
,0 AS DEVICE_TYPE_CONCEPT_ID
,CAST(NULL AS VARCHAR(50)) unique_device_id
,CAST(NULL AS INT) quantity
,ASSOCIATED_PROVIDER_ID AS PROVIDER_ID
,VISIT_OCCURRENCE_ID
,CONDITION_SOURCE_VALUE AS DEVICE_SOURCE_VALUE
,0 AS device_source_concept_id
,CONDITION_OCCURRENCE_ID AS OCCURRENCE_ID
FROM [SOURCE_CDMV4].[SCHEMA].CONDITION_OCCURRENCE
INNER JOIN concept_map cm1 ON condition_occurrence.condition_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('device')
--find devices that were previously classified as observations
UNION ALL
SELECT PERSON_ID
,cm1.target_concept_id AS DEVICE_CONCEPT_ID
,OBSERVATION_DATE AS DEVICE_EXPOSURE_START_DATE
,TO_DATE(NULL , 'yyyymmdd') AS DEVICE_EXPOSURE_END_DATE
,0 AS DEVICE_TYPE_CONCEPT_ID
,CAST(NULL AS VARCHAR(50)) unique_device_id
,CAST(NULL AS INT) quantity
,ASSOCIATED_PROVIDER_ID AS PROVIDER_ID
,VISIT_OCCURRENCE_ID
,OBSERVATION_SOURCE_VALUE AS DEVICE_SOURCE_VALUE
,0 AS device_source_concept_id
,OBSERVATION_ID AS OCCURRENCE_ID
FROM [SOURCE_CDMV4].[SCHEMA].OBSERVATION
INNER JOIN concept_map cm1 ON observation.observation_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('device')
) OTHERS;
/****
MEASUREMENT
****/
--find valid measurements from observation table
INSERT INTO [TARGET_CDMV5].[SCHEMA].measurement
SELECT row_number() OVER (
ORDER BY occurrence_id
) AS measurement_id
,person_id
,measurement_concept_id
,measurement_date
,measurement_time
,measurement_type_concept_id
,operator_concept_id
,value_as_number
,value_as_concept_id
,unit_concept_id
,range_low
,range_high
,provider_id
,visit_occurrence_id
,measurement_source_value
,measurement_source_concept_id
,unit_source_value
,value_source_value
FROM (
--find mesaurements that were previously classified as observations
SELECT person_id
,cm1.target_concept_id AS measurement_concept_id
,OBSERVATION_DATE AS measurement_date
,CAST(OBSERVATION_TIME AS VARCHAR(50)) AS measurement_time
,0 AS measurement_type_concept_id
,CAST(NULL AS INT) operator_concept_id
,value_as_number
,value_as_concept_id
,COALESCE(cm2.target_concept_id, 0) AS unit_concept_id
,range_low
,range_high
,ASSOCIATED_PROVIDER_ID AS provider_id
,visit_occurrence_id
,OBSERVATION_SOURCE_VALUE AS measurement_source_value
,CAST(NULL AS INT) measurement_source_concept_id
,unit_source_value AS unit_source_value
,cast(NULL AS VARCHAR(50)) AS value_source_value
,observation_id AS occurrence_id
FROM [SOURCE_CDMV4].[SCHEMA].OBSERVATION
INNER JOIN concept_map cm1 ON observation.observation_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('measurement')
LEFT JOIN concept_map cm2 ON observation.unit_concept_id = cm2.source_concept_id
AND LOWER(cm1.domain_id) IN ('unit')
UNION ALL
SELECT person_id
,cm1.target_concept_id AS measurement_concept_id
,procedure_date AS measurement_date
,CAST(NULL AS VARCHAR(50)) AS measurement_time
,0 AS measurement_type_concept_id
,CAST(NULL AS INT) AS operator_concept_id
,CAST(NULL AS INT) AS value_as_number
,CAST(NULL AS INT) AS value_as_concept_id
,CAST(NULL AS INT) AS unit_concept_id
,CAST(NULL AS INT) AS range_low
,CAST(NULL AS INT) AS range_high
,associated_provider_id AS provider_id
,visit_occurrence_id
,procedure_source_value AS measurement_source_value
,CAST(NULL AS INT) AS measurement_source_concept_id
,CAST(NULL AS VARCHAR(50)) AS unit_source_value
,CAST(NULL AS VARCHAR(50)) AS value_source_value
,procedure_occurrence_id AS occurrence_id
FROM [SOURCE_CDMV4].[SCHEMA].PROCEDURE_OCCURRENCE
INNER JOIN concept_map cm1 ON procedure_occurrence.procedure_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('measurement')
UNION ALL
SELECT person_id
,cm1.target_concept_id AS measurement_concept_id
,condition_start_date AS measurement_date
,CAST(NULL AS VARCHAR(50)) AS measurement_time
,0 AS measurement_type_concept_id
,CAST(NULL AS INT) AS operator_concept_id
,CAST(NULL AS INT) AS value_as_number
,CAST(NULL AS INT) AS value_as_concept_id
,CAST(NULL AS INT) AS unit_concept_id
,CAST(NULL AS INT) AS range_low
,CAST(NULL AS INT) AS range_high
,associated_provider_id AS provider_id
,visit_occurrence_id
,condition_source_value AS measurement_source_value
,CAST(NULL AS INT) AS measurement_source_concept_id
,CAST(NULL AS VARCHAR(50)) AS unit_source_value
,CAST(NULL AS VARCHAR(50)) AS value_source_value
,condition_occurrence_id AS occurrence_id
FROM [SOURCE_CDMV4].[SCHEMA].CONDITION_OCCURRENCE
INNER JOIN concept_map cm1 ON condition_occurrence.condition_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('measurement')
UNION ALL
SELECT person_id
,cm1.target_concept_id AS measurement_concept_id
,drug_exposure_start_date AS measurement_date
,CAST(NULL AS VARCHAR(50)) AS measurement_time
,0 AS measurement_type_concept_id
,CAST(NULL AS INT) AS operator_concept_id
,CAST(NULL AS INT) AS value_as_number
,CAST(NULL AS INT) AS value_as_concept_id
,CAST(NULL AS INT) AS unit_concept_id
,CAST(NULL AS INT) AS range_low
,CAST(NULL AS INT) AS range_high
,prescribing_provider_id AS provider_id
,visit_occurrence_id
,drug_source_value AS measurement_source_value
,CAST(NULL AS INT) AS measurement_source_concept_id
,CAST(NULL AS VARCHAR(50)) AS unit_source_value
,CAST(NULL AS VARCHAR(50)) AS value_source_value
,drug_exposure_id AS occurrence_id
FROM [SOURCE_CDMV4].[SCHEMA].drug_exposure
INNER JOIN concept_map cm1 ON drug_exposure.drug_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('measurement')
) OTHERS;
/****
OBSERVATION
****/
--find valid observation from observation table
INSERT INTO [TARGET_CDMV5].[SCHEMA].observation
SELECT observation_id
,person_id
,observation_concept_id
,observation_date
,CAST(observation_time AS VARCHAR(50)) AS observation_time
,observation_type_concept_id
,value_as_number
,value_as_string
,value_as_concept_id
,CAST(NULL AS INT) qualifier_concept_id
,unit_concept_id
,associated_provider_id AS provider_id
,visit_occurrence_id
,observation_source_value
,CAST(NULL AS INT) observation_source_concept_id
,unit_source_value
,cast(NULL AS VARCHAR(50)) qualifier_source_value
FROM [SOURCE_CDMV4].[SCHEMA].OBSERVATION
WHERE observation_concept_id NOT IN (
SELECT source_concept_id
FROM concept_map_distinct
WHERE LOWER(domain_id) IN (
'condition'
,'drug'
,'procedure'
,'device'
,'measurement'
)
)
--find observations that were previously classified as procedure
UNION ALL
SELECT CASE
WHEN MAXROW.MAXROWID IS NULL
THEN 0
ELSE MAXROW.MAXROWID
END + row_number() OVER (
ORDER BY OCCURRENCE_ID
) AS observation_id
,person_id
,observation_concept_id
,observation_date
,observation_time
,observation_type_concept_id
,value_as_number
,value_as_string
,value_as_concept_id
,qualifier_concept_id
,unit_concept_id
,provider_id
,visit_occurrence_id
,observation_source_value
,observation_source_concept_id
,unit_source_value
,qualifier_source_value
FROM (
SELECT person_id
,cm1.target_concept_id AS observation_concept_id
,procedure_date AS observation_date
,CAST(NULL AS VARCHAR(50)) AS observation_time
,0 AS observation_type_concept_id
,CAST(NULL AS NUMERIC) AS value_as_number
,NULL AS value_as_string
,CAST(NULL AS INT) AS value_as_concept_id
,CAST(NULL AS INT) qualifier_concept_id
,CAST(NULL AS INT) AS unit_concept_id
,associated_provider_id AS provider_id
,visit_occurrence_id
,procedure_source_value AS observation_source_value
,CAST(NULL AS INT) observation_source_concept_id
,NULL AS unit_source_value
,cast(NULL AS VARCHAR(50)) qualifier_source_value
,procedure_occurrence_id AS occurrence_id
FROM [SOURCE_CDMV4].[SCHEMA].PROCEDURE_OCCURRENCE
INNER JOIN concept_map cm1 ON procedure_occurrence.procedure_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('observation')
--find observations that were previously classified as condition
UNION ALL
SELECT person_id
,cm1.target_concept_id AS observation_concept_id
,condition_start_date AS observation_date
,CAST(NULL AS VARCHAR(50)) AS observation_time
,0 AS observation_type_concept_id
,CAST(NULL AS NUMERIC) AS value_as_number
,NULL AS value_as_string
,CAST(NULL AS INT) AS value_as_concept_id
,CAST(NULL AS INT) qualifier_concept_id
,CAST(NULL AS INT) AS unit_concept_id
,associated_provider_id AS provider_id
,visit_occurrence_id
,condition_source_value AS observation_source_value
,CAST(NULL AS INT) observation_source_concept_id
,NULL AS unit_source_value
,cast(NULL AS VARCHAR(50)) qualifier_source_value
,condition_occurrence_id AS occurrence_id
FROM [SOURCE_CDMV4].[SCHEMA].CONDITION_OCCURRENCE
INNER JOIN concept_map cm1 ON condition_occurrence.condition_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('observation')
UNION ALL
--find DRG observations that were previously classified as procedure_cost
SELECT po.person_id
,cm1.target_concept_id AS observation_concept_id
,po.procedure_date AS observation_date
,CAST(NULL AS VARCHAR(50)) AS observation_time
,0 AS observation_type_concept_id
,CAST(NULL AS NUMERIC) AS value_as_number
,NULL AS value_as_string
,CAST(NULL AS INT) AS value_as_concept_id
,CAST(NULL AS INT) qualifier_concept_id
,CAST(NULL AS INT) AS unit_concept_id
,po.associated_provider_id AS provider_id
,po.visit_occurrence_id
,pc.DISEASE_CLASS_SOURCE_VALUE AS observation_source_value
,cm1.source_concept_id as observation_source_concept_id
,NULL AS unit_source_value
,cast(NULL AS VARCHAR(50)) qualifier_source_value
,po.procedure_occurrence_id AS occurrence_id
FROM [SOURCE_CDMV4].[SCHEMA].PROCEDURE_COST pc
INNER JOIN [SOURCE_CDMV4].[SCHEMA].PROCEDURE_OCCURRENCE po ON pc.PROCEDURE_OCCURRENCE_ID = po.PROCEDURE_OCCURRENCE_ID
INNER JOIN concept_map cm1 ON pc.disease_class_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('observation')
UNION ALL
--find observations that were previously classified as drug exposure
SELECT person_id
,cm1.target_concept_id AS observation_concept_id
,drug_exposure_start_date AS observation_date
,CAST(NULL AS VARCHAR(10)) AS observation_time
,0 AS observation_type_concept_id
,CAST(NULL AS NUMERIC) AS value_as_number
,NULL AS value_as_string
,CAST(NULL AS INT) AS value_as_concept_id
,CAST(NULL AS INT) qualifier_concept_id
,CAST(NULL AS INT) AS unit_concept_id
,CAST(NULL AS INT) AS provider_id
,visit_occurrence_id
,drug_source_value AS observation_source_value
,CAST(NULL AS INT) observation_source_concept_id
,NULL AS unit_source_value
,cast(NULL AS VARCHAR(50)) qualifier_source_value
,drug_exposure_id AS occurrence_id
FROM [SOURCE_CDMV4].[SCHEMA].DRUG_EXPOSURE
INNER JOIN concept_map cm1 ON drug_exposure.drug_concept_id = cm1.source_concept_id
AND LOWER(cm1.domain_id) IN ('observation')
) OTHERS
,(
SELECT MAX(OBSERVATION_ID) AS MAXROWID
FROM [SOURCE_CDMV4].[SCHEMA].OBSERVATION
) MAXROW;
/****
PAYER_PLAN_PERIOD
****/
INSERT INTO [TARGET_CDMV5].[SCHEMA].payer_plan_period
SELECT payer_plan_period_id
,person_id
,payer_plan_period_start_date
,payer_plan_period_end_date
,payer_source_value
,plan_source_value
,family_source_value
FROM [SOURCE_CDMV4].[SCHEMA].PAYER_PLAN_PERIOD;
/****
DRUG_COST
note : if there were invalid drug concepts in DRUG_EXPOSURE, those records may not enter CDMv5 but costs will persist
****/
INSERT INTO [TARGET_CDMV5].[SCHEMA].drug_cost
SELECT drug_cost_id
,dc.drug_exposure_id
,cast(NULL AS INT) currency_concept_id
,paid_copay
,paid_coinsurance
,paid_toward_deductible
,paid_by_payer
,paid_by_coordination_benefits
,total_out_of_pocket
,total_paid
,ingredient_cost
,dispensing_fee
,average_wholesale_price
,payer_plan_period_id
FROM [SOURCE_CDMV4].[SCHEMA].DRUG_COST dc;
-- insert procedure costs for procedures that were inserted into the drug_exposure table
INSERT INTO [TARGET_CDMV5].[SCHEMA].drug_cost
SELECT CASE
WHEN MAXROW.MAXROWID IS NULL
THEN 0
ELSE MAXROW.MAXROWID
END + row_number() OVER (
ORDER BY OCCURRENCE_ID
) AS drug_cost_id
,drug_exposure_id
,cast(NULL AS INT) currency_concept_id
,paid_copay
,paid_coinsurance
,paid_toward_deductible
,paid_by_payer
,paid_by_coordination_benefits
,total_out_of_pocket
,total_paid
,ingredient_cost
,dispensing_fee
,average_wholesale_price
,payer_plan_period_id
FROM (
SELECT drug_exposure_id
,po.person_id
,paid_copay
,paid_coinsurance
,paid_toward_deductible
,paid_by_payer
,paid_by_coordination_benefits
,total_out_of_pocket
,total_paid
,CAST(NULL AS NUMERIC) AS ingredient_cost
,CAST(NULL AS NUMERIC) AS dispensing_fee
,CAST(NULL AS NUMERIC) AS average_wholesale_price
,payer_plan_period_id
,procedure_cost_id AS OCCURRENCE_ID
FROM [SOURCE_CDMV4].[SCHEMA].PROCEDURE_OCCURRENCE po
INNER JOIN [SOURCE_CDMV4].[SCHEMA].PROCEDURE_COST pc ON po.procedure_occurrence_id = pc.procedure_occurrence_id
--JOIN dbo.drug_exposure de on de.person_id = po.person_id and pc.procedure_occurrence_id = de.origional_procedure_id
INNER JOIN drgexp_map de ON de.person_id = po.person_id
AND pc.procedure_occurrence_id = de.origional_procedure_id
) OTHERS
,(
SELECT MAX(drug_cost_id) AS MAXROWID
FROM [SOURCE_CDMV4].[SCHEMA].DRUG_COST
) MAXROW;
/****
PROCEDURE_COST
note : if there were invalid procedure concepts in PROCEDURE_OCCURRENCE, those records may not enter CDMv5 but costs will persist
****/
INSERT INTO [TARGET_CDMV5].[SCHEMA].procedure_cost
SELECT procedure_cost_id
,procedure_occurrence_id
,cast(NULL AS INT) currency_concept_id
,paid_copay
,paid_coinsurance
,paid_toward_deductible
,paid_by_payer
,paid_by_coordination_benefits
,total_out_of_pocket
,total_paid
,payer_plan_period_id
,revenue_code_concept_id
,revenue_code_source_value
FROM [SOURCE_CDMV4].[SCHEMA].PROCEDURE_COST;
-- insert drug costs for drugs that were inserted into the procedure_occurrence table
INSERT INTO [TARGET_CDMV5].[SCHEMA].procedure_cost
SELECT CASE
WHEN MAXROW.MAXROWID IS NULL
THEN 0
ELSE MAXROW.MAXROWID
END + row_number() OVER (
ORDER BY OCCURRENCE_ID
) AS procedure_cost_id
,procedure_occurrence_id
,cast(NULL AS INT) currency_concept_id
,paid_copay
,paid_coinsurance
,paid_toward_deductible
,paid_by_payer
,paid_by_coordination_benefits
,total_out_of_pocket
,total_paid
,payer_plan_period_id
,revenue_code_concept_id
,revenue_code_source_value
FROM (
SELECT po.procedure_occurrence_id
,po.person_id
,paid_copay
,paid_coinsurance
,paid_toward_deductible
,paid_by_payer
,paid_by_coordination_benefits
,total_out_of_pocket
,total_paid
,CAST(NULL AS NUMERIC) AS ingredient_cost
,CAST(NULL AS NUMERIC) AS dispensing_fee
,CAST(NULL AS NUMERIC) AS average_wholesale_price
,payer_plan_period_id
,CAST(NULL AS INT) AS revenue_code_concept_id
,CAST(NULL AS INT) AS revenue_code_source_value
,drug_cost_id AS OCCURRENCE_ID
FROM [SOURCE_CDMV4].[SCHEMA].DRUG_EXPOSURE de
INNER JOIN [SOURCE_CDMV4].[SCHEMA].DRUG_COST dc ON de.drug_exposure_id = dc.drug_exposure_id
--JOIN dbo.procedure_occurrence po on de.person_id = po.person_id and de.drug_exposure_id = po.origional_drug_id
INNER JOIN po_map po ON de.person_id = po.person_id
AND de.drug_exposure_id = po.origional_drug_id
) OTHERS
,(
SELECT MAX(drug_cost_id) AS MAXROWID
FROM [SOURCE_CDMV4].[SCHEMA].DRUG_COST
) MAXROW;
/****
DRUG ERA
Note: Eras derived from DRUG_EXPOSURE table, using 30d gap
****/
DROP TABLE IF EXISTS cteDrugTarget;
/* / */
-- Normalize DRUG_EXPOSURE_END_DATE to either the existing drug exposure end date, or add days supply, or add 1 day to the start date
CREATE TEMP TABLE cteDrugTarget
AS
SELECT
d.DRUG_EXPOSURE_ID
,d.PERSON_ID
,c.CONCEPT_ID
,d.DRUG_TYPE_CONCEPT_ID
,DRUG_EXPOSURE_START_DATE
,COALESCE(DRUG_EXPOSURE_END_DATE, ( DRUG_EXPOSURE_START_DATE + DAYS_SUPPLY), ( DRUG_EXPOSURE_START_DATE + 1)) AS DRUG_EXPOSURE_END_DATE
,c.CONCEPT_ID AS INGREDIENT_CONCEPT_ID
FROM
[TARGET_CDMV5].[SCHEMA].DRUG_EXPOSURE d
INNER JOIN [TARGET_CDMV5].[SCHEMA].CONCEPT_ANCESTOR ca ON ca.DESCENDANT_CONCEPT_ID = d.DRUG_CONCEPT_ID
INNER JOIN [TARGET_CDMV5].[SCHEMA].CONCEPT c ON ca.ANCESTOR_CONCEPT_ID = c.CONCEPT_ID
WHERE c.VOCABULARY_ID = 'RxNorm'
AND c.CONCEPT_CLASS_ID = 'Ingredient';
/* / */
DROP TABLE IF EXISTS cteEndDates;
/* / */
CREATE TEMP TABLE cteEndDates
AS
SELECT
PERSON_ID
,INGREDIENT_CONCEPT_ID
,( EVENT_DATE + - 30) AS END_DATE -- unpad the end date
FROM
(
SELECT E1.PERSON_ID
,E1.INGREDIENT_CONCEPT_ID
,E1.EVENT_DATE
,COALESCE(E1.START_ORDINAL, MAX(E2.START_ORDINAL)) START_ORDINAL
,E1.OVERALL_ORD
FROM (
SELECT PERSON_ID
,INGREDIENT_CONCEPT_ID
,EVENT_DATE
,EVENT_TYPE
,START_ORDINAL
,ROW_NUMBER() OVER (
PARTITION BY PERSON_ID
,INGREDIENT_CONCEPT_ID ORDER BY EVENT_DATE
,EVENT_TYPE
) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date
FROM (
-- select the start dates, assigning a row number to each
SELECT PERSON_ID
,INGREDIENT_CONCEPT_ID
,DRUG_EXPOSURE_START_DATE AS EVENT_DATE
,0 AS EVENT_TYPE
,ROW_NUMBER() OVER (
PARTITION BY PERSON_ID
,INGREDIENT_CONCEPT_ID ORDER BY DRUG_EXPOSURE_START_DATE
) AS START_ORDINAL
FROM cteDrugTarget
UNION ALL
-- add the end dates with NULL as the row number, padding the end dates by 30 to allow a grace period for overlapping ranges.
SELECT PERSON_ID
,INGREDIENT_CONCEPT_ID
,( DRUG_EXPOSURE_END_DATE + 30)
,1 AS EVENT_TYPE
,NULL
FROM cteDrugTarget
) RAWDATA
) E1
INNER JOIN (
SELECT PERSON_ID
,INGREDIENT_CONCEPT_ID
,DRUG_EXPOSURE_START_DATE AS EVENT_DATE
,ROW_NUMBER() OVER (
PARTITION BY PERSON_ID
,INGREDIENT_CONCEPT_ID ORDER BY DRUG_EXPOSURE_START_DATE
) AS START_ORDINAL
FROM cteDrugTarget
) E2 ON E1.PERSON_ID = E2.PERSON_ID
AND E1.INGREDIENT_CONCEPT_ID = E2.INGREDIENT_CONCEPT_ID
AND E2.EVENT_DATE <= E1.EVENT_DATE
GROUP BY E1.PERSON_ID
,E1.INGREDIENT_CONCEPT_ID
,E1.EVENT_DATE
,E1.START_ORDINAL
,E1.OVERALL_ORD
) E
WHERE 2 * E.START_ORDINAL - E.OVERALL_ORD = 0;
/* / */
DROP TABLE IF EXISTS cteDrugExpEnds;
/* / */
CREATE TEMP TABLE cteDrugExpEnds
AS
SELECT
d.PERSON_ID
,d.INGREDIENT_CONCEPT_ID
,d.DRUG_TYPE_CONCEPT_ID
,d.DRUG_EXPOSURE_START_DATE
,MIN(e.END_DATE) AS ERA_END_DATE
FROM
cteDrugTarget d
INNER JOIN cteEndDates e ON d.PERSON_ID = e.PERSON_ID
AND d.INGREDIENT_CONCEPT_ID = e.INGREDIENT_CONCEPT_ID
AND e.END_DATE >= d.DRUG_EXPOSURE_START_DATE
GROUP BY d.PERSON_ID
,d.INGREDIENT_CONCEPT_ID
,d.DRUG_TYPE_CONCEPT_ID
,d.DRUG_EXPOSURE_START_DATE;
/* / */
INSERT INTO [TARGET_CDMV5].[SCHEMA].drug_era
SELECT row_number() OVER (
ORDER BY person_id
) AS drug_era_id
,person_id
,INGREDIENT_CONCEPT_ID
,min(DRUG_EXPOSURE_START_DATE) AS drug_era_start_date
,ERA_END_DATE
,COUNT(*) AS DRUG_EXPOSURE_COUNT
,30 AS gap_days
FROM cteDrugExpEnds
GROUP BY person_id
,INGREDIENT_CONCEPT_ID
,drug_type_concept_id
,ERA_END_DATE;
/****
CONDITION ERA
Note: Eras derived from CONDITION_OCCURRENCE table, using 30d gap
****/
DROP TABLE IF EXISTS condition_era_phase_1;
/* / */
DROP TABLE IF EXISTS cteConditionTarget;
/* / */
-- create base eras from the concepts found in condition_occurrence
CREATE TEMP TABLE cteConditionTarget
AS
SELECT
co.PERSON_ID
,co.condition_concept_id
,co.CONDITION_START_DATE
,COALESCE(co.CONDITION_END_DATE, ( CONDITION_START_DATE + 1)) AS CONDITION_END_DATE
FROM
[TARGET_CDMV5].[SCHEMA].CONDITION_OCCURRENCE co;
/* / */
DROP TABLE IF EXISTS cteCondEndDates;
/* / */
CREATE TEMP TABLE cteCondEndDates
AS
SELECT
PERSON_ID
,CONDITION_CONCEPT_ID
,( EVENT_DATE + - 30) AS END_DATE -- unpad the end date
FROM
(
SELECT E1.PERSON_ID
,E1.CONDITION_CONCEPT_ID
,E1.EVENT_DATE
,COALESCE(E1.START_ORDINAL, MAX(E2.START_ORDINAL)) START_ORDINAL
,E1.OVERALL_ORD
FROM (
SELECT PERSON_ID
,CONDITION_CONCEPT_ID
,EVENT_DATE
,EVENT_TYPE
,START_ORDINAL
,ROW_NUMBER() OVER (
PARTITION BY PERSON_ID
,CONDITION_CONCEPT_ID ORDER BY EVENT_DATE
,EVENT_TYPE
) AS OVERALL_ORD -- this re-numbers the inner UNION so all rows are numbered ordered by the event date
FROM (
-- select the start dates, assigning a row number to each
SELECT PERSON_ID
,CONDITION_CONCEPT_ID
,CONDITION_START_DATE AS EVENT_DATE
,- 1 AS EVENT_TYPE
,ROW_NUMBER() OVER (
PARTITION BY PERSON_ID
,CONDITION_CONCEPT_ID ORDER BY CONDITION_START_DATE
) AS START_ORDINAL
FROM cteConditionTarget
UNION ALL
-- pad the end dates by 30 to allow a grace period for overlapping ranges.
SELECT PERSON_ID
,CONDITION_CONCEPT_ID
,( CONDITION_END_DATE + 30)
,1 AS EVENT_TYPE
,NULL
FROM cteConditionTarget
) RAWDATA
) E1
INNER JOIN (
SELECT PERSON_ID
,CONDITION_CONCEPT_ID
,CONDITION_START_DATE AS EVENT_DATE
,ROW_NUMBER() OVER (
PARTITION BY PERSON_ID
,CONDITION_CONCEPT_ID ORDER BY CONDITION_START_DATE
) AS START_ORDINAL
FROM cteConditionTarget
) E2 ON E1.PERSON_ID = E2.PERSON_ID
AND E1.CONDITION_CONCEPT_ID = E2.CONDITION_CONCEPT_ID
AND E2.EVENT_DATE <= E1.EVENT_DATE
GROUP BY E1.PERSON_ID
,E1.CONDITION_CONCEPT_ID
,E1.EVENT_DATE
,E1.START_ORDINAL
,E1.OVERALL_ORD
) E
WHERE (2 * E.START_ORDINAL) - E.OVERALL_ORD = 0;
/* / */
DROP TABLE IF EXISTS cteConditionEnds;
/* / */
CREATE TEMP TABLE cteConditionEnds
AS
SELECT
c.PERSON_ID
,c.CONDITION_CONCEPT_ID
,c.CONDITION_START_DATE
,MIN(e.END_DATE) AS ERA_END_DATE
FROM
cteConditionTarget c
INNER JOIN cteCondEndDates e ON c.PERSON_ID = e.PERSON_ID
AND c.CONDITION_CONCEPT_ID = e.CONDITION_CONCEPT_ID
AND e.END_DATE >= c.CONDITION_START_DATE
GROUP BY c.PERSON_ID
,c.CONDITION_CONCEPT_ID
,c.CONDITION_START_DATE;
/* / */
INSERT INTO [TARGET_CDMV5].[SCHEMA].condition_era (
condition_era_id
,person_id
,condition_concept_id
,condition_era_start_date
,condition_era_end_date
,condition_occurrence_count
)
SELECT row_number() OVER (
ORDER BY person_id
) AS condition_era_id
,person_id
,CONDITION_CONCEPT_ID
,min(CONDITION_START_DATE) AS CONDITION_ERA_START_DATE
,ERA_END_DATE AS CONDITION_ERA_END_DATE
,COUNT(*) AS CONDITION_OCCURRENCE_COUNT
FROM cteConditionEnds
GROUP BY person_id
,CONDITION_CONCEPT_ID
,ERA_END_DATE;
/****
QUALITY ASSURANCE OUTPUT
Note: These queries are used to provide some basic stats around row counts between your V4 and V5 database
to ensure that all of the data has migrated as expected.
****/
DROP TABLE IF EXISTS v5_stats;
/* / */
DROP TABLE IF EXISTS v4_stats;
/* / */
-- Get the row counts for each table that is in scope for the migration
CREATE TEMP TABLE v4_stats
AS
SELECT
*
FROM
(
SELECT '[SOURCE_CDMV4]' AS DBName, 'care_site' AS TableName, COUNT(*) as row_count FROM [SOURCE_CDMV4].[SCHEMA].care_site
UNION
SELECT '[SOURCE_CDMV4]' AS DBName, 'condition_era' AS TableName, COUNT(*) as row_count FROM [SOURCE_CDMV4].[SCHEMA].condition_era
UNION
SELECT '[SOURCE_CDMV4]' AS DBName, 'condition_occurrence' AS TableName, COUNT(*) as row_count FROM [SOURCE_CDMV4].[SCHEMA].condition_occurrence
UNION
SELECT '[SOURCE_CDMV4]' AS DBName, 'death' AS TableName, COUNT(*) as row_count FROM [SOURCE_CDMV4].[SCHEMA].death
UNION
SELECT '[SOURCE_CDMV4]' AS DBName, 'drug_cost' AS TableName, COUNT(*) as row_count FROM [SOURCE_CDMV4].[SCHEMA].drug_cost
UNION
SELECT '[SOURCE_CDMV4]' AS DBName, 'drug_era' AS TableName, COUNT(*) as row_count FROM [SOURCE_CDMV4].[SCHEMA].drug_era
UNION
SELECT '[SOURCE_CDMV4]' AS DBName, 'drug_exposure' AS TableName, COUNT(*) as row_count FROM [SOURCE_CDMV4].[SCHEMA].drug_exposure
UNION
SELECT '[SOURCE_CDMV4]' AS DBName, 'location' AS TableName, COUNT(*) as row_count FROM [SOURCE_CDMV4].[SCHEMA].location
UNION
SELECT '[SOURCE_CDMV4]' AS DBName, 'observation' AS TableName, COUNT(*) as row_count FROM [SOURCE_CDMV4].[SCHEMA].observation
UNION
SELECT '[SOURCE_CDMV4]' AS DBName, 'observation_period' AS TableName, COUNT(*) as row_count FROM [SOURCE_CDMV4].[SCHEMA].observation_period
UNION
SELECT '[SOURCE_CDMV4]' AS DBName, 'payer_plan_period' AS TableName, COUNT(*) as row_count FROM [SOURCE_CDMV4].[SCHEMA].payer_plan_period
UNION
SELECT '[SOURCE_CDMV4]' AS DBName, 'person' AS TableName, COUNT(*) as row_count FROM [SOURCE_CDMV4].[SCHEMA].person
UNION
SELECT '[SOURCE_CDMV4]' AS DBName, 'procedure_cost' AS TableName, COUNT(*) as row_count FROM [SOURCE_CDMV4].[SCHEMA].procedure_cost
UNION
SELECT '[SOURCE_CDMV4]' AS DBName, 'procedure_occurrence' AS TableName, COUNT(*) as row_count FROM [SOURCE_CDMV4].[SCHEMA].procedure_occurrence
UNION
SELECT '[SOURCE_CDMV4]' AS DBName, 'provider' AS TableName, COUNT(*) as row_count FROM [SOURCE_CDMV4].[SCHEMA].provider
UNION
SELECT '[SOURCE_CDMV4]' AS DBName, 'visit_occurrence' AS TableName, COUNT(*) as row_count FROM [SOURCE_CDMV4].[SCHEMA].visit_occurrence
) v4_stats;
/* / */
CREATE TEMP TABLE v5_stats
AS
SELECT
*
FROM
(
SELECT '[TARGET_CDMV5]' AS DBName, 'care_site' AS TableName, COUNT(*) as row_count FROM [TARGET_CDMV5].[SCHEMA].care_site
UNION
SELECT '[TARGET_CDMV5]' AS DBName, 'condition_era' AS TableName, COUNT(*) as row_count FROM [TARGET_CDMV5].[SCHEMA].condition_era
UNION
SELECT '[TARGET_CDMV5]' AS DBName, 'condition_occurrence' AS TableName, COUNT(*) as row_count FROM [TARGET_CDMV5].[SCHEMA].condition_occurrence
UNION
SELECT '[TARGET_CDMV5]' AS DBName, 'death' AS TableName, COUNT(*) as row_count FROM [TARGET_CDMV5].[SCHEMA].death
UNION
SELECT '[TARGET_CDMV5]' AS DBName, 'device_exposure' AS TableName, COUNT(*) as row_count FROM [TARGET_CDMV5].[SCHEMA].device_exposure
UNION
SELECT '[TARGET_CDMV5]' AS DBName, 'drug_cost' AS TableName, COUNT(*) as row_count FROM [TARGET_CDMV5].[SCHEMA].drug_cost
UNION
SELECT '[TARGET_CDMV5]' AS DBName, 'drug_era' AS TableName, COUNT(*) as row_count FROM [TARGET_CDMV5].[SCHEMA].drug_era
UNION
SELECT '[TARGET_CDMV5]' AS DBName, 'drug_exposure' AS TableName, COUNT(*) as row_count FROM [TARGET_CDMV5].[SCHEMA].drug_exposure
UNION
SELECT '[TARGET_CDMV5]' AS DBName, 'location' AS TableName, COUNT(*) as row_count FROM [TARGET_CDMV5].[SCHEMA].location
UNION
SELECT '[TARGET_CDMV5]' AS DBName, 'measurement' AS TableName, COUNT(*) as row_count FROM [TARGET_CDMV5].[SCHEMA].measurement
UNION
SELECT '[TARGET_CDMV5]' AS DBName, 'observation' AS TableName, COUNT(*) as row_count FROM [TARGET_CDMV5].[SCHEMA].observation
UNION
SELECT '[TARGET_CDMV5]' AS DBName, 'observation_period' AS TableName, COUNT(*) as row_count FROM [TARGET_CDMV5].[SCHEMA].observation_period
UNION
SELECT '[TARGET_CDMV5]' AS DBName, 'payer_plan_period' AS TableName, COUNT(*) as row_count FROM [TARGET_CDMV5].[SCHEMA].payer_plan_period
UNION
SELECT '[TARGET_CDMV5]' AS DBName, 'person' AS TableName, COUNT(*) as row_count FROM [TARGET_CDMV5].[SCHEMA].person
UNION
SELECT '[TARGET_CDMV5]' AS DBName, 'procedure_cost' AS TableName, COUNT(*) as row_count FROM [TARGET_CDMV5].[SCHEMA].procedure_cost
UNION
SELECT '[TARGET_CDMV5]' AS DBName, 'procedure_occurrence' AS TableName, COUNT(*) as row_count FROM [TARGET_CDMV5].[SCHEMA].procedure_occurrence
UNION
SELECT '[TARGET_CDMV5]' AS DBName, 'provider' AS TableName, COUNT(*) as row_count FROM [TARGET_CDMV5].[SCHEMA].provider
UNION
SELECT '[TARGET_CDMV5]' AS DBName, 'visit_occurrence' AS TableName, COUNT(*) as row_count FROM [TARGET_CDMV5].[SCHEMA].visit_occurrence
) v5_stats;
/* / */
-- Show the results
select
'Rowcounts for each database and table',
COALESCE(V4.DBName, 'None') v4_database_name,
v4.TableName v4_table_name,
v4.row_count v4_row_count,
COALESCE(v5.DBName, 'None') v5_database_name,
v5.TableName v5_table_name,
v5.row_count v5_row_count,
COALESCE(v5.row_count, 0) - COALESCE(v4.row_count, 0) row_count_change
from v4_stats v4
full outer join v5_stats v5 ON v4.TableName = v5.TableName
order by v5.TableName;
/*
* Determine how the vocabulary/domains helped to map from the V4 source
* tables to the V5 destinations
*/
DROP TABLE IF EXISTS classification_map;
/* / */
CREATE TEMP TABLE classification_map
AS
SELECT
*
FROM
(
SELECT 'Condition_Occurrence' TableName, COALESCE(LOWER(cm.domain_id), 'condition') domain_id, COUNT(*) row_count
FROM [SOURCE_CDMV4].[SCHEMA].Condition_Occurrence CO
LEFT JOIN concept_map CM ON co.condition_concept_id = cm.source_concept_id
GROUP BY COALESCE(LOWER(cm.domain_id), 'condition')
UNION
SELECT 'Drug_Exposure' TableName, COALESCE(LOWER(cm.domain_id), 'drug') domain_id, COUNT(*) row_count
FROM [SOURCE_CDMV4].[SCHEMA].Drug_Exposure de
LEFT JOIN concept_map CM ON de.drug_concept_id = cm.source_concept_id
GROUP BY COALESCE(LOWER(cm.domain_id), 'drug')
UNION
SELECT 'Observation' TableName, COALESCE(LOWER(cm.domain_id), 'observation') domain_id, COUNT(*) row_count
FROM [SOURCE_CDMV4].[SCHEMA].Observation o
LEFT JOIN concept_map CM ON o.observation_concept_id = cm.source_concept_id
GROUP BY COALESCE(LOWER(cm.domain_id), 'observation')
UNION
SELECT 'Procedure_Occurrence' TableName, COALESCE(LOWER(cm.domain_id), 'procedure') domain_id, COUNT(*) row_count
FROM [SOURCE_CDMV4].[SCHEMA].Procedure_Occurrence po
LEFT JOIN concept_map CM ON po.PROCEDURE_CONCEPT_ID = cm.source_concept_id
GROUP BY COALESCE(LOWER(cm.domain_id), 'procedure')
) A
ORDER by A.TableName, A.domain_id;
/* / */
select *
from classification_map
order by tablename, domain_id;
select domain_id, SUM(row_count)
from classification_map
group by domain_id
order by domain_id; |
# View Database
SHOW DATABASES LIKE '%Enviroment';
# Drop Database
DROP DATABASE Enviroment;
# List the number of language spoken in each conutry
SELECT
c.name,
GROUP_CONCAT(l.Language)
FROM country c
LEFT JOIN countrylanguage l
ON l.CountryCode = c.Code
GROUP BY c.Code;
# Count the number of language spoken in each conutry
SELECT
c.name,
COUNT(l.Language)
FROM country c
LEFT JOIN countrylanguage l
ON l.CountryCode = c.Code
GROUP BY c.Code;
# Added on your count of langauges to the data from the country table
SELECT
c.*,
COUNT(l.Language)
FROM country c
LEFT JOIN countrylanguage l
ON l.CountryCode = c.Code
GROUP BY c.Code;
# Group BY Summation Query
SELECT Continent, SUM(Population)
FROM country
GROUP BY Continent
# Starting with E and ending in e, wildcard query
SELECT *
FROM country
WHERE Continent LIKE 'E%e'
# Simple Rollup Query on population via continent
SELECT Continent, SUM(Population) FROM country
GROUP BY Continent WITH ROLLUP
# More complex rollup query on population via continent and region
SELECT Continent, Region, SUM(Population) FROM country
GROUP BY Continent, Region WITH ROLLUP
# Limit Statement
SELECT Continent, Region, SUM(Population) FROM country
GROUP BY Continent, Region
ORDER BY Continent
LIMIT 5;
# Limit Statement
SELECT Continent, Region, SUM(Population) FROM country
GROUP BY Continent, Region
ORDER BY Continent
LIMIT 10;
#Setting a Value
SET @admission_average = 76
|
create database JTableDemo
create table users(
ID int IDENTITY(1,1),
username nvarchar(50) not null,
password nvarchar(50) not null,
gender bit,
filename_avatar varchar(50),
image_avatar image,
primary key(ID)) |
-- orders table
-- depends: 20211004_06_RWNSE-customers-rename-column
CREATE TABLE orders (
id SERIAL PRIMARY KEY,
dollar_amount_spent NUMERIC,
customer_id INT NOT NULL,
CONSTRAINT fk_orders_customers
FOREIGN KEY (customer_id)
REFERENCES customers(id)
ON DELETE CASCADE
);
|
REM INSERTING into EXPORT_TABLE
SET DEFINE OFF;
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('328','120','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('071','084','03');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('422','135','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('280','218','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('824','224','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('590','033','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('620','103','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('986','096','03');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('528','067','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('245','044','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('929','148','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('466','012','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('959','105','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('094','149','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('152','055','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('497','228','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('581','012','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('636','135','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('755','166','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('152','102','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('169','226','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('814','162','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('144','045','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('512','150','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('184','135','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('398','087','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('536','149','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('565','193','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('815','073','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('281','177','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('392','040','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('045','170','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('925','204','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('270','074','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('238','161','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('626','190','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('481','238','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('422','222','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('332','128','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('765','155','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('470','006','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('781','211','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('240','164','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('331','228','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('869','022','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('987','090','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('284','056','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('066','213','02');
Insert into EXPORT_TABLE (CONTRATO,CURSO,QTDE) values ('955','207','02');
|
BEGIN TRANSACTION;
CREATE SCHEMA bento;
-- Meta
CREATE TABLE bento.version (
version integer NOT NULL,
date timestamp with time zone NOT NULL
);
INSERT INTO bento.version (version, date)
VALUES (1, now());
CREATE TABLE bento.user (
id serial PRIMARY KEY,
username character varying (128) NOT NULL UNIQUE,
password character(80) NOT NULL,
firstname character varying (128) NOT NULL,
lastname character varying (128) NOT NULL,
email character varying (256) NOT NULL,
registered timestamp with time zone NOT NULL
);
COMMIT TRANSACTION;
|
-- --------------------------------------------------------
-- 호스트: 127.0.0.1
-- 서버 버전: 10.5.5-MariaDB - mariadb.org binary distribution
-- 서버 OS: Win64
-- HeidiSQL 버전: 11.0.0.5919
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- restaurant 데이터베이스 구조 내보내기
CREATE DATABASE IF NOT EXISTS `restaurant` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `restaurant`;
-- 테이블 restaurant.admin 구조 내보내기
CREATE TABLE IF NOT EXISTS `admin` (
`address` varchar(255) DEFAULT NULL,
`startTime` varchar(255) DEFAULT NULL,
`endTime` varchar(255) DEFAULT NULL,
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`phoneNum` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- 내보낼 데이터가 선택되어 있지 않습니다.
-- 테이블 restaurant.booking 구조 내보내기
CREATE TABLE IF NOT EXISTS `booking` (
`date` varchar(255) DEFAULT NULL,
`startTime` varchar(255) DEFAULT NULL,
`endTime` varchar(255) DEFAULT NULL,
`tableNumber` int(11) DEFAULT NULL,
`howMany` int(11) DEFAULT NULL,
`memberId` bigint(20) DEFAULT NULL,
`id` bigint(20) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
-- 내보낼 데이터가 선택되어 있지 않습니다.
-- 테이블 restaurant.member 구조 내보내기
CREATE TABLE IF NOT EXISTS `member` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`Phone_num` varchar(255) NOT NULL,
`available_Booking` tinyint(4) DEFAULT 1,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
-- 내보낼 데이터가 선택되어 있지 않습니다.
-- 테이블 restaurant.review 구조 내보내기
CREATE TABLE IF NOT EXISTS `review` (
`reviewText` text DEFAULT NULL,
`createdAt` datetime NOT NULL DEFAULT current_timestamp(),
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`memberId` bigint(20) DEFAULT NULL,
`memberName` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=46 DEFAULT CHARSET=utf8;
-- 내보낼 데이터가 선택되어 있지 않습니다.
-- 테이블 restaurant.table 구조 내보내기
CREATE TABLE IF NOT EXISTS `table` (
`tableNumber` bigint(20) DEFAULT NULL,
`maxNumber` int(11) DEFAULT NULL,
`Available` tinyint(4) DEFAULT 1,
`id` bigint(20) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=62 DEFAULT CHARSET=utf8;
-- 내보낼 데이터가 선택되어 있지 않습니다.
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
/*
SQLyog Enterprise - MySQL GUI v7.15
MySQL - 5.6.31 : Database - library
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`library` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `library`;
/*Table structure for table `Author` */
DROP TABLE IF EXISTS `Author`;
CREATE TABLE `Author` (
`id` int(11) NOT NULL,
`author` varchar(50) DEFAULT NULL,
UNIQUE KEY `id` (`id`),
KEY `id_2` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `Author` */
insert into `Author`(`id`,`author`) values (1,'Jack London'),(2,'Jenny Lawson '),(3,'Fedor Dostoevsky');
/*Table structure for table `Genre` */
DROP TABLE IF EXISTS `Genre`;
CREATE TABLE `Genre` (
`id` int(100) NOT NULL AUTO_INCREMENT,
`Ganre` varchar(100) NOT NULL DEFAULT '0',
`id_author` int(100) DEFAULT NULL,
`id_book` int(100) DEFAULT NULL,
UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
/*Data for the table `Genre` */
insert into `Genre`(`id`,`Ganre`,`id_author`,`id_book`) values (1,'romantic',1,1),(2,'fantasic',1,2),(3,'comedy',2,3),(4,'love story',2,4),(5,'romantic',3,5),(6,'Philosophical novel',2,6);
/*Table structure for table `books` */
DROP TABLE IF EXISTS `books`;
CREATE TABLE `books` (
`id` int(100) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
`id_author` int(100) DEFAULT NULL,
UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=FIXED;
/*Data for the table `books` */
insert into `books`(`id`,`name`,`id_author`) values (1,'A Daughter of the Snows',1),(2,'The Game',1),(3,'A Funny Book About Horrible Things',2),(4,'A Mostly True Memoir ',2),(5,'Player',3),(6,'idiot',3);
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
ALTER TABLE "ConsignmentProperty" ADD CONSTRAINT "ConProperty_Name" UNIQUE ("Name");
ALTER TABLE "FileProperty" ADD CONSTRAINT "FileProperty_Name" UNIQUE ("Name");
|
CREATE SEQUENCE test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1
SP_RENAME test_sequence ,test_sequence_rename_test |
--------------Практическое задание тема №3-----------------------
--1)Пусть в таблице users поля created_at и updated_at оказались незаполненными. Заполните их текущими датой и временем.
UPDATE users
SET created_at = NOW()
WHERE created_at is NULL;
UPDATE users
SET updated_at = NOW()
WHERE updated_at is NULL;
-----------------------------------------------------------------------------------
/*
2)Таблица users была неудачно спроектирована.
Записи created_at и updated_at были заданы типом VARCHAR и в них долгое время помещались значения в формате "20.10.2017 8:10".
Необходимо преобразовать поля к типу DATETIME, сохранив введеные ранее значения.
*/
ALTER TABLE users CHANGE
COLUMN created_at created_at DATETIME NOT NULL DEFAULT '{}';
ALTER TABLE users CHANGE
COLUMN updated_at updated_at DATETIME NOT NULL DEFAULT '{}';
-------------------------------------------------------------------------------------
/*3)В таблице складских запасов storehouses_products в поле value могут встречаться самые разные цифры:
0, если товар закончился и выше нуля, если на складе имеются запасы. Необходимо отсортировать записи таким образом,
чтобы они выводились в порядке увеличения значения value. Однако, нулевые запасы должны выводиться в конце, после всех записей.
*/
SELECT * FROM storehouses_products
ORDER BY IF(value > 0 , value, POW(2,64)-1);
-------------------------------------------------------------------------------------
/*
4)(по желанию) Из таблицы users необходимо извлечь пользователей, родившихся в августе и мае.
Месяцы заданы в виде списка английских названий ('may', 'august')
*/
SELECT * FROM users
WHERE
birthmonth RLIKE 'may|august';
-------------------------------------------------------------------------------------
/*
5)(по желанию) Из таблицы catalogs извлекаются записи при помощи запроса.
SELECT * FROM catalogs WHERE id IN (5, 1, 2);
Отсортируйте записи в порядке, заданном в списке IN.
*/
SELECT * FROM catalogs
WHERE id IN (5, 1, 2)
ORDER BY id=5 DESC, id=1 DESC, id=2 DESC;
-------------------------------------------------------------------------------------
----Практическое задание тема №4-----------------------------------------
--1)Подсчитайте средний возраст пользователей в таблице users
SELECT AVG(TIMESTAMPDIFF(YEAR, birthday_at, NOW())) FROM users;
-------------------------------------------------------------------------------------
/*2)Подсчитайте количество дней рождения, которые приходятся на каждый из дней недели.
Следует учесть, что необходимы дни недели текущего года, а не года рождения.
*/
SELECT COUNT(*)
FROM users
ORDER BY
WEEKDAY(CONCAT_WS('-', CAST(YEAR(NOW())),CAST(MONTH(birthday_at)),CAST(DAY(birthday_at)))); --Есть ли более вменяемы способ заменть год в дате?
-------------------------------------------------------------------------------------
--3)(по желанию) Подсчитайте произведение чисел в столбце таблицы
SELECT FLOOR(EXP(SUM(LOG(id)))) FROM users; --Не нашёл агрегатную функцию для произведения, пришлось через логарифмы.
-------------------------------------------------------------------------------------
|
CREATE TABLE users (
id SERIAL PRIMARY KEY,
username VARCHAR UNIQUE NOT NULL,
password_hash VARCHAR NOT NULL
);
CREATE TABLE chatrooms (
id SERIAL PRIMARY KEY,
name VARCHAR NOT NULL
);
CREATE TABLE messages (
id SERIAL PRIMARY KEY,
sender_id INT NOT NULL REFERENCES users ON DELETE CASCADE,
chatroom_id INT NOT NULL REFERENCES chatrooms ON DELETE CASCADE,
text VARCHAR NOT NULL,
sent_on TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.