schema.types.ts — drizzle-orm Source File
Architecture documentation for schema.types.ts, a typescript file in the drizzle-orm codebase. 5 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR e918a77e_1e35_56b9_adb6_5727c2a5b3ad["schema.types.ts"] 8f030d4f_790e_1311_a4f1_f0509f0c2d44["column.types.ts"] e918a77e_1e35_56b9_adb6_5727c2a5b3ad --> 8f030d4f_790e_1311_a4f1_f0509f0c2d44 8beb3c26_f68c_2b02_ad7a_a436848c5635["schema.types.internal.ts"] e918a77e_1e35_56b9_adb6_5727c2a5b3ad --> 8beb3c26_f68c_2b02_ad7a_a436848c5635 690f7dfc_0aea_9ee8_d6e7_26bbb3689031["drizzle-orm"] e918a77e_1e35_56b9_adb6_5727c2a5b3ad --> 690f7dfc_0aea_9ee8_d6e7_26bbb3689031 53497908_16e7_977d_e97d_7414884a88a6["pg-core"] e918a77e_1e35_56b9_adb6_5727c2a5b3ad --> 53497908_16e7_977d_e97d_7414884a88a6 a9e31838_d52b_02c1_2b9d_c4354b2ad2fa["valibot"] e918a77e_1e35_56b9_adb6_5727c2a5b3ad --> a9e31838_d52b_02c1_2b9d_c4354b2ad2fa a1e9a186_355d_5f4f_7cf0_889804754896["schema.ts"] a1e9a186_355d_5f4f_7cf0_889804754896 --> e918a77e_1e35_56b9_adb6_5727c2a5b3ad style e918a77e_1e35_56b9_adb6_5727c2a5b3ad fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import type { Table, View } from 'drizzle-orm';
import type { PgEnum } from 'drizzle-orm/pg-core';
import type * as v from 'valibot';
import type { EnumValuesToEnum } from './column.types.ts';
import type { BuildRefine, BuildSchema, NoUnknownKeys } from './schema.types.internal.ts';
export interface CreateSelectSchema {
<TTable extends Table>(table: TTable): BuildSchema<'select', TTable['_']['columns'], undefined>;
<
TTable extends Table,
TRefine extends BuildRefine<TTable['_']['columns']>,
>(
table: TTable,
refine?: NoUnknownKeys<TRefine, TTable['$inferSelect']>,
): BuildSchema<'select', TTable['_']['columns'], TRefine>;
<TView extends View>(view: TView): BuildSchema<'select', TView['_']['selectedFields'], undefined>;
<
TView extends View,
TRefine extends BuildRefine<TView['_']['selectedFields']>,
>(
view: TView,
refine: NoUnknownKeys<TRefine, TView['$inferSelect']>,
): BuildSchema<'select', TView['_']['selectedFields'], TRefine>;
<TEnum extends PgEnum<any>>(enum_: TEnum): v.EnumSchema<EnumValuesToEnum<TEnum['enumValues']>, undefined>;
}
export interface CreateInsertSchema {
<TTable extends Table>(table: TTable): BuildSchema<'insert', TTable['_']['columns'], undefined>;
<
TTable extends Table,
TRefine extends BuildRefine<Pick<TTable['_']['columns'], keyof TTable['$inferInsert']>>,
>(
table: TTable,
refine?: NoUnknownKeys<TRefine, TTable['$inferInsert']>,
): BuildSchema<'insert', TTable['_']['columns'], TRefine>;
}
export interface CreateUpdateSchema {
<TTable extends Table>(table: TTable): BuildSchema<'update', TTable['_']['columns'], undefined>;
<
TTable extends Table,
TRefine extends BuildRefine<Pick<TTable['_']['columns'], keyof TTable['$inferInsert']>>,
>(
table: TTable,
refine?: TRefine,
): BuildSchema<'update', TTable['_']['columns'], TRefine>;
}
Domain
Dependencies
- column.types.ts
- drizzle-orm
- pg-core
- schema.types.internal.ts
- valibot
Imported By
Source
Frequently Asked Questions
What does schema.types.ts do?
schema.types.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the ValidationAdapters domain.
What does schema.types.ts depend on?
schema.types.ts imports 5 module(s): column.types.ts, drizzle-orm, pg-core, schema.types.internal.ts, valibot.
What files import schema.types.ts?
schema.types.ts is imported by 1 file(s): schema.ts.
Where is schema.types.ts in the architecture?
schema.types.ts is located at drizzle-valibot/src/schema.types.ts (domain: ValidationAdapters, directory: drizzle-valibot/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free