package persistence

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

// widgetDef is a minimal toy table definition (no FKs, so CreatePhysicalTable
// issues exactly: Conn → SET FOREIGN_KEY_CHECKS=0 → CREATE TABLE →
// SET FOREIGN_KEY_CHECKS=1).
func widgetDef() schema.TableDefinition {
	return schema.TableDefinition{
		TableName: "Widget__c",
		Columns: []schema.ColumnDefinition{
			{Name: "Id", Type: "string"},
		},
	}
}

func widgetMeta() *models.ObjectMetadata {
	return &models.ObjectMetadata{APIName: "Widget__c", Label: "Widget"}
}
