Files
pig-farm-controller/vendor/gorm.io/gorm/model.go
huang cf00a74008 1. 实现配置文件解析
2. 实现数据库连接
2025-09-07 17:50:04 +08:00

17 lines
396 B
Go

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"`
}