Skip to content

Commit 609410a

Browse files
Copilothotlong
andcommitted
Add searchable property to FieldConfig interface
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 651d71e commit 609410a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/foundation/types/src/field.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export interface FieldOption {
125125
* All other protocol properties (description, defaultValue, maxLength, minLength, precision, scale, min, max,
126126
* reference, referenceFilters, writeRequiresMasterRead, expression, formula, summaryOperations) are inherited as-is.
127127
*/
128-
export interface FieldConfig extends Omit<Field, 'name' | 'label' | 'type' | 'options' | 'required' | 'multiple' | 'unique' | 'deleteBehavior' | 'hidden' | 'readonly' | 'encryption' | 'index' | 'externalId'> {
128+
export interface FieldConfig extends Omit<Field, 'name' | 'label' | 'type' | 'options' | 'required' | 'multiple' | 'unique' | 'deleteBehavior' | 'hidden' | 'readonly' | 'encryption' | 'index' | 'externalId' | 'searchable'> {
129129
/** Field name (inferred from Record key when used in ObjectConfig.fields) */
130130
name?: string;
131131

@@ -147,6 +147,9 @@ export interface FieldConfig extends Omit<Field, 'name' | 'label' | 'type' | 'op
147147
/** Whether the field is unique in the table. */
148148
unique?: boolean;
149149

150+
/** Whether the field is searchable (full-text search). Defaults to false. */
151+
searchable?: boolean;
152+
150153
/** Delete behavior for relationships */
151154
deleteBehavior?: 'set_null' | 'cascade' | 'restrict';
152155

0 commit comments

Comments
 (0)