[haiyang] add generate create table sql function