role-database:schema-design
/role-database:schema-design
Podpowiada projekt schematu bazy danych: normalizację, multi-tenancy, klucze główne, soft delete, tabele czasowe i ewolucję schematu.
- Autor
- rnavarych ↗
- Repozytorium
- alpha-engineer ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 24.07.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 4
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 24.07.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Podpowiada projekt schematu bazy danych: normalizację, multi-tenancy, klucze główne, soft delete, tabele czasowe i ewolucję schematu.
Oryginalny opis (EN)
Database schema design principles and patterns. Normalization (1NF through 5NF/BCNF), strategic denormalization for read performance, multi-tenancy schema patterns (shared schema, schema-per-tenant, database-per-tenant), primary key strategies (UUID v7, ULID, KSUID, Snowflake ID, BIGSERIAL, CUID2, NanoID), soft delete patterns, temporal tables (SCD Type 1/2/3/4/6), audit trails, schema evolution (expand-contract pattern), naming conventions, data type best practices, and anti-patterns to avoid (EAV, polymorphic associations, god tables). Use when designing new schemas, reviewing existing schem
Jak działa
- Reference Files
Podgląd SKILL.md
--- name: role-database:schema-design description: | Database schema design principles and patterns. Normalization (1NF through 5NF/BCNF), strategic denormalization for read performance, multi-tenancy schema patterns (shared schema, schema-per-tenant, database-per-tenant), primary key strategies (UUID v7, ULID, KSUID, Snowflake ID, BIGSERIAL, CUID2, NanoID), soft delete patterns, temporal tables (SCD Type 1/2/3/4/6), audit trails, schema evolution (expand-contract pattern), naming conventions, data type best practices, and anti-patterns to avoid (EAV, polymorphic associations, god tables). Use when designing new schemas, reviewing existing schema design, planning schema migrations, or choosing PK strategies. allowed-tools: Read, Grep, Glob, Bash --- # Schema Design ## Reference Files Load from `references/` based on what's needed: ### references/normalization-multitenancy.md Normal forms (1NF–4NF) with violation examples, denormalization patterns (materialized views, trigger counters). Multi-tenancy: shared schema + RLS, schema-per-tenant, database-per-tenant decision guide. Primary key strategy comparison (BIGSERIAL, UUID v7, ULID, Snowflake ID). Load when: designing new schemas, choosing PK strategy, implementing multi-tenancy. ### references/temporal-audit-evolution.md Soft delete patterns (timestamp, archive table, partial indexes). SCD Type 2 temporal tables in PostgreSQL and SQL Server. Generic audit trigger with JSONB old/new values. Expand-contract pattern with safe migration operations table and zero-downtime column rename. Load when: implementing audit trails, versioned data, or zero-downtime schema changes. ### references/datatypes-antipatterns.md Data type decisions (money, timestamps, IP, email, JSON, enums, country, phone). PostgreSQL domain types and range exclusion constraints. Naming conventions table (tables, columns, PKs, FKs, indexes, booleans, timestamps). Anti-patterns: EAV, polymorphic associations, god tables, over-indexing, missing FKs. Load when: choosing column types, reviewing naming, or identifying schema problems.
Pliki w paczce (4)
- SKILL.md 2 KB
- references/datatypes-antipatterns.md 5 KB
- references/normalization-multitenancy.md 4 KB
- references/temporal-audit-evolution.md 5 KB
Wersje
W bazie nie ma innych skilli o nazwie role-database:schema-design.
Migawka bazy z 13.11.2026 · wersja paczki db2818ecef0b (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100data-modeling
Pomaga projektować schemat bazy: normalizację i kiedy ją łamać, wybór kluczy, modelowanie czasu i historii, miękkie usuwanie i wielodostępność. - 100schema-evolution-planner
Planuje zmiany schematu bazy bez przestojów metodą expand-contract, razem z kodem, backfillem danych i przełączeniem. - 98database-design-patterns
Pomaga projektować schematy relacyjnych baz danych: normalizacja kontra denormalizacja, indeksy, migracje bez przestojów, pule połączeń, klucze i soft delete. - 100schema-designer
Pomaga projektować schematy baz danych, tworzyć tabele i planować modele danych. - 100schema-designer
Pomaga projektować schematy baz danych, tworzyć tabele i planować modele danych. - 85db-design
Prowadzi projektowanie schematu bazy: encje, relacje, klucze, ograniczenia, normalizację, indeksy i kwestie eksploatacyjne dla systemów OLTP.