feat(core): basic implementation of remote workspace support (#15120)
This commit is contained in:
parent
a94f564ff0
commit
c12ce2ffff
26 changed files with 2153 additions and 65 deletions
12
packages/opencode/src/control-plane/workspace.sql.ts
Normal file
12
packages/opencode/src/control-plane/workspace.sql.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { sqliteTable, text } from "drizzle-orm/sqlite-core"
|
||||
import { ProjectTable } from "@/project/project.sql"
|
||||
import type { Config } from "./config"
|
||||
|
||||
export const WorkspaceTable = sqliteTable("workspace", {
|
||||
id: text().primaryKey(),
|
||||
branch: text(),
|
||||
project_id: text()
|
||||
.notNull()
|
||||
.references(() => ProjectTable.id, { onDelete: "cascade" }),
|
||||
config: text({ mode: "json" }).notNull().$type<Config>(),
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue