1 2 3 4 5 6 7 8 9 10
use sea_orm::{ sea_query::{Expr, SimpleExpr}, EntityTrait, }; pub trait EntityFilter: EntityTrait + Default { fn filter() -> SimpleExpr { Expr::val(1).eq(1) } }