add check constraints to create table scripts