Skip to content

Commit 9e90f60

Browse files
committed
added llm_usage table
1 parent a1b1062 commit 9e90f60

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

metadata/tables.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3159,6 +3159,9 @@
31593159
- value
31603160
filter: {}
31613161
comment: ""
3162+
- table:
3163+
name: llm_usage
3164+
schema: public
31623165
- table:
31633166
name: manager_permissions
31643167
schema: public
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROP TABLE "public"."llm_usage";
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CREATE TABLE "public"."llm_usage" ("uuid" uuid NOT NULL DEFAULT gen_random_uuid(), "total_tokens_used" int8 NOT NULL DEFAULT 0, "token_limit" int8 NOT NULL DEFAULT 100000, "created_at" timestamptz NOT NULL DEFAULT now(), "last_updated_at" timestamptz NOT NULL DEFAULT now(), PRIMARY KEY ("uuid") , UNIQUE ("uuid"));
2+
CREATE EXTENSION IF NOT EXISTS pgcrypto;

0 commit comments

Comments
 (0)