Auto-fill created_by field

Thank you for this, I am finding extending Strapi quite confusing at the moment - are there any examples of lifecycle callbacks and policies in V4?