mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-13 05:42:59 +00:00
dbcd06642c
Release Notes: - N/A Co-authored-by: Marshall <marshall@zed.dev>
9 lines
352 B
SQL
9 lines
352 B
SQL
create table lifetime_usages (
|
|
id serial primary key,
|
|
user_id integer not null,
|
|
model_id integer not null references models (id) on delete cascade,
|
|
input_tokens bigint not null default 0,
|
|
output_tokens bigint not null default 0
|
|
);
|
|
|
|
create unique index uix_lifetime_usages_on_user_id_model_id on lifetime_usages (user_id, model_id);
|