package models import ( "gorm.io/gorm" "time" ) type Base struct { ID uint `gorm:"primaryKey" json:"id"` CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` UpdateHistories []UpdateHistory `gorm:"polymorphic:Model" json:"-"` }