database-design by davila7/claude-code-templates
npx skills add https://github.com/davila7/claude-code-templates --skill database-design学会思考,而非复制 SQL 模式。
只阅读与请求相关的文件! 查看内容地图,找到你需要的部分。
| 文件 | 描述 | 何时阅读 |
|---|---|---|
database-selection.md | PostgreSQL vs Neon vs Turso vs SQLite | 选择数据库 |
orm-selection.md | Drizzle vs Prisma vs Kysely | 选择 ORM |
schema-design.md | 规范化、主键、关系 | 设计模式 |
indexing.md |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 索引类型、复合索引 |
| 性能调优 |
optimization.md | N+1 问题、EXPLAIN ANALYZE | 查询优化 |
migrations.md | 安全迁移、无服务器数据库 | 模式变更 |
在设计模式之前:
❌ 对简单应用默认使用 PostgreSQL(SQLite 可能就足够了) ❌ 跳过索引 ❌ 在生产环境中使用 SELECT * ❌ 当结构化数据更合适时存储 JSON ❌ 忽略 N+1 查询
每周安装量
275
代码仓库
GitHub 星标数
23.5K
首次出现
2026年1月25日
安全审计
安装于
opencode225
gemini-cli217
codex214
github-copilot210
claude-code191
cursor188
Learn to THINK, not copy SQL patterns.
Read ONLY files relevant to the request! Check the content map, find what you need.
| File | Description | When to Read |
|---|---|---|
database-selection.md | PostgreSQL vs Neon vs Turso vs SQLite | Choosing database |
orm-selection.md | Drizzle vs Prisma vs Kysely | Choosing ORM |
schema-design.md | Normalization, PKs, relationships | Designing schema |
indexing.md | Index types, composite indexes | Performance tuning |
optimization.md | N+1, EXPLAIN ANALYZE | Query optimization |
migrations.md | Safe migrations, serverless DBs | Schema changes |
Before designing schema:
❌ Default to PostgreSQL for simple apps (SQLite may suffice) ❌ Skip indexing ❌ Use SELECT * in production ❌ Store JSON when structured data is better ❌ Ignore N+1 queries
Weekly Installs
275
Repository
GitHub Stars
23.5K
First Seen
Jan 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode225
gemini-cli217
codex214
github-copilot210
claude-code191
cursor188
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
106,200 周安装