Neur0toxine
5f69051859
* New module structure (refactoring) * Simple serializer and deserializer with models, new architecture * Move logic to strategies * Partial api client facade implementation (full implementation is not necessary for now) * Loyalty feature installer * Sms verification order (#167) * Make updater self-sufficient * Fix for order submit & fix for incorrect component rendering in the constructor * Fix for loyalty personal area error handling * Fix for cart component identity * Fix for softlock when customer cannot be registered in loyalty Co-authored-by: Сергей Чазов <45812598+Chazovs@users.noreply.github.com> Co-authored-by: Sergey Chazov <oitv18@gmail.com>
78 lines
2.2 KiB
PHP
78 lines
2.2 KiB
PHP
<?php
|
|
|
|
namespace Intaro\RetailCrm\Model\Bitrix\ORM;
|
|
|
|
use Bitrix\Main,
|
|
Bitrix\Main\Localization\Loc;
|
|
|
|
Loc::loadMessages(__FILE__);
|
|
|
|
/**
|
|
* Class UtsUserTable
|
|
*
|
|
* Fields:
|
|
* <ul>
|
|
* <li> VALUE_ID int mandatory
|
|
* <li> UF_CARD_NUM_INTARO string optional
|
|
* <li> UF_LP_ID_INTARO string optional
|
|
* <li> UF_REG_IN_PL_INTARO int optional
|
|
* <li> UF_AGREE_PL_INTARO int optional
|
|
* <li> UF_PD_PROC_PL_INTARO int optional
|
|
* <li> UF_EXT_REG_PL_INTARO int optional
|
|
* </ul>
|
|
*
|
|
* @package Bitrix\Uts
|
|
**/
|
|
class UtsUserTable extends Main\Entity\DataManager
|
|
{
|
|
/**
|
|
* Returns DB table name for entity.
|
|
*
|
|
* @return string
|
|
*/
|
|
public static function getTableName()
|
|
{
|
|
return 'b_uts_user';
|
|
}
|
|
|
|
/**
|
|
* Returns entity map definition.
|
|
*
|
|
* @return array
|
|
*/
|
|
public static function getMap()
|
|
{
|
|
return [
|
|
'VALUE_ID' => [
|
|
'data_type' => 'integer',
|
|
'primary' => true,
|
|
'title' => Loc::getMessage('USER_ENTITY_VALUE_ID_FIELD'),
|
|
],
|
|
'UF_CARD_NUM_INTARO' => [
|
|
'data_type' => 'text',
|
|
'title' => Loc::getMessage('USER_ENTITY_UF_CARD_NUM_INTARO_FIELD'),
|
|
],
|
|
'UF_LP_ID_INTARO' => [
|
|
'data_type' => 'text',
|
|
'title' => Loc::getMessage('USER_ENTITY_UF_LP_ID_INTARO_FIELD'),
|
|
],
|
|
'UF_REG_IN_PL_INTARO' => [
|
|
'data_type' => 'integer',
|
|
'title' => Loc::getMessage('USER_ENTITY_UF_REG_IN_PL_INTARO_FIELD'),
|
|
],
|
|
'UF_AGREE_PL_INTARO' => [
|
|
'data_type' => 'integer',
|
|
'title' => Loc::getMessage('USER_ENTITY_UF_AGREE_PL_INTARO_FIELD'),
|
|
],
|
|
'UF_PD_PROC_PL_INTARO' => [
|
|
'data_type' => 'integer',
|
|
'title' => Loc::getMessage('USER_ENTITY_UF_PD_PROC_PL_INTARO_FIELD'),
|
|
],
|
|
'UF_EXT_REG_PL_INTARO' => [
|
|
'data_type' => 'integer',
|
|
'title' => Loc::getMessage('USER_ENTITY_UF_EXT_REG_PL_INTARO_FIELD'),
|
|
],
|
|
];
|
|
}
|
|
}
|