sequelize-models
CommunitySequelize model patterns and best practices.
Software Engineering#postgresql#transactions#indexes#associations#validations#sequelize#model-definition
Authorfrancanete
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill automates the creation and optimization of PostgreSQL models using Sequelize, reducing boilerplate and errors in model definitions.
Core Features & Use Cases
- Model definition patterns for Sequelize with PostgreSQL, including primary keys, data types, field mappings, and sensible defaults.
- Association patterns (hasMany, belongsToMany, hasOne) with through tables and foreign keys to illustrate one-to-many, many-to-many, and one-to-one relationships.
- Validations, hooks, scopes, and indexing best practices to ensure data integrity and performant queries.
- Practical use cases for common domain models (e.g., User, Post, Comment) with guidance on migrations and naming conventions.
Quick Start
Define a Sequelize User model with fields id, email, firstName, lastName, status, and metadata, enable underscored naming, timestamps, and basic validations; then demonstrate a hasMany association to an Order model and a compound index on status and createdAt.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: sequelize-models Download link: https://github.com/francanete/fran-marketplace/archive/main.zip#sequelize-models Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.