adding-database-tables
CommunityGuides adding DB tables via migrations and repos.
Authoreretica
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Automates and standardizes adding new database tables using Drizzle ORM migrations and a repository pattern, reducing boilerplate and ensuring consistency across the codebase.
Core Features & Use Cases
- Schema definition guidance: How to add table definitions in src/main/db/schema.ts with drizzle-orm.
- Migration generation and verification: Create migrations with pnpm db:generate and validate SQL.
- Repository pattern implementation: Create and export a repository class with CRUD operations.
- Testing and IPC integration: Include unit tests and wire IPC handlers for data access.
Quick Start
Follow the steps to add a new table and wire up a repository using Drizzle ORM, migrations, and IPC integration.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: adding-database-tables Download link: https://github.com/eretica/github-gh-reminder/archive/main.zip#adding-database-tables Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.