generate deck model