pgSchema.ts — drizzle-orm Source File
Architecture documentation for pgSchema.ts, a typescript file in the drizzle-orm codebase. 1 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR fa67c051_6998_a123_3b25_5ab1524be80d["pgSchema.ts"] 53497908_16e7_977d_e97d_7414884a88a6["pg-core"] fa67c051_6998_a123_3b25_5ab1524be80d --> 53497908_16e7_977d_e97d_7414884a88a6 c1024e1f_ad0d_438d_9b7a_a0a3cc791085["generators.test.ts"] c1024e1f_ad0d_438d_9b7a_a0a3cc791085 --> fa67c051_6998_a123_3b25_5ab1524be80d style fa67c051_6998_a123_3b25_5ab1524be80d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {
boolean,
date,
integer,
interval,
json,
line,
pgSchema,
point,
real,
text,
time,
timestamp,
uuid,
varchar,
} from 'drizzle-orm/pg-core';
export const schema = pgSchema('seeder_lib_pg');
export const moodEnum = schema.enum('enum', ['sad', 'ok', 'happy']);
export const enumTable = schema.table('enum_table', {
mood: moodEnum('mood_enum'),
});
export const defaultTable = schema.table('default_table', {
defaultString: text('default_string'),
});
export const defaultArrayTable = schema.table('default_array_table', {
defaultString: text('default_string').array(),
});
export const valuesFromArrayTable = schema.table('values_from_array_table', {
valuesFromArrayNotNull: varchar('values_from_array_not_null', { length: 256 }).notNull(),
valuesFromArrayWeightedNotNull: varchar('values_from_array_weighted_not_null', { length: 256 }).notNull(),
});
export const valuesFromArrayUniqueTable = schema.table('values_from_array_unique_table', {
valuesFromArray: varchar('values_from_array', { length: 256 }).unique(),
valuesFromArrayNotNull: varchar('values_from_array_not_null', { length: 256 }).unique().notNull(),
valuesFromArrayWeighted: varchar('values_from_array_weighted', { length: 256 }).unique(),
valuesFromArrayWeightedNotNull: varchar('values_from_array_weighted_not_null', { length: 256 }).unique().notNull(),
});
export const valuesFromArrayArrayTable = schema.table('values_from_array_array_table', {
valuesFromArray: varchar('values_from_array', { length: 256 }).array(),
});
export const intPrimaryKeyTable = schema.table('int_primary_key_table', {
intPrimaryKey: integer('int_primary_key').unique(),
});
export const numberTable = schema.table('number_table', {
number: real('number'),
});
export const numberUniqueTable = schema.table('number_unique_table', {
numberUnique: real('number_unique').unique(),
});
// ... (263 more lines)
Domain
Dependencies
- pg-core
Source
Frequently Asked Questions
What does pgSchema.ts do?
pgSchema.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleORM domain.
What does pgSchema.ts depend on?
pgSchema.ts imports 1 module(s): pg-core.
What files import pgSchema.ts?
pgSchema.ts is imported by 1 file(s): generators.test.ts.
Where is pgSchema.ts in the architecture?
pgSchema.ts is located at drizzle-seed/tests/pg/generatorsTest/pgSchema.ts (domain: DrizzleORM, directory: drizzle-seed/tests/pg/generatorsTest).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free