How to fix insufficient columns in unique constraint for partition key in PostgreSQL | DevErrors