Database Design Patterns

•
78
•

Standardizes database architecture using best practices for schema design, Flyway migrations, and Exposed ORM implementation.

This skill provides a comprehensive framework for building robust, scalable database layers, specifically tailored for Kotlin/JVM environments using the Exposed ORM. It enforces strict architectural rules such as using UUIDs for primary keys and implementing soft deletes via timestamps rather than destructive removals. By providing standardized templates for migrations, entity data classes, and repository patterns with read/write splitting, it ensures consistency and high performance across the entire data access layer of an application.

主要功能

01Provides ready-to-use templates for Flyway migrations and Exposed ORM table objects.
02Guides sequential migration workflows to prevent deployment gaps and file naming errors.
03Automates soft delete implementation with standard columns and partial indexing.
04Enforces strict schema rules including UUID primary keys and TEXT data types over VARCHAR.
0578 GitHub stars
06Implements the Repository pattern with built-in read/write splitting logic for replicas.

使用场景

01Refactoring data access logic to implement clean repository patterns and entity mapping.
02Bootstrapping a new microservice with a production-ready PostgreSQL schema and ORM layer.
03Standardizing database migration practices across a multi-developer backend team.