Add validations and scopes to photo model