In this study, based on molecular docking analysis and comparative molecular field analysis (CoMFA) modelling of a series of 71 CD38 inhibitors including 4-amino-8-quinoline carboxamides and 2,4-diamino-8-quinazoline carboxamides, new CD38 inhibitors were designed. The interactions of the molecules with the greatest and the lowest activities with the nicotinamide mononucleotide (NMN) binding site were investigated by molecular docking analysis. A CoMFA model with four partial least squares regression (PLSR) components was developed to predict the CD38 inhibitory activity of the molecules. The r2 values for the training and test sets were 0.89 and 0.82, respectively. The Q2 values for leave-one-out cross-validation (LOO-CV) and leave-many-out cross-validation (LMO-CV) tests on the training set were 0.65 and 0.64, respectively. The CoMFA model was validated by calculating several statistical parameters. CoMFA contour maps were interpreted, and structural features that influence the CD38 inhibitory activity of molecules were determined. Finally, seven new CD38 inhibitors with greater activity with respect to the greatest active molecules were designed.