//! Domain policy for StoredFile aggregate
//!
//! Generated by metaphor-schema. Do not edit manually.
//!
//! `DomainPolicy` enforces pure business invariants (state-based rules).
//! Identity-based rules live in `backbone_auth::ResourcePolicy`.
use async_trait::async_trait;
use backbone_core::{DomainPolicy, PolicyDecision};
use crate::domain::entity::StoredFile;
/// Domain policy for StoredFile — enforces business invariants.
pub struct StoredFileDomainPolicy;
#[async_trait]
impl DomainPolicy<StoredFile> for StoredFileDomainPolicy {
// <<< CUSTOM
// Add entity-specific invariant checks here.
// Example:
// async fn can_delete(&self, entity: &StoredFile) -> PolicyDecision {
// if entity.is_locked {
// Err("locked stored_file cannot be deleted".into())
// } else { Ok(true) }
// }
// END CUSTOM
}