package persistence

import (
	"github.com/nexuscrm/shared/pkg/constants"
	"github.com/nexuscrm/shared/pkg/models"
)

// leadNameSchema remains shared by the focused unknown-column fault-injection
// tests. Successful search behavior is covered against TiDB in
// query_search_integration_test.go.
func leadNameSchema() *models.ObjectMetadata {
	return &models.ObjectMetadata{
		APIName:    "Lead",
		Searchable: true,
		Fields: []models.FieldMetadata{
			{APIName: constants.FieldID, Type: constants.FieldTypeString, IsSystem: true},
			{APIName: constants.FieldName, Type: constants.FieldTypeString, IsNameField: true},
			{APIName: constants.FieldIsDeleted, Type: constants.FieldTypeBoolean, IsSystem: true},
		},
	}
}
