1 Star 0 Fork 0

DiDi-opensource/gorm

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
model.go 402 Bytes
一键复制 编辑 原始数据 按行查看 历史
jinzhu 提交于 2020-06-09 12:00 . Fix typo
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"`
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/didiopensource/gorm.git
git@gitee.com:didiopensource/gorm.git
didiopensource
gorm
gorm
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385