1Panel/agent/app/model/base.go
2024-07-23 14:48:37 +08:00

10 lines
202 B
Go

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