golang gorm MySQL TIME data type import "gorm.io/gorm/schema" type CustomTime struct { time.Time } func (CustomTime) GormDataType() string { return "time" } func (CustomTime) GormDBDataType(db *gorm.DB, field *schema.Field) string { return "time" } // 사용 방법 type TypeTest struct { Col6 CustomTime }