diff --git a/docs/directus/directus_key_autogen.sql b/docs/directus/directus_key_autogen.sql new file mode 100644 index 0000000..58721ba --- /dev/null +++ b/docs/directus/directus_key_autogen.sql @@ -0,0 +1,80 @@ +-- Directus key auto-generation triggers +-- Target tables: companies, sites, users, systems, roles +-- Key format: PREFIX + yyyymmdd + 'X' + 4 digits +-- Example: CP20260404X1234 + +BEGIN; + +CREATE OR REPLACE FUNCTION public.directus_autogen_entity_key() +RETURNS trigger +LANGUAGE plpgsql +AS $$ +DECLARE + v_column_name text := TG_ARGV[0]; + v_prefix text := TG_ARGV[1]; + v_current_value text; + v_candidate text; + v_exists boolean; + v_attempt int; + v_day text; + v_suffix text; +BEGIN + v_current_value := to_jsonb(NEW) ->> v_column_name; + IF v_current_value IS NOT NULL AND btrim(v_current_value) <> '' THEN + RETURN NEW; + END IF; + + v_day := to_char(clock_timestamp(), 'YYYYMMDD'); + + FOR v_attempt IN 0..9999 LOOP + v_suffix := lpad((((extract(epoch FROM clock_timestamp()) * 1000)::bigint + v_attempt) % 10000)::text, 4, '0'); + v_candidate := v_prefix || v_day || 'X' || v_suffix; + + EXECUTE format( + 'SELECT EXISTS (SELECT 1 FROM %I.%I WHERE %I = $1)', + TG_TABLE_SCHEMA, + TG_TABLE_NAME, + v_column_name + ) INTO v_exists USING v_candidate; + + IF NOT v_exists THEN + NEW := jsonb_populate_record(NEW, jsonb_build_object(v_column_name, v_candidate)); + RETURN NEW; + END IF; + END LOOP; + + RAISE EXCEPTION 'Failed to generate unique key for %.% (column=%)', TG_TABLE_SCHEMA, TG_TABLE_NAME, v_column_name; +END; +$$; + +DROP TRIGGER IF EXISTS trg_companies_company_key_autogen ON public.companies; +CREATE TRIGGER trg_companies_company_key_autogen +BEFORE INSERT ON public.companies +FOR EACH ROW +EXECUTE FUNCTION public.directus_autogen_entity_key('company_key', 'CP'); + +DROP TRIGGER IF EXISTS trg_sites_site_key_autogen ON public.sites; +CREATE TRIGGER trg_sites_site_key_autogen +BEFORE INSERT ON public.sites +FOR EACH ROW +EXECUTE FUNCTION public.directus_autogen_entity_key('site_key', 'ST'); + +DROP TRIGGER IF EXISTS trg_users_user_key_autogen ON public.users; +CREATE TRIGGER trg_users_user_key_autogen +BEFORE INSERT ON public.users +FOR EACH ROW +EXECUTE FUNCTION public.directus_autogen_entity_key('user_key', 'UE'); + +DROP TRIGGER IF EXISTS trg_systems_system_key_autogen ON public.systems; +CREATE TRIGGER trg_systems_system_key_autogen +BEFORE INSERT ON public.systems +FOR EACH ROW +EXECUTE FUNCTION public.directus_autogen_entity_key('system_key', 'SY'); + +DROP TRIGGER IF EXISTS trg_roles_role_key_autogen ON public.roles; +CREATE TRIGGER trg_roles_role_key_autogen +BEFORE INSERT ON public.roles +FOR EACH ROW +EXECUTE FUNCTION public.directus_autogen_entity_key('role_key', 'RL'); + +COMMIT; diff --git a/docs/directus/member-schema.directus.json b/docs/directus/member-schema.directus.json new file mode 100644 index 0000000..0805882 --- /dev/null +++ b/docs/directus/member-schema.directus.json @@ -0,0 +1,3656 @@ +{ + "collections": [ + { + "collection": "users", + "meta": { + "collection": "users", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "companies", + "meta": { + "collection": "companies", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "sites", + "meta": { + "collection": "sites", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "systems", + "meta": { + "collection": "systems", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "roles", + "meta": { + "collection": "roles", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "site_roles", + "meta": { + "collection": "site_roles", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "user_sites", + "meta": { + "collection": "user_sites", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "auth_sync_state", + "meta": { + "collection": "auth_sync_state", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "api_clients", + "meta": { + "collection": "api_clients", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + } + ], + "fields": [ + { + "collection": "users", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "users", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "user_sub", + "type": "string", + "schema": { + "name": "user_sub", + "table": "users", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": true, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "user_sub", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "provider_user_id", + "type": "string", + "schema": { + "name": "provider_user_id", + "table": "users", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": true, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "provider_user_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "username", + "type": "string", + "schema": { + "name": "username", + "table": "users", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": true, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "username", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "email", + "type": "string", + "schema": { + "name": "email", + "table": "users", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": true, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "email", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "display_name", + "type": "string", + "schema": { + "name": "display_name", + "table": "users", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "display_name", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "status", + "type": "string", + "schema": { + "name": "status", + "table": "users", + "data_type": "character varying", + "default_value": "active", + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "status", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "is_active", + "type": "boolean", + "schema": { + "name": "is_active", + "table": "users", + "data_type": "boolean", + "default_value": true, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "is_active", + "special": null, + "interface": "boolean", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "users", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "users", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "companies", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "companies", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "companies", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "companies", + "field": "company_key", + "type": "string", + "schema": { + "name": "company_key", + "table": "companies", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": true, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "companies", + "field": "company_key", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "companies", + "field": "name", + "type": "string", + "schema": { + "name": "name", + "table": "companies", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "companies", + "field": "name", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "companies", + "field": "provider_group_id", + "type": "string", + "schema": { + "name": "provider_group_id", + "table": "companies", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "companies", + "field": "provider_group_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "companies", + "field": "status", + "type": "string", + "schema": { + "name": "status", + "table": "companies", + "data_type": "character varying", + "default_value": "active", + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "companies", + "field": "status", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "companies", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "companies", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "companies", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "companies", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "companies", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "companies", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "sites", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "site_key", + "type": "string", + "schema": { + "name": "site_key", + "table": "sites", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": true, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "site_key", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "company_id", + "type": "uuid", + "schema": { + "name": "company_id", + "table": "sites", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": "public", + "foreign_key_table": "companies", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "sites", + "field": "company_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "display_name", + "type": "string", + "schema": { + "name": "display_name", + "table": "sites", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "display_name", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "domain", + "type": "string", + "schema": { + "name": "domain", + "table": "sites", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "domain", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "provider_group_id", + "type": "string", + "schema": { + "name": "provider_group_id", + "table": "sites", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "provider_group_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "status", + "type": "string", + "schema": { + "name": "status", + "table": "sites", + "data_type": "character varying", + "default_value": "active", + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "status", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "sites", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "sites", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "systems", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "systems", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "systems", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "systems", + "field": "system_key", + "type": "string", + "schema": { + "name": "system_key", + "table": "systems", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": true, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "systems", + "field": "system_key", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "systems", + "field": "name", + "type": "string", + "schema": { + "name": "name", + "table": "systems", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "systems", + "field": "name", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "systems", + "field": "status", + "type": "string", + "schema": { + "name": "status", + "table": "systems", + "data_type": "character varying", + "default_value": "active", + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "systems", + "field": "status", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "systems", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "systems", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "systems", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "systems", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "systems", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "systems", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "roles", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "role_key", + "type": "string", + "schema": { + "name": "role_key", + "table": "roles", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": true, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "role_key", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "role_code", + "type": "string", + "schema": { + "name": "role_code", + "table": "roles", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "role_code", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "system_id", + "type": "uuid", + "schema": { + "name": "system_id", + "table": "roles", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": "public", + "foreign_key_table": "systems", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "roles", + "field": "system_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "name", + "type": "string", + "schema": { + "name": "name", + "table": "roles", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "name", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "description", + "type": "text", + "schema": { + "name": "description", + "table": "roles", + "data_type": "text", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "description", + "special": null, + "interface": "input-multiline", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "status", + "type": "string", + "schema": { + "name": "status", + "table": "roles", + "data_type": "character varying", + "default_value": "active", + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "status", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "roles", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "roles", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "site_roles", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "site_roles", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "site_roles", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "site_roles", + "field": "site_id", + "type": "uuid", + "schema": { + "name": "site_id", + "table": "site_roles", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": "public", + "foreign_key_table": "sites", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "site_roles", + "field": "site_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "site_roles", + "field": "role_id", + "type": "uuid", + "schema": { + "name": "role_id", + "table": "site_roles", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": "public", + "foreign_key_table": "roles", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "site_roles", + "field": "role_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "site_roles", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "site_roles", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "site_roles", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "user_sites", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "user_sites", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "user_sites", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "user_sites", + "field": "user_id", + "type": "uuid", + "schema": { + "name": "user_id", + "table": "user_sites", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": "public", + "foreign_key_table": "users", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "user_sites", + "field": "user_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "user_sites", + "field": "site_id", + "type": "uuid", + "schema": { + "name": "site_id", + "table": "user_sites", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": "public", + "foreign_key_table": "sites", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "user_sites", + "field": "site_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "user_sites", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "user_sites", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "user_sites", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "user_sites", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "user_sites", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "user_sites", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "auth_sync_state", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "auth_sync_state", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "auth_sync_state", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "auth_sync_state", + "field": "entity_type", + "type": "string", + "schema": { + "name": "entity_type", + "table": "auth_sync_state", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "auth_sync_state", + "field": "entity_type", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "auth_sync_state", + "field": "entity_id", + "type": "uuid", + "schema": { + "name": "entity_id", + "table": "auth_sync_state", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "auth_sync_state", + "field": "entity_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "auth_sync_state", + "field": "last_synced_at", + "type": "timestamp", + "schema": { + "name": "last_synced_at", + "table": "auth_sync_state", + "data_type": "timestamp with time zone", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "auth_sync_state", + "field": "last_synced_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "auth_sync_state", + "field": "source_version", + "type": "string", + "schema": { + "name": "source_version", + "table": "auth_sync_state", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "auth_sync_state", + "field": "source_version", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "auth_sync_state", + "field": "last_error", + "type": "text", + "schema": { + "name": "last_error", + "table": "auth_sync_state", + "data_type": "text", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "auth_sync_state", + "field": "last_error", + "special": null, + "interface": "input-multiline", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "auth_sync_state", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "auth_sync_state", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "auth_sync_state", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "api_clients", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "client_key", + "type": "string", + "schema": { + "name": "client_key", + "table": "api_clients", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": true, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "client_key", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "name", + "type": "string", + "schema": { + "name": "name", + "table": "api_clients", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "name", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "status", + "type": "string", + "schema": { + "name": "status", + "table": "api_clients", + "data_type": "character varying", + "default_value": "active", + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "status", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "api_key_hash", + "type": "text", + "schema": { + "name": "api_key_hash", + "table": "api_clients", + "data_type": "text", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "api_key_hash", + "special": null, + "interface": "input-multiline", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "allowed_origins", + "type": "json", + "schema": { + "name": "allowed_origins", + "table": "api_clients", + "data_type": "jsonb", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "allowed_origins", + "special": null, + "interface": "input-code", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "allowed_ips", + "type": "json", + "schema": { + "name": "allowed_ips", + "table": "api_clients", + "data_type": "jsonb", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "allowed_ips", + "special": null, + "interface": "input-code", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "allowed_paths", + "type": "json", + "schema": { + "name": "allowed_paths", + "table": "api_clients", + "data_type": "jsonb", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "allowed_paths", + "special": null, + "interface": "input-code", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "rate_limit_per_min", + "type": "integer", + "schema": { + "name": "rate_limit_per_min", + "table": "api_clients", + "data_type": "integer", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": 32, + "numeric_scale": 0, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "rate_limit_per_min", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "expires_at", + "type": "timestamp", + "schema": { + "name": "expires_at", + "table": "api_clients", + "data_type": "timestamp with time zone", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "expires_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "last_used_at", + "type": "timestamp", + "schema": { + "name": "last_used_at", + "table": "api_clients", + "data_type": "timestamp with time zone", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "last_used_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "api_clients", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "api_clients", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + } + ], + "relations": [ + { + "collection": "sites", + "field": "company_id", + "related_collection": "companies", + "schema": { + "constraint_name": "sites_company_id_foreign", + "table": "sites", + "column": "company_id", + "foreign_key_schema": "public", + "foreign_key_table": "companies", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": { + "many_collection": "sites", + "many_field": "company_id", + "one_collection": "companies", + "one_field": null, + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": null, + "sort_field": null, + "one_deselect_action": "nullify" + } + }, + { + "collection": "roles", + "field": "system_id", + "related_collection": "systems", + "schema": { + "constraint_name": "roles_system_id_foreign", + "table": "roles", + "column": "system_id", + "foreign_key_schema": "public", + "foreign_key_table": "systems", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": { + "many_collection": "roles", + "many_field": "system_id", + "one_collection": "systems", + "one_field": null, + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": null, + "sort_field": null, + "one_deselect_action": "nullify" + } + }, + { + "collection": "site_roles", + "field": "site_id", + "related_collection": "sites", + "schema": { + "constraint_name": "site_roles_site_id_foreign", + "table": "site_roles", + "column": "site_id", + "foreign_key_schema": "public", + "foreign_key_table": "sites", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": { + "many_collection": "site_roles", + "many_field": "site_id", + "one_collection": "sites", + "one_field": null, + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": null, + "sort_field": null, + "one_deselect_action": "nullify" + } + }, + { + "collection": "site_roles", + "field": "role_id", + "related_collection": "roles", + "schema": { + "constraint_name": "site_roles_role_id_foreign", + "table": "site_roles", + "column": "role_id", + "foreign_key_schema": "public", + "foreign_key_table": "roles", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": { + "many_collection": "site_roles", + "many_field": "role_id", + "one_collection": "roles", + "one_field": null, + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": null, + "sort_field": null, + "one_deselect_action": "nullify" + } + }, + { + "collection": "user_sites", + "field": "user_id", + "related_collection": "users", + "schema": { + "constraint_name": "user_sites_user_id_foreign", + "table": "user_sites", + "column": "user_id", + "foreign_key_schema": "public", + "foreign_key_table": "users", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": { + "many_collection": "user_sites", + "many_field": "user_id", + "one_collection": "users", + "one_field": null, + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": null, + "sort_field": null, + "one_deselect_action": "nullify" + } + }, + { + "collection": "user_sites", + "field": "site_id", + "related_collection": "sites", + "schema": { + "constraint_name": "user_sites_site_id_foreign", + "table": "user_sites", + "column": "site_id", + "foreign_key_schema": "public", + "foreign_key_table": "sites", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": { + "many_collection": "user_sites", + "many_field": "site_id", + "one_collection": "sites", + "one_field": null, + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": null, + "sort_field": null, + "one_deselect_action": "nullify" + } + } + ] +} \ No newline at end of file diff --git a/docs/directus/member-schema.directus.uuid.json b/docs/directus/member-schema.directus.uuid.json new file mode 100644 index 0000000..0805882 --- /dev/null +++ b/docs/directus/member-schema.directus.uuid.json @@ -0,0 +1,3656 @@ +{ + "collections": [ + { + "collection": "users", + "meta": { + "collection": "users", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "companies", + "meta": { + "collection": "companies", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "sites", + "meta": { + "collection": "sites", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "systems", + "meta": { + "collection": "systems", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "roles", + "meta": { + "collection": "roles", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "site_roles", + "meta": { + "collection": "site_roles", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "user_sites", + "meta": { + "collection": "user_sites", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "auth_sync_state", + "meta": { + "collection": "auth_sync_state", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "api_clients", + "meta": { + "collection": "api_clients", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + } + ], + "fields": [ + { + "collection": "users", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "users", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "user_sub", + "type": "string", + "schema": { + "name": "user_sub", + "table": "users", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": true, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "user_sub", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "provider_user_id", + "type": "string", + "schema": { + "name": "provider_user_id", + "table": "users", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": true, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "provider_user_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "username", + "type": "string", + "schema": { + "name": "username", + "table": "users", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": true, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "username", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "email", + "type": "string", + "schema": { + "name": "email", + "table": "users", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": true, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "email", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "display_name", + "type": "string", + "schema": { + "name": "display_name", + "table": "users", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "display_name", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "status", + "type": "string", + "schema": { + "name": "status", + "table": "users", + "data_type": "character varying", + "default_value": "active", + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "status", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "is_active", + "type": "boolean", + "schema": { + "name": "is_active", + "table": "users", + "data_type": "boolean", + "default_value": true, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "is_active", + "special": null, + "interface": "boolean", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "users", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "users", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "companies", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "companies", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "companies", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "companies", + "field": "company_key", + "type": "string", + "schema": { + "name": "company_key", + "table": "companies", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": true, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "companies", + "field": "company_key", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "companies", + "field": "name", + "type": "string", + "schema": { + "name": "name", + "table": "companies", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "companies", + "field": "name", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "companies", + "field": "provider_group_id", + "type": "string", + "schema": { + "name": "provider_group_id", + "table": "companies", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "companies", + "field": "provider_group_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "companies", + "field": "status", + "type": "string", + "schema": { + "name": "status", + "table": "companies", + "data_type": "character varying", + "default_value": "active", + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "companies", + "field": "status", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "companies", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "companies", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "companies", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "companies", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "companies", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "companies", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "sites", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "site_key", + "type": "string", + "schema": { + "name": "site_key", + "table": "sites", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": true, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "site_key", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "company_id", + "type": "uuid", + "schema": { + "name": "company_id", + "table": "sites", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": "public", + "foreign_key_table": "companies", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "sites", + "field": "company_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "display_name", + "type": "string", + "schema": { + "name": "display_name", + "table": "sites", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "display_name", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "domain", + "type": "string", + "schema": { + "name": "domain", + "table": "sites", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "domain", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "provider_group_id", + "type": "string", + "schema": { + "name": "provider_group_id", + "table": "sites", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "provider_group_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "status", + "type": "string", + "schema": { + "name": "status", + "table": "sites", + "data_type": "character varying", + "default_value": "active", + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "status", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "sites", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "sites", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "systems", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "systems", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "systems", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "systems", + "field": "system_key", + "type": "string", + "schema": { + "name": "system_key", + "table": "systems", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": true, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "systems", + "field": "system_key", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "systems", + "field": "name", + "type": "string", + "schema": { + "name": "name", + "table": "systems", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "systems", + "field": "name", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "systems", + "field": "status", + "type": "string", + "schema": { + "name": "status", + "table": "systems", + "data_type": "character varying", + "default_value": "active", + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "systems", + "field": "status", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "systems", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "systems", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "systems", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "systems", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "systems", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "systems", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "roles", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "role_key", + "type": "string", + "schema": { + "name": "role_key", + "table": "roles", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": true, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "role_key", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "role_code", + "type": "string", + "schema": { + "name": "role_code", + "table": "roles", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "role_code", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "system_id", + "type": "uuid", + "schema": { + "name": "system_id", + "table": "roles", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": "public", + "foreign_key_table": "systems", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "roles", + "field": "system_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "name", + "type": "string", + "schema": { + "name": "name", + "table": "roles", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "name", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "description", + "type": "text", + "schema": { + "name": "description", + "table": "roles", + "data_type": "text", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "description", + "special": null, + "interface": "input-multiline", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "status", + "type": "string", + "schema": { + "name": "status", + "table": "roles", + "data_type": "character varying", + "default_value": "active", + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "status", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "roles", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "roles", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "site_roles", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "site_roles", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "site_roles", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "site_roles", + "field": "site_id", + "type": "uuid", + "schema": { + "name": "site_id", + "table": "site_roles", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": "public", + "foreign_key_table": "sites", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "site_roles", + "field": "site_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "site_roles", + "field": "role_id", + "type": "uuid", + "schema": { + "name": "role_id", + "table": "site_roles", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": "public", + "foreign_key_table": "roles", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "site_roles", + "field": "role_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "site_roles", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "site_roles", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "site_roles", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "user_sites", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "user_sites", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "user_sites", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "user_sites", + "field": "user_id", + "type": "uuid", + "schema": { + "name": "user_id", + "table": "user_sites", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": "public", + "foreign_key_table": "users", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "user_sites", + "field": "user_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "user_sites", + "field": "site_id", + "type": "uuid", + "schema": { + "name": "site_id", + "table": "user_sites", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": "public", + "foreign_key_table": "sites", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "user_sites", + "field": "site_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "user_sites", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "user_sites", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "user_sites", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "user_sites", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "user_sites", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "user_sites", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "auth_sync_state", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "auth_sync_state", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "auth_sync_state", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "auth_sync_state", + "field": "entity_type", + "type": "string", + "schema": { + "name": "entity_type", + "table": "auth_sync_state", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "auth_sync_state", + "field": "entity_type", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "auth_sync_state", + "field": "entity_id", + "type": "uuid", + "schema": { + "name": "entity_id", + "table": "auth_sync_state", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "auth_sync_state", + "field": "entity_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "auth_sync_state", + "field": "last_synced_at", + "type": "timestamp", + "schema": { + "name": "last_synced_at", + "table": "auth_sync_state", + "data_type": "timestamp with time zone", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "auth_sync_state", + "field": "last_synced_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "auth_sync_state", + "field": "source_version", + "type": "string", + "schema": { + "name": "source_version", + "table": "auth_sync_state", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "auth_sync_state", + "field": "source_version", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "auth_sync_state", + "field": "last_error", + "type": "text", + "schema": { + "name": "last_error", + "table": "auth_sync_state", + "data_type": "text", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "auth_sync_state", + "field": "last_error", + "special": null, + "interface": "input-multiline", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "auth_sync_state", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "auth_sync_state", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "auth_sync_state", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "api_clients", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "client_key", + "type": "string", + "schema": { + "name": "client_key", + "table": "api_clients", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": true, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "client_key", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "name", + "type": "string", + "schema": { + "name": "name", + "table": "api_clients", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "name", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "status", + "type": "string", + "schema": { + "name": "status", + "table": "api_clients", + "data_type": "character varying", + "default_value": "active", + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "status", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "api_key_hash", + "type": "text", + "schema": { + "name": "api_key_hash", + "table": "api_clients", + "data_type": "text", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "api_key_hash", + "special": null, + "interface": "input-multiline", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "allowed_origins", + "type": "json", + "schema": { + "name": "allowed_origins", + "table": "api_clients", + "data_type": "jsonb", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "allowed_origins", + "special": null, + "interface": "input-code", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "allowed_ips", + "type": "json", + "schema": { + "name": "allowed_ips", + "table": "api_clients", + "data_type": "jsonb", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "allowed_ips", + "special": null, + "interface": "input-code", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "allowed_paths", + "type": "json", + "schema": { + "name": "allowed_paths", + "table": "api_clients", + "data_type": "jsonb", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "allowed_paths", + "special": null, + "interface": "input-code", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "rate_limit_per_min", + "type": "integer", + "schema": { + "name": "rate_limit_per_min", + "table": "api_clients", + "data_type": "integer", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": 32, + "numeric_scale": 0, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "rate_limit_per_min", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "expires_at", + "type": "timestamp", + "schema": { + "name": "expires_at", + "table": "api_clients", + "data_type": "timestamp with time zone", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "expires_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "last_used_at", + "type": "timestamp", + "schema": { + "name": "last_used_at", + "table": "api_clients", + "data_type": "timestamp with time zone", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "last_used_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "api_clients", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "api_clients", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + } + ], + "relations": [ + { + "collection": "sites", + "field": "company_id", + "related_collection": "companies", + "schema": { + "constraint_name": "sites_company_id_foreign", + "table": "sites", + "column": "company_id", + "foreign_key_schema": "public", + "foreign_key_table": "companies", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": { + "many_collection": "sites", + "many_field": "company_id", + "one_collection": "companies", + "one_field": null, + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": null, + "sort_field": null, + "one_deselect_action": "nullify" + } + }, + { + "collection": "roles", + "field": "system_id", + "related_collection": "systems", + "schema": { + "constraint_name": "roles_system_id_foreign", + "table": "roles", + "column": "system_id", + "foreign_key_schema": "public", + "foreign_key_table": "systems", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": { + "many_collection": "roles", + "many_field": "system_id", + "one_collection": "systems", + "one_field": null, + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": null, + "sort_field": null, + "one_deselect_action": "nullify" + } + }, + { + "collection": "site_roles", + "field": "site_id", + "related_collection": "sites", + "schema": { + "constraint_name": "site_roles_site_id_foreign", + "table": "site_roles", + "column": "site_id", + "foreign_key_schema": "public", + "foreign_key_table": "sites", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": { + "many_collection": "site_roles", + "many_field": "site_id", + "one_collection": "sites", + "one_field": null, + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": null, + "sort_field": null, + "one_deselect_action": "nullify" + } + }, + { + "collection": "site_roles", + "field": "role_id", + "related_collection": "roles", + "schema": { + "constraint_name": "site_roles_role_id_foreign", + "table": "site_roles", + "column": "role_id", + "foreign_key_schema": "public", + "foreign_key_table": "roles", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": { + "many_collection": "site_roles", + "many_field": "role_id", + "one_collection": "roles", + "one_field": null, + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": null, + "sort_field": null, + "one_deselect_action": "nullify" + } + }, + { + "collection": "user_sites", + "field": "user_id", + "related_collection": "users", + "schema": { + "constraint_name": "user_sites_user_id_foreign", + "table": "user_sites", + "column": "user_id", + "foreign_key_schema": "public", + "foreign_key_table": "users", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": { + "many_collection": "user_sites", + "many_field": "user_id", + "one_collection": "users", + "one_field": null, + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": null, + "sort_field": null, + "one_deselect_action": "nullify" + } + }, + { + "collection": "user_sites", + "field": "site_id", + "related_collection": "sites", + "schema": { + "constraint_name": "user_sites_site_id_foreign", + "table": "user_sites", + "column": "site_id", + "foreign_key_schema": "public", + "foreign_key_table": "sites", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": { + "many_collection": "user_sites", + "many_field": "site_id", + "one_collection": "sites", + "one_field": null, + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": null, + "sort_field": null, + "one_deselect_action": "nullify" + } + } + ] +} \ No newline at end of file diff --git a/docs/directus/member-schema.directus.uuid.keys.json b/docs/directus/member-schema.directus.uuid.keys.json new file mode 100644 index 0000000..d59a684 --- /dev/null +++ b/docs/directus/member-schema.directus.uuid.keys.json @@ -0,0 +1,3702 @@ +{ + "collections": [ + { + "collection": "users", + "meta": { + "collection": "users", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "companies", + "meta": { + "collection": "companies", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "sites", + "meta": { + "collection": "sites", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "systems", + "meta": { + "collection": "systems", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "roles", + "meta": { + "collection": "roles", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "site_roles", + "meta": { + "collection": "site_roles", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "user_sites", + "meta": { + "collection": "user_sites", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "auth_sync_state", + "meta": { + "collection": "auth_sync_state", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, + { + "collection": "api_clients", + "meta": { + "collection": "api_clients", + "icon": null, + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + } + ], + "fields": [ + { + "collection": "api_clients", + "field": "allowed_ips", + "type": "json", + "schema": { + "name": "allowed_ips", + "table": "api_clients", + "data_type": "jsonb", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "allowed_ips", + "special": null, + "interface": "input-code", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "allowed_origins", + "type": "json", + "schema": { + "name": "allowed_origins", + "table": "api_clients", + "data_type": "jsonb", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "allowed_origins", + "special": null, + "interface": "input-code", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "allowed_paths", + "type": "json", + "schema": { + "name": "allowed_paths", + "table": "api_clients", + "data_type": "jsonb", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "allowed_paths", + "special": null, + "interface": "input-code", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "api_key_hash", + "type": "text", + "schema": { + "name": "api_key_hash", + "table": "api_clients", + "data_type": "text", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "api_key_hash", + "special": null, + "interface": "input-multiline", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "client_key", + "type": "string", + "schema": { + "name": "client_key", + "table": "api_clients", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": true, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "client_key", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "api_clients", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "expires_at", + "type": "timestamp", + "schema": { + "name": "expires_at", + "table": "api_clients", + "data_type": "timestamp with time zone", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "expires_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "api_clients", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "last_used_at", + "type": "timestamp", + "schema": { + "name": "last_used_at", + "table": "api_clients", + "data_type": "timestamp with time zone", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "last_used_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "name", + "type": "string", + "schema": { + "name": "name", + "table": "api_clients", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "name", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "rate_limit_per_min", + "type": "integer", + "schema": { + "name": "rate_limit_per_min", + "table": "api_clients", + "data_type": "integer", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": 32, + "numeric_scale": 0, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "rate_limit_per_min", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "status", + "type": "string", + "schema": { + "name": "status", + "table": "api_clients", + "data_type": "character varying", + "default_value": "active", + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "status", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "api_clients", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "api_clients", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "api_clients", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "auth_sync_state", + "field": "entity_id", + "type": "uuid", + "schema": { + "name": "entity_id", + "table": "auth_sync_state", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "auth_sync_state", + "field": "entity_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "auth_sync_state", + "field": "entity_type", + "type": "string", + "schema": { + "name": "entity_type", + "table": "auth_sync_state", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "auth_sync_state", + "field": "entity_type", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "auth_sync_state", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "auth_sync_state", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "auth_sync_state", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "auth_sync_state", + "field": "last_error", + "type": "text", + "schema": { + "name": "last_error", + "table": "auth_sync_state", + "data_type": "text", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "auth_sync_state", + "field": "last_error", + "special": null, + "interface": "input-multiline", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "auth_sync_state", + "field": "last_synced_at", + "type": "timestamp", + "schema": { + "name": "last_synced_at", + "table": "auth_sync_state", + "data_type": "timestamp with time zone", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "auth_sync_state", + "field": "last_synced_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "auth_sync_state", + "field": "source_version", + "type": "string", + "schema": { + "name": "source_version", + "table": "auth_sync_state", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "auth_sync_state", + "field": "source_version", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "auth_sync_state", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "auth_sync_state", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "auth_sync_state", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "companies", + "field": "company_key", + "type": "string", + "schema": { + "name": "company_key", + "table": "companies", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": true, + "is_indexed": true, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "companies", + "field": "company_key", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": true, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "companies", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "companies", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "companies", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "companies", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "companies", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "companies", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "companies", + "field": "name", + "type": "string", + "schema": { + "name": "name", + "table": "companies", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "companies", + "field": "name", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "companies", + "field": "provider_group_id", + "type": "string", + "schema": { + "name": "provider_group_id", + "table": "companies", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "companies", + "field": "provider_group_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "companies", + "field": "status", + "type": "string", + "schema": { + "name": "status", + "table": "companies", + "data_type": "character varying", + "default_value": "active", + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "companies", + "field": "status", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "companies", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "companies", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "companies", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "roles", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "description", + "type": "text", + "schema": { + "name": "description", + "table": "roles", + "data_type": "text", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "description", + "special": null, + "interface": "input-multiline", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "roles", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "name", + "type": "string", + "schema": { + "name": "name", + "table": "roles", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "name", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "role_code", + "type": "string", + "schema": { + "name": "role_code", + "table": "roles", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "role_code", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "role_key", + "type": "string", + "schema": { + "name": "role_key", + "table": "roles", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": true, + "is_indexed": true, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "role_key", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": true, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "status", + "type": "string", + "schema": { + "name": "status", + "table": "roles", + "data_type": "character varying", + "default_value": "active", + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "status", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "system_id", + "type": "uuid", + "schema": { + "name": "system_id", + "table": "roles", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": "public", + "foreign_key_table": "systems", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "roles", + "field": "system_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "roles", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "roles", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "roles", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "site_roles", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "site_roles", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "site_roles", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "site_roles", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "site_roles", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "site_roles", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "site_roles", + "field": "role_id", + "type": "uuid", + "schema": { + "name": "role_id", + "table": "site_roles", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": "public", + "foreign_key_table": "roles", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "site_roles", + "field": "role_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "site_roles", + "field": "site_id", + "type": "uuid", + "schema": { + "name": "site_id", + "table": "site_roles", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": "public", + "foreign_key_table": "sites", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "site_roles", + "field": "site_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "company_id", + "type": "uuid", + "schema": { + "name": "company_id", + "table": "sites", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": "public", + "foreign_key_table": "companies", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "sites", + "field": "company_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "sites", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "display_name", + "type": "string", + "schema": { + "name": "display_name", + "table": "sites", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "display_name", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "domain", + "type": "string", + "schema": { + "name": "domain", + "table": "sites", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "domain", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "sites", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "provider_group_id", + "type": "string", + "schema": { + "name": "provider_group_id", + "table": "sites", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "provider_group_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "site_key", + "type": "string", + "schema": { + "name": "site_key", + "table": "sites", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": true, + "is_indexed": true, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "site_key", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": true, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "status", + "type": "string", + "schema": { + "name": "status", + "table": "sites", + "data_type": "character varying", + "default_value": "active", + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "status", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "sites", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "sites", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "sites", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "systems", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "systems", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "systems", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "systems", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "systems", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "systems", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "systems", + "field": "name", + "type": "string", + "schema": { + "name": "name", + "table": "systems", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "systems", + "field": "name", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "systems", + "field": "status", + "type": "string", + "schema": { + "name": "status", + "table": "systems", + "data_type": "character varying", + "default_value": "active", + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "systems", + "field": "status", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "systems", + "field": "system_key", + "type": "string", + "schema": { + "name": "system_key", + "table": "systems", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": true, + "is_indexed": true, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "systems", + "field": "system_key", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": true, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "systems", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "systems", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "systems", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "user_sites", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "user_sites", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "user_sites", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "user_sites", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "user_sites", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "user_sites", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "user_sites", + "field": "site_id", + "type": "uuid", + "schema": { + "name": "site_id", + "table": "user_sites", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": "public", + "foreign_key_table": "sites", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "user_sites", + "field": "site_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "user_sites", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "user_sites", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "user_sites", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "user_sites", + "field": "user_id", + "type": "uuid", + "schema": { + "name": "user_id", + "table": "user_sites", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": "public", + "foreign_key_table": "users", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "user_sites", + "field": "user_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "created_at", + "type": "timestamp", + "schema": { + "name": "created_at", + "table": "users", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "created_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "display_name", + "type": "string", + "schema": { + "name": "display_name", + "table": "users", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "display_name", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "email", + "type": "string", + "schema": { + "name": "email", + "table": "users", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": true, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "email", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "users", + "data_type": "uuid", + "default_value": "gen_random_uuid()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "is_active", + "type": "boolean", + "schema": { + "name": "is_active", + "table": "users", + "data_type": "boolean", + "default_value": true, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "is_active", + "special": null, + "interface": "boolean", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "provider_user_id", + "type": "string", + "schema": { + "name": "provider_user_id", + "table": "users", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": true, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "provider_user_id", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "status", + "type": "string", + "schema": { + "name": "status", + "table": "users", + "data_type": "character varying", + "default_value": "active", + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "status", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "updated_at", + "type": "timestamp", + "schema": { + "name": "updated_at", + "table": "users", + "data_type": "timestamp with time zone", + "default_value": "now()", + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "updated_at", + "special": null, + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "user_key", + "type": "string", + "schema": { + "name": "user_key", + "table": "users", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": true, + "is_indexed": true, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "user_key", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "half", + "translations": null, + "note": "auto-generated key", + "conditions": null, + "required": true, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "user_sub", + "type": "string", + "schema": { + "name": "user_sub", + "table": "users", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": true, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "user_sub", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "users", + "field": "username", + "type": "string", + "schema": { + "name": "username", + "table": "users", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": true, + "is_unique": true, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "users", + "field": "username", + "special": null, + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": null, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + } + ], + "relations": [ + { + "collection": "sites", + "field": "company_id", + "related_collection": "companies", + "schema": { + "constraint_name": "sites_company_id_foreign", + "table": "sites", + "column": "company_id", + "foreign_key_schema": "public", + "foreign_key_table": "companies", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": { + "many_collection": "sites", + "many_field": "company_id", + "one_collection": "companies", + "one_field": null, + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": null, + "sort_field": null, + "one_deselect_action": "nullify" + } + }, + { + "collection": "roles", + "field": "system_id", + "related_collection": "systems", + "schema": { + "constraint_name": "roles_system_id_foreign", + "table": "roles", + "column": "system_id", + "foreign_key_schema": "public", + "foreign_key_table": "systems", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": { + "many_collection": "roles", + "many_field": "system_id", + "one_collection": "systems", + "one_field": null, + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": null, + "sort_field": null, + "one_deselect_action": "nullify" + } + }, + { + "collection": "site_roles", + "field": "site_id", + "related_collection": "sites", + "schema": { + "constraint_name": "site_roles_site_id_foreign", + "table": "site_roles", + "column": "site_id", + "foreign_key_schema": "public", + "foreign_key_table": "sites", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": { + "many_collection": "site_roles", + "many_field": "site_id", + "one_collection": "sites", + "one_field": null, + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": null, + "sort_field": null, + "one_deselect_action": "nullify" + } + }, + { + "collection": "site_roles", + "field": "role_id", + "related_collection": "roles", + "schema": { + "constraint_name": "site_roles_role_id_foreign", + "table": "site_roles", + "column": "role_id", + "foreign_key_schema": "public", + "foreign_key_table": "roles", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": { + "many_collection": "site_roles", + "many_field": "role_id", + "one_collection": "roles", + "one_field": null, + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": null, + "sort_field": null, + "one_deselect_action": "nullify" + } + }, + { + "collection": "user_sites", + "field": "user_id", + "related_collection": "users", + "schema": { + "constraint_name": "user_sites_user_id_foreign", + "table": "user_sites", + "column": "user_id", + "foreign_key_schema": "public", + "foreign_key_table": "users", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": { + "many_collection": "user_sites", + "many_field": "user_id", + "one_collection": "users", + "one_field": null, + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": null, + "sort_field": null, + "one_deselect_action": "nullify" + } + }, + { + "collection": "user_sites", + "field": "site_id", + "related_collection": "sites", + "schema": { + "constraint_name": "user_sites_site_id_foreign", + "table": "user_sites", + "column": "site_id", + "foreign_key_schema": "public", + "foreign_key_table": "sites", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": { + "many_collection": "user_sites", + "many_field": "site_id", + "one_collection": "sites", + "one_field": null, + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": null, + "sort_field": null, + "one_deselect_action": "nullify" + } + } + ] +} \ No newline at end of file diff --git a/docs/directus/member-schema.snapshot.json b/docs/directus/member-schema.snapshot.json new file mode 100644 index 0000000..ba3ccc4 --- /dev/null +++ b/docs/directus/member-schema.snapshot.json @@ -0,0 +1,182 @@ +{ + "version": 1, + "directus": "11.0.0", + "vendor": "postgres", + "collections": [ + { "collection": "users", "meta": null, "schema": { "name": "users" } }, + { "collection": "companies", "meta": null, "schema": { "name": "companies" } }, + { "collection": "sites", "meta": null, "schema": { "name": "sites" } }, + { "collection": "systems", "meta": null, "schema": { "name": "systems" } }, + { "collection": "roles", "meta": null, "schema": { "name": "roles" } }, + { "collection": "site_roles", "meta": null, "schema": { "name": "site_roles" } }, + { "collection": "user_sites", "meta": null, "schema": { "name": "user_sites" } }, + { "collection": "auth_sync_state", "meta": null, "schema": { "name": "auth_sync_state" } }, + { "collection": "api_clients", "meta": null, "schema": { "name": "api_clients" } } + ], + "fields": [ + { "collection": "users", "field": "id", "type": "uuid", "meta": null, "schema": { "is_nullable": false, "is_primary_key": true, "has_auto_increment": false, "default_value": "gen_random_uuid()" } }, + { "collection": "users", "field": "user_sub", "type": "string", "meta": null, "schema": { "is_nullable": false, "is_unique": true } }, + { "collection": "users", "field": "provider_user_id", "type": "string", "meta": null, "schema": { "is_nullable": true, "is_unique": true } }, + { "collection": "users", "field": "username", "type": "string", "meta": null, "schema": { "is_nullable": true, "is_unique": true } }, + { "collection": "users", "field": "email", "type": "string", "meta": null, "schema": { "is_nullable": true, "is_unique": true } }, + { "collection": "users", "field": "display_name", "type": "string", "meta": null, "schema": { "is_nullable": true } }, + { "collection": "users", "field": "status", "type": "string", "meta": null, "schema": { "is_nullable": false, "default_value": "active" } }, + { "collection": "users", "field": "is_active", "type": "boolean", "meta": null, "schema": { "is_nullable": false, "default_value": true } }, + { "collection": "users", "field": "created_at", "type": "timestamp", "meta": null, "schema": { "is_nullable": false, "default_value": "now()" } }, + { "collection": "users", "field": "updated_at", "type": "timestamp", "meta": null, "schema": { "is_nullable": false, "default_value": "now()" } }, + + { "collection": "companies", "field": "id", "type": "uuid", "meta": null, "schema": { "is_nullable": false, "is_primary_key": true, "default_value": "gen_random_uuid()" } }, + { "collection": "companies", "field": "company_key", "type": "string", "meta": null, "schema": { "is_nullable": false, "is_unique": true } }, + { "collection": "companies", "field": "name", "type": "string", "meta": null, "schema": { "is_nullable": false } }, + { "collection": "companies", "field": "provider_group_id", "type": "string", "meta": null, "schema": { "is_nullable": true } }, + { "collection": "companies", "field": "status", "type": "string", "meta": null, "schema": { "is_nullable": false, "default_value": "active" } }, + { "collection": "companies", "field": "created_at", "type": "timestamp", "meta": null, "schema": { "is_nullable": false, "default_value": "now()" } }, + { "collection": "companies", "field": "updated_at", "type": "timestamp", "meta": null, "schema": { "is_nullable": false, "default_value": "now()" } }, + + { "collection": "sites", "field": "id", "type": "uuid", "meta": null, "schema": { "is_nullable": false, "is_primary_key": true, "default_value": "gen_random_uuid()" } }, + { "collection": "sites", "field": "site_key", "type": "string", "meta": null, "schema": { "is_nullable": false, "is_unique": true } }, + { "collection": "sites", "field": "company_id", "type": "uuid", "meta": null, "schema": { "is_nullable": false, "foreign_key_table": "companies", "foreign_key_column": "id" } }, + { "collection": "sites", "field": "display_name", "type": "string", "meta": null, "schema": { "is_nullable": false } }, + { "collection": "sites", "field": "domain", "type": "string", "meta": null, "schema": { "is_nullable": true } }, + { "collection": "sites", "field": "provider_group_id", "type": "string", "meta": null, "schema": { "is_nullable": true } }, + { "collection": "sites", "field": "status", "type": "string", "meta": null, "schema": { "is_nullable": false, "default_value": "active" } }, + { "collection": "sites", "field": "created_at", "type": "timestamp", "meta": null, "schema": { "is_nullable": false, "default_value": "now()" } }, + { "collection": "sites", "field": "updated_at", "type": "timestamp", "meta": null, "schema": { "is_nullable": false, "default_value": "now()" } }, + + { "collection": "systems", "field": "id", "type": "uuid", "meta": null, "schema": { "is_nullable": false, "is_primary_key": true, "default_value": "gen_random_uuid()" } }, + { "collection": "systems", "field": "system_key", "type": "string", "meta": null, "schema": { "is_nullable": false, "is_unique": true } }, + { "collection": "systems", "field": "name", "type": "string", "meta": null, "schema": { "is_nullable": false } }, + { "collection": "systems", "field": "status", "type": "string", "meta": null, "schema": { "is_nullable": false, "default_value": "active" } }, + { "collection": "systems", "field": "created_at", "type": "timestamp", "meta": null, "schema": { "is_nullable": false, "default_value": "now()" } }, + { "collection": "systems", "field": "updated_at", "type": "timestamp", "meta": null, "schema": { "is_nullable": false, "default_value": "now()" } }, + + { "collection": "roles", "field": "id", "type": "uuid", "meta": null, "schema": { "is_nullable": false, "is_primary_key": true, "default_value": "gen_random_uuid()" } }, + { "collection": "roles", "field": "role_key", "type": "string", "meta": null, "schema": { "is_nullable": false, "is_unique": true } }, + { "collection": "roles", "field": "role_code", "type": "string", "meta": null, "schema": { "is_nullable": false } }, + { "collection": "roles", "field": "system_id", "type": "uuid", "meta": null, "schema": { "is_nullable": false, "foreign_key_table": "systems", "foreign_key_column": "id" } }, + { "collection": "roles", "field": "name", "type": "string", "meta": null, "schema": { "is_nullable": false } }, + { "collection": "roles", "field": "description", "type": "text", "meta": null, "schema": { "is_nullable": true } }, + { "collection": "roles", "field": "status", "type": "string", "meta": null, "schema": { "is_nullable": false, "default_value": "active" } }, + { "collection": "roles", "field": "created_at", "type": "timestamp", "meta": null, "schema": { "is_nullable": false, "default_value": "now()" } }, + { "collection": "roles", "field": "updated_at", "type": "timestamp", "meta": null, "schema": { "is_nullable": false, "default_value": "now()" } }, + + { "collection": "site_roles", "field": "id", "type": "uuid", "meta": null, "schema": { "is_nullable": false, "is_primary_key": true, "default_value": "gen_random_uuid()" } }, + { "collection": "site_roles", "field": "site_id", "type": "uuid", "meta": null, "schema": { "is_nullable": false, "foreign_key_table": "sites", "foreign_key_column": "id" } }, + { "collection": "site_roles", "field": "role_id", "type": "uuid", "meta": null, "schema": { "is_nullable": false, "foreign_key_table": "roles", "foreign_key_column": "id" } }, + { "collection": "site_roles", "field": "created_at", "type": "timestamp", "meta": null, "schema": { "is_nullable": false, "default_value": "now()" } }, + + { "collection": "user_sites", "field": "id", "type": "uuid", "meta": null, "schema": { "is_nullable": false, "is_primary_key": true, "default_value": "gen_random_uuid()" } }, + { "collection": "user_sites", "field": "user_id", "type": "uuid", "meta": null, "schema": { "is_nullable": false, "foreign_key_table": "users", "foreign_key_column": "id" } }, + { "collection": "user_sites", "field": "site_id", "type": "uuid", "meta": null, "schema": { "is_nullable": false, "foreign_key_table": "sites", "foreign_key_column": "id" } }, + { "collection": "user_sites", "field": "created_at", "type": "timestamp", "meta": null, "schema": { "is_nullable": false, "default_value": "now()" } }, + { "collection": "user_sites", "field": "updated_at", "type": "timestamp", "meta": null, "schema": { "is_nullable": false, "default_value": "now()" } }, + + { "collection": "auth_sync_state", "field": "id", "type": "uuid", "meta": null, "schema": { "is_nullable": false, "is_primary_key": true, "default_value": "gen_random_uuid()" } }, + { "collection": "auth_sync_state", "field": "entity_type", "type": "string", "meta": null, "schema": { "is_nullable": false } }, + { "collection": "auth_sync_state", "field": "entity_id", "type": "uuid", "meta": null, "schema": { "is_nullable": false } }, + { "collection": "auth_sync_state", "field": "last_synced_at", "type": "timestamp", "meta": null, "schema": { "is_nullable": true } }, + { "collection": "auth_sync_state", "field": "source_version", "type": "string", "meta": null, "schema": { "is_nullable": true } }, + { "collection": "auth_sync_state", "field": "last_error", "type": "text", "meta": null, "schema": { "is_nullable": true } }, + { "collection": "auth_sync_state", "field": "updated_at", "type": "timestamp", "meta": null, "schema": { "is_nullable": false, "default_value": "now()" } }, + + { "collection": "api_clients", "field": "id", "type": "uuid", "meta": null, "schema": { "is_nullable": false, "is_primary_key": true, "default_value": "gen_random_uuid()" } }, + { "collection": "api_clients", "field": "client_key", "type": "string", "meta": null, "schema": { "is_nullable": false, "is_unique": true } }, + { "collection": "api_clients", "field": "name", "type": "string", "meta": null, "schema": { "is_nullable": false } }, + { "collection": "api_clients", "field": "status", "type": "string", "meta": null, "schema": { "is_nullable": false, "default_value": "active" } }, + { "collection": "api_clients", "field": "api_key_hash", "type": "text", "meta": null, "schema": { "is_nullable": false } }, + { "collection": "api_clients", "field": "allowed_origins", "type": "json", "meta": null, "schema": { "is_nullable": false } }, + { "collection": "api_clients", "field": "allowed_ips", "type": "json", "meta": null, "schema": { "is_nullable": false } }, + { "collection": "api_clients", "field": "allowed_paths", "type": "json", "meta": null, "schema": { "is_nullable": false } }, + { "collection": "api_clients", "field": "rate_limit_per_min", "type": "integer", "meta": null, "schema": { "is_nullable": true } }, + { "collection": "api_clients", "field": "expires_at", "type": "timestamp", "meta": null, "schema": { "is_nullable": true } }, + { "collection": "api_clients", "field": "last_used_at", "type": "timestamp", "meta": null, "schema": { "is_nullable": true } }, + { "collection": "api_clients", "field": "created_at", "type": "timestamp", "meta": null, "schema": { "is_nullable": false, "default_value": "now()" } }, + { "collection": "api_clients", "field": "updated_at", "type": "timestamp", "meta": null, "schema": { "is_nullable": false, "default_value": "now()" } } + ], + "relations": [ + { + "collection": "sites", + "field": "company_id", + "related_collection": "companies", + "schema": { + "table": "sites", + "column": "company_id", + "foreign_key_table": "companies", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": null + }, + { + "collection": "roles", + "field": "system_id", + "related_collection": "systems", + "schema": { + "table": "roles", + "column": "system_id", + "foreign_key_table": "systems", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": null + }, + { + "collection": "site_roles", + "field": "site_id", + "related_collection": "sites", + "schema": { + "table": "site_roles", + "column": "site_id", + "foreign_key_table": "sites", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": null + }, + { + "collection": "site_roles", + "field": "role_id", + "related_collection": "roles", + "schema": { + "table": "site_roles", + "column": "role_id", + "foreign_key_table": "roles", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": null + }, + { + "collection": "user_sites", + "field": "user_id", + "related_collection": "users", + "schema": { + "table": "user_sites", + "column": "user_id", + "foreign_key_table": "users", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": null + }, + { + "collection": "user_sites", + "field": "site_id", + "related_collection": "sites", + "schema": { + "table": "user_sites", + "column": "site_id", + "foreign_key_table": "sites", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "CASCADE" + }, + "meta": null + } + ] +}