{
"fields": {
"name": {
"type": "varchar",
"required": true,
"trim": true,
"isMultilang": true
},
"code": {
"type": "varchar",
"layoutMassUpdateDisabled": true,
"required": true,
"trim": true,
"emHidden": true,
"view": "pim:views/fields/code-from-name"
},
"description": {
"type": "text",
"isMultilang": 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"
},
"assignedUser": {
"type": "link",
"required": true,
"view": "views/fields/assigned-user"
},
"teams": {
"type": "linkMultiple",
"view": "views/fields/teams"
},
"isActive": {
"type": "bool"
},
"products": {
"type": "linkMultiple",
"readOnly": true,
"noLoad": true
},
"productsCount": {
"type": "int",
"readOnly": true,
"notStorable": true,
"layoutDetailDisabled": true,
"layoutDetailSmallDisabled": true,
"layoutListDisabled": true,
"layoutListSmallDisabled": true,
"layoutMassUpdateDisabled": true
},
"categories": {
"type": "linkMultiple",
"layoutDetailDisabled": true,
"layoutDetailSmallDisabled": true,
"noLoad": true
}
},
"links": {
"createdBy": {
"type": "belongsTo",
"entity": "User"
},
"modifiedBy": {
"type": "belongsTo",
"entity": "User"
},
"assignedUser": {
"type": "belongsTo",
"entity": "User"
},
"teams": {
"type": "hasMany",
"entity": "Team",
"relationName": "EntityTeam",
"layoutRelationshipsDisabled": true
},
"products": {
"type": "hasMany",
"foreign": "catalog",
"entity": "Product"
},
"categories": {
"type": "hasMany",
"relationName": "catalogCategory",
"foreign": "catalogs",
"entity": "Category"
}
},
"collection": {
"sortBy": "createdAt",
"asc": false
},
"indexes": {
"name": {
"columns": [
"name",
"deleted"
]
},
"assignedUser": {
"columns": [
"assignedUserId",
"deleted"
]
}
}
}
|