Co-authored-by: Kit Langton <kit.langton@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
15 lines
484 B
TypeScript
15 lines
484 B
TypeScript
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 }>(),
|
|
})
|