summaryrefslogtreecommitdiffhomepage
path: root/packages/console/core/src/schema/benchmark.sql.ts
diff options
context:
space:
mode:
authorFrank <[email protected]>2025-12-28 13:54:09 -0500
committerFrank <[email protected]>2025-12-28 13:54:11 -0500
commit81c5e7b9ed218e342aba154cdd5ed436c7775966 (patch)
treea85f85d0496818a2ddf6f169308252b22845ec8d /packages/console/core/src/schema/benchmark.sql.ts
parentddf4897eaa7580bbc473923f4d3026a628e58a65 (diff)
downloadopencode-81c5e7b9ed218e342aba154cdd5ed436c7775966.tar.gz
opencode-81c5e7b9ed218e342aba154cdd5ed436c7775966.zip
wip: benchmark
Diffstat (limited to 'packages/console/core/src/schema/benchmark.sql.ts')
-rw-r--r--packages/console/core/src/schema/benchmark.sql.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/console/core/src/schema/benchmark.sql.ts b/packages/console/core/src/schema/benchmark.sql.ts
new file mode 100644
index 000000000..8d435eddf
--- /dev/null
+++ b/packages/console/core/src/schema/benchmark.sql.ts
@@ -0,0 +1,14 @@
+import { index, mediumtext, mysqlTable, primaryKey, varchar } from "drizzle-orm/mysql-core"
+import { id, timestamps } from "../drizzle/types"
+
+export const BenchmarkTable = mysqlTable(
+ "benchmark",
+ {
+ id: id(),
+ ...timestamps,
+ model: varchar("model", { length: 64 }).notNull(),
+ agent: varchar("agent", { length: 64 }).notNull(),
+ result: mediumtext("result").notNull(),
+ },
+ (table) => [primaryKey({ columns: [table.id] }), index("time_created").on(table.timeCreated)],
+)