mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 03:24:54 +00:00
9 lines
303 B
TypeScript
9 lines
303 B
TypeScript
import { sqliteTable, text } from "drizzle-orm/sqlite-core"
|
|
import { Timestamps } from "../database/schema.sql.js"
|
|
import type { KV } from "../kv.js"
|
|
|
|
export const KVTable = sqliteTable("kv", {
|
|
key: text().primaryKey(),
|
|
value: text({ mode: "json" }).$type<KV.Value>().notNull(),
|
|
...Timestamps,
|
|
})
|