drizzleStudio.ts — drizzle-orm Source File
Architecture documentation for drizzleStudio.ts, a typescript file in the drizzle-orm codebase. 0 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 608febef_f58a_5716_7467_62f648585908["drizzleStudio.ts"] 0fabdd81_61c9_bb7c_7ddf_dde7a6071abc["index.ts"] 0fabdd81_61c9_bb7c_7ddf_dde7a6071abc --> 608febef_f58a_5716_7467_62f648585908 style 608febef_f58a_5716_7467_62f648585908 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
export type DbPrimaryKey = {
name: string;
columns: string[];
};
export type DbForeignKey = {
name: string;
tableFrom: string;
columnsFrom: string[];
schemaFrom: string;
schemaTo: string;
tableTo: string;
columnsTo: string[];
onUpdate?: string;
onDelete?: string;
};
export type DbColumn = {
name: string;
type: string;
primaryKey: boolean;
notNull: boolean;
default?: any;
isUnique?: any;
autoIncrement?: boolean;
uniqueName?: string;
nullsNotDistinct?: boolean;
onUpdate?: boolean;
};
export type DbTable = {
name: string;
type: 'table';
database?: string;
schema: string;
columns: Record<string, DbColumn>;
indexes: Record<string, any>;
foreignKeys: Record<string, DbForeignKey>;
compositePrimaryKeys: Record<string, DbPrimaryKey>;
uniqueConstraints: Record<string, any>;
};
export type DbView = Omit<DbTable, 'type'> & {
type: 'view' | 'mat_view';
};
export type DbSchema = {
database?: string;
tables: Record<string, DbTable>;
views: Record<string, DbView>;
enums: Record<string, [string, ...string[]]>;
};
export type DrizzleStudioObjectType = { [schemaName: string]: DbSchema };
export type DrizzleStudioRelationType = {
name: string;
type: 'one' | 'many';
table: string;
schema: string;
columns: string[];
refTable: string;
refSchema: string;
refColumns: string[];
};
Domain
Types
Imported By
Source
Frequently Asked Questions
What does drizzleStudio.ts do?
drizzleStudio.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleSeed domain.
What files import drizzleStudio.ts?
drizzleStudio.ts is imported by 1 file(s): index.ts.
Where is drizzleStudio.ts in the architecture?
drizzleStudio.ts is located at drizzle-seed/src/types/drizzleStudio.ts (domain: DrizzleSeed, directory: drizzle-seed/src/types).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free