Db banner
sahin sahin

Db

Data community

Description

# Database Guide Use this guide when working with database schema design, migrations, queries, and optimization. ## Migration Templates ### Create Table Migration ```sql -- migrations/YYYYMMDDHHMMSS_create_<table>.sql -- UP CREATE TABLE table_name ( id SERIAL PRIMARY KEY, name VARCHAR(255) NOT NULL, status VARCHAR(50) NOT NULL DEFAULT 'active', is_active BOOLEAN NOT NULL DEFAULT true, metadata JSONB, created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), updated_at TIMESTA

Installation

Installs to ~/.claude/commands/sahin-ai-rules-db.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/sahin/ai-rules/HEAD/.claude/commands/db.md -o ~/.claude/commands/sahin-ai-rules-db.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository