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) 301 B
import { integer, pgTable, varchar } from 'drizzle-orm/pg-core' export const usersTable = pgTable('users', { id: integer().primaryKey().generatedAlwaysAsIdentity(), name: varchar({ length: 255 }).notNull(), age: integer().notNull(), email: varchar({ length: 255 }).notNull().unique(), })