package global

import (
	"time"

	"gorm.io/gorm"
)

type MG_MODEL struct {
	ID        uint           `gorm:"AUTO_INCREMENT;PRIMARY_KEY;" json:"id"` // 主键ID
	CreatedAt time.Time      `json:"created_at"`                            // 创建时间
	UpdatedAt time.Time      `json:"updated_at"`                            // 更新时间
	DeletedAt gorm.DeletedAt `json:"-"`                                     // 删除时间
}
type Pure_MODEL struct {
	ID        uint           `gorm:"AUTO_INCREMENT;PRIMARY_KEY;" json:"id"` // 主键ID
	CreatedAt time.Time      `json:"created_at"`                            // 创建时间
	UpdatedAt time.Time      `json:"updated_at"`                            // 更新时间
}

type TIME_MODEL struct {
	CreatedAt time.Time      `json:"-"`
	UpdatedAt time.Time      `json:"-"`
	DeletedAt gorm.DeletedAt `json:"-"`
}

type ID_BACKUP_STR struct {
	ID string `gorm:"primary_key;size:50" json:"id" form:"id"` //主键
	//	Kid          int    `json:"kid" form:"kid"`
	Backup       int    `json:"backup" form:"backup"`
	Check        int    `json:"check" form:"check"`
	CurrentCheck string `json:"currentCheck" form:"currentCheck"`
}

type BASE_ID struct {
	ID uint `gorm:"AUTO_INCREMENT;primary_key;" json:"id" form:"id"` //主键
}

type ID_SORT struct {
	ID   string `json:"id"`
	Sort int    `json:"sort"`
}

type ID_COUNT struct {
	ID    string `json:"id"`
	Count int    `json:"count"`
}

type RedisValueScore struct {
	Value string  `json:"value"`
	Score float64 `json:"score"`
}

type BASE_ID_STR struct {
	ID string `gorm:"primary_key;size:50" json:"id" form:"id"` //主键
}