Added deleted flag to ticket entity