Use integer sequence numbers in globalindex.

Make sequence_number not nullable.