feat(id): brand ProjectID through Drizzle and Zod schemas (#16948)
This commit is contained in:
parent
c37f7b9d99
commit
dbc00aa8e0
15 changed files with 77 additions and 44 deletions
|
|
@ -1,8 +1,9 @@
|
|||
import { sqliteTable, text, integer } from "drizzle-orm/sqlite-core"
|
||||
import { Timestamps } from "../storage/schema.sql"
|
||||
import type { ProjectID } from "./schema"
|
||||
|
||||
export const ProjectTable = sqliteTable("project", {
|
||||
id: text().primaryKey(),
|
||||
id: text().$type<ProjectID>().primaryKey(),
|
||||
worktree: text().notNull(),
|
||||
vcs: text(),
|
||||
name: text(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue