drop table if exists Approval;

create table Approval (
    ApprovalID integer primary key,
    IssueID integer not null,
    UserID integer not null,
    ItemStatus integer default 0,
    Delegated integer default 0,
    SubRoleId integer not null
);

insert into Approval (IssueID, UserID, Delegated, SubRoleId)
values (1, 15, 0, 0),
(2, 34, 0, 0),
(3, 2, 0, 0),
(4, 19, 0, 0),
(5, 3, 1, 5),
(6, 4, 1, 2);