@squidcloud/client
    Preparing search index...

    Interface PropertySchema

    Describes one stored field. A schema says what a collection holds, for Squid and for the AI working with it; it places no rule on a write.

    interface PropertySchema {
        applyDefaultValueOn?: "always" | "empty" | "updateOrEmpty";
        default?: "__SQUID_SERVER_TIMESTAMP__";
        description?: string;
        isDate?: boolean;
        isJSON?: boolean;
        items?: PropertySchema;
        patternProperties?: Record<string, PropertySchema>;
        properties?: Record<string, PropertySchema>;
        required?: string[];
        type?: string | string[];
    }

    Hierarchy (View Summary)

    Index
    applyDefaultValueOn?: "always" | "empty" | "updateOrEmpty"

    When default applies (default to 'empty'): 'always' - no matter what the client sent, both on update and insert. 'empty' - only if the value of the field is empty (undefined). 'updateOrEmpty' - no matter what the client sent, updating the record uses the default value.

    default?: "__SQUID_SERVER_TIMESTAMP__"

    Has the server write the time of the mutation into the field.

    description?: string

    What the field holds, in words.

    isDate?: boolean

    Whether the value is a date.

    isJSON?: boolean

    Whether the value is JSON.

    The element of an array.

    patternProperties?: Record<string, PropertySchema>

    The values of a nested object whose keys are not known up front, by key pattern.

    properties?: Record<string, PropertySchema>

    The fields of a nested object.

    required?: string[]

    The nested fields the database holds a value for in every row.

    type?: string | string[]

    The JSON type of the value, such as string, integer or object.