create thrift model