Closed pilagod closed 3 years ago
Use GORM column tag if exists as default key sql representation, for example:
type Model struct { ID string `gorm:"column:field_name"` }
Use field_name as sql key instead of id
field_name
id
Use GORM column tag if exists as default key sql representation, for example:
Use
field_name
as sql key instead ofid