What is a journal entry to buy equipment with common stock?

Equipment is not actually bought using common stock rather it is purchased from cash by issuing common stock so journal entry is :

[Debit] Equipment

[Credit] Cash / bank