30 lines
567 B
Rust
30 lines
567 B
Rust
use super::schema::member_sites;
|
|
use beteran_common_rust as bcr;
|
|
|
|
///
|
|
#[derive(Eq, Hash, Identifiable, Queryable, PartialEq, Debug, Clone)]
|
|
#[table_name = "member_sites"]
|
|
pub struct MemberSite {
|
|
///
|
|
pub id: uuid::Uuid,
|
|
///
|
|
pub url: String,
|
|
///
|
|
pub created_at: i64,
|
|
///
|
|
pub updated_at: i64,
|
|
///
|
|
pub deleted_at: Option<i64>,
|
|
}
|
|
|
|
///
|
|
#[derive(Debug, Clone)]
|
|
pub struct FindAll {
|
|
///
|
|
pub url_like: Option<String>,
|
|
///
|
|
pub pagination: Option<bcr::models::pagination::Pagination>,
|
|
///
|
|
pub sorts: Option<Vec<bcr::models::pagination::Sort>>,
|
|
}
|