wip: benchmark
This commit is contained in:
parent
ddf4897eaa
commit
81c5e7b9ed
7 changed files with 1229 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ export namespace Identifier {
|
|||
const prefixes = {
|
||||
account: "acc",
|
||||
auth: "aut",
|
||||
benchmark: "ben",
|
||||
billing: "bil",
|
||||
key: "key",
|
||||
model: "mod",
|
||||
|
|
|
|||
14
packages/console/core/src/schema/benchmark.sql.ts
Normal file
14
packages/console/core/src/schema/benchmark.sql.ts
Normal file
|
|
@ -0,0 +1,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)],
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue