MCPcopy
hub / github.com/go-gorm/gorm / Model

Struct Model

model.go:11–16  ·  model.go::Model

Model a basic GoLang struct which includes the following fields: ID, CreatedAt, UpdatedAt, DeletedAt It may be embedded into your model or you may build your own model without it type User struct { gorm.Model }

Source from the content-addressed store, hash-verified

9// gorm.Model
10// }
11type Model struct {
12 ID uint `gorm:"primarykey"`
13 CreatedAt time.Time
14 UpdatedAt time.Time
15 DeletedAt DeletedAt `gorm:"index"`
16}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected