Looks like a bug on copying Auto inc columns. As ...
# exposed
t
Looks like a bug on copying Auto inc columns. As workaround replace with
val type = reference("type", UserEvents).index()