Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
messagedisappearing.php
1<?php
2namespace Bitrix\Im\Model;
3
8
10{
11 public static function getTableName()
12 {
13 return 'b_im_message_disappearing';
14 }
15
21 public static function getMap()
22 {
23 return [
24 'MESSAGE_ID' => new IntegerField(
25 'MESSAGE_ID',
26 [
27 'primary' => true,
28 'required' => true,
29 ]
30 ),
31 'DATE_CREATE' => new DatetimeField(
32 'DATE_CREATE',
33 [
34 'required' => true,
35 'default' => function()
36 {
37 return new DateTime();
38 },
39 ]
40 ),
41 'DATE_REMOVE' => new DatetimeField(
42 'DATE_REMOVE',
43 [
44 'required' => true,
45 ]
46 ),
47 ];
48 }
49}