スキル一覧に戻る
yunuskorkmaz

database-management

by yunuskorkmaz

0🍴 0📅 2026年1月15日
GitHubで見るManusで実行

SKILL.md


name: database-management description: Handles database schema design, Drizzle ORM queries, and Expo SQLite migrations.

Database Management Skill

This skill provides instructions for managing the SQLite database using Drizzle ORM within an Expo environment.

🗄️ Core Responsibilities

  • Schema Design: Define tables, relationships, and constraints in src/db/schema.ts.
  • Migrations: Generate and apply migrations using drizzle-kit.
  • Query Optimization: Write efficient queries for fetching payments, transactions, and installments.
  • Data Integrity: Ensure cascade deletes and updates are handled correctly (e.g., deleting a payment should handle linked transactions).

🛠️ Tools & Patterns

Drizzle ORM Usage

Always use the db client from src/db/client.ts.

import { db } from '~/db/client';
import { payments } from '~/db/schema';

Async Operations

Always wrap database calls in try/catch blocks and handle loading/error states in the UI.

Period Calculations

When querying by month, use the period_key (YYYY-MM) format as defined in the data model.

⚠️ Safety Rules

  1. Never delete data without user confirmation or a clear logical reason.
  2. Always check for existing records before insertion if uniqueness is required.
  3. Draft migrations before applying them to ensure no data loss occurs.

スコア

総合スコア

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

レビュー

💬

レビュー機能は近日公開予定です