pub use crate::models::_entities::audit_logs::{ActiveModel, Entity, Model}; use sea_orm::entity::prelude::*; pub type AuditLogs = Entity; #[async_trait::async_trait] impl ActiveModelBehavior for ActiveModel { async fn before_save(self, _db: &C, _insert: bool) -> std::result::Result where C: ConnectionTrait, { Ok(self) } } // implement your read-oriented logic here impl Model {} // implement your write-oriented logic here impl ActiveModel {} // implement your custom finders, selectors oriented logic here impl Entity {}