Dealer/pkg/hyper/models.go

14 lines
284 B
Go
Raw Normal View History

2024-09-11 14:42:45 +00:00
package hyper
import (
"gorm.io/gorm"
"time"
)
type BaseModel struct {
ID uint `json:"id" gorm:"primaryKey"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `json:"deleted_at" gorm:"index"`
}