Tracks which entities are involved in a given query. The Queries table stores SQL and descriptions for stored queries that can be executed and serve as examples for AI.

Hierarchy (view full)

Implements

Constructors

Properties

AutoDetectConfidenceScore: number = null

Confidence score (0.00-1.00) when AI detection was used

DetectionMethod: "AI" | "Manual" = 'Manual'

How this entity association was detected: AI (automatic) or Manual (user-specified)

Entity: string = null

Entity name from the related entity

EntityID: string = null

References the ID of the entity in the Entities table

ID: any = null

Primary Key

Query: string = null

Query name from the related query

QueryID: string = null

References the ID of the query in the Queries table

__mj_CreatedAt: Date = null

Date and time when this association was created

__mj_UpdatedAt: Date = null

Date and time when this association was last updated

Accessors

Methods

  • Copies initialization data from a plain object to the class instance. Only copies properties that already exist on the class to prevent creating new fields. Special handling for DefaultValue fields to extract actual values from SQL Server syntax.

    Parameters

    • initData: any

      The initialization data object

    Returns void