Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
userhitauthtable.php
1<?php
2
11
12use Bitrix\Main;
16
34{
35 use Data\Internal\DeleteByFilterTrait;
36
37 public static function getTableName()
38 {
39 return 'b_user_hit_auth';
40 }
41
42 public static function getMap()
43 {
44 return [
45 (new Fields\IntegerField('ID'))
46 ->configurePrimary(true)
47 ->configureAutocomplete(true),
48
49 (new Fields\IntegerField('USER_ID'))
50 ->addValidator(new Fields\Validators\ForeignValidator(Main\UserTable::getEntity()->getField('ID'))),
51
52 (new Fields\StringField('HASH')),
53
54 (new Fields\StringField('URL')),
55
56 (new Fields\StringField('SITE_ID')),
57
58 (new Fields\DatetimeField('TIMESTAMP_X')),
59
60 (new Fields\DatetimeField('VALID_UNTIL')),
61
62 (new Fields\Relations\Reference(
63 'USER',
64 Main\UserTable::class,
65 Join::on('this.USER_ID', 'ref.ID')
66 ))->configureJoinType(Join::TYPE_INNER),
67 ];
68 }
69}