collab: Add LLM request overage columns to billing_preferences (#29446)

This PR adds two new columns to the `billing_preferences` table to allow
users to opt in to overages on LLM requests.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-04-25 16:43:43 -04:00 committed by GitHub
parent 12c645e154
commit 8b910e1cd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -0,0 +1,3 @@
alter table billing_preferences
add column model_request_overages_enabled bool not null default false,
add column model_request_overages_spend_limit_in_cents integer not null default 0;

View file

@ -9,6 +9,8 @@ pub struct Model {
pub created_at: DateTime,
pub user_id: UserId,
pub max_monthly_llm_usage_spending_in_cents: i32,
pub model_request_overages_enabled: bool,
pub model_request_overages_spend_limit_in_cents: i32,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]