Created scripts for testing TECN workers
This commit is contained in:
17
FabApprovalWorkerService/SetupScripts/CreateECNTable.sql
Normal file
17
FabApprovalWorkerService/SetupScripts/CreateECNTable.sql
Normal file
@ -0,0 +1,17 @@
|
||||
drop table if exists ECN;
|
||||
|
||||
create table ECN (
|
||||
ECNID integer primary key,
|
||||
ECNNumber integer not null,
|
||||
IsTECN integer default 0,
|
||||
ExpirationDate text not null,
|
||||
ExtensionDate text,
|
||||
OriginatorID integer not null,
|
||||
Title text not null
|
||||
);
|
||||
|
||||
insert into ECN (ECNNumber, IsTECN, ExpirationDate, ExtensionDate, OriginatorID, Title)
|
||||
values (1, 0, '2024-03-30 00:00:00', '', 1, 'title1'),
|
||||
(2, 1, '2024-04-01 00:00:00', '', 6, 'title2'),
|
||||
(3, 1, '2024-06-01 00:00:00', '', 4, 'title3'),
|
||||
(4, 1, '2024-04-01 00:00:00', '2024-06-01 00:00:00', 3, 'title4')
|
@ -0,0 +1,9 @@
|
||||
drop table if exists TECNNotificationUsers;
|
||||
|
||||
create table TECNNotificationUsers (
|
||||
Id integer primary key,
|
||||
UserId integer not null
|
||||
);
|
||||
|
||||
insert into TECNNotificationUsers (UserId)
|
||||
values (1), (2), (3);
|
@ -24,50 +24,50 @@ create table Users (
|
||||
);
|
||||
|
||||
insert into Users (LoginID, FirstName, LastName, Email, OOO, OOOStartDate, OOOExpirationDate, DelegatedTo)
|
||||
values ('AsRa', 'Ra', 'As', 'email', 1, '2024-01-01 00:00:00', '2024-02-01 00:00:00', 3),
|
||||
('AuTr', 'Tr', 'Au', 'email', 1, '2024-01-01 00:00:00', '2024-02-01 00:00:00', 4),
|
||||
('AyNi', 'Ni', 'Ay', 'email', 0, '', '', 0),
|
||||
('BaGr', 'Gr', 'Ba', 'email', 0, '', '', 0),
|
||||
('BaGu', 'Gu', 'Ba', 'email', 0, '', '', 0),
|
||||
('BeTo', 'To', 'Be', 'email', 0, '', '', 0),
|
||||
('BeBr', 'Br', 'Be', 'email', 0, '', '', 0),
|
||||
('BrKy', 'Ky', 'Br', 'email', 0, '', '', 0),
|
||||
('CaSh', 'Sh', 'Ca', 'email', 0, '', '', 0),
|
||||
('CaRe', 'Re', 'Ca', 'email', 0, '', '', 0),
|
||||
('CaSt', 'St', 'Ca', 'email', 0, '', '', 0),
|
||||
('ClNi', 'Ni', 'Cl', 'email', 0, '', '', 0),
|
||||
('DaMi', 'Mi', 'Da', 'email', 0, '', '', 0),
|
||||
('FuJe', 'Je', 'Fu', 'email', 0, '', '', 0),
|
||||
('GaAl', 'Al', 'Ga', 'email', 0, '', '', 0),
|
||||
('GoAs', 'As', 'Go', 'email', 0, '', '', 0),
|
||||
('GoRu', 'Ru', 'Go', 'email', 0, '', '', 0),
|
||||
('GoOr', 'Or', 'Go', 'email', 0, '', '', 0),
|
||||
('HaAn', 'An', 'Ha', 'email', 0, '', '', 0),
|
||||
('HaPa', 'Pa', 'Ha', 'email', 0, '', '', 0),
|
||||
('HoJu', 'Ju', 'Ho', 'email', 0, '', '', 0),
|
||||
('HoDe', 'De', 'Ho', 'email', 0, '', '', 0),
|
||||
('HoVi', 'Vi', 'Ho', 'email', 0, '', '', 0),
|
||||
('InCa', 'Ca', 'In', 'email', 0, '', '', 0),
|
||||
('JaMi', 'Mi', 'Ja', 'email', 0, '', '', 0),
|
||||
('LeTh', 'Th', 'Le', 'email', 0, '', '', 0),
|
||||
('LeHa', 'Ha', 'Le', 'email', 0, '', '', 0),
|
||||
('LoAn', 'An', 'Lo', 'email', 0, '', '', 0),
|
||||
('LoCh', 'Ch', 'Lo', 'email', 0, '', '', 0),
|
||||
('LuDa', 'Da', 'Lu', 'email', 0, '', '', 0),
|
||||
('MaBr', 'Br', 'Ma', 'email', 0, '', '', 0),
|
||||
('MaDa', 'Da', 'Ma', 'email', 0, '', '', 0),
|
||||
('MaDo', 'Do', 'Ma', 'email', 0, '', '', 0),
|
||||
('McJu', 'Ju', 'Mc', 'email', 0, '', '', 0),
|
||||
('MeGi', 'Gi', 'Me', 'email', 0, '', '', 0),
|
||||
('MiSh', 'Sh', 'Mi', 'email', 0, '', '', 0),
|
||||
('MoBa', 'Ba', 'Mo', 'email', 0, '', '', 0),
|
||||
('MuTi', 'Ti', 'Mu', 'email', 0, '', '', 0),
|
||||
('OtMa', 'Ma', 'Ot', 'email', 0, '', '', 0),
|
||||
('PeAl', 'Al', 'Pe', 'email', 0, '', '', 0),
|
||||
('RiCy', 'Cy', 'Ri', 'email', 0, '', '', 0),
|
||||
('RoAp', 'Ap', 'Ro', 'email', 0, '', '', 0),
|
||||
('SoAb', 'Ab', 'So', 'email', 0, '', '', 0),
|
||||
('VaMi', 'Mi', 'Va', 'email', 0, '', '', 0),
|
||||
('VuTh', 'Th', 'Va', 'email', 0, '', '', 0),
|
||||
('WeWi', 'Wi', 'We', 'email', 0, '', '', 0),
|
||||
('ZaNi', 'Ni', 'Za', 'email', 0, '', '', 0);
|
||||
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);
|
@ -4,4 +4,6 @@ sqlite3 D:\FabApprovalWorkerService\LocalDb.db < .\CreateOOOTempTable.sql
|
||||
sqlite3 D:\FabApprovalWorkerService\LocalDb.db < .\CreateUserSubRoleTable.sql
|
||||
sqlite3 D:\FabApprovalWorkerService\LocalDb.db < .\CreateOOODelegatedRolesTable.sql
|
||||
sqlite3 D:\FabApprovalWorkerService\LocalDb.db < .\CreateApprovalTable.sql
|
||||
sqlite3 D:\FabApprovalWorkerService\LocalDb.db < .\CreateECNTable.sql
|
||||
sqlite3 D:\FabApprovalWorkerService\LocalDb.db < .\CreateTECNNotificationUsersTable.sql
|
||||
pause
|
Reference in New Issue
Block a user