summaryrefslogtreecommitdiffhomepage
path: root/packages/opencode/src/project/project.sql.ts
blob: 12373244f572affdb1d1e8b1d6e0caaa180739a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { sqliteTable, text, integer } from "drizzle-orm/sqlite-core"
import { Timestamps } from "@/storage/schema.sql"

export const ProjectTable = sqliteTable("project", {
  id: text().primaryKey(),
  worktree: text().notNull(),
  vcs: text(),
  name: text(),
  icon_url: text(),
  icon_color: text(),
  ...Timestamps,
  time_initialized: integer(),
  sandboxes: text({ mode: "json" }).notNull().$type<string[]>(),
  commands: text({ mode: "json" }).$type<{ start?: string }>(),
})