go-create-gorm-model
Installation
SKILL.md
Go Create GORM Model
Generate GORM persistence models in internal/modules/<module>/model/.
Pattern
Model files must follow this location and naming:
- Path:
internal/modules/<module>/model/<entity>_model.go - Package:
model - Struct name:
<Entity>Model - TableName method:
func (*<Entity>Model) TableName() string { return "<table_name>" }
File Structure
Use this order: