{
"fields": {
"name": {
"type": "varchar",
"required": true,
"trim": true,
"isMultilang": true
},
"description": {
"type": "text",
"required": false,
"rows": 4,
"lengthOfCut": 400,
"seeMoreDisabled": false,
"readOnly": false,
"tooltip": false,
"isCustom": false,
"isMultilang": true
},
"code": {
"type": "varchar",
"layoutMassUpdateDisabled": true,
"required": true,
"trim": true,
"emHidden": true,
"view": "pim:views/fields/code-from-name"
},
"isActive": {
"notNull": true,
"type": "bool",
"default": true,
"audited": false,
"readOnly": true,
"tooltip": false,
"isCustom": false,
"layoutDetailDisabled": true,
"layoutFiltersDisabled": true,
"layoutMassUpdateDisabled": true,
"layoutListDisabled": true
},
"createdAt": {
"type": "datetime",
"readOnly": true
},
"modifiedAt": {
"type": "datetime",
"readOnly": true
},
"createdBy": {
"type": "link",
"readOnly": true,
"view": "views/fields/user"
},
"modifiedBy": {
"type": "link",
"readOnly": true,
"view": "views/fields/user"
},
"ownerUser": {
"type": "link",
"required": true,
"view": "views/fields/owner-user"
},
"assignedUser": {
"type": "link",
"required": true,
"view": "views/fields/assigned-user"
},
"teams": {
"type": "linkMultiple",
"view": "views/fields/teams"
},
"attributes": {
"type": "linkMultiple",
"layoutDetailDisabled": true,
"layoutListDisabled": true,
"layoutMassUpdateDisabled": true,
"noLoad": true,
"importDisabled": true,
"isCustom": false
},
"sortOrder": {
"type": "int",
"required": false,
"default": 0,
"disableFormatting": false,
"audited": false,
"readOnly": false,
"tooltip": false,
"isCustom": false
}
},
"links": {
"createdBy": {
"type": "belongsTo",
"entity": "User"
},
"modifiedBy": {
"type": "belongsTo",
"entity": "User"
},
"ownerUser": {
"type": "belongsTo",
"entity": "User"
},
"assignedUser": {
"type": "belongsTo",
"entity": "User"
},
"teams": {
"type": "hasMany",
"entity": "Team",
"relationName": "EntityTeam",
"layoutRelationshipsDisabled": true
},
"attributes": {
"type": "hasMany",
"foreign": "attributeGroup",
"entity": "Attribute",
"audited": false,
"isCustom": false
}
},
"collection": {
"sortBy": "createdAt",
"asc": false
},
"indexes": {
"ownerUser": {
"columns": [
"ownerUserId",
"deleted"
]
},
"assignedUser": {
"columns": [
"assignedUserId",
"deleted"
]
}
}
}
|