package model

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ AgentUpgradeModel = (*customAgentUpgradeModel)(nil)

type (
	// AgentUpgradeModel is an interface to be customized, add more methods here,
	// and implement the added methods in customAgentUpgradeModel.
	AgentUpgradeModel interface {
		agentUpgradeModel
	}

	customAgentUpgradeModel struct {
		*defaultAgentUpgradeModel
	}
)

// NewAgentUpgradeModel returns a model for the database table.
func NewAgentUpgradeModel(conn sqlx.SqlConn, c cache.CacheConf) AgentUpgradeModel {
	return &customAgentUpgradeModel{
		defaultAgentUpgradeModel: newAgentUpgradeModel(conn, c),
	}
}
