drizzle-schema

Create Drizzle ORM schemas with UUIDv7 identifiers and timestamps.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/endriwmsi/hub-ln --skill drizzle-schema
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drizzle-schema
Source: https://github.com/endriwmsi/hub-ln/tree/main/.agent/skills/drizzle-schema
Command: npx skills add https://github.com/endriwmsi/hub-ln --skill drizzle-schema

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Este guia padroniza a criação de esquemas Drizzle ORM com UUIDv7, timestamps com fuso horário e convenções compartilhadas entre entidades.

Core Features & Use Cases

  • Gera esquemas com id UUIDv7, createdAt e updatedAt com timezone, createdById como FK e padrões para status e isActive.
  • Inclui exemplos de entidades e templates reutilizáveis para acelerar o desenvolvimento.
  • Uso típico: criar rapidamente tabelas de domínio mantendo consistência com as tabelas existentes no projeto.

Quick Start

Use o modelo base para gerar uma nova entidade seguindo UUIDv7 e timestamps.

Frequently Asked Questions about drizzle-schema

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Drizzle ORM schema with UUIDv7 and timestamps in TypeScript?

You generate Drizzle ORM schemas with UUIDv7 identifiers and timezone-aware timestamps by applying consistent project conventions to entity table definitions, including id, createdAt, updatedAt, and foreign keys.

What is the standard pattern for defining foreign keys and timestamps in a Drizzle schema?

The standard pattern uses UUIDv7 for id, timezone-aware timestamps for createdAt and updatedAt, createdById as a foreign key, and standard defaults for status and isActive to maintain consistency across existing tables.

Does this Drizzle schema approach support PostgreSQL and TypeScript environments?

Yes, the Drizzle schema generation approach supports PostgreSQL and TypeScript environments by defining entity tables with UUIDv7 identifiers and timezone-aware timestamps tailored for these configurations.

Can I use reusable templates to generate multiple Drizzle ORM entities quickly?

Yes, you can use reusable base templates and example entities to generate multiple Drizzle ORM entities quickly while maintaining UUIDv7 IDs and timezone-aware timestamp conventions.

Why should I use UUIDv7 for primary keys instead of other identifiers in Drizzle schemas?

Using UUIDv7 for primary keys in Drizzle schemas provides time-ordered unique identifiers, standardizing entity definitions with sortable IDs alongside timezone-aware timestamps and shared project conventions.