drop table if exists UserSubRole;

create table UserSubRole (
    UserSubRoleID integer primary key,
    UserID integer not null,
    SubRoleID integer not null,
    Delegated integer default 0
);

insert into UserSubRole (UserID, SubRoleID)
values (15, 1),
(34, 19),
(2, 5),
(19, 3);