1Panel/core/app/model/base.go

10 lines
202 B
Go
Raw Normal View History

2024-07-19 19:04:11 +08:00
package model
import "time"
type BaseModel struct {
ID uint `gorm:"primarykey;AUTO_INCREMENT" json:"id"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}