gorm-has-many
CommunityManage one-to-many GORM relationships effortlessly
Authorliurida
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Developers often struggle to correctly define and manage one-to-many relationships in GORM, handling foreign keys, eager loading, and association lifecycle operations.
Core Features & Use Cases
- Define has‑many relationships with automatic foreign key inference.
- Customize foreign keys and reference fields via GORM tags.
- Apply constraints such as cascade updates or delete actions.
- Perform association operations: append, replace, delete, clear, count, and preload.
- Support self‑referential hierarchies and polymorphic associations.
- Example use case: a User model with many CreditCard records, requiring eager loading for display dashboards.
Quick Start
Ask the skill to create a User with associated CreditCards and preload them for a report.
Dependency Matrix
Required Modules
None requiredComponents
references
đź’» 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: gorm-has-many Download link: https://github.com/liurida/gorm-development-skill/archive/main.zip#gorm-has-many 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 471,000+ vetted skills library on demand.