backend/model/enum/
membership.rsuse diesel_derive_enum::DbEnum;
use serde::{Deserialize, Serialize};
use typeshare::typeshare;
use utoipa::ToSchema;
#[typeshare]
#[derive(Serialize, Deserialize, DbEnum, Debug, ToSchema)]
#[ExistingTypePath = "crate::schema::sql_types::Membership"]
pub enum Membership {
#[serde(rename = "supporting")]
#[db_rename = "supporting"]
Supporting,
#[serde(rename = "regular")]
#[db_rename = "regular"]
Regular,
#[serde(rename = "contributing")]
#[db_rename = "contributing"]
Contributing,
}