32 lines
601 B
Rust
32 lines
601 B
Rust
use super::schema::member_levels;
|
|
use beteran_common_rust as bcr;
|
|
|
|
///
|
|
#[derive(Eq, Hash, Identifiable, Queryable, PartialEq, Debug, Clone)]
|
|
#[table_name = "member_levels"]
|
|
pub struct MemberLevel {
|
|
///
|
|
pub id: uuid::Uuid,
|
|
///
|
|
pub name: String,
|
|
///
|
|
pub sort_order: i32,
|
|
///
|
|
pub created_at: i64,
|
|
///
|
|
pub updated_at: i64,
|
|
///
|
|
pub deleted_at: Option<i64>,
|
|
}
|
|
|
|
///
|
|
#[derive(Debug, Clone)]
|
|
pub struct FindAll {
|
|
///
|
|
pub name_like: Option<String>,
|
|
///
|
|
pub pagination: Option<bcr::models::pagination::Pagination>,
|
|
///
|
|
pub sorts: Option<Vec<bcr::models::pagination::Sort>>,
|
|
}
|