← Back to list

database
by hokita
⭐ 0🍴 0📅 Nov 28, 2025
SKILL.md
name: Database description: Database schemas, table specifications, and migration information. Use when working with database structure or queries.
Database Reference
Database schema and specifications for the Fox English learning service.
Database System
- Production: MySQL
- Testing: SQLite (in-memory via better-sqlite3)
- Configuration:
api/src/infrastructure/database/config.ts
Documentation
- Table Schemas - Detailed table structure and field descriptions
- DDL Script - Complete SQL schema definition
- Migrations - Database migration scripts
Tables
Articles
Stores English learning articles and their metadata.
Key Fields:
id(CHAR(36)) - UUID primary keytitle(VARCHAR(255)) - User-editable article titleurl(VARCHAR(2048)) - Article source URLbody(TEXT) - Article contentmemo(TEXT) - User's personal notesstudied_at(DATETIME) - When the article was/will be studiedcreated_at,updated_at- Timestamps
Questions
Stores comprehension questions related to articles.
Key Fields:
id(CHAR(36)) - UUID primary keyarticle_id(CHAR(36)) - Foreign key to articlessort(INT) - Display orderbody(TEXT) - Question textanswer(TEXT) - Answer textcreated_at,updated_at- Timestamps
Relationship: Each question belongs to one article (many-to-one)
Repository Pattern
- Interface:
api/src/domain/repositories/ArticleRepository.ts - MySQL Implementation:
api/src/infrastructure/repositories/MySQLArticleRepository.ts - SQLite Implementation (Testing):
api/src/__tests__/helpers/SQLiteArticleRepository.ts
Related Skills
- api - API endpoints and data models
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