Member Junction
    Preparing search index...

    Interface ICloneFieldRules

    interface ICloneFieldRules {
        ClearTogether?: string[][];
        Copy?: string[];
        Exclude?: string[];
        JsonRemap?: IJsonRemapColumn[];
        Ownership?: string[];
        PromptFor?: string[];
        Reset?: Record<string, unknown>;
        Rules?: Record<string, unknown>;
        ServerAllocated?: string[];
        Strict?: boolean;
        UniqueKeys?: {
            Fields: string[];
            Scope: "Global" | "Parent" | "LiveState";
            ScopeField?: string;
        }[];
    }
    Index

    Properties

    ClearTogether?: string[][]

    Columns that must be cleared together (all-or-nothing CHECK pairs). Each group is cleared as a unit when any member is reset.

    Copy?: string[]

    Explicit copy allow-list, used with Strict.

    Exclude?: string[]

    Never copied; take the column default. Beyond the always-excluded set (PK, _mj*, identity, computed, virtual, denied-create).

    JsonRemap?: IJsonRemapColumn[]

    JSON columns that embed record IDs, one entry per column.

    Ownership?: string[]

    Set to the cloning user's ID.

    PromptFor?: string[]

    The user must supply a value; un-suffixable uniques such as Email. Missing → plan Blocked.

    Reset?: Record<string, unknown>

    Literal stamps applied after the copy. Values pass through BaseEntity.Set and validation.

    Rules?: Record<string, unknown>

    Rich rewrites. Evaluated per row with the source row as fields, plus clone context (user, now, root, keyMap) — see §7.5.

    ServerAllocated?: string[]

    Server-minted values (numbers, slugs): blanked so the entity's Save hook allocates.

    Strict?: boolean

    Drift guard (§13.3): every field must appear in Copy, Exclude, Reset, Ownership, PromptFor, ServerAllocated or JsonRemap, or validation fails. Default false.

    UniqueKeys?: {
        Fields: string[];
        Scope: "Global" | "Parent" | "LiveState";
        ScopeField?: string;
    }[]

    Unique keys the metadata cannot see: composite and filtered indexes. See §7.3.