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) 263 B
import { int, sqliteTable, text } from 'drizzle-orm/sqlite-core' export const usersTable = sqliteTable('users_table', { id: int().primaryKey({ autoIncrement: true }), name: text().notNull(), age: int().notNull(), email: text().notNull().unique(), })