What problem does it solve?
This Skill automates the often error-prone and time-consuming process of managing database schema changes and migrations. It ensures your PostgreSQL database and Better Auth schema are always in sync with your application's needs, saving you from manual database operations and potential data inconsistencies.
Core Features & Use Cases
- GORM AutoMigrate Integration: Automatically registers new Go entities for schema creation upon backend startup.
- Better Auth Schema Management: Simplifies the creation and migration of Better Auth's essential tables.
- Database Lifecycle Commands: Provides quick commands to start, stop, and reset your PostgreSQL database.
- Use Case: After adding a new Go entity (e.g.,
Product), use this skill to automatically register it for GORM AutoMigrate and ensure your database schema is up-to-date with a single command, eliminating manual SQL execution.
Quick Start
Explain how to add a new entity to the GORM AutoMigrate registry in backend/internal/domain/registry.go and then run the database migration by restarting the backend.