UNPKG

drizzle-setup

Version:

A powerful CLI tool to automatically scaffold and configure database setup using Drizzle ORM for PostgreSQL,SQLite,MySQL and More.

9 lines (7 loc) 287 B
import { int, mysqlTable, serial, varchar } from 'drizzle-orm/mysql-core' export const usersTable = mysqlTable('users_table', { id: serial().primaryKey(), name: varchar({ length: 255 }).notNull(), age: int().notNull(), email: varchar({ length: 255 }).notNull().unique(), })