Implement Attachment entity

Add Attachment entity.