package migration

import (
	"gorm.io/gorm"

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

// Migration 202607210001 adds the durable BYOC resource-pool metadata and the
// organization-scoped namespace lock table. Compatibility backfills run
// separately, so columns that need derived historical values remain nullable
// or use compatibility-safe defaults.
var _ = AddDBMigrateRecord(
	"202607210001",
	func(db *gorm.DB) error {
		return db.AutoMigrate(
			&schema.ResourcePool{},
			&schema.ResourcePoolNamespace{},
		)
	},
)
