mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-31 14:22:27 +00:00
Co-authored-by: Github Action <action@github.com> Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: Brendan Allan <git@brendonovich.dev>
16 lines
483 B
TypeScript
16 lines
483 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 }>(),
|
|
})
|