1 Star 0 Fork 0

小毛驴 / gorm

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model.go 396 Bytes
一键复制 编辑 原始数据 按行查看 历史
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"`
}
1
https://gitee.com/dream_xml/gorm.git
git@gitee.com:dream_xml/gorm.git
dream_xml
gorm
gorm
master

搜索帮助