GORM Model Generator
Generate GORM model from MySQL DDL
Input0
Output
0
About GORM Model Generator
Convert MySQL CREATE TABLE DDL to Go structs with complete GORM tags. Auto-generates gorm tags (column, type, primaryKey, autoIncrement, etc.), json tags, and a TableName() method.
Frequently Asked Questions
What do the generated GORM tags include?▼
Tags include column (name), type (MySQL type), primaryKey, autoIncrement, not null, uniqueIndex, default, and comment.
How is this different from MySQL → Go Struct?▼
This tool is designed specifically for GORM ORM, generating complete gorm tags and a TableName() method ready for use in GORM projects. MySQL → Go Struct only generates basic json/db tags.
What MySQL types are supported?▼
All common MySQL types: INT, BIGINT, VARCHAR, TEXT, DATETIME, TIMESTAMP, DECIMAL, JSON, BLOB, etc. Nullable columns automatically use pointer types.