Grey Haven Multi-Tenant Data Modeling

•
15
•

Standardize and automate multi-tenant database schema design using SQLModel and Drizzle ORM.

This skill empowers Claude to design production-grade, multi-tenant database schemas specifically optimized for Grey Haven SaaS applications. It enforces strict data isolation through mandatory tenant IDs and Row Level Security (RLS) while adhering to professional naming conventions like snake_case and standardized audit fields. By integrating patterns for both SQLModel (FastAPI) and Drizzle ORM (TanStack Start), it ensures consistent data structures, optimized indexing, and reliable migration workflows across diverse tech stacks.

主要功能

01Optimized indexing strategies for foreign keys and tenant-specific queries
02Ready-to-use migration templates for Drizzle Kit and Alembic
03Dual-ORM support for SQLModel (Python) and Drizzle ORM (TypeScript)
0415 GitHub stars
05Automated multi-tenant isolation via mandatory tenant_id fields and RLS policies
06Strict enforcement of snake_case naming conventions and standard audit timestamps

使用场景

01Refactoring existing tables to implement Row Level Security and soft deletes
02Standardizing database field naming and indexing for performance and consistency
03Designing new multi-tenant database schemas from scratch with built-in isolation