use 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::WaterRequirement"]
pub enum WaterRequirement {
#[serde(rename = "dry")]
#[db_rename = "dry"]
Dry,
#[serde(rename = "moist")]
#[db_rename = "moist"]
Moist,
#[serde(rename = "wet")]
#[db_rename = "wet"]
Wet,
#[serde(rename = "water")]
#[db_rename = "water"]
Water,
}