backend/model/enum/
life_cycle.rsuse diesel_derive_enum::DbEnum;
use serde::{Deserialize, Serialize};
use typeshare::typeshare;
use utoipa::ToSchema;
#[allow(clippy::missing_docs_in_private_items)] #[typeshare]
#[derive(Serialize, Deserialize, DbEnum, Debug, PartialEq, Eq, ToSchema, Clone, Copy)]
#[ExistingTypePath = "crate::schema::sql_types::LifeCycle"]
pub enum LifeCycle {
#[serde(rename = "annual")]
#[db_rename = "annual"]
Annual,
#[serde(rename = "biennial")]
#[db_rename = "biennial"]
Biennial,
#[serde(rename = "perennial")]
#[db_rename = "perennial"]
Perennial,
}