summaryrefslogtreecommitdiffhomepage
path: root/packages/console/core/src/schema/benchmark.sql.ts
blob: 8d435eddfd834f53d8666893ca23f724624e9f9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)],
)