Download packages/console/core/src/schema/benchmark.sql.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 495 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/console/core/src/schema/benchmark.sql.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/console/core/src/schema/benchmark.sql.ts
-
curl -L -o benchmark.sql.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/console/core/src/schema/benchmark.sql.ts
495 Bytes
| 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)], | |
| ) | |