Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save labiak/cbb6de64dcbc8cd66c67611c9a9daa9d to your computer and use it in GitHub Desktop.
Save labiak/cbb6de64dcbc8cd66c67611c9a9daa9d to your computer and use it in GitHub Desktop.
plugin_content-manager_schema in store_core of strapi-based project
{
"generalSettings": {
"search": true,
"filters": true,
"bulkActions": true,
"pageEntries": 10
},
"models": {
"plugins": {
"upload": {
"file": {
"pageEntries": 10,
"loadedModel": {
"name": {
"type": "String",
"configurable": false,
"required": true
},
"hash": {
"type": "String",
"configurable": false,
"required": true
},
"sha256": {
"type": "String",
"configurable": false
},
"ext": {
"type": "String",
"configurable": false
},
"mime": {
"type": "String",
"configurable": false,
"required": true
},
"size": {
"type": "String",
"configurable": false,
"required": true
},
"url": {
"type": "String",
"configurable": false,
"required": true
},
"provider": {
"type": "String",
"configurable": false,
"required": true
},
"related": [
{
"ref": {
"refPath": "related.kind"
}
}
]
},
"listDisplay": [
{
"name": "_id",
"label": "Id",
"type": "string",
"sortable": true,
"searchable": true
},
{
"label": "Name",
"description": "",
"type": "string",
"disabled": false,
"name": "name",
"sortable": true,
"searchable": true
},
{
"label": "Hash",
"description": "",
"type": "string",
"disabled": false,
"name": "hash",
"sortable": true,
"searchable": true
},
{
"label": "Sha256",
"description": "",
"type": "string",
"disabled": false,
"name": "sha256",
"sortable": true,
"searchable": true
},
{
"label": "Ext",
"description": "",
"type": "string",
"disabled": false,
"name": "ext",
"sortable": true,
"searchable": true
}
],
"search": true,
"collectionName": "upload_file",
"orm": "mongoose",
"bulkActions": true,
"info": {
"name": "file",
"description": ""
},
"globalName": "UploadFile",
"associations": [
{
"alias": "related",
"type": "collection",
"related": [
"UsersPermissionsUser"
],
"nature": "manyMorphToOne",
"autoPopulate": true,
"filter": "field"
}
],
"label": "File",
"attributes": {
"name": {
"type": "string",
"configurable": false,
"required": true
},
"hash": {
"type": "string",
"configurable": false,
"required": true
},
"sha256": {
"type": "string",
"configurable": false
},
"ext": {
"type": "string",
"configurable": false
},
"mime": {
"type": "string",
"configurable": false,
"required": true
},
"size": {
"type": "string",
"configurable": false,
"required": true
},
"url": {
"type": "string",
"configurable": false,
"required": true
},
"provider": {
"type": "string",
"configurable": false,
"required": true
},
"related": {
"collection": "*",
"filter": "field",
"configurable": false
}
},
"relations": {
"related": {
"alias": "related",
"type": "collection",
"related": [
"UsersPermissionsUser"
],
"nature": "manyMorphToOne",
"autoPopulate": true,
"filter": "field",
"description": "",
"label": "Related",
"displayedAttribute": "id"
}
},
"editDisplay": {
"availableFields": {
"name": {
"label": "Name",
"type": "string",
"description": "",
"name": "name",
"editable": true,
"placeholder": ""
},
"hash": {
"label": "Hash",
"type": "string",
"description": "",
"name": "hash",
"editable": true,
"placeholder": ""
},
"sha256": {
"label": "Sha256",
"type": "string",
"description": "",
"name": "sha256",
"editable": true,
"placeholder": ""
},
"ext": {
"label": "Ext",
"type": "string",
"description": "",
"name": "ext",
"editable": true,
"placeholder": ""
},
"mime": {
"label": "Mime",
"type": "string",
"description": "",
"name": "mime",
"editable": true,
"placeholder": ""
},
"size": {
"label": "Size",
"type": "string",
"description": "",
"name": "size",
"editable": true,
"placeholder": ""
},
"url": {
"label": "Url",
"type": "string",
"description": "",
"name": "url",
"editable": true,
"placeholder": ""
},
"provider": {
"label": "Provider",
"type": "string",
"description": "",
"name": "provider",
"editable": true,
"placeholder": ""
}
},
"fields": [
"name",
"hash",
"sha256",
"ext",
"mime",
"size",
"url",
"provider"
],
"relations": []
},
"labelPlural": "Files",
"fields": {
"name": {
"label": "Name",
"description": "",
"type": "string",
"disabled": false,
"name": "name",
"sortable": true,
"searchable": true
},
"hash": {
"label": "Hash",
"description": "",
"type": "string",
"disabled": false,
"name": "hash",
"sortable": true,
"searchable": true
},
"sha256": {
"label": "Sha256",
"description": "",
"type": "string",
"disabled": false,
"name": "sha256",
"sortable": true,
"searchable": true
},
"ext": {
"label": "Ext",
"description": "",
"type": "string",
"disabled": false,
"name": "ext",
"sortable": true,
"searchable": true
},
"mime": {
"label": "Mime",
"description": "",
"type": "string",
"disabled": false,
"name": "mime",
"sortable": true,
"searchable": true
},
"size": {
"label": "Size",
"description": "",
"type": "string",
"disabled": false,
"name": "size",
"sortable": true,
"searchable": true
},
"url": {
"label": "Url",
"description": "",
"type": "string",
"disabled": false,
"name": "url",
"sortable": true,
"searchable": true
},
"provider": {
"label": "Provider",
"description": "",
"type": "string",
"disabled": false,
"name": "provider",
"sortable": true,
"searchable": true
}
},
"filters": true,
"primaryKey": "_id",
"globalId": "UploadFile",
"sort": "ASC",
"connection": "default",
"defaultSort": "_id"
}
},
"users-permissions": {
"permission": {
"pageEntries": 10,
"loadedModel": {
"type": {
"type": "String",
"required": true,
"configurable": false
},
"controller": {
"type": "String",
"required": true,
"configurable": false
},
"action": {
"type": "String",
"required": true,
"configurable": false
},
"enabled": {
"type": "Boolean",
"required": true,
"configurable": false
},
"policy": {
"type": "String",
"configurable": false
},
"role": {
"ref": "UsersPermissionsRole"
}
},
"listDisplay": [
{
"name": "_id",
"label": "Id",
"type": "string",
"sortable": true,
"searchable": true
},
{
"label": "Type",
"description": "",
"type": "string",
"disabled": false,
"name": "type",
"sortable": true,
"searchable": true
},
{
"label": "Controller",
"description": "",
"type": "string",
"disabled": false,
"name": "controller",
"sortable": true,
"searchable": true
},
{
"label": "Action",
"description": "",
"type": "string",
"disabled": false,
"name": "action",
"sortable": true,
"searchable": true
},
{
"label": "Enabled",
"description": "",
"type": "boolean",
"disabled": false,
"name": "enabled",
"sortable": true,
"searchable": true
}
],
"search": true,
"collectionName": "users-permissions_permission",
"orm": "mongoose",
"bulkActions": true,
"info": {
"name": "permission",
"description": ""
},
"globalName": "UsersPermissionsPermission",
"associations": [
{
"alias": "role",
"type": "model",
"model": "role",
"via": "permissions",
"nature": "manyToOne",
"autoPopulate": true,
"dominant": true,
"plugin": "users-permissions"
}
],
"label": "Permission",
"attributes": {
"type": {
"type": "string",
"required": true,
"configurable": false
},
"controller": {
"type": "string",
"required": true,
"configurable": false
},
"action": {
"type": "string",
"required": true,
"configurable": false
},
"enabled": {
"type": "boolean",
"required": true,
"configurable": false
},
"policy": {
"type": "string",
"configurable": false
},
"role": {
"model": "role",
"via": "permissions",
"plugin": "users-permissions",
"configurable": false
}
},
"relations": {
"role": {
"alias": "role",
"type": "model",
"model": "role",
"via": "permissions",
"nature": "manyToOne",
"autoPopulate": true,
"dominant": true,
"plugin": "users-permissions",
"description": "",
"label": "Role",
"displayedAttribute": "name"
}
},
"editDisplay": {
"availableFields": {
"type": {
"label": "Type",
"type": "string",
"description": "",
"name": "type",
"editable": true,
"placeholder": ""
},
"controller": {
"label": "Controller",
"type": "string",
"description": "",
"name": "controller",
"editable": true,
"placeholder": ""
},
"action": {
"label": "Action",
"type": "string",
"description": "",
"name": "action",
"editable": true,
"placeholder": ""
},
"enabled": {
"label": "Enabled",
"type": "boolean",
"description": "",
"name": "enabled",
"editable": true,
"placeholder": ""
},
"policy": {
"label": "Policy",
"type": "string",
"description": "",
"name": "policy",
"editable": true,
"placeholder": ""
}
},
"fields": [
"type",
"controller",
"action",
"enabled",
"policy"
],
"relations": [
"role"
]
},
"labelPlural": "Permissions",
"fields": {
"type": {
"label": "Type",
"description": "",
"type": "string",
"disabled": false,
"name": "type",
"sortable": true,
"searchable": true
},
"controller": {
"label": "Controller",
"description": "",
"type": "string",
"disabled": false,
"name": "controller",
"sortable": true,
"searchable": true
},
"action": {
"label": "Action",
"description": "",
"type": "string",
"disabled": false,
"name": "action",
"sortable": true,
"searchable": true
},
"enabled": {
"label": "Enabled",
"description": "",
"type": "boolean",
"disabled": false,
"name": "enabled",
"sortable": true,
"searchable": true
},
"policy": {
"label": "Policy",
"description": "",
"type": "string",
"disabled": false,
"name": "policy",
"sortable": true,
"searchable": true
}
},
"filters": true,
"primaryKey": "_id",
"globalId": "UsersPermissionsPermission",
"sort": "ASC",
"connection": "default",
"defaultSort": "_id"
},
"role": {
"pageEntries": 10,
"loadedModel": {
"name": {
"type": "String",
"minLength": 3,
"required": true,
"configurable": false
},
"description": {
"type": "String",
"configurable": false
},
"type": {
"type": "String",
"unique": true,
"configurable": false
},
"permissions": {
"type": "virtual",
"ref": "UsersPermissionsPermission",
"via": "role",
"justOne": false
},
"users": {
"type": "virtual",
"ref": "UsersPermissionsUser",
"via": "role",
"justOne": false
}
},
"listDisplay": [
{
"name": "_id",
"label": "Id",
"type": "string",
"sortable": true,
"searchable": true
},
{
"label": "Name",
"description": "",
"type": "string",
"disabled": false,
"name": "name",
"sortable": true,
"searchable": true
},
{
"label": "Description",
"description": "",
"type": "string",
"disabled": false,
"name": "description",
"sortable": true,
"searchable": true
},
{
"label": "Type",
"description": "",
"type": "string",
"disabled": false,
"name": "type",
"sortable": true,
"searchable": true
}
],
"search": true,
"collectionName": "users-permissions_role",
"orm": "mongoose",
"bulkActions": true,
"info": {
"name": "role",
"description": ""
},
"globalName": "UsersPermissionsRole",
"associations": [
{
"alias": "permissions",
"type": "collection",
"collection": "permission",
"via": "role",
"nature": "oneToMany",
"autoPopulate": true,
"dominant": true,
"plugin": "users-permissions"
},
{
"alias": "users",
"type": "collection",
"collection": "user",
"via": "role",
"nature": "oneToMany",
"autoPopulate": true,
"dominant": true,
"plugin": "users-permissions"
}
],
"label": "Role",
"attributes": {
"name": {
"type": "string",
"minLength": 3,
"required": true,
"configurable": false
},
"description": {
"type": "string",
"configurable": false
},
"type": {
"type": "string",
"unique": true,
"configurable": false
},
"permissions": {
"collection": "permission",
"via": "role",
"plugin": "users-permissions",
"configurable": false,
"isVirtual": true
},
"users": {
"collection": "user",
"via": "role",
"plugin": "users-permissions",
"isVirtual": true
}
},
"relations": {
"permissions": {
"alias": "permissions",
"type": "collection",
"collection": "permission",
"via": "role",
"nature": "oneToMany",
"autoPopulate": true,
"dominant": true,
"plugin": "users-permissions",
"description": "",
"label": "Permissions",
"displayedAttribute": "type"
},
"users": {
"alias": "users",
"type": "collection",
"collection": "user",
"via": "role",
"nature": "oneToMany",
"autoPopulate": true,
"dominant": true,
"plugin": "users-permissions",
"description": "",
"label": "Users",
"displayedAttribute": "username"
}
},
"editDisplay": {
"availableFields": {
"name": {
"label": "Name",
"type": "string",
"description": "",
"name": "name",
"editable": true,
"placeholder": ""
},
"description": {
"label": "Description",
"type": "string",
"description": "",
"name": "description",
"editable": true,
"placeholder": ""
},
"type": {
"label": "Type",
"type": "string",
"description": "",
"name": "type",
"editable": true,
"placeholder": ""
}
},
"fields": [
"name",
"description",
"type"
],
"relations": [
"permissions",
"users"
]
},
"labelPlural": "Roles",
"fields": {
"name": {
"label": "Name",
"description": "",
"type": "string",
"disabled": false,
"name": "name",
"sortable": true,
"searchable": true
},
"description": {
"label": "Description",
"description": "",
"type": "string",
"disabled": false,
"name": "description",
"sortable": true,
"searchable": true
},
"type": {
"label": "Type",
"description": "",
"type": "string",
"disabled": false,
"name": "type",
"sortable": true,
"searchable": true
}
},
"filters": true,
"primaryKey": "_id",
"globalId": "UsersPermissionsRole",
"sort": "ASC",
"connection": "default",
"defaultSort": "_id"
},
"user": {
"pageEntries": 10,
"loadedModel": {
"username": {
"type": "String",
"minLength": 3,
"unique": true,
"configurable": false,
"required": true
},
"email": {
"type": "String",
"minLength": 6,
"configurable": false,
"required": true
},
"provider": {
"type": "String",
"configurable": false
},
"password": {
"type": "String",
"minLength": 6,
"configurable": false,
"private": true
},
"resetPasswordToken": {
"type": "String",
"configurable": false,
"private": true
},
"confirmed": {
"type": "Boolean",
"default": false,
"configurable": false
},
"blocked": {
"type": "Boolean",
"default": false,
"configurable": false
},
"role": {
"ref": "UsersPermissionsRole"
},
"givenName": {
"type": "String",
"maxLength": 64,
"configurable": false
},
"familyName": {
"type": "String",
"maxLength": 64,
"configurable": false
},
"address": {
"type": "String",
"maxLength": 64,
"configurable": false
},
"telephone": {
"type": "String",
"maxLength": 32
},
"image": {
"type": "virtual",
"ref": "UploadFile",
"via": "related.ref",
"justOne": true
}
},
"listDisplay": [
{
"name": "_id",
"label": "Id",
"type": "string",
"sortable": true,
"searchable": true
},
{
"label": "Username",
"description": "",
"type": "string",
"disabled": false,
"name": "username",
"sortable": true,
"searchable": true
},
{
"label": "Email",
"description": "",
"type": "email",
"disabled": false,
"name": "email",
"sortable": true,
"searchable": true
},
{
"label": "Provider",
"description": "",
"type": "string",
"disabled": false,
"name": "provider",
"sortable": true,
"searchable": true
},
{
"label": "Password",
"description": "",
"type": "password",
"disabled": false,
"name": "password",
"sortable": true,
"searchable": true
}
],
"search": true,
"collectionName": "users-permissions_user",
"orm": "mongoose",
"bulkActions": true,
"info": {
"name": "user",
"description": ""
},
"globalName": "UsersPermissionsUser",
"associations": [
{
"alias": "role",
"type": "model",
"model": "role",
"via": "users",
"nature": "manyToOne",
"autoPopulate": true,
"dominant": true,
"plugin": "users-permissions"
},
{
"alias": "image",
"type": "model",
"model": "file",
"via": "related",
"nature": "oneToManyMorph",
"autoPopulate": true,
"dominant": true,
"plugin": "upload",
"filter": "field"
}
],
"label": "User",
"attributes": {
"username": {
"type": "string",
"minLength": 3,
"unique": true,
"configurable": false,
"required": true
},
"email": {
"type": "email",
"minLength": 6,
"configurable": false,
"required": true
},
"password": {
"type": "password",
"minLength": 6,
"configurable": false,
"private": true
},
"confirmed": {
"type": "boolean",
"default": false,
"configurable": false
},
"blocked": {
"type": "boolean",
"default": false,
"configurable": false
},
"role": {
"model": "role",
"via": "users",
"plugin": "users-permissions",
"configurable": false
},
"givenName": {
"type": "string",
"maxLength": 64,
"configurable": false
},
"familyName": {
"type": "string",
"maxLength": 64,
"configurable": false
},
"address": {
"type": "string",
"maxLength": 64,
"configurable": false
},
"telephone": {
"type": "string",
"maxLength": 32
},
"image": {
"model": "file",
"via": "related",
"plugin": "upload",
"isVirtual": true
}
},
"relations": {
"role": {
"alias": "role",
"type": "model",
"model": "role",
"via": "users",
"nature": "manyToOne",
"autoPopulate": true,
"dominant": true,
"plugin": "users-permissions",
"description": "",
"label": "Role",
"displayedAttribute": "name"
},
"image": {
"alias": "image",
"type": "model",
"model": "file",
"via": "related",
"nature": "oneToManyMorph",
"autoPopulate": true,
"dominant": true,
"plugin": "upload",
"filter": "field",
"description": "",
"label": "Image",
"displayedAttribute": "name"
}
},
"editDisplay": {
"availableFields": {
"telephone": {
"label": "Telephone",
"type": "string",
"description": "",
"name": "telephone",
"editable": true,
"placeholder": ""
},
"givenName": {
"label": "GivenName",
"type": "string",
"description": "",
"name": "givenName",
"editable": true,
"placeholder": ""
},
"blocked": {
"label": "Blocked",
"type": "boolean",
"description": "",
"name": "blocked",
"editable": true,
"placeholder": ""
},
"familyName": {
"label": "FamilyName",
"type": "string",
"description": "",
"name": "familyName",
"editable": true,
"placeholder": ""
},
"resetPasswordToken": {
"label": "ResetPasswordToken",
"type": "string",
"description": "",
"name": "resetPasswordToken",
"editable": true,
"placeholder": ""
},
"provider": {
"label": "Provider",
"type": "string",
"description": "",
"name": "provider",
"editable": true,
"placeholder": ""
},
"address": {
"label": "Address",
"type": "string",
"description": "",
"name": "address",
"editable": true,
"placeholder": ""
},
"username": {
"label": "Username",
"type": "string",
"description": "",
"name": "username",
"editable": true,
"placeholder": ""
},
"image": {
"description": "",
"editable": true,
"label": "Image",
"multiple": false,
"name": "image",
"placeholder": "",
"type": "file",
"disabled": false
},
"password": {
"label": "Password",
"type": "password",
"description": "",
"name": "password",
"editable": true,
"placeholder": ""
},
"email": {
"label": "Email",
"type": "email",
"description": "",
"name": "email",
"editable": true,
"placeholder": ""
},
"confirmed": {
"label": "Confirmed",
"type": "boolean",
"description": "",
"name": "confirmed",
"editable": true,
"placeholder": ""
}
},
"fields": [
"username",
"email",
"provider",
"password",
"resetPasswordToken",
"confirmed",
"blocked",
"givenName",
"familyName",
"address",
"telephone",
"image"
],
"relations": [
"role"
]
},
"labelPlural": "Users",
"fields": {
"telephone": {
"label": "Telephone",
"description": "",
"type": "string",
"disabled": false,
"name": "telephone",
"sortable": true,
"searchable": true
},
"givenName": {
"label": "GivenName",
"description": "",
"type": "string",
"disabled": false,
"name": "givenName",
"sortable": true,
"searchable": true
},
"blocked": {
"label": "Blocked",
"description": "",
"type": "boolean",
"disabled": false,
"name": "blocked",
"sortable": true,
"searchable": true
},
"familyName": {
"label": "FamilyName",
"description": "",
"type": "string",
"disabled": false,
"name": "familyName",
"sortable": true,
"searchable": true
},
"resetPasswordToken": {
"label": "ResetPasswordToken",
"description": "",
"type": "string",
"disabled": false,
"name": "resetPasswordToken",
"sortable": true,
"searchable": true
},
"provider": {
"label": "Provider",
"description": "",
"type": "string",
"disabled": false,
"name": "provider",
"sortable": true,
"searchable": true
},
"address": {
"label": "Address",
"description": "",
"type": "string",
"disabled": false,
"name": "address",
"sortable": true,
"searchable": true
},
"username": {
"label": "Username",
"description": "",
"type": "string",
"disabled": false,
"name": "username",
"sortable": true,
"searchable": true
},
"password": {
"label": "Password",
"description": "",
"type": "password",
"disabled": false,
"name": "password",
"sortable": true,
"searchable": true
},
"email": {
"label": "Email",
"description": "",
"type": "email",
"disabled": false,
"name": "email",
"sortable": true,
"searchable": true
},
"confirmed": {
"label": "Confirmed",
"description": "",
"type": "boolean",
"disabled": false,
"name": "confirmed",
"sortable": true,
"searchable": true
}
},
"filters": true,
"primaryKey": "_id",
"globalId": "UsersPermissionsUser",
"sort": "ASC",
"connection": "default",
"defaultSort": "_id"
}
}
},
"thing": {
"pageEntries": 10,
"loadedModel": {
"uuid": {
"type": "String",
"required": true,
"unique": true,
"sparse": true,
"private": true,
"configurable": false,
"maxLength": 4096
},
"arn": {
"type": "String",
"unique": true,
"sparse": true,
"configurable": false,
"maxLength": 4096
},
"thingName": {
"type": "String",
"unique": true,
"sparse": true,
"configurable": false,
"maxLength": 4096
},
"topic": {
"type": "String",
"configurable": false,
"maxLength": 4096
},
"zone": {
"ref": "Zone"
},
"certificate": {
"ref": "Certificate"
},
"owner": {
"ref": "UsersPermissionsUser"
},
"story": {
"type": "Mixed",
"description": "Array of telemetry measurements with timestamp"
},
"active": {
"type": "Boolean",
"default": false,
"required": true
}
},
"listDisplay": [
{
"name": "_id",
"label": "Id",
"type": "string",
"sortable": true,
"searchable": true
},
{
"label": "Uuid",
"description": "",
"type": "string",
"disabled": false,
"name": "uuid",
"sortable": true,
"searchable": true
},
{
"label": "Arn",
"description": "",
"type": "string",
"disabled": false,
"name": "arn",
"sortable": true,
"searchable": true
},
{
"label": "Story",
"description": "",
"type": "json",
"disabled": false,
"name": "story",
"sortable": false,
"searchable": false
}
],
"search": true,
"collectionName": "thing",
"orm": "mongoose",
"bulkActions": true,
"info": {
"name": "thing",
"description": ""
},
"globalName": "Thing",
"associations": [
{
"alias": "zone",
"type": "model",
"model": "zone",
"nature": "manyToOne",
"autoPopulate": true,
"dominant": true
},
{
"alias": "certificate",
"type": "model",
"model": "certificate",
"nature": "oneWay",
"autoPopulate": true,
"dominant": true
},
{
"alias": "owner",
"type": "model",
"model": "user",
"nature": "oneWay",
"autoPopulate": true,
"dominant": true,
"plugin": "users-permissions"
}
],
"label": "Thing",
"attributes": {
"uuid": {
"type": "string",
"required": true,
"unique": true,
"sparse": true,
"private": true,
"configurable": false,
"maxLength": 4096
},
"arn": {
"type": "string",
"unique": true,
"sparse": true,
"configurable": false,
"maxLength": 4096
},
"thingName": {
"type": "string",
"unique": true,
"sparse": true,
"configurable": false,
"maxLength": 4096
},
"topic": {
"type": "string",
"configurable": false,
"maxLength": 4096
},
"zone": {
"model": "zone"
},
"certificate": {
"model": "certificate"
},
"owner": {
"model": "user",
"plugin": "users-permissions"
},
"story": {
"type": "json",
"description": "Array of telemetry measurements with timestamp"
},
"active": {
"type": "boolean",
"default": false,
"required": true
}
},
"relations": {
"zone": {
"alias": "zone",
"type": "model",
"model": "zone",
"nature": "manyToOne",
"autoPopulate": true,
"dominant": true,
"description": "",
"label": "Zone",
"displayedAttribute": "name"
},
"certificate": {
"alias": "certificate",
"type": "model",
"model": "certificate",
"nature": "oneWay",
"autoPopulate": true,
"dominant": true,
"description": "",
"label": "Certificate",
"displayedAttribute": "id"
},
"owner": {
"alias": "owner",
"type": "model",
"model": "user",
"nature": "oneWay",
"autoPopulate": true,
"dominant": true,
"plugin": "users-permissions",
"description": "",
"label": "Owner",
"displayedAttribute": "username"
}
},
"editDisplay": {
"availableFields": {
"uuid": {
"label": "Uuid",
"type": "string",
"description": "",
"name": "uuid",
"editable": true,
"placeholder": ""
},
"arn": {
"label": "Arn",
"type": "string",
"description": "",
"name": "arn",
"editable": true,
"placeholder": ""
},
"story": {
"label": "Story",
"type": "json",
"description": "",
"name": "story",
"editable": true,
"placeholder": ""
},
"thingName": {
"label": "ThingName",
"type": "string",
"description": "",
"name": "thingName",
"editable": true,
"placeholder": ""
},
"topic": {
"label": "Topic",
"type": "string",
"description": "",
"name": "topic",
"editable": true,
"placeholder": ""
},
"active": {
"label": "Active",
"type": "boolean",
"description": "",
"name": "active",
"editable": true,
"placeholder": ""
}
},
"fields": [
"uuid",
"arn",
"story",
"thingName",
"topic",
"active"
],
"relations": [
"zone",
"certificate",
"owner"
]
},
"labelPlural": "Things",
"fields": {
"uuid": {
"label": "Uuid",
"description": "",
"type": "string",
"disabled": false,
"name": "uuid",
"sortable": true,
"searchable": true
},
"arn": {
"label": "Arn",
"description": "",
"type": "string",
"disabled": false,
"name": "arn",
"sortable": true,
"searchable": true
},
"story": {
"label": "Story",
"description": "",
"type": "json",
"disabled": false,
"name": "story",
"sortable": false,
"searchable": false
},
"thingName": {
"label": "ThingName",
"description": "",
"type": "string",
"disabled": false,
"name": "thingName",
"sortable": true,
"searchable": true
},
"topic": {
"label": "Topic",
"description": "",
"type": "string",
"disabled": false,
"name": "topic",
"sortable": true,
"searchable": true
},
"active": {
"label": "Active",
"description": "",
"type": "boolean",
"disabled": false,
"name": "active",
"sortable": true,
"searchable": true
}
},
"filters": true,
"primaryKey": "_id",
"globalId": "Thing",
"sort": "ASC",
"connection": "default",
"defaultSort": "_id"
},
"zone": {
"pageEntries": 10,
"loadedModel": {
"parent": {
"ref": "Zone"
},
"children": {
"type": "virtual",
"ref": "Zone",
"via": "parent",
"justOne": false
},
"things": {
"type": "virtual",
"ref": "Thing",
"via": "zone",
"justOne": false
},
"name": {
"type": "String"
},
"owner": {
"ref": "UsersPermissionsUser"
}
},
"listDisplay": [
{
"name": "_id",
"label": "Id",
"type": "string",
"sortable": true,
"searchable": true
}
],
"search": true,
"collectionName": "zone",
"orm": "mongoose",
"bulkActions": true,
"info": {
"name": "zone",
"description": ""
},
"globalName": "Zone",
"associations": [
{
"alias": "parent",
"type": "model",
"model": "zone",
"nature": "manyToOne",
"autoPopulate": true,
"dominant": true
},
{
"alias": "children",
"type": "collection",
"collection": "zone",
"via": "parent",
"nature": "oneToMany",
"autoPopulate": true,
"dominant": true
},
{
"alias": "things",
"type": "collection",
"collection": "thing",
"via": "zone",
"nature": "oneToMany",
"autoPopulate": true,
"dominant": true
},
{
"alias": "owner",
"type": "model",
"model": "user",
"nature": "oneWay",
"autoPopulate": true,
"dominant": true,
"plugin": "users-permissions"
}
],
"label": "Zone",
"attributes": {
"parent": {
"model": "zone"
},
"children": {
"collection": "zone",
"via": "parent",
"isVirtual": true
},
"things": {
"collection": "thing",
"via": "zone",
"isVirtual": true
},
"name": {
"type": "string"
},
"owner": {
"model": "user",
"plugin": "users-permissions"
}
},
"relations": {
"parent": {
"alias": "parent",
"type": "model",
"model": "zone",
"nature": "manyToOne",
"autoPopulate": true,
"dominant": true,
"description": "",
"label": "Parent",
"displayedAttribute": "name"
},
"children": {
"alias": "children",
"type": "collection",
"collection": "zone",
"via": "parent",
"nature": "oneToMany",
"autoPopulate": true,
"dominant": true,
"description": "",
"label": "Children",
"displayedAttribute": "name"
},
"things": {
"alias": "things",
"type": "collection",
"collection": "thing",
"via": "zone",
"nature": "oneToMany",
"autoPopulate": true,
"dominant": true,
"description": "",
"label": "Things",
"displayedAttribute": "uuid"
},
"owner": {
"alias": "owner",
"type": "model",
"model": "user",
"nature": "oneWay",
"autoPopulate": true,
"dominant": true,
"plugin": "users-permissions",
"description": "",
"label": "Owner",
"displayedAttribute": "username"
}
},
"editDisplay": {
"availableFields": {
"name": {
"label": "Name",
"type": "string",
"description": "",
"name": "name",
"editable": true,
"placeholder": ""
}
},
"fields": [
"name"
],
"relations": [
"parent",
"children",
"things",
"owner"
]
},
"labelPlural": "Zones",
"fields": {
"name": {
"label": "Name",
"description": "",
"type": "string",
"disabled": false,
"name": "name",
"sortable": true,
"searchable": true
}
},
"filters": true,
"primaryKey": "_id",
"globalId": "Zone",
"sort": "ASC",
"connection": "default",
"defaultSort": "_id"
},
"certificate": {
"pageEntries": 10,
"loadedModel": {
"id": {
"type": "String",
"unique": true,
"sparse": true,
"configurable": false,
"maxLength": 4096,
"description": "AWS IoT certificateId"
},
"arn": {
"type": "String",
"unique": true,
"sparse": true,
"configurable": false,
"maxLength": 4096,
"description": "AWS IoT certificateArn"
},
"clientCert": {
"type": "String",
"configurable": false,
"maxLength": 4096,
"private": true,
"description": "AWS IoT certificatePem if certPath is not set"
},
"publicKey": {
"type": "String",
"unique": true,
"sparse": true,
"configurable": false,
"maxLength": 4096
},
"privateKey": {
"type": "String",
"unique": true,
"sparse": true,
"configurable": false,
"maxLength": 4096,
"private": true,
"description": "AWS IoT keyPair.PrivateKey if keyPath is not set"
},
"keyPath": {
"type": "String",
"unique": true,
"sparse": true,
"configurable": false,
"maxLength": 4096
},
"certPath": {
"type": "String",
"unique": true,
"sparse": true,
"configurable": false,
"maxLength": 4096
},
"active": {
"type": "Boolean",
"default": false,
"required": true
}
},
"listDisplay": [
{
"name": "_id",
"label": "Id",
"type": "string",
"sortable": true,
"searchable": true
},
{
"label": "Id",
"description": "",
"type": "string",
"disabled": false,
"name": "id",
"sortable": true,
"searchable": true
},
{
"label": "Arn",
"description": "",
"type": "string",
"disabled": false,
"name": "arn",
"sortable": true,
"searchable": true
},
{
"label": "PublicKey",
"description": "",
"type": "string",
"disabled": false,
"name": "publicKey",
"sortable": true,
"searchable": true
}
],
"search": true,
"collectionName": "certificate",
"orm": "mongoose",
"bulkActions": true,
"info": {
"name": "Certificate",
"description": ""
},
"globalName": "Certificate",
"associations": [],
"label": "Certificate",
"attributes": {
"id": {
"type": "string",
"unique": true,
"sparse": true,
"configurable": false,
"maxLength": 4096,
"description": "AWS IoT certificateId"
},
"arn": {
"type": "string",
"unique": true,
"sparse": true,
"configurable": false,
"maxLength": 4096,
"description": "AWS IoT certificateArn"
},
"clientCert": {
"type": "string",
"configurable": false,
"maxLength": 4096,
"private": true,
"description": "AWS IoT certificatePem if certPath is not set"
},
"publicKey": {
"type": "string",
"unique": true,
"sparse": true,
"configurable": false,
"maxLength": 4096
},
"privateKey": {
"type": "string",
"unique": true,
"sparse": true,
"configurable": false,
"maxLength": 4096,
"private": true,
"description": "AWS IoT keyPair.PrivateKey if keyPath is not set"
},
"keyPath": {
"type": "string",
"unique": true,
"sparse": true,
"configurable": false,
"maxLength": 4096
},
"certPath": {
"type": "string",
"unique": true,
"sparse": true,
"configurable": false,
"maxLength": 4096
},
"active": {
"type": "boolean",
"default": false,
"required": true
}
},
"relations": {},
"editDisplay": {
"availableFields": {
"id": {
"label": "Id",
"type": "string",
"description": "",
"name": "id",
"editable": true,
"placeholder": ""
},
"arn": {
"label": "Arn",
"type": "string",
"description": "",
"name": "arn",
"editable": true,
"placeholder": ""
},
"publicKey": {
"label": "PublicKey",
"type": "string",
"description": "",
"name": "publicKey",
"editable": true,
"placeholder": ""
},
"privateKey": {
"label": "PrivateKey",
"type": "string",
"description": "",
"name": "privateKey",
"editable": true,
"placeholder": ""
},
"clientCert": {
"label": "ClientCert",
"type": "string",
"description": "",
"name": "clientCert",
"editable": true,
"placeholder": ""
},
"keyPath": {
"label": "KeyPath",
"type": "string",
"description": "",
"name": "keyPath",
"editable": true,
"placeholder": ""
},
"certPath": {
"label": "CertPath",
"type": "string",
"description": "",
"name": "certPath",
"editable": true,
"placeholder": ""
},
"active": {
"label": "Active",
"type": "boolean",
"description": "",
"name": "active",
"editable": true,
"placeholder": ""
}
},
"fields": [
"id",
"arn",
"pem",
"publicKey",
"privateKey",
"clientCert",
"keyPath",
"certPath",
"active"
],
"relations": []
},
"labelPlural": "Certificates",
"fields": {
"id": {
"label": "Id",
"description": "",
"type": "string",
"disabled": false,
"name": "id",
"sortable": true,
"searchable": true
},
"arn": {
"label": "Arn",
"description": "",
"type": "string",
"disabled": false,
"name": "arn",
"sortable": true,
"searchable": true
},
"publicKey": {
"label": "PublicKey",
"description": "",
"type": "string",
"disabled": false,
"name": "publicKey",
"sortable": true,
"searchable": true
},
"privateKey": {
"label": "PrivateKey",
"description": "",
"type": "string",
"disabled": false,
"name": "privateKey",
"sortable": true,
"searchable": true
},
"clientCert": {
"label": "ClientCert",
"description": "",
"type": "string",
"disabled": false,
"name": "clientCert",
"sortable": true,
"searchable": true
},
"keyPath": {
"label": "KeyPath",
"description": "",
"type": "string",
"disabled": false,
"name": "keyPath",
"sortable": true,
"searchable": true
},
"certPath": {
"label": "CertPath",
"description": "",
"type": "string",
"disabled": false,
"name": "certPath",
"sortable": true,
"searchable": true
},
"active": {
"label": "Active",
"description": "",
"type": "boolean",
"disabled": false,
"name": "active",
"sortable": true,
"searchable": true
}
},
"filters": true,
"primaryKey": "_id",
"globalId": "Certificate",
"sort": "ASC",
"connection": "default",
"defaultSort": "_id"
}
},
"layout": {
"user": {
"actions": {
"create": "User.create",
"update": "User.update",
"destroy": "User.destroy",
"deleteall": "User.destroyAll"
},
"attributes": {
"username": {
"className": "col-md-6"
},
"email": {
"className": "col-md-6"
},
"provider": {
"className": "d-none"
},
"resetPasswordToken": {
"className": "d-none"
},
"role": {
"className": "d-none"
}
}
},
"thing": {
"attributes": {}
},
"zone": {
"attributes": {}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment