/
githubmirror
/
gorm
Обзор
Документация
Войти
/
githubmirror
/
gorm
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
model.go
16 строк
396 B
Michael Anstis
Issue 6054: Unscoped not working with PreLoad on Joins (#6058)
18 фев 2023, 04:06
Не верифицирован
18 фев 2023, 04:06
532e9cf
Код
Авторство
О чём код?
package gorm import "time" // 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 // } type Model struct { ID uint `gorm:"primarykey"` CreatedAt time.Time UpdatedAt time.Time DeletedAt DeletedAt `gorm:"index"` }