CreateUpdateSchema Type — drizzle-orm Architecture
Architecture documentation for the CreateUpdateSchema type/interface in schema.types.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 234db69e_3ccd_02e0_1e27_d6a67e8bacdd["CreateUpdateSchema"] 37a75c34_5ecc_3525_ecb4_d53dfebc43bb["schema.types.ts"] 234db69e_3ccd_02e0_1e27_d6a67e8bacdd -->|defined in| 37a75c34_5ecc_3525_ecb4_d53dfebc43bb style 234db69e_3ccd_02e0_1e27_d6a67e8bacdd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-zod/src/schema.types.ts lines 43–54
export interface CreateUpdateSchema<
TCoerce extends Partial<Record<'bigint' | 'boolean' | 'date' | 'number' | 'string', true>> | true | undefined,
> {
<TTable extends Table>(table: TTable): BuildSchema<'update', TTable['_']['columns'], undefined, TCoerce>;
<
TTable extends Table,
TRefine extends BuildRefine<Pick<TTable['_']['columns'], keyof TTable['$inferInsert']>, TCoerce>,
>(
table: TTable,
refine?: TRefine,
): BuildSchema<'update', TTable['_']['columns'], TRefine, TCoerce>;
}
Defined In
Source
Frequently Asked Questions
What is the CreateUpdateSchema type?
CreateUpdateSchema is a type/interface in the drizzle-orm codebase, defined in drizzle-zod/src/schema.types.ts.
Where is CreateUpdateSchema defined?
CreateUpdateSchema is defined in drizzle-zod/src/schema.types.ts at line 43.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free