3658 lines
96 KiB
JSON
3658 lines
96 KiB
JSON
{
|
|
"collections": [
|
|
{
|
|
"collection": "center",
|
|
"meta": {
|
|
"collection": "center",
|
|
"icon": "folder",
|
|
"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": 1,
|
|
"group": null,
|
|
"collapse": "open",
|
|
"preview_url": null,
|
|
"versioning": false
|
|
},
|
|
"schema": null
|
|
},
|
|
{
|
|
"collection": "companies",
|
|
"meta": {
|
|
"collection": "companies",
|
|
"icon": null,
|
|
"note": null,
|
|
"display_template": null,
|
|
"hidden": false,
|
|
"singleton": false,
|
|
"translations": null,
|
|
"archive_field": "status",
|
|
"archive_app_filter": true,
|
|
"archive_value": "archived",
|
|
"unarchive_value": "draft",
|
|
"sort_field": null,
|
|
"accountability": "all",
|
|
"color": null,
|
|
"item_duplication_fields": null,
|
|
"sort": 1,
|
|
"group": "center",
|
|
"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": 1,
|
|
"group": "systems",
|
|
"collapse": "open",
|
|
"preview_url": null,
|
|
"versioning": false
|
|
},
|
|
"schema": {}
|
|
},
|
|
{
|
|
"collection": "roles_sites",
|
|
"meta": {
|
|
"collection": "roles_sites",
|
|
"icon": "import_export",
|
|
"note": null,
|
|
"display_template": null,
|
|
"hidden": true,
|
|
"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": 1,
|
|
"group": "roles",
|
|
"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": "archived",
|
|
"unarchive_value": "draft",
|
|
"sort_field": null,
|
|
"accountability": "all",
|
|
"color": null,
|
|
"item_duplication_fields": null,
|
|
"sort": 1,
|
|
"group": "companies",
|
|
"collapse": "open",
|
|
"preview_url": null,
|
|
"versioning": false
|
|
},
|
|
"schema": {}
|
|
},
|
|
{
|
|
"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": 1,
|
|
"group": "sites",
|
|
"collapse": "open",
|
|
"preview_url": null,
|
|
"versioning": false
|
|
},
|
|
"schema": {}
|
|
},
|
|
{
|
|
"collection": "users_sites",
|
|
"meta": {
|
|
"collection": "users_sites",
|
|
"icon": "import_export",
|
|
"note": null,
|
|
"display_template": null,
|
|
"hidden": true,
|
|
"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": 1,
|
|
"group": "users",
|
|
"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": 2,
|
|
"group": "center",
|
|
"collapse": "open",
|
|
"preview_url": null,
|
|
"versioning": false
|
|
},
|
|
"schema": {}
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"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": true,
|
|
"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": 1,
|
|
"width": "full",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "companies",
|
|
"field": "key",
|
|
"type": "string",
|
|
"schema": {
|
|
"name": "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": 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": "companies",
|
|
"field": "key",
|
|
"special": null,
|
|
"interface": "input",
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": true,
|
|
"hidden": false,
|
|
"sort": 1,
|
|
"width": "half",
|
|
"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": "select-dropdown",
|
|
"options": {
|
|
"choices": [
|
|
{
|
|
"text": "ACTIVE",
|
|
"value": "ACTIVE",
|
|
"color": "var(--theme--primary)"
|
|
},
|
|
{
|
|
"text": "INACTIVE",
|
|
"value": "INACTIVE",
|
|
"color": "var(--theme--foreground)"
|
|
}
|
|
]
|
|
},
|
|
"display": "labels",
|
|
"display_options": {
|
|
"showAsDot": true,
|
|
"choices": [
|
|
{
|
|
"text": "ACTIVE",
|
|
"value": "ACTIVE",
|
|
"color": "var(--theme--primary)"
|
|
},
|
|
{
|
|
"text": "INACTIVE",
|
|
"value": "INACTIVE",
|
|
"color": "var(--theme--foreground)"
|
|
}
|
|
]
|
|
},
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 2,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "companies",
|
|
"field": "date_created",
|
|
"type": "timestamp",
|
|
"schema": {
|
|
"name": "date_created",
|
|
"table": "companies",
|
|
"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": "companies",
|
|
"field": "date_created",
|
|
"special": [
|
|
"date-created"
|
|
],
|
|
"interface": "datetime",
|
|
"options": null,
|
|
"display": "datetime",
|
|
"display_options": {
|
|
"relative": true
|
|
},
|
|
"readonly": true,
|
|
"hidden": true,
|
|
"sort": 2,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"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": 3,
|
|
"width": "full",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "companies",
|
|
"field": "user_created",
|
|
"type": "uuid",
|
|
"schema": {
|
|
"name": "user_created",
|
|
"table": "companies",
|
|
"data_type": "uuid",
|
|
"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": "public",
|
|
"foreign_key_table": "directus_users",
|
|
"foreign_key_column": "id",
|
|
"comment": null
|
|
},
|
|
"meta": {
|
|
"collection": "companies",
|
|
"field": "user_created",
|
|
"special": [
|
|
"user-created"
|
|
],
|
|
"interface": "select-dropdown-m2o",
|
|
"options": {
|
|
"template": "{{avatar}} {{first_name}} {{last_name}}"
|
|
},
|
|
"display": "user",
|
|
"display_options": null,
|
|
"readonly": true,
|
|
"hidden": true,
|
|
"sort": 3,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "companies",
|
|
"field": "date_updated",
|
|
"type": "timestamp",
|
|
"schema": {
|
|
"name": "date_updated",
|
|
"table": "companies",
|
|
"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": "companies",
|
|
"field": "date_updated",
|
|
"special": [
|
|
"date-updated"
|
|
],
|
|
"interface": "datetime",
|
|
"options": null,
|
|
"display": "datetime",
|
|
"display_options": {
|
|
"relative": true
|
|
},
|
|
"readonly": true,
|
|
"hidden": true,
|
|
"sort": 4,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "companies",
|
|
"field": "sites",
|
|
"type": "alias",
|
|
"schema": null,
|
|
"meta": {
|
|
"collection": "companies",
|
|
"field": "sites",
|
|
"special": [
|
|
"o2m"
|
|
],
|
|
"interface": "list-o2m",
|
|
"options": {
|
|
"layout": "table",
|
|
"fields": [
|
|
"name",
|
|
"status",
|
|
"users",
|
|
"roles"
|
|
]
|
|
},
|
|
"display": "related-values",
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 4,
|
|
"width": "full",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "companies",
|
|
"field": "user_updated",
|
|
"type": "uuid",
|
|
"schema": {
|
|
"name": "user_updated",
|
|
"table": "companies",
|
|
"data_type": "uuid",
|
|
"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": "public",
|
|
"foreign_key_table": "directus_users",
|
|
"foreign_key_column": "id",
|
|
"comment": null
|
|
},
|
|
"meta": {
|
|
"collection": "companies",
|
|
"field": "user_updated",
|
|
"special": [
|
|
"user-updated"
|
|
],
|
|
"interface": "select-dropdown-m2o",
|
|
"options": {
|
|
"template": "{{avatar}} {{first_name}} {{last_name}}"
|
|
},
|
|
"display": "user",
|
|
"display_options": null,
|
|
"readonly": true,
|
|
"hidden": true,
|
|
"sort": 5,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "companies",
|
|
"field": "system_info",
|
|
"type": "alias",
|
|
"schema": null,
|
|
"meta": {
|
|
"collection": "companies",
|
|
"field": "system_info",
|
|
"special": [
|
|
"alias",
|
|
"no-data",
|
|
"group"
|
|
],
|
|
"interface": "group-raw",
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 5,
|
|
"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": true,
|
|
"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": 1,
|
|
"width": "full",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"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": [
|
|
"m2o"
|
|
],
|
|
"interface": "select-dropdown-m2o",
|
|
"options": {
|
|
"template": "{{name}}",
|
|
"enableCreate": false,
|
|
"enableLink": true
|
|
},
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": true,
|
|
"hidden": false,
|
|
"sort": 1,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "roles",
|
|
"field": "date_created",
|
|
"type": "timestamp",
|
|
"schema": {
|
|
"name": "date_created",
|
|
"table": "roles",
|
|
"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": "roles",
|
|
"field": "date_created",
|
|
"special": [
|
|
"date-created"
|
|
],
|
|
"interface": "datetime",
|
|
"options": null,
|
|
"display": "datetime",
|
|
"display_options": {
|
|
"relative": true
|
|
},
|
|
"readonly": true,
|
|
"hidden": true,
|
|
"sort": 2,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "roles",
|
|
"field": "key",
|
|
"type": "string",
|
|
"schema": {
|
|
"name": "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": 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": "roles",
|
|
"field": "key",
|
|
"special": null,
|
|
"interface": "input",
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": true,
|
|
"hidden": false,
|
|
"sort": 2,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "roles",
|
|
"field": "user_created",
|
|
"type": "uuid",
|
|
"schema": {
|
|
"name": "user_created",
|
|
"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": true,
|
|
"is_unique": false,
|
|
"is_indexed": false,
|
|
"is_primary_key": false,
|
|
"has_auto_increment": false,
|
|
"foreign_key_schema": "public",
|
|
"foreign_key_table": "directus_users",
|
|
"foreign_key_column": "id",
|
|
"comment": null
|
|
},
|
|
"meta": {
|
|
"collection": "roles",
|
|
"field": "user_created",
|
|
"special": [
|
|
"user-created"
|
|
],
|
|
"interface": "select-dropdown-m2o",
|
|
"options": {
|
|
"template": "{{avatar}} {{first_name}} {{last_name}}"
|
|
},
|
|
"display": "user",
|
|
"display_options": null,
|
|
"readonly": true,
|
|
"hidden": true,
|
|
"sort": 3,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"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": 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_code",
|
|
"special": null,
|
|
"interface": "input",
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 3,
|
|
"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": "select-dropdown",
|
|
"options": {
|
|
"choices": [
|
|
{
|
|
"text": "ACTIVE",
|
|
"value": "ACTIVE",
|
|
"color": "var(--theme--primary)"
|
|
},
|
|
{
|
|
"text": "INACTIVE",
|
|
"value": "INACTIVE",
|
|
"color": "var(--theme--foreground)"
|
|
}
|
|
]
|
|
},
|
|
"display": "labels",
|
|
"display_options": {
|
|
"showAsDot": true,
|
|
"choices": [
|
|
{
|
|
"text": "ACTIVE",
|
|
"value": "ACTIVE",
|
|
"color": "var(--theme--primary)"
|
|
},
|
|
{
|
|
"text": "INACTIVE",
|
|
"value": "INACTIVE",
|
|
"color": "var(--theme--foreground)"
|
|
}
|
|
]
|
|
},
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 4,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "roles",
|
|
"field": "date_updated",
|
|
"type": "timestamp",
|
|
"schema": {
|
|
"name": "date_updated",
|
|
"table": "roles",
|
|
"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": "roles",
|
|
"field": "date_updated",
|
|
"special": [
|
|
"date-updated"
|
|
],
|
|
"interface": "datetime",
|
|
"options": null,
|
|
"display": "datetime",
|
|
"display_options": {
|
|
"relative": true
|
|
},
|
|
"readonly": true,
|
|
"hidden": true,
|
|
"sort": 4,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"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": 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": "name",
|
|
"special": null,
|
|
"interface": "input",
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 5,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "roles",
|
|
"field": "user_updated",
|
|
"type": "uuid",
|
|
"schema": {
|
|
"name": "user_updated",
|
|
"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": true,
|
|
"is_unique": false,
|
|
"is_indexed": false,
|
|
"is_primary_key": false,
|
|
"has_auto_increment": false,
|
|
"foreign_key_schema": "public",
|
|
"foreign_key_table": "directus_users",
|
|
"foreign_key_column": "id",
|
|
"comment": null
|
|
},
|
|
"meta": {
|
|
"collection": "roles",
|
|
"field": "user_updated",
|
|
"special": [
|
|
"user-updated"
|
|
],
|
|
"interface": "select-dropdown-m2o",
|
|
"options": {
|
|
"template": "{{avatar}} {{first_name}} {{last_name}}"
|
|
},
|
|
"display": "user",
|
|
"display_options": null,
|
|
"readonly": true,
|
|
"hidden": true,
|
|
"sort": 5,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "roles",
|
|
"field": "sites",
|
|
"type": "alias",
|
|
"schema": null,
|
|
"meta": {
|
|
"collection": "roles",
|
|
"field": "sites",
|
|
"special": [
|
|
"m2m"
|
|
],
|
|
"interface": "list-m2m",
|
|
"options": {
|
|
"layout": "table",
|
|
"fields": [
|
|
"sites_id.company_id",
|
|
"sites_id.name",
|
|
"sites_id.users"
|
|
]
|
|
},
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 6,
|
|
"width": "full",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "roles",
|
|
"field": "system_info",
|
|
"type": "alias",
|
|
"schema": null,
|
|
"meta": {
|
|
"collection": "roles",
|
|
"field": "system_info",
|
|
"special": [
|
|
"alias",
|
|
"no-data",
|
|
"group"
|
|
],
|
|
"interface": "group-raw",
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 7,
|
|
"width": "full",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "roles_sites",
|
|
"field": "id",
|
|
"type": "uuid",
|
|
"schema": {
|
|
"name": "id",
|
|
"table": "roles_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": true,
|
|
"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_sites",
|
|
"field": "id",
|
|
"special": null,
|
|
"interface": null,
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": true,
|
|
"sort": 1,
|
|
"width": "full",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "roles_sites",
|
|
"field": "roles_id",
|
|
"type": "uuid",
|
|
"schema": {
|
|
"name": "roles_id",
|
|
"table": "roles_sites",
|
|
"data_type": "uuid",
|
|
"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": "public",
|
|
"foreign_key_table": "roles",
|
|
"foreign_key_column": "id",
|
|
"comment": null
|
|
},
|
|
"meta": {
|
|
"collection": "roles_sites",
|
|
"field": "roles_id",
|
|
"special": null,
|
|
"interface": null,
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": true,
|
|
"sort": 2,
|
|
"width": "full",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "roles_sites",
|
|
"field": "sites_id",
|
|
"type": "uuid",
|
|
"schema": {
|
|
"name": "sites_id",
|
|
"table": "roles_sites",
|
|
"data_type": "uuid",
|
|
"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": "public",
|
|
"foreign_key_table": "sites",
|
|
"foreign_key_column": "id",
|
|
"comment": null
|
|
},
|
|
"meta": {
|
|
"collection": "roles_sites",
|
|
"field": "sites_id",
|
|
"special": null,
|
|
"interface": null,
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": true,
|
|
"sort": 3,
|
|
"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": true,
|
|
"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": 1,
|
|
"width": "full",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"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": [
|
|
"m2o"
|
|
],
|
|
"interface": "select-dropdown-m2o",
|
|
"options": {
|
|
"template": "{{name}}",
|
|
"enableCreate": false,
|
|
"enableLink": true
|
|
},
|
|
"display": "related-values",
|
|
"display_options": {
|
|
"template": "{{name}}"
|
|
},
|
|
"readonly": true,
|
|
"hidden": false,
|
|
"sort": 1,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "sites",
|
|
"field": "users",
|
|
"type": "alias",
|
|
"schema": null,
|
|
"meta": {
|
|
"collection": "sites",
|
|
"field": "users",
|
|
"special": [
|
|
"m2m"
|
|
],
|
|
"interface": "list-m2m",
|
|
"options": {
|
|
"layout": "table",
|
|
"tableSpacing": "compact",
|
|
"fields": [
|
|
"users_id.email",
|
|
"users_id.name"
|
|
]
|
|
},
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 1,
|
|
"width": "full",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "tabs-ty2pbk",
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "sites",
|
|
"field": "key",
|
|
"type": "string",
|
|
"schema": {
|
|
"name": "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": 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": "sites",
|
|
"field": "key",
|
|
"special": null,
|
|
"interface": "input",
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": true,
|
|
"hidden": false,
|
|
"sort": 2,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "sites",
|
|
"field": "date_created",
|
|
"type": "timestamp",
|
|
"schema": {
|
|
"name": "date_created",
|
|
"table": "sites",
|
|
"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": "sites",
|
|
"field": "date_created",
|
|
"special": [
|
|
"date-created"
|
|
],
|
|
"interface": "datetime",
|
|
"options": null,
|
|
"display": "datetime",
|
|
"display_options": {
|
|
"relative": true
|
|
},
|
|
"readonly": true,
|
|
"hidden": true,
|
|
"sort": 2,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"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": "select-dropdown",
|
|
"options": {
|
|
"choices": [
|
|
{
|
|
"text": "ACTIVE",
|
|
"value": "ACTIVE",
|
|
"color": "var(--theme--primary)"
|
|
},
|
|
{
|
|
"text": "INACTIVE",
|
|
"value": "INACTIVE",
|
|
"color": "var(--theme--foreground)"
|
|
}
|
|
]
|
|
},
|
|
"display": "labels",
|
|
"display_options": {
|
|
"showAsDot": true,
|
|
"choices": [
|
|
{
|
|
"text": "ACTIVE",
|
|
"value": "ACTIVE",
|
|
"color": "var(--theme--primary)"
|
|
},
|
|
{
|
|
"text": "INACTIVE",
|
|
"value": "INACTIVE",
|
|
"color": "var(--theme--foreground)"
|
|
}
|
|
]
|
|
},
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 2,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "sites",
|
|
"field": "roles",
|
|
"type": "alias",
|
|
"schema": null,
|
|
"meta": {
|
|
"collection": "sites",
|
|
"field": "roles",
|
|
"special": [
|
|
"m2m"
|
|
],
|
|
"interface": "list-m2m",
|
|
"options": {
|
|
"layout": "table",
|
|
"fields": [
|
|
"roles_id.name"
|
|
]
|
|
},
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 2,
|
|
"width": "full",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "tabs-ty2pbk",
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "sites",
|
|
"field": "user_created",
|
|
"type": "uuid",
|
|
"schema": {
|
|
"name": "user_created",
|
|
"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": true,
|
|
"is_unique": false,
|
|
"is_indexed": false,
|
|
"is_primary_key": false,
|
|
"has_auto_increment": false,
|
|
"foreign_key_schema": "public",
|
|
"foreign_key_table": "directus_users",
|
|
"foreign_key_column": "id",
|
|
"comment": null
|
|
},
|
|
"meta": {
|
|
"collection": "sites",
|
|
"field": "user_created",
|
|
"special": [
|
|
"user-created"
|
|
],
|
|
"interface": "select-dropdown-m2o",
|
|
"options": {
|
|
"template": "{{avatar}} {{first_name}} {{last_name}}"
|
|
},
|
|
"display": "user",
|
|
"display_options": null,
|
|
"readonly": true,
|
|
"hidden": true,
|
|
"sort": 3,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "sites",
|
|
"field": "name",
|
|
"type": "string",
|
|
"schema": {
|
|
"name": "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": 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": "name",
|
|
"special": null,
|
|
"interface": "input",
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 3,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "sites",
|
|
"field": "system_info",
|
|
"type": "alias",
|
|
"schema": null,
|
|
"meta": {
|
|
"collection": "sites",
|
|
"field": "system_info",
|
|
"special": [
|
|
"alias",
|
|
"no-data",
|
|
"group"
|
|
],
|
|
"interface": "group-raw",
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 3,
|
|
"width": "full",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "tabs-ty2pbk",
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "sites",
|
|
"field": "date_updated",
|
|
"type": "timestamp",
|
|
"schema": {
|
|
"name": "date_updated",
|
|
"table": "sites",
|
|
"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": "sites",
|
|
"field": "date_updated",
|
|
"special": [
|
|
"date-updated"
|
|
],
|
|
"interface": "datetime",
|
|
"options": null,
|
|
"display": "datetime",
|
|
"display_options": {
|
|
"relative": true
|
|
},
|
|
"readonly": true,
|
|
"hidden": true,
|
|
"sort": 4,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "sites",
|
|
"field": "tabs-ty2pbk",
|
|
"type": "alias",
|
|
"schema": null,
|
|
"meta": {
|
|
"collection": "sites",
|
|
"field": "tabs-ty2pbk",
|
|
"special": [
|
|
"alias",
|
|
"no-data",
|
|
"group"
|
|
],
|
|
"interface": "group-tabs",
|
|
"options": {
|
|
"fillWidth": true
|
|
},
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 4,
|
|
"width": "full",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "sites",
|
|
"field": "user_updated",
|
|
"type": "uuid",
|
|
"schema": {
|
|
"name": "user_updated",
|
|
"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": true,
|
|
"is_unique": false,
|
|
"is_indexed": false,
|
|
"is_primary_key": false,
|
|
"has_auto_increment": false,
|
|
"foreign_key_schema": "public",
|
|
"foreign_key_table": "directus_users",
|
|
"foreign_key_column": "id",
|
|
"comment": null
|
|
},
|
|
"meta": {
|
|
"collection": "sites",
|
|
"field": "user_updated",
|
|
"special": [
|
|
"user-updated"
|
|
],
|
|
"interface": "select-dropdown-m2o",
|
|
"options": {
|
|
"template": "{{avatar}} {{first_name}} {{last_name}}"
|
|
},
|
|
"display": "user",
|
|
"display_options": null,
|
|
"readonly": true,
|
|
"hidden": true,
|
|
"sort": 5,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"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": true,
|
|
"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": 1,
|
|
"width": "full",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "users",
|
|
"field": "sub",
|
|
"type": "string",
|
|
"schema": {
|
|
"name": "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": 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": "sub",
|
|
"special": null,
|
|
"interface": "input",
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": true,
|
|
"hidden": false,
|
|
"sort": 1,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "users",
|
|
"field": "key",
|
|
"type": "string",
|
|
"schema": {
|
|
"name": "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": 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": "key",
|
|
"special": null,
|
|
"interface": "input",
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": true,
|
|
"hidden": false,
|
|
"sort": 2,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "users",
|
|
"field": "date_created",
|
|
"type": "timestamp",
|
|
"schema": {
|
|
"name": "date_created",
|
|
"table": "users",
|
|
"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": "users",
|
|
"field": "date_created",
|
|
"special": [
|
|
"date-created"
|
|
],
|
|
"interface": "datetime",
|
|
"options": null,
|
|
"display": "datetime",
|
|
"display_options": {
|
|
"relative": true
|
|
},
|
|
"readonly": true,
|
|
"hidden": true,
|
|
"sort": 2,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"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": "select-dropdown",
|
|
"options": {
|
|
"choices": [
|
|
{
|
|
"text": "ACTIVE",
|
|
"value": "ACTIVE",
|
|
"color": "var(--theme--primary)"
|
|
},
|
|
{
|
|
"text": "INACTIVE",
|
|
"value": "INACTIVE",
|
|
"color": "var(--theme--foreground)"
|
|
}
|
|
]
|
|
},
|
|
"display": "labels",
|
|
"display_options": {
|
|
"showAsDot": true,
|
|
"choices": [
|
|
{
|
|
"text": "ACTIVE",
|
|
"value": "ACTIVE",
|
|
"color": "var(--theme--primary)"
|
|
},
|
|
{
|
|
"text": "INACTIVE",
|
|
"value": "INACTIVE",
|
|
"color": "var(--theme--foreground)"
|
|
}
|
|
]
|
|
},
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 2,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "users",
|
|
"field": "user_created",
|
|
"type": "uuid",
|
|
"schema": {
|
|
"name": "user_created",
|
|
"table": "users",
|
|
"data_type": "uuid",
|
|
"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": "public",
|
|
"foreign_key_table": "directus_users",
|
|
"foreign_key_column": "id",
|
|
"comment": null
|
|
},
|
|
"meta": {
|
|
"collection": "users",
|
|
"field": "user_created",
|
|
"special": [
|
|
"user-created"
|
|
],
|
|
"interface": "select-dropdown-m2o",
|
|
"options": {
|
|
"template": "{{avatar}} {{first_name}} {{last_name}}"
|
|
},
|
|
"display": "user",
|
|
"display_options": null,
|
|
"readonly": true,
|
|
"hidden": true,
|
|
"sort": 3,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"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": 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": "email",
|
|
"special": null,
|
|
"interface": "input",
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 3,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": true,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "users",
|
|
"field": "date_updated",
|
|
"type": "timestamp",
|
|
"schema": {
|
|
"name": "date_updated",
|
|
"table": "users",
|
|
"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": "users",
|
|
"field": "date_updated",
|
|
"special": [
|
|
"date-updated"
|
|
],
|
|
"interface": "datetime",
|
|
"options": null,
|
|
"display": "datetime",
|
|
"display_options": {
|
|
"relative": true
|
|
},
|
|
"readonly": true,
|
|
"hidden": true,
|
|
"sort": 4,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "users",
|
|
"field": "name",
|
|
"type": "string",
|
|
"schema": {
|
|
"name": "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": "name",
|
|
"special": null,
|
|
"interface": "input",
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 4,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "users",
|
|
"field": "user_updated",
|
|
"type": "uuid",
|
|
"schema": {
|
|
"name": "user_updated",
|
|
"table": "users",
|
|
"data_type": "uuid",
|
|
"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": "public",
|
|
"foreign_key_table": "directus_users",
|
|
"foreign_key_column": "id",
|
|
"comment": null
|
|
},
|
|
"meta": {
|
|
"collection": "users",
|
|
"field": "user_updated",
|
|
"special": [
|
|
"user-updated"
|
|
],
|
|
"interface": "select-dropdown-m2o",
|
|
"options": {
|
|
"template": "{{avatar}} {{first_name}} {{last_name}}"
|
|
},
|
|
"display": "user",
|
|
"display_options": null,
|
|
"readonly": true,
|
|
"hidden": true,
|
|
"sort": 5,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "users",
|
|
"field": "tmp_password",
|
|
"type": "string",
|
|
"schema": {
|
|
"name": "tmp_password",
|
|
"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": "tmp_password",
|
|
"special": null,
|
|
"interface": "input",
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 5,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": true,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "users",
|
|
"field": "sites",
|
|
"type": "alias",
|
|
"schema": null,
|
|
"meta": {
|
|
"collection": "users",
|
|
"field": "sites",
|
|
"special": [
|
|
"m2m"
|
|
],
|
|
"interface": "list-m2m",
|
|
"options": {
|
|
"layout": "table",
|
|
"enableCreate": false,
|
|
"enableLink": true,
|
|
"fields": [
|
|
"sites_id.company_id",
|
|
"sites_id.name"
|
|
]
|
|
},
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 6,
|
|
"width": "full",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "users",
|
|
"field": "system_info",
|
|
"type": "alias",
|
|
"schema": null,
|
|
"meta": {
|
|
"collection": "users",
|
|
"field": "system_info",
|
|
"special": [
|
|
"alias",
|
|
"no-data",
|
|
"group"
|
|
],
|
|
"interface": "group-raw",
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 7,
|
|
"width": "full",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "users_sites",
|
|
"field": "id",
|
|
"type": "uuid",
|
|
"schema": {
|
|
"name": "id",
|
|
"table": "users_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": true,
|
|
"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_sites",
|
|
"field": "id",
|
|
"special": null,
|
|
"interface": null,
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": true,
|
|
"sort": 1,
|
|
"width": "full",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "users_sites",
|
|
"field": "users_id",
|
|
"type": "uuid",
|
|
"schema": {
|
|
"name": "users_id",
|
|
"table": "users_sites",
|
|
"data_type": "uuid",
|
|
"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": "public",
|
|
"foreign_key_table": "users",
|
|
"foreign_key_column": "id",
|
|
"comment": null
|
|
},
|
|
"meta": {
|
|
"collection": "users_sites",
|
|
"field": "users_id",
|
|
"special": null,
|
|
"interface": null,
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": true,
|
|
"sort": 2,
|
|
"width": "full",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "users_sites",
|
|
"field": "sites_id",
|
|
"type": "uuid",
|
|
"schema": {
|
|
"name": "sites_id",
|
|
"table": "users_sites",
|
|
"data_type": "uuid",
|
|
"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": "public",
|
|
"foreign_key_table": "sites",
|
|
"foreign_key_column": "id",
|
|
"comment": null
|
|
},
|
|
"meta": {
|
|
"collection": "users_sites",
|
|
"field": "sites_id",
|
|
"special": null,
|
|
"interface": null,
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": true,
|
|
"sort": 3,
|
|
"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": true,
|
|
"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": 1,
|
|
"width": "full",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "systems",
|
|
"field": "key",
|
|
"type": "string",
|
|
"schema": {
|
|
"name": "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": "key",
|
|
"special": null,
|
|
"interface": "input",
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 1,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": true,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "systems",
|
|
"field": "date_created",
|
|
"type": "timestamp",
|
|
"schema": {
|
|
"name": "date_created",
|
|
"table": "systems",
|
|
"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": "systems",
|
|
"field": "date_created",
|
|
"special": [
|
|
"date-created"
|
|
],
|
|
"interface": "datetime",
|
|
"options": null,
|
|
"display": "datetime",
|
|
"display_options": {
|
|
"relative": true
|
|
},
|
|
"readonly": true,
|
|
"hidden": true,
|
|
"sort": 2,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"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": "select-dropdown",
|
|
"options": {
|
|
"choices": [
|
|
{
|
|
"text": "ACTIVE",
|
|
"value": "ACTIVE",
|
|
"color": "var(--theme--primary)"
|
|
},
|
|
{
|
|
"text": "INACTIVE",
|
|
"value": "INACTIVE",
|
|
"color": "var(--theme--foreground)"
|
|
}
|
|
]
|
|
},
|
|
"display": "labels",
|
|
"display_options": {
|
|
"showAsDot": true,
|
|
"choices": [
|
|
{
|
|
"text": "ACTIVE",
|
|
"value": "ACTIVE",
|
|
"color": "var(--theme--primary)"
|
|
},
|
|
{
|
|
"text": "INACTIVE",
|
|
"value": "INACTIVE",
|
|
"color": "var(--theme--foreground)"
|
|
}
|
|
]
|
|
},
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 2,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "systems",
|
|
"field": "user_created",
|
|
"type": "uuid",
|
|
"schema": {
|
|
"name": "user_created",
|
|
"table": "systems",
|
|
"data_type": "uuid",
|
|
"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": "public",
|
|
"foreign_key_table": "directus_users",
|
|
"foreign_key_column": "id",
|
|
"comment": null
|
|
},
|
|
"meta": {
|
|
"collection": "systems",
|
|
"field": "user_created",
|
|
"special": [
|
|
"user-created"
|
|
],
|
|
"interface": "select-dropdown-m2o",
|
|
"options": {
|
|
"template": "{{avatar}} {{first_name}} {{last_name}}"
|
|
},
|
|
"display": "user",
|
|
"display_options": null,
|
|
"readonly": true,
|
|
"hidden": true,
|
|
"sort": 3,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"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": 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": "systems",
|
|
"field": "name",
|
|
"special": null,
|
|
"interface": "input",
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 3,
|
|
"width": "full",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "systems",
|
|
"field": "date_updated",
|
|
"type": "timestamp",
|
|
"schema": {
|
|
"name": "date_updated",
|
|
"table": "systems",
|
|
"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": "systems",
|
|
"field": "date_updated",
|
|
"special": [
|
|
"date-updated"
|
|
],
|
|
"interface": "datetime",
|
|
"options": null,
|
|
"display": "datetime",
|
|
"display_options": {
|
|
"relative": true
|
|
},
|
|
"readonly": true,
|
|
"hidden": true,
|
|
"sort": 4,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "systems",
|
|
"field": "roles",
|
|
"type": "alias",
|
|
"schema": null,
|
|
"meta": {
|
|
"collection": "systems",
|
|
"field": "roles",
|
|
"special": [
|
|
"o2m"
|
|
],
|
|
"interface": "list-o2m",
|
|
"options": {
|
|
"layout": "table",
|
|
"fields": [
|
|
"name",
|
|
"status",
|
|
"role_code"
|
|
]
|
|
},
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 4,
|
|
"width": "full",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "systems",
|
|
"field": "user_updated",
|
|
"type": "uuid",
|
|
"schema": {
|
|
"name": "user_updated",
|
|
"table": "systems",
|
|
"data_type": "uuid",
|
|
"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": "public",
|
|
"foreign_key_table": "directus_users",
|
|
"foreign_key_column": "id",
|
|
"comment": null
|
|
},
|
|
"meta": {
|
|
"collection": "systems",
|
|
"field": "user_updated",
|
|
"special": [
|
|
"user-updated"
|
|
],
|
|
"interface": "select-dropdown-m2o",
|
|
"options": {
|
|
"template": "{{avatar}} {{first_name}} {{last_name}}"
|
|
},
|
|
"display": "user",
|
|
"display_options": null,
|
|
"readonly": true,
|
|
"hidden": true,
|
|
"sort": 5,
|
|
"width": "half",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": "system_info",
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
},
|
|
{
|
|
"collection": "systems",
|
|
"field": "system_info",
|
|
"type": "alias",
|
|
"schema": null,
|
|
"meta": {
|
|
"collection": "systems",
|
|
"field": "system_info",
|
|
"special": [
|
|
"alias",
|
|
"no-data",
|
|
"group"
|
|
],
|
|
"interface": "group-raw",
|
|
"options": null,
|
|
"display": null,
|
|
"display_options": null,
|
|
"readonly": false,
|
|
"hidden": false,
|
|
"sort": 5,
|
|
"width": "full",
|
|
"translations": null,
|
|
"note": null,
|
|
"conditions": null,
|
|
"required": false,
|
|
"group": null,
|
|
"validation": null,
|
|
"validation_message": null,
|
|
"searchable": true
|
|
}
|
|
}
|
|
],
|
|
"relations": [
|
|
{
|
|
"collection": "companies",
|
|
"field": "user_created",
|
|
"related_collection": "directus_users",
|
|
"schema": {
|
|
"constraint_name": "companies_user_created_foreign",
|
|
"table": "companies",
|
|
"column": "user_created",
|
|
"foreign_key_schema": "public",
|
|
"foreign_key_table": "directus_users",
|
|
"foreign_key_column": "id",
|
|
"on_update": "NO ACTION",
|
|
"on_delete": "NO ACTION"
|
|
},
|
|
"meta": {
|
|
"many_collection": "companies",
|
|
"many_field": "user_created",
|
|
"one_collection": "directus_users",
|
|
"one_field": null,
|
|
"one_collection_field": null,
|
|
"one_allowed_collections": null,
|
|
"junction_field": null,
|
|
"sort_field": null,
|
|
"one_deselect_action": "nullify"
|
|
}
|
|
},
|
|
{
|
|
"collection": "companies",
|
|
"field": "user_updated",
|
|
"related_collection": "directus_users",
|
|
"schema": {
|
|
"constraint_name": "companies_user_updated_foreign",
|
|
"table": "companies",
|
|
"column": "user_updated",
|
|
"foreign_key_schema": "public",
|
|
"foreign_key_table": "directus_users",
|
|
"foreign_key_column": "id",
|
|
"on_update": "NO ACTION",
|
|
"on_delete": "NO ACTION"
|
|
},
|
|
"meta": {
|
|
"many_collection": "companies",
|
|
"many_field": "user_updated",
|
|
"one_collection": "directus_users",
|
|
"one_field": null,
|
|
"one_collection_field": null,
|
|
"one_allowed_collections": null,
|
|
"junction_field": null,
|
|
"sort_field": null,
|
|
"one_deselect_action": "nullify"
|
|
}
|
|
},
|
|
{
|
|
"collection": "roles",
|
|
"field": "user_created",
|
|
"related_collection": "directus_users",
|
|
"schema": {
|
|
"constraint_name": "roles_user_created_foreign",
|
|
"table": "roles",
|
|
"column": "user_created",
|
|
"foreign_key_schema": "public",
|
|
"foreign_key_table": "directus_users",
|
|
"foreign_key_column": "id",
|
|
"on_update": "NO ACTION",
|
|
"on_delete": "NO ACTION"
|
|
},
|
|
"meta": {
|
|
"many_collection": "roles",
|
|
"many_field": "user_created",
|
|
"one_collection": "directus_users",
|
|
"one_field": null,
|
|
"one_collection_field": null,
|
|
"one_allowed_collections": null,
|
|
"junction_field": null,
|
|
"sort_field": null,
|
|
"one_deselect_action": "nullify"
|
|
}
|
|
},
|
|
{
|
|
"collection": "roles",
|
|
"field": "user_updated",
|
|
"related_collection": "directus_users",
|
|
"schema": {
|
|
"constraint_name": "roles_user_updated_foreign",
|
|
"table": "roles",
|
|
"column": "user_updated",
|
|
"foreign_key_schema": "public",
|
|
"foreign_key_table": "directus_users",
|
|
"foreign_key_column": "id",
|
|
"on_update": "NO ACTION",
|
|
"on_delete": "NO ACTION"
|
|
},
|
|
"meta": {
|
|
"many_collection": "roles",
|
|
"many_field": "user_updated",
|
|
"one_collection": "directus_users",
|
|
"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": "NO ACTION"
|
|
},
|
|
"meta": {
|
|
"many_collection": "roles",
|
|
"many_field": "system_id",
|
|
"one_collection": "systems",
|
|
"one_field": "roles",
|
|
"one_collection_field": null,
|
|
"one_allowed_collections": null,
|
|
"junction_field": null,
|
|
"sort_field": null,
|
|
"one_deselect_action": "nullify"
|
|
}
|
|
},
|
|
{
|
|
"collection": "roles_sites",
|
|
"field": "roles_id",
|
|
"related_collection": "roles",
|
|
"schema": {
|
|
"constraint_name": "roles_sites_roles_id_foreign",
|
|
"table": "roles_sites",
|
|
"column": "roles_id",
|
|
"foreign_key_schema": "public",
|
|
"foreign_key_table": "roles",
|
|
"foreign_key_column": "id",
|
|
"on_update": "NO ACTION",
|
|
"on_delete": "CASCADE"
|
|
},
|
|
"meta": {
|
|
"many_collection": "roles_sites",
|
|
"many_field": "roles_id",
|
|
"one_collection": "roles",
|
|
"one_field": "sites",
|
|
"one_collection_field": null,
|
|
"one_allowed_collections": null,
|
|
"junction_field": "sites_id",
|
|
"sort_field": null,
|
|
"one_deselect_action": "delete"
|
|
}
|
|
},
|
|
{
|
|
"collection": "roles_sites",
|
|
"field": "sites_id",
|
|
"related_collection": "sites",
|
|
"schema": {
|
|
"constraint_name": "roles_sites_sites_id_foreign",
|
|
"table": "roles_sites",
|
|
"column": "sites_id",
|
|
"foreign_key_schema": "public",
|
|
"foreign_key_table": "sites",
|
|
"foreign_key_column": "id",
|
|
"on_update": "NO ACTION",
|
|
"on_delete": "CASCADE"
|
|
},
|
|
"meta": {
|
|
"many_collection": "roles_sites",
|
|
"many_field": "sites_id",
|
|
"one_collection": "sites",
|
|
"one_field": "roles",
|
|
"one_collection_field": null,
|
|
"one_allowed_collections": null,
|
|
"junction_field": "roles_id",
|
|
"sort_field": null,
|
|
"one_deselect_action": "nullify"
|
|
}
|
|
},
|
|
{
|
|
"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": "NO ACTION"
|
|
},
|
|
"meta": {
|
|
"many_collection": "sites",
|
|
"many_field": "company_id",
|
|
"one_collection": "companies",
|
|
"one_field": "sites",
|
|
"one_collection_field": null,
|
|
"one_allowed_collections": null,
|
|
"junction_field": null,
|
|
"sort_field": null,
|
|
"one_deselect_action": "nullify"
|
|
}
|
|
},
|
|
{
|
|
"collection": "sites",
|
|
"field": "user_created",
|
|
"related_collection": "directus_users",
|
|
"schema": {
|
|
"constraint_name": "sites_user_created_foreign",
|
|
"table": "sites",
|
|
"column": "user_created",
|
|
"foreign_key_schema": "public",
|
|
"foreign_key_table": "directus_users",
|
|
"foreign_key_column": "id",
|
|
"on_update": "NO ACTION",
|
|
"on_delete": "NO ACTION"
|
|
},
|
|
"meta": {
|
|
"many_collection": "sites",
|
|
"many_field": "user_created",
|
|
"one_collection": "directus_users",
|
|
"one_field": null,
|
|
"one_collection_field": null,
|
|
"one_allowed_collections": null,
|
|
"junction_field": null,
|
|
"sort_field": null,
|
|
"one_deselect_action": "nullify"
|
|
}
|
|
},
|
|
{
|
|
"collection": "sites",
|
|
"field": "user_updated",
|
|
"related_collection": "directus_users",
|
|
"schema": {
|
|
"constraint_name": "sites_user_updated_foreign",
|
|
"table": "sites",
|
|
"column": "user_updated",
|
|
"foreign_key_schema": "public",
|
|
"foreign_key_table": "directus_users",
|
|
"foreign_key_column": "id",
|
|
"on_update": "NO ACTION",
|
|
"on_delete": "NO ACTION"
|
|
},
|
|
"meta": {
|
|
"many_collection": "sites",
|
|
"many_field": "user_updated",
|
|
"one_collection": "directus_users",
|
|
"one_field": null,
|
|
"one_collection_field": null,
|
|
"one_allowed_collections": null,
|
|
"junction_field": null,
|
|
"sort_field": null,
|
|
"one_deselect_action": "nullify"
|
|
}
|
|
},
|
|
{
|
|
"collection": "users",
|
|
"field": "user_updated",
|
|
"related_collection": "directus_users",
|
|
"schema": {
|
|
"constraint_name": "users_user_updated_foreign",
|
|
"table": "users",
|
|
"column": "user_updated",
|
|
"foreign_key_schema": "public",
|
|
"foreign_key_table": "directus_users",
|
|
"foreign_key_column": "id",
|
|
"on_update": "NO ACTION",
|
|
"on_delete": "NO ACTION"
|
|
},
|
|
"meta": {
|
|
"many_collection": "users",
|
|
"many_field": "user_updated",
|
|
"one_collection": "directus_users",
|
|
"one_field": null,
|
|
"one_collection_field": null,
|
|
"one_allowed_collections": null,
|
|
"junction_field": null,
|
|
"sort_field": null,
|
|
"one_deselect_action": "nullify"
|
|
}
|
|
},
|
|
{
|
|
"collection": "users",
|
|
"field": "user_created",
|
|
"related_collection": "directus_users",
|
|
"schema": {
|
|
"constraint_name": "users_user_created_foreign",
|
|
"table": "users",
|
|
"column": "user_created",
|
|
"foreign_key_schema": "public",
|
|
"foreign_key_table": "directus_users",
|
|
"foreign_key_column": "id",
|
|
"on_update": "NO ACTION",
|
|
"on_delete": "NO ACTION"
|
|
},
|
|
"meta": {
|
|
"many_collection": "users",
|
|
"many_field": "user_created",
|
|
"one_collection": "directus_users",
|
|
"one_field": null,
|
|
"one_collection_field": null,
|
|
"one_allowed_collections": null,
|
|
"junction_field": null,
|
|
"sort_field": null,
|
|
"one_deselect_action": "nullify"
|
|
}
|
|
},
|
|
{
|
|
"collection": "users_sites",
|
|
"field": "sites_id",
|
|
"related_collection": "sites",
|
|
"schema": {
|
|
"constraint_name": "users_sites_sites_id_foreign",
|
|
"table": "users_sites",
|
|
"column": "sites_id",
|
|
"foreign_key_schema": "public",
|
|
"foreign_key_table": "sites",
|
|
"foreign_key_column": "id",
|
|
"on_update": "NO ACTION",
|
|
"on_delete": "CASCADE"
|
|
},
|
|
"meta": {
|
|
"many_collection": "users_sites",
|
|
"many_field": "sites_id",
|
|
"one_collection": "sites",
|
|
"one_field": "users",
|
|
"one_collection_field": null,
|
|
"one_allowed_collections": null,
|
|
"junction_field": "users_id",
|
|
"sort_field": null,
|
|
"one_deselect_action": "nullify"
|
|
}
|
|
},
|
|
{
|
|
"collection": "users_sites",
|
|
"field": "users_id",
|
|
"related_collection": "users",
|
|
"schema": {
|
|
"constraint_name": "users_sites_users_id_foreign",
|
|
"table": "users_sites",
|
|
"column": "users_id",
|
|
"foreign_key_schema": "public",
|
|
"foreign_key_table": "users",
|
|
"foreign_key_column": "id",
|
|
"on_update": "NO ACTION",
|
|
"on_delete": "CASCADE"
|
|
},
|
|
"meta": {
|
|
"many_collection": "users_sites",
|
|
"many_field": "users_id",
|
|
"one_collection": "users",
|
|
"one_field": "sites",
|
|
"one_collection_field": null,
|
|
"one_allowed_collections": null,
|
|
"junction_field": "sites_id",
|
|
"sort_field": null,
|
|
"one_deselect_action": "delete"
|
|
}
|
|
},
|
|
{
|
|
"collection": "systems",
|
|
"field": "user_created",
|
|
"related_collection": "directus_users",
|
|
"schema": {
|
|
"constraint_name": "systems_user_created_foreign",
|
|
"table": "systems",
|
|
"column": "user_created",
|
|
"foreign_key_schema": "public",
|
|
"foreign_key_table": "directus_users",
|
|
"foreign_key_column": "id",
|
|
"on_update": "NO ACTION",
|
|
"on_delete": "NO ACTION"
|
|
},
|
|
"meta": {
|
|
"many_collection": "systems",
|
|
"many_field": "user_created",
|
|
"one_collection": "directus_users",
|
|
"one_field": null,
|
|
"one_collection_field": null,
|
|
"one_allowed_collections": null,
|
|
"junction_field": null,
|
|
"sort_field": null,
|
|
"one_deselect_action": "nullify"
|
|
}
|
|
},
|
|
{
|
|
"collection": "systems",
|
|
"field": "user_updated",
|
|
"related_collection": "directus_users",
|
|
"schema": {
|
|
"constraint_name": "systems_user_updated_foreign",
|
|
"table": "systems",
|
|
"column": "user_updated",
|
|
"foreign_key_schema": "public",
|
|
"foreign_key_table": "directus_users",
|
|
"foreign_key_column": "id",
|
|
"on_update": "NO ACTION",
|
|
"on_delete": "NO ACTION"
|
|
},
|
|
"meta": {
|
|
"many_collection": "systems",
|
|
"many_field": "user_updated",
|
|
"one_collection": "directus_users",
|
|
"one_field": null,
|
|
"one_collection_field": null,
|
|
"one_allowed_collections": null,
|
|
"junction_field": null,
|
|
"sort_field": null,
|
|
"one_deselect_action": "nullify"
|
|
}
|
|
}
|
|
]
|
|
}
|