Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
webhook.php
1<?
9
13
30class WebHookTable extends Entity\DataManager
31{
32 public static function getTableName()
33 {
34 return 'b_seo_service_webhook';
35 }
36
37 public static function getMap()
38 {
39 return array(
40 'ID' => array(
41 'data_type' => 'integer',
42 'primary' => true,
43 'autocomplete' => true,
44 ),
45 'DATE_INSERT' => array(
46 'data_type' => 'datetime',
47 'default_value' => new DateTime(),
48 'required' => true,
49 ),
50 'TYPE' => array(
51 'data_type' => 'string',
52 'required' => true,
53 ),
54 'EXTERNAL_ID' => array(
55 'data_type' => 'string',
56 'required' => true,
57 ),
58 'SECURITY_CODE' => array(
59 'data_type' => 'string',
60 'required' => true,
61 'default_value' => function() {
62 return Random::getString(32);
63 }
64 )
65 );
66 }
67}