Home / File/ mysqlSchema.ts — drizzle-orm Source File

mysqlSchema.ts — drizzle-orm Source File

Architecture documentation for mysqlSchema.ts, a typescript file in the drizzle-orm codebase. 1 imports, 1 dependents.

File typescript DrizzleORM 1 imports 1 dependents

Entity Profile

Dependency Diagram

graph LR
  aa8802bd_3fd9_2ad0_a3ff_824f1d371a6b["mysqlSchema.ts"]
  93ed9350_daa0_6c21_81a6_ed6b2a48bbdf["mysql-core"]
  aa8802bd_3fd9_2ad0_a3ff_824f1d371a6b --> 93ed9350_daa0_6c21_81a6_ed6b2a48bbdf
  7b31ad52_39ad_e8a6_33ca_e9df73d2c55e["mysql_all_data_types.test.ts"]
  7b31ad52_39ad_e8a6_33ca_e9df73d2c55e --> aa8802bd_3fd9_2ad0_a3ff_824f1d371a6b
  style aa8802bd_3fd9_2ad0_a3ff_824f1d371a6b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {
	bigint,
	binary,
	boolean,
	char,
	date,
	datetime,
	decimal,
	double,
	float,
	int,
	json,
	mediumint,
	mysqlEnum,
	mysqlTable,
	real,
	serial,
	smallint,
	text,
	time,
	timestamp,
	tinyint,
	varbinary,
	varchar,
	year,
} from 'drizzle-orm/mysql-core';

export const allDataTypes = mysqlTable('all_data_types', {
	int: int('integer'),
	tinyint: tinyint('tinyint'),
	smallint: smallint('smallint'),
	mediumint: mediumint('mediumint'),
	biginteger: bigint('bigint', { mode: 'bigint' }),
	bigintNumber: bigint('bigint_number', { mode: 'number' }),
	real: real('real'),
	decimal: decimal('decimal'),
	double: double('double'),
	float: float('float'),
	serial: serial('serial'),
	binary: binary('binary', { length: 255 }),
	varbinary: varbinary('varbinary', { length: 256 }),
	char: char('char', { length: 255 }),
	varchar: varchar('varchar', { length: 256 }),
	text: text('text'),
	boolean: boolean('boolean'),
	dateString: date('date_string', { mode: 'string' }),
	date: date('date', { mode: 'date' }),
	datetime: datetime('datetime', { mode: 'date' }),
	datetimeString: datetime('datetimeString', { mode: 'string' }),
	time: time('time'),
	year: year('year'),
	timestampDate: timestamp('timestamp_date', { mode: 'date' }),
	timestampString: timestamp('timestamp_string', { mode: 'string' }),
	json: json('json'),
	mysqlEnum: mysqlEnum('popularity', ['unknown', 'known', 'popular']),
});

Domain

Dependencies

  • mysql-core

Frequently Asked Questions

What does mysqlSchema.ts do?
mysqlSchema.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleORM domain.
What does mysqlSchema.ts depend on?
mysqlSchema.ts imports 1 module(s): mysql-core.
What files import mysqlSchema.ts?
mysqlSchema.ts is imported by 1 file(s): mysql_all_data_types.test.ts.
Where is mysqlSchema.ts in the architecture?
mysqlSchema.ts is located at drizzle-seed/tests/mysql/allDataTypesTest/mysqlSchema.ts (domain: DrizzleORM, directory: drizzle-seed/tests/mysql/allDataTypesTest).

Analyze Your Own Codebase

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

Try Supermodel Free