23 lines
568 B
Rust
23 lines
568 B
Rust
pub use super::_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<C>(self, _db: &C, _insert: bool) -> std::result::Result<Self, DbErr>
|
|
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 {}
|