← Back to list

drizzle-schema-generation
by nadeemsangrasi
⭐ 0🍴 0📅 Dec 17, 2025
SKILL.md
name: Drizzle Schema Generation description: Generates Drizzle ORM schema files for users, sessions, tokens, OAuth accounts, and audit logs. Syncs schema to Neon Postgres.
Drizzle Schema Generation
Instructions
-
Generate Drizzle ORM schema files:
- Create users table with email, name, provider IDs, timestamps
- Create sessions table with token, expiration, user association
- Create accounts table for OAuth providers (if needed)
- Create verification tokens table for email verification
- Create audit logs table for security tracking
-
Follow Drizzle ORM best practices:
- Use proper TypeScript types
- Include appropriate indexes
- Add foreign key relationships
- Use proper naming conventions
- Include proper constraints
-
Ensure Neon Postgres compatibility:
- Use PostgreSQL-specific features where appropriate
- Follow Neon's connection and performance guidelines
- Include proper migration patterns
- Consider Neon's branching capabilities
-
Generate both SQL and TypeScript definitions:
- Create proper Drizzle table definitions
- Include type-safe schema exports
- Add proper relationship definitions
- Include migration scripts
-
Follow Context7 MCP documentation:
- Retrieve latest Drizzle ORM documentation
- Follow Neon Postgres best practices
- Ensure security compliance
Examples
Input: "Generate schema for users with email, name, provider IDs" Output: Creates Drizzle schema with:
export const users = pgTable('users', {
id: varchar('id', { length: 255 }).primaryKey().notNull(),
email: varchar('email', { length: 255 }).notNull().unique(),
name: varchar('name', { length: 255 }),
providerId: varchar('provider_id', { length: 255 }),
createdAt: timestamp('created_at').defaultNow().notNull(),
updatedAt: timestamp('updated_at').defaultNow().notNull()
})
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon