mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-13 05:42:59 +00:00
d316577fd5
This PR adds a new `billing_preferences` table. Right now there is a single preference: the maximum monthly spend for LLM usage. Release Notes: - N/A --------- Co-authored-by: Richard <richard@zed.dev>
8 lines
368 B
SQL
8 lines
368 B
SQL
create table if not exists billing_preferences (
|
|
id serial primary key,
|
|
created_at timestamp without time zone not null default now(),
|
|
user_id integer not null references users(id) on delete cascade,
|
|
max_monthly_llm_usage_spending_in_cents integer not null
|
|
);
|
|
|
|
create unique index "uix_billing_preferences_on_user_id" on billing_preferences (user_id);
|