package services

import (
	"gorm.io/gorm"
)

var _db *gorm.DB

// exported CamelCase Services
var (
	Tenant *tenant
	Test   *test
	User   *user
)

// @provider(model)
type services struct {
	db *gorm.DB
	// define Services
	tenant *tenant
	test   *test
	user   *user
}

func (svc *services) Prepare() error {
	_db = svc.db

	// set exported Services here
	Tenant = svc.tenant
	Test = svc.test
	User = svc.user

	return nil
}
