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
This commit is contained in:
parent
c3177e6f5b
commit
8cc2ade21c
1 changed files with 8 additions and 0 deletions
|
@ -0,0 +1,8 @@
|
|||
create table subscription_usage_meters (
|
||||
id serial primary key,
|
||||
subscription_usage_id integer not null references subscription_usages (id) on delete cascade,
|
||||
model_id integer not null references models (id) on delete cascade,
|
||||
requests integer not null default 0
|
||||
);
|
||||
|
||||
create unique index uix_subscription_usage_meters_on_subscription_usage_model on subscription_usage_meters (subscription_usage_id, model_id);
|
Loading…
Add table
Add a link
Reference in a new issue