set default created_at value after creating new entities in restAPI