Add not-null conditions to generated statesman tables

You probably don't want your `to_state`, `sort_key` or `parent_id` to ever be null.