benchmark.sql.ts 495 B

1234567891011121314
  1. import { index, mediumtext, mysqlTable, primaryKey, varchar } from "drizzle-orm/mysql-core"
  2. import { id, timestamps } from "../drizzle/types"
  3. export const BenchmarkTable = mysqlTable(
  4. "benchmark",
  5. {
  6. id: id(),
  7. ...timestamps,
  8. model: varchar("model", { length: 64 }).notNull(),
  9. agent: varchar("agent", { length: 64 }).notNull(),
  10. result: mediumtext("result").notNull(),
  11. },
  12. (table) => [primaryKey({ columns: [table.id] }), index("time_created").on(table.timeCreated)],
  13. )