The past tense of have a good time is had a good time.
The third-person singular simple present indicative form of have a good time is has a good time.
The present participle of have a good time is having a good time.
The past participle of have a good time is had a good time.