use candid::CandidType;
use serde::{Deserialize, Serialize};
pub trait Model: CandidType + Serialize + for<'de> Deserialize<'de> + Clone {
type PrimaryKey: ToString + Clone;
type SecondaryKey: Clone + Ord + ic_stable_structures::Storable;
fn get_primary_key(&self) -> Self::PrimaryKey;
fn get_secondary_key(&self) -> Option<Self::SecondaryKey> {
None
}
fn model_name() -> &'static str;
}