Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
trackingtable.php
1<?php
2
4
8
26{
27 public static function getTableName()
28 {
29 return 'b_bp_tracking';
30 }
31
32 public static function getMap()
33 {
34 return [
35 (new Entity\IntegerField('ID'))
36 ->configurePrimary()
37 ->configureAutocomplete(),
38
39 (new Entity\StringField('WORKFLOW_ID'))
40 ->addValidator(new LengthValidator(1, 32)),
41
42 new Entity\IntegerField('TYPE'),
43
44 new Entity\DatetimeField('MODIFIED'),
45
46 (new Entity\StringField('ACTION_NAME'))
47 ->addValidator(new LengthValidator(0, 128)),
48
49 (new Entity\StringField('ACTION_TITLE'))
50 ->addValidator(new LengthValidator(0, 255)),
51
52 (new Entity\IntegerField('EXECUTION_STATUS'))
53 ->configureDefaultValue(0),
54
55 (new Entity\IntegerField('EXECUTION_RESULT'))
56 ->configureDefaultValue(0),
57
58 (new Entity\TextField('ACTION_NOTE'))
59 ->configureNullable(),
60
61 (new Entity\IntegerField('MODIFIED_BY'))
62 ->configureNullable(),
63
64 (new Entity\StringField('COMPLETED'))
65 ->configureDefaultValue('N')
66 ->addValidator(new LengthValidator(0, 1)),
67 ];
68 }
69}