package migration

import (
	"gorm.io/gorm"

	"github.com/tidbcloud/tidb-management-service/nextgen-global-service/infra/repoimpl/schema"
)

// Migration 202604240001: Add scale_down_cooldown_minutes to rcu_quotas table.
// This column controls how long (in minutes) after a capacity change a tenant must wait
// before being allowed to decrease max RCU again. Default is 720 minutes (12 hours).
var _ = AddDBMigrateRecord(
	"202604240001",
	func(db *gorm.DB) error {
		return db.AutoMigrate(&schema.RcuQuota{})
	},
)
