gorm-models
CommunityDefine GORM models with tags and embeddings.
Authorliurida
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Defines and documents GORM models with proper embedding, field tags, permissions, timestamps, and embedded structs to ensure robust database mapping in Go projects.
Core Features & Use Cases
- Model declarations using Go structs mapped to database tables.
- Embed gorm.Model for standard fields like ID, CreatedAt, UpdatedAt, DeletedAt.
- Field tags reference to customize column behavior, constraints, and serialization.
- Field-level permissions examples to restrict read/write access.
- Timestamp tracking strategies for automatic auditing.
- Embedded structs and composition for complex models.
- Comprehensive example showing best practices and reuse.
Quick Start
Define a Go struct for your data model, embed gorm.Model for standard fields, and annotate fields with appropriate tags.
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-models Download link: https://github.com/liurida/gorm-development-skill/archive/main.zip#gorm-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 471,000+ vetted skills library on demand.