add belongs_to & has_one

I saw someone post an issue about there's no 'belongs_to' snippets.
Therefore I add a 'belongs_to' and 'has_one' snippets.