Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
linkreminder.php
1<?php
2namespace Bitrix\Im\Model;
3
11
43{
49 public static function getTableName()
50 {
51 return 'b_im_link_reminder';
52 }
53
59 public static function getMap()
60 {
61 return [
62 'ID' => new IntegerField(
63 'ID',
64 [
65 'primary' => true,
66 'autocomplete' => true,
67 ]
68 ),
69 'MESSAGE_ID' => new IntegerField(
70 'MESSAGE_ID',
71 [
72 'required' => true,
73 ]
74 ),
75 'CHAT_ID' => new IntegerField(
76 'CHAT_ID',
77 [
78 'required' => true,
79 ]
80 ),
81 'DATE_CREATE' => new DatetimeField(
82 'DATE_CREATE',
83 [
84 'required' => true,
85 'default_value' => static function() {
86 return new DateTime();
87 }
88 ]
89 ),
90 'AUTHOR_ID' => new IntegerField(
91 'AUTHOR_ID',
92 [
93 'required' => true,
94 ]
95 ),
96 'DATE_REMIND' => new DatetimeField(
97 'DATE_REMIND',
98 [
99 'required' => true,
100 ]
101 ),
102 'IS_REMINDED' => new BooleanField(
103 'IS_REMINDED',
104 [
105 'required' => true,
106 'values' => array('N', 'Y'),
107 'default' => 'N',
108 'default_value' => false,
109 ]
110 ),
111 'MESSAGE' => (new Reference(
112 'MESSAGE',
113 MessageTable::class,
114 Join::on('this.MESSAGE_ID', 'ref.ID')
115 ))->configureJoinType(Join::TYPE_INNER),
116 ];
117 }
118}