use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)]
#[sea_orm(table_name = "budget_limit_snapshots")]
pub struct Model {
#[sea_orm(primary_key, auto_increment = false)]
pub scope_key: String,
pub scope_type: String,
pub scope_name: String,
pub max_budget: f64,
pub current_spend: f64,
pub soft_limit: f64,
pub reset_period: String,
pub currency: String,
pub enabled: bool,
pub request_count: i64,
pub last_reset_at: Option<DateTimeWithTimeZone>,
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}