model/model.go @@ -7,7 +7,7 @@ ) type CommonModel struct { ID uint `gorm:"primary_key"` ID uint `gorm:"primary_key;autoIncrement:false"` CreatedAt time.Time UpdatedAt time.Time DeletedAt *time.Time `sql:"index"`