drizzle-orm

Installation
SKILL.md

Drizzle ORM Best Practices

Schema — Use Identity Columns, Not Serial

// BAD: serial is legacy PostgreSQL
import { pgTable, serial, text } from "drizzle-orm/pg-core";
export const users = pgTable("users", {
  id: serial("id").primaryKey(),
  name: text("name"),
});

// GOOD: identity columns are the modern PostgreSQL standard
import { pgTable, integer, text } from "drizzle-orm/pg-core";
export const users = pgTable("users", {
  id: integer().primaryKey().generatedAlwaysAsIdentity(),
  name: text("name"),
});
Installs
7
GitHub Stars
3
First Seen
Apr 13, 2026
drizzle-orm — spardutti/claude-skills