 	slot				integer CONSTRAINT pk_mt_rolling_buffer PRIMARY KEY,
 	message_id			integer NOT NULL,
 	timestamp			timestamp without time zone default (now() at time zone 'utc') NOT NULL,
-	events				UUID[] NOT NULL,
+	event_id			UUID NOT NULL,
 	stream_id			UUID NOT NULL,
 	reference_count		integer NOT NULL	
 );


	WHILE i < size LOOP
		insert into {databaseSchema}.mt_rolling_buffer 
			(slot, message_id, timestamp, events, stream_id, reference_count)
		values
			(i + 1, 0, timestamp, ARRAY[0], empty, 0);

		i := i + 1;
	END LOOP;

END
$$ LANGUAGE plpgsql;

