gorm-constraints
CommunityEnforce data integrity with GORM constraints
Authorliurida
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Applications often need to guarantee that data stored in the database obeys business rules. Without constraints, invalid or inconsistent records can be inserted, leading to bugs and data corruption.
Core Features & Use Cases
- Define CHECK constraints directly in GORM model tags to validate column values.
- Configure foreign key actions (ON UPDATE, ON DELETE) using the constraint tag.
- Optionally disable automatic foreign‑key creation during migration for bulk data loads or legacy databases.
Quick Start
Use the gorm-constraints skill to add a CHECK constraint on the age field of the User model.
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-constraints Download link: https://github.com/liurida/gorm-development-skill/archive/main.zip#gorm-constraints 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.