drop table if exists ECN;

create table ECN (
    ECNNumber integer primary key not null,
    IsTECN integer default 0,
    ExpirationDate text,
    ExtensionDate text,
    OriginatorID integer not null,
    Title text not null
);

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'),
(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')