Generate the create table sql by code