- Модуль: bizproc
- Путь к файлу: ~/bitrix/modules/bizproc/lib/script/entity/script.php
- Класс: BitrixBizprocScriptEntityScriptTable
- Вызов: ScriptTable::getMap
static function getMap()
{
return [
'ID' => [
'data_type' => 'integer',
'primary' => true,
],
'MODULE_ID' => [
'data_type' => 'string'
],
'ENTITY' => [
'data_type' => 'string'
],
'DOCUMENT_TYPE' => [
'data_type' => 'string'
],
'NAME' => [
'data_type' => 'string'
],
'DESCRIPTION' => [
'data_type' => 'string'
],
'WORKFLOW_TEMPLATE_ID' => [
'data_type' => 'integer'
],
'WORKFLOW_TEMPLATE' => array(
'data_type' => BitrixBizprocWorkflowTemplateEntityWorkflowTemplateTable::class,
'reference' => array(
'=this.WORKFLOW_TEMPLATE_ID' => 'ref.ID'
),
'join_type' => 'LEFT'
),
'CREATED_DATE' => [
'data_type' => 'datetime'
],
'CREATED_BY' => [
'data_type' => 'integer'
],
'MODIFIED_DATE' => [
'data_type' => 'datetime'
],
'MODIFIED_BY' => [
'data_type' => 'integer'
],
'ORIGINATOR_ID' => [
'data_type' => 'string'
],
'ORIGIN_ID' => [
'data_type' => 'string'
],
'SORT' => [
'data_type' => 'integer',
'default_value' => 10
],
'ACTIVE' => [
'data_type' => 'boolean',
'values' => ['N', 'Y'],
'default_value' => 'Y'
],
];
}