Home / File/ 1-to-1-fk.ts — drizzle-orm Source File

1-to-1-fk.ts — drizzle-orm Source File

Architecture documentation for 1-to-1-fk.ts, a typescript file in the drizzle-orm codebase. 2 imports, 0 dependents.

File typescript DrizzleORM SQLDialects 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  571090e5_d2ee_d303_533f_eb92be7f2e9a["1-to-1-fk.ts"]
  ea8a5f17_a0f8_080e_1e04_e8fe9b597048["index.ts"]
  571090e5_d2ee_d303_533f_eb92be7f2e9a --> ea8a5f17_a0f8_080e_1e04_e8fe9b597048
  70e1783e_f575_ccd4_36bd_5f0978c2172c["table.ts"]
  571090e5_d2ee_d303_533f_eb92be7f2e9a --> 70e1783e_f575_ccd4_36bd_5f0978c2172c
  style 571090e5_d2ee_d303_533f_eb92be7f2e9a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { int, serial } from '~/mysql-core/columns/index.ts';
import { mysqlTable } from '~/mysql-core/table.ts';

const test1 = mysqlTable('test1_table', {
	id: serial('id').primaryKey(),
	test2Id: int('test2_id').references(() => test2.id),
});

const test1Id = int('test1_id').references(() => test1.id);

const test2 = mysqlTable('test2_table', {
	id: serial('id').primaryKey(),
	test1Id,
});

Domain

Subdomains

Functions

Dependencies

  • index.ts
  • table.ts

Frequently Asked Questions

What does 1-to-1-fk.ts do?
1-to-1-fk.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleORM domain, SQLDialects subdomain.
What functions are defined in 1-to-1-fk.ts?
1-to-1-fk.ts defines 1 function(s): test1Id.
What does 1-to-1-fk.ts depend on?
1-to-1-fk.ts imports 2 module(s): index.ts, table.ts.
Where is 1-to-1-fk.ts in the architecture?
1-to-1-fk.ts is located at drizzle-orm/type-tests/mysql/1-to-1-fk.ts (domain: DrizzleORM, subdomain: SQLDialects, directory: drizzle-orm/type-tests/mysql).

Analyze Your Own Codebase

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

Try Supermodel Free