ZIm/crates/collab/migrations_llm
Marshall Bowers 8cc2ade21c
collab: Add subscription_usage_meters table (#29433)
This PR adds a new `subscription_usage_meters` table to the LLM
database.

We'll use this to track usage of individual models over the number of
requests built-in to the plan.

Release Notes:

- N/A
2025-04-25 14:32:00 -04:00
..
20240806182921_create_providers_and_models.sql Apply rate limits in LLM service (#15997) 2024-08-08 15:46:33 -07:00
20240806213401_create_usages.sql Apply rate limits in LLM service (#15997) 2024-08-08 15:46:33 -07:00
20240809130000_change_rate_limit_columns_to_bigint.sql Larger rate limit integers (#16047) 2024-08-09 14:07:49 -07:00
20240809160000_add_pricing_columns_to_models.sql Capture telemetry data on per-user monthly LLM spending (#16050) 2024-08-09 16:38:37 -07:00
20240812184444_add_is_staff_to_usages.sql collab: Use a separate Anthropic API key for Zed staff (#16128) 2024-08-12 15:20:34 -04:00
20240812225346_create_lifetime_usages.sql Track lifetime spending for each user and model (#16137) 2024-08-12 20:15:26 -04:00
20240813002237_add_revoked_access_tokens_table.sql collab: Add ability to revoke LLM service access tokens (#16143) 2024-08-12 21:47:05 -04:00
20241007173634_add_cache_token_counts.sql collab: Track cache writes/reads in LLM usage (#18834) 2024-10-07 17:32:49 -04:00
20241007220716_drop_incorrect_usages_columns.sql collab: Drop mistakenly-added columns from the usages table (#18835) 2024-10-07 18:21:48 -04:00
20241008155620_create_monthly_usages.sql collab: Update billing code for LLM usage billing (#18879) 2024-10-08 18:29:38 -04:00
20241010151249_create_billing_events.sql collab: Add usage-based billing for LLM interactions (#19081) 2024-10-11 13:36:54 -04:00
20250404141155_add_granular_token_limits_to_models.sql collab: Add granular tokens per minute columns to models table (#28090) 2025-04-04 14:33:15 +00:00
20250415213005_add_subscription_usages.sql collab: Add subscription_usages table (#28818) 2025-04-15 18:13:29 -04:00
20250416181354_add_plan_to_subscription_usages.sql collab: Add plan column to subscription_usages (#28889) 2025-04-16 18:36:49 +00:00
20250425171838_add_subscription_usage_meters.sql collab: Add subscription_usage_meters table (#29433) 2025-04-25 14:32:00 -04:00