Switched to standard MonIn library
This commit is contained in:
@ -3,14 +3,22 @@ drop table if exists ECN;
|
||||
create table ECN (
|
||||
ECNNumber integer primary key not null,
|
||||
IsTECN integer default 0,
|
||||
ExpirationDate text,
|
||||
ExtensionDate text,
|
||||
ExpirationDate text default '',
|
||||
ExtensionDate text default '',
|
||||
OriginatorID integer not null,
|
||||
Title text not null
|
||||
Title text not null,
|
||||
Deleted integer default 0,
|
||||
Cancelled integer default 0,
|
||||
CloseDate text default ''
|
||||
);
|
||||
|
||||
insert into ECN (ECNNumber, IsTECN, ExpirationDate, ExtensionDate, OriginatorID, Title)
|
||||
values (1, 0, '2024-04-06 00:00:00', null, 1, 'title1'),
|
||||
(2, 1, '2024-04-04 00:00:00', null, 6, 'title2'),
|
||||
values (1, 1, '2024-04-05 00:00:00', null, 1, 'title1'),
|
||||
(2, 1, '2024-04-04 12:00:00', null, 6, 'title2'),
|
||||
(3, 1, '2024-06-01 00:00:00', null, 4, 'title3'),
|
||||
(4, 1, '2024-04-03 00:00:00', '2024-06-01 00:00:00', 3, 'title4')
|
||||
(4, 1, '2024-02-05 00:00:00', '2024-04-05 09:00:00', 3, 'title4'),
|
||||
(5, 1, '2024-06-01 00:00:00', null, 4, 'title3'),
|
||||
(6, 1, '2024-04-07 00:00:00', null, 9, 'title6'),
|
||||
(7, 1, '2024-04-07 00:00:00', '2024-06-01 00:00:00', 13, 'title9'),
|
||||
(8, 1, '2024-02-05 00:00:00', '2024-04-07 09:00:00', 3, 'title4'),
|
||||
(9, 1, '2024-02-05 00:00:00', '2024-04-06 09:00:00', 3, 'title4')
|
@ -0,0 +1,39 @@
|
||||
drop table if exists Training;
|
||||
|
||||
create table Training (
|
||||
TrainingID integer primary key,
|
||||
ECN integer not null,
|
||||
Status integer default 0,
|
||||
CompletedDate text
|
||||
);
|
||||
|
||||
insert into Training (ECN)
|
||||
values (1), (2), (3), (4), (5), (6), (7), (8), (9);
|
||||
|
||||
drop table if exists TrainingAssignments;
|
||||
|
||||
create table TrainingAssignments (
|
||||
ID integer primary key,
|
||||
TrainingID integer not null,
|
||||
Deleted integer default 0,
|
||||
status integer default 0,
|
||||
DeletedDate text
|
||||
);
|
||||
|
||||
insert into TrainingAssignments (TrainingID)
|
||||
values (1), (1), (2), (2), (3), (3), (4), (4), (5), (5), (6), (6),
|
||||
(7), (7), (8), (8), (9), (9);
|
||||
|
||||
drop table if exists TrainingDocAcks;
|
||||
|
||||
create table TrainingDocAcks (
|
||||
ID integer primary key,
|
||||
TrainingAssignmentID integer not null,
|
||||
Reviewed integer default 0,
|
||||
Deleted integer default 0,
|
||||
DeletedDate text
|
||||
);
|
||||
|
||||
insert into TrainingDocAcks (TrainingAssignmentID)
|
||||
values (1), (1), (2), (2), (3), (3), (4), (4), (5), (5), (6), (6),
|
||||
(7), (7), (8), (8), (9), (9);
|
@ -6,4 +6,5 @@ sqlite3 D:\FabApprovalWorkerService\LocalDb.db < .\CreateOOODelegatedRolesTable.
|
||||
sqlite3 D:\FabApprovalWorkerService\LocalDb.db < .\CreateApprovalTable.sql
|
||||
sqlite3 D:\FabApprovalWorkerService\LocalDb.db < .\CreateECNTable.sql
|
||||
sqlite3 D:\FabApprovalWorkerService\LocalDb.db < .\CreateTECNNotificationUsersTable.sql
|
||||
sqlite3 D:\FabApprovalWorkerService\LocalDb.db < .\CreateTrainingTables.sql
|
||||
pause
|
Reference in New Issue
Block a user