Update model_snake.go

This commit is contained in:
Michał Poreda 2019-03-14 09:50:17 +01:00 committed by GitHub
parent 1a99c7bd1e
commit 82347e8967
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ import "time"
// gorm.ModelSC // gorm.ModelSC
// } // }
type ModelSC struct { type ModelSnakeCase struct {
ID uint `gorm:"primary_key" json:"id"` ID uint `gorm:"primary_key" json:"id"`
CreatedAt time.Time `json:"created_at"` CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"` UpdatedAt time.Time `json:"updated_at"`