tables.ts — drizzle-orm Source File
Architecture documentation for tables.ts, a typescript file in the drizzle-orm codebase. 0 imports, 3 dependents.
Entity Profile
Dependency Diagram
graph LR 068455b6_0ea9_cdc1_8414_ef0ad089ef04["tables.ts"] 0fabdd81_61c9_bb7c_7ddf_dde7a6071abc["index.ts"] 0fabdd81_61c9_bb7c_7ddf_dde7a6071abc --> 068455b6_0ea9_cdc1_8414_ef0ad089ef04 cddca4ed_9295_2c5a_7eae_0e65031c57b0["SeedService.ts"] cddca4ed_9295_2c5a_7eae_0e65031c57b0 --> 068455b6_0ea9_cdc1_8414_ef0ad089ef04 aaa9a26b_a842_a4d1_a213_2cea0b822f37["seedService.ts"] aaa9a26b_a842_a4d1_a213_2cea0b822f37 --> 068455b6_0ea9_cdc1_8414_ef0ad089ef04 style 068455b6_0ea9_cdc1_8414_ef0ad089ef04 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/* eslint-disable @typescript-eslint/no-explicit-any */
export type Column = {
name: string;
dataType: string;
columnType: string;
typeParams: {
precision?: number;
scale?: number;
length?: number;
dimensions?: number;
};
size?: number;
default?: any;
hasDefault: boolean;
enumValues?: string[];
isUnique: boolean;
notNull: boolean;
primary: boolean;
generatedIdentityType?: 'always' | 'byDefault' | undefined;
baseColumn?: Omit<Column, 'generatedIdentityType'>;
};
export type Table = {
name: string;
columns: Column[];
primaryKeys: string[];
};
export type Relation = {
// name: string;
type?: 'one' | 'many';
table: string;
// schema: string;
columns: string[];
refTable: string;
// refSchema: string;
refColumns: string[];
};
export type RelationWithReferences = Relation & { isCyclic?: boolean; refTableRels: RelationWithReferences[] };
export type Prettify<T> =
& {
[K in keyof T]: T[K];
}
& {};
Domain
Imported By
Source
Frequently Asked Questions
What does tables.ts do?
tables.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleSeed domain.
What files import tables.ts?
tables.ts is imported by 3 file(s): SeedService.ts, index.ts, seedService.ts.
Where is tables.ts in the architecture?
tables.ts is located at drizzle-seed/src/types/tables.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