opencode / packages /console /core /src /schema /benchmark.sql.ts
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
116a473 verified
Raw
History Blame Contribute Delete
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)],
)