How to create w and C models for weapon?

I’m making my own melee weapon addon. And I can’t find a guide for creating c_ and w_ models anywhere. Please, tell me)