Ir al contenido

Table: field_definition

Esta página aún no está disponible en tu idioma.

This table references:

Referenced by:

ColumnTypeNullableNotes
iduuidnoDefault gen_random_uuid()
codetextno
labeltextno
descriptiontextnoDefault ''::text
typetextno
optionsjsonbnoDefault '{}'::jsonb
requiredbooleannoDefault false
searchablebooleannoDefault true
applies_tobigint[]noDefault '{}'::bigint[]
read_capabilitytextyes
write_capabilitytextyes
display_orderintegernoDefault 100
display_grouptextnoDefault 'general'::text
statustextnoDefault 'active'::text
deprecated_replacement_iduuidyesReferences field_definition(id)
origin_server_iduuidyes
created_attimestampnoDefault now()
updated_attimestampnoDefault now()
created_by_user_refbigintyes
updated_by_user_refbigintyes
subject_kindtextnoDefault 'asset'::text
extraction_sourcetextnoDefault ''::text
extraction_modetextnoDefault 'skip_if_set'::text
default_valuejsonbyes
open_vocabularybooleannoDefault false
mirrors_columntextyes
show_on_cardbooleannoDefault false
show_in_advanced_searchbooleannoDefault true
show_on_uploadbooleannoDefault true
edit_tabtextyes
read_onlybooleannoDefault false
regexp_filtertextyes
display_conditionjsonbyes
  • CONSTRAINT field_definition_display_condition_shape_check CHECK (((display_condition IS NULL) OR ((jsonb_typeof(display_condition) = 'array'::text) AND (jsonb_array_length(display_condition) > 0) AND (NOT jsonb_path_exists(display_condition, '$[*]?(@.type() != "string")'::jsonpath)) AND (NOT jsonb_path_exists(display_condition, '$[*]?(@ like_regex "^\\s*$")'::jsonpath)))))
  • CONSTRAINT field_definition_edit_tab_nonblank_check CHECK (((edit_tab IS NULL) OR (btrim(edit_tab) <> ''::text)))
  • CONSTRAINT field_definition_extraction_mode_check CHECK ((extraction_mode = ANY (ARRAY['skip_if_set'::text, 'replace'::text, 'append'::text, 'prepend'::text])))
  • CONSTRAINT field_definition_mirrors_column_check CHECK (((mirrors_column IS NULL) OR (mirrors_column = ANY (ARRAY['title'::text, 'description'::text]))))
  • CONSTRAINT field_definition_mirrors_column_subject_check CHECK (((mirrors_column IS NULL) OR (subject_kind = 'asset'::text)))
  • CONSTRAINT field_definition_mirrored_input_rules_check CHECK (((mirrors_column IS NULL) OR ((read_only IS FALSE) AND (regexp_filter IS NULL))))
  • CONSTRAINT field_definition_regexp_filter_nonempty_check CHECK (((regexp_filter IS NULL) OR (regexp_filter <> ''::text)))
  • CONSTRAINT field_definition_show_on_card_ungated_check CHECK ((NOT (show_on_card AND (COALESCE(read_capability, ''::text) <> ''::text))))
  • CONSTRAINT field_definition_status_check CHECK ((status = ANY (ARRAY['active'::text, 'deprecated'::text, 'archived'::text])))
  • CONSTRAINT field_definition_subject_kind_check CHECK ((subject_kind = ANY (ARRAY['asset'::text, 'collection'::text])))
  • CONSTRAINT field_definition_type_check CHECK ((type = ANY (ARRAY['text'::text, 'longtext'::text, 'rich_text'::text, 'number'::text, 'boolean'::text, 'date'::text, 'datetime'::text, 'select'::text, 'multi_select'::text, 'tree'::text, 'reference'::text])))
CREATE TABLE public.field_definition (
id uuid DEFAULT gen_random_uuid() NOT NULL,
code text NOT NULL,
label text NOT NULL,
description text DEFAULT ''::text NOT NULL,
type text NOT NULL,
options jsonb DEFAULT '{}'::jsonb NOT NULL,
required boolean DEFAULT false NOT NULL,
searchable boolean DEFAULT true NOT NULL,
applies_to bigint[] DEFAULT '{}'::bigint[] NOT NULL,
read_capability text,
write_capability text,
display_order integer DEFAULT 100 NOT NULL,
display_group text DEFAULT 'general'::text NOT NULL,
status text DEFAULT 'active'::text NOT NULL,
deprecated_replacement_id uuid,
origin_server_id uuid,
created_at timestamp with time zone DEFAULT now() NOT NULL,
updated_at timestamp with time zone DEFAULT now() NOT NULL,
created_by_user_ref bigint,
updated_by_user_ref bigint,
subject_kind text DEFAULT 'asset'::text NOT NULL,
extraction_source text DEFAULT ''::text NOT NULL,
extraction_mode text DEFAULT 'skip_if_set'::text NOT NULL,
default_value jsonb,
open_vocabulary boolean DEFAULT false NOT NULL,
mirrors_column text,
show_on_card boolean DEFAULT false NOT NULL,
show_in_advanced_search boolean DEFAULT true NOT NULL,
show_on_upload boolean DEFAULT true NOT NULL,
edit_tab text,
read_only boolean DEFAULT false NOT NULL,
regexp_filter text,
display_condition jsonb,
CONSTRAINT field_definition_display_condition_shape_check CHECK (((display_condition IS NULL) OR ((jsonb_typeof(display_condition) = 'array'::text) AND (jsonb_array_length(display_condition) > 0) AND (NOT jsonb_path_exists(display_condition, '$[*]?(@.type() != "string")'::jsonpath)) AND (NOT jsonb_path_exists(display_condition, '$[*]?(@ like_regex "^\\s*$")'::jsonpath))))),
CONSTRAINT field_definition_edit_tab_nonblank_check CHECK (((edit_tab IS NULL) OR (btrim(edit_tab) <> ''::text))),
CONSTRAINT field_definition_extraction_mode_check CHECK ((extraction_mode = ANY (ARRAY['skip_if_set'::text, 'replace'::text, 'append'::text, 'prepend'::text]))),
CONSTRAINT field_definition_mirrors_column_check CHECK (((mirrors_column IS NULL) OR (mirrors_column = ANY (ARRAY['title'::text, 'description'::text])))),
CONSTRAINT field_definition_mirrors_column_subject_check CHECK (((mirrors_column IS NULL) OR (subject_kind = 'asset'::text))),
CONSTRAINT field_definition_mirrored_input_rules_check CHECK (((mirrors_column IS NULL) OR ((read_only IS FALSE) AND (regexp_filter IS NULL)))),
CONSTRAINT field_definition_regexp_filter_nonempty_check CHECK (((regexp_filter IS NULL) OR (regexp_filter <> ''::text))),
CONSTRAINT field_definition_show_on_card_ungated_check CHECK ((NOT (show_on_card AND (COALESCE(read_capability, ''::text) <> ''::text)))),
CONSTRAINT field_definition_status_check CHECK ((status = ANY (ARRAY['active'::text, 'deprecated'::text, 'archived'::text]))),
CONSTRAINT field_definition_subject_kind_check CHECK ((subject_kind = ANY (ARRAY['asset'::text, 'collection'::text]))),
CONSTRAINT field_definition_type_check CHECK ((type = ANY (ARRAY['text'::text, 'longtext'::text, 'rich_text'::text, 'number'::text, 'boolean'::text, 'date'::text, 'datetime'::text, 'select'::text, 'multi_select'::text, 'tree'::text, 'reference'::text])))
);

Please see the schema overview for context. This document was last regenerated on 2026-09-23T03:23:00.434Z.