pub async fn create_cost_budget(
pool: &Pool<MySql>,
org_id: i64,
app_id: Option<i64>,
budget_name: &str,
budget_amount: f64,
currency: &str,
budget_period: &str,
period_start: DateTime<Utc>,
period_end: DateTime<Utc>,
alert_threshold_percentage: f64,
alert_contacts: &str,
created_by: i64,
) -> Result<CostBudget>
Expand description
Creates a new cost budget in the database.