"Hadn't I" vs. "Didn't I" [closed]

Which one of the sentences is the correct, and why?

I had breakfast yesterday, hadn't I?

I had breakfast yesterday, didn't I?


Solution 1:

I choose option "b" since "had" in this case is a main verb, not an auxiliary verb.