Home / Type/ TableConfig Type — astro Architecture

TableConfig Type — astro Architecture

Architecture documentation for the TableConfig type/interface in types.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  2516fa31_36be_3da1_fdaa_55a63502d208["TableConfig"]
  6e2bac63_8347_e439_f286_003fc8700611["types.ts"]
  2516fa31_36be_3da1_fdaa_55a63502d208 -->|defined in| 6e2bac63_8347_e439_f286_003fc8700611
  style 2516fa31_36be_3da1_fdaa_55a63502d208 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/db/src/core/types.ts lines 62–73

export interface TableConfig<TColumns extends ColumnsConfig = ColumnsConfig>
	// use `extends` to ensure types line up with zod,
	// only adding generics for type completions.
	extends Pick<z.input<typeof tableSchema>, 'columns' | 'indexes' | 'foreignKeys'> {
	columns: TColumns;
	foreignKeys?: Array<{
		columns: MaybeArray<Extract<keyof TColumns, string>>;
		references: () => MaybeArray<z.input<typeof referenceableColumnSchema>>;
	}>;
	indexes?: Array<IndexConfig<TColumns>> | Record<string, LegacyIndexConfig<TColumns>>;
	deprecated?: boolean;
}

Frequently Asked Questions

What is the TableConfig type?
TableConfig is a type/interface in the astro codebase, defined in packages/db/src/core/types.ts.
Where is TableConfig defined?
TableConfig is defined in packages/db/src/core/types.ts at line 62.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free