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

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