// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.

package model

import (
	"time"

	"gorm.io/gorm"
)

const TableNameSysVersion = "sys_versions"

// SysVersion mapped from table <sys_versions>
type SysVersion struct {
	ID          int64          `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
	CreatedAt   time.Time      `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
	UpdatedAt   time.Time      `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
	DeletedAt   gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_sys_versions_deleted_at,priority:1" json:"deleted_at"`
	VersionName string         `gorm:"column:version_name;type:varchar(255);comment:版本名称" json:"version_name"` // 版本名称
	VersionCode string         `gorm:"column:version_code;type:varchar(100);comment:版本号" json:"version_code"`  // 版本号
	Description string         `gorm:"column:description;type:varchar(500);comment:版本描述" json:"description"`   // 版本描述
	VersionData string         `gorm:"column:version_data;type:text;comment:版本数据JSON" json:"version_data"`     // 版本数据JSON
}

// TableName SysVersion's table name
func (*SysVersion) TableName() string {
	return TableNameSysVersion
}
