drop table if exists Users;

create table Users (
    UserID INTEGER primary key,
    LoginID TEXT not null,
    FirstName TEXT not null,
    LastName TEXT not null,
    Email TEXT not null,
    Notify INTEGER default 0,
    IsAdmin INTEGER default 0,
    OOO INTEGER default 0,
    OOOStartDate TEXT,
    OOOExpirationDate TEXT,
    DelegatedTo INTEGER,
    CanViewITAR INTEGER default 1,
    IsManager INTEGER default 0,
    IsCleansCertified INTEGER default 0,
    IsAnyLevelCertified INTEGER default 0,
    IsPackagingLabelingCertified INTEGER default 0,
    IsEpiProCertified INTEGER default 0,
    IsFqaCertified INTEGER default 0,
    IsFqaAssessmentCertified INTEGER default 0,
    IsActive INTEGER default 1
);

insert into Users (LoginID, FirstName, LastName, Email, OOO, OOOStartDate, OOOExpirationDate, DelegatedTo)
values ('AsRa', 'Ra', 'As', 'AsRa@email.com', 1, '2024-01-01 00:00:00', '2024-02-01 00:00:00', 3),
('AuTr', 'Tr', 'Au', 'AuTr@email.com', 1, '2024-01-01 00:00:00', '2024-02-01 00:00:00', 4),
('AyNi', 'Ni', 'Ay', 'AyNi@email.com', 0, '', '', 0),
('BaGr', 'Gr', 'Ba', 'BaGr@email.com', 0, '', '', 0),
('BaGu', 'Gu', 'Ba', 'BaGu@email.com', 0, '', '', 0),
('BeTo', 'To', 'Be', 'BeTo@email.com', 0, '', '', 0),
('BeBr', 'Br', 'Be', 'BeBr@email.com', 0, '', '', 0),
('BrKy', 'Ky', 'Br', 'BrKy@email.com', 0, '', '', 0),
('CaSh', 'Sh', 'Ca', 'CaSh@email.com', 0, '', '', 0),
('CaRe', 'Re', 'Ca', 'CaRe@email.com', 0, '', '', 0),
('CaSt', 'St', 'Ca', 'CaSt@email.com', 0, '', '', 0),
('ClNi', 'Ni', 'Cl', 'ClNi@email.com', 0, '', '', 0),
('DaMi', 'Mi', 'Da', 'DaMi@email.com', 0, '', '', 0),
('FuJe', 'Je', 'Fu', 'FuJe@email.com', 0, '', '', 0),
('GaAl', 'Al', 'Ga', 'GaAl@email.com', 0, '', '', 0),
('GoAs', 'As', 'Go', 'GoAs@email.com', 0, '', '', 0),
('GoRu', 'Ru', 'Go', 'GoRu@email.com', 0, '', '', 0),
('GoOr', 'Or', 'Go', 'GoOr@email.com', 0, '', '', 0),
('HaAn', 'An', 'Ha', 'HaAn@email.com', 0, '', '', 0),
('HaPa', 'Pa', 'Ha', 'HaPa@email.com', 0, '', '', 0),
('HoJu', 'Ju', 'Ho', 'HoJu@email.com', 0, '', '', 0),
('HoDe', 'De', 'Ho', 'HoDe@email.com', 0, '', '', 0),
('HoVi', 'Vi', 'Ho', 'HoVi@email.com', 0, '', '', 0),
('InCa', 'Ca', 'In', 'InCa@email.com', 0, '', '', 0),
('JaMi', 'Mi', 'Ja', 'JaMi@email.com', 0, '', '', 0),
('LeTh', 'Th', 'Le', 'LeTh@email.com', 0, '', '', 0),
('LeHa', 'Ha', 'Le', 'LeHa@email.com', 0, '', '', 0),
('LoAn', 'An', 'Lo', 'LoAn@email.com', 0, '', '', 0),
('LoCh', 'Ch', 'Lo', 'LoCh@email.com', 0, '', '', 0),
('LuDa', 'Da', 'Lu', 'LuDa@email.com', 0, '', '', 0),
('MaBr', 'Br', 'Ma', 'MaBr@email.com', 0, '', '', 0),
('MaDa', 'Da', 'Ma', 'MaDa@email.com', 0, '', '', 0),
('MaDo', 'Do', 'Ma', 'MaDo@email.com', 0, '', '', 0),
('McJu', 'Ju', 'Mc', 'McJu@email.com', 0, '', '', 0),
('MeGi', 'Gi', 'Me', 'MeGi@email.com', 0, '', '', 0),
('MiSh', 'Sh', 'Mi', 'MiSh@email.com', 0, '', '', 0),
('MoBa', 'Ba', 'Mo', 'MoBa@email.com', 0, '', '', 0),
('MuTi', 'Ti', 'Mu', 'MuTi@email.com', 0, '', '', 0),
('OtMa', 'Ma', 'Ot', 'OtMa@email.com', 0, '', '', 0),
('PeAl', 'Al', 'Pe', 'PeAl@email.com', 0, '', '', 0),
('RiCy', 'Cy', 'Ri', 'RiCy@email.com', 0, '', '', 0),
('RoAp', 'Ap', 'Ro', 'RoAp@email.com', 0, '', '', 0),
('SoAb', 'Ab', 'So', 'SoAb@email.com', 0, '', '', 0),
('VaMi', 'Mi', 'Va', 'VaMi@email.com', 0, '', '', 0),
('VuTh', 'Th', 'Va', 'VuTh@email.com', 0, '', '', 0),
('WeWi', 'Wi', 'We', 'WeWi@email.com', 0, '', '', 0),
('ZaNi', 'Ni', 'Za', 'ZaNi@email.com', 0, '', '', 0);