create table event_sequence (
	last_value bigint
		not null
);

create unique index event_sequence_singleton
on event_sequence (0);

insert into event_sequence
values (0);
