Update Model documentation for clarity

This commit is contained in:
Colby Aley 2018-09-19 09:31:05 -07:00
parent f1caf058c5
commit 61f680ea74
No known key found for this signature in database
GPG Key ID: 8B585716F9E2ECB0

View File

@ -56,7 +56,7 @@ type CreditCard struct {
### `gorm.Model` struct
Base model definition `gorm.Model`, including fields `ID`, `CreatedAt`, `UpdatedAt`, `DeletedAt`, you could embed it in your model, or only write those fields you want
Base model definition `gorm.Model` includes fields `ID`, `CreatedAt`, `UpdatedAt`, `DeletedAt`. You can embed it in your model or only write those fields you want.
```go
// Base Model's definition