feat(id): brand ProjectID through Drizzle and Zod schemas (#16948)

This commit is contained in:
Kit Langton 2026-03-11 16:44:26 -04:00 committed by GitHub
commit dbc00aa8e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 77 additions and 44 deletions

View file

@ -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(),