Database Design Patterns

•
78
•

Enforces standardized database schema design, migration workflows, and repository patterns using SQL and Exposed ORM.

The Database Design Patterns skill provides a rigorous framework for building scalable and maintainable data layers. It automates the implementation of industry best practices, such as utilizing UUIDs for primary keys, enforcing soft-delete strategies with partial indexes, and architecting clean Repository patterns for Kotlin applications using Exposed ORM. By providing structured templates for Flyway migrations and read/write splitting, it helps developers avoid common pitfalls like duplicate column declarations, compile errors in row mapping, and inefficient indexing of deleted records.

Key Features

01Entity data class mapping for consistent business logic separation
02Standardized SQL migration templates with soft-delete and partial index support
03Flyway migration sequencing and safety rule enforcement
0478 GitHub stars
05Exposed ORM configuration optimized for UUIDs and TEXT-based data types
06Automated Repository pattern implementation with read/write splitting on replicas

Use Cases

01Initializing new database schemas with best-practice defaults like UUIDs and standard timestamps
02Building a high-performance Repository layer with specific Kotlin Exposed ORM optimizations
03Implementing robust soft-delete functionality across complex relational tables