← スキル一覧に戻る

spec-writing-database
by michaellperry
⭐ 0🍴 0📅 2026年1月23日
SKILL.md
name: spec-writing-database description: Writes database schema specifications using Mermaid ER diagrams and defines table structures for multi-tenant entities. Use when designing database schemas, creating entity-relationship diagrams, or specifying database constraints for GloboTicket features.
Database Schema
IMPORTANT: This section specifies the database schema design only. Do NOT include Entity Framework entity classes or fluent configuration code. The specification should describe WHAT needs to be built, not HOW to build it.
Provide Entity-Relationship diagram using Mermaid:
erDiagram
Tenant ||--o{ NewEntity : has
NewEntity ||--o{ ChildEntity : contains
ExistingEntity ||--o{ NewEntity : references
NewEntity {
int Id PK
int TenantId FK
uuid EntityGuid UK
string Name
datetime CreatedAt
datetime UpdatedAt
}
ChildEntity {
int Id PK
int NewEntityId FK
string Property
datetime CreatedAt
datetime UpdatedAt
}
List indexes for new or modified tables.
Database Design Principles
- All domain entities must be directly or indirectly related to Tenant for multi-tenancy
- Define ALL properties with data types, constraints, and nullability
- Use composite alternate keys for multi-tenant entities
- Specify relationships and foreign keys
- Add indexes for frequently queried columns
- Use meaningful table names (plural, PascalCase)
- Show modifications to existing entities if needed
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓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
レビュー
💬
レビュー機能は近日公開予定です