package model

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

var _ AgentInviteCodeUsageModel = (*customAgentInviteCodeUsageModel)(nil)

type (
	// AgentInviteCodeUsageModel is an interface to be customized, add more methods here,
	// and implement the added methods in customAgentInviteCodeUsageModel.
	AgentInviteCodeUsageModel interface {
		agentInviteCodeUsageModel
	}

	customAgentInviteCodeUsageModel struct {
		*defaultAgentInviteCodeUsageModel
	}
)

// NewAgentInviteCodeUsageModel returns a model for the database table.
func NewAgentInviteCodeUsageModel(conn sqlx.SqlConn, c cache.CacheConf) AgentInviteCodeUsageModel {
	return &customAgentInviteCodeUsageModel{
		defaultAgentInviteCodeUsageModel: newAgentInviteCodeUsageModel(conn, c),
	}
}
