Build sql for constraints during create table