/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/console/core/src/schema/benchmark.sql.ts
14 строк
495 B
Frank
wip: benchmark
28 дек 2025, 21:54
28 дек 2025, 21:54
81c5e7b
Код
Авторство
О чём код?
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)], )