1Panel/backend/app/model/base.go
2022-10-08 15:03:29 +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"`
}