Generate ticket model