mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-16 01:19:19 -04:00
12 lines
468 B
TypeScript
12 lines
468 B
TypeScript
import { Workspace } from "@opencode-ai/schema/workspace"
|
|
import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core"
|
|
import type { WorkspaceDriver } from "./driver.js"
|
|
|
|
export const WorkspaceTable = sqliteTable("workspace", {
|
|
id: text().$type<Workspace.ID>().primaryKey(),
|
|
provider: text().notNull(),
|
|
binding: text({ mode: "json" }).$type<WorkspaceDriver.Binding>().notNull(),
|
|
created_at: integer().notNull(),
|
|
last_used_at: integer().notNull(),
|
|
})
|