Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
message.php
1<?php
9
11
28class MessageTable extends Entity\DataManager
29{
30 public static function getFilePath()
31 {
32 return __FILE__;
33 }
34
35 public static function getTableName()
36 {
37 return 'b_mail_user_message';
38 }
39
40 public static function getMap()
41 {
42 return array(
43 'ID' => array(
44 'data_type' => 'integer',
45 'primary' => true,
46 'autocomplete' => true,
47 ),
48 'TYPE' => array(
49 'data_type' => 'string',
50 'required' => true,
51 ),
52 'SITE_ID' => array(
53 'data_type' => 'string',
54 'required' => true,
55 ),
56 'ENTITY_TYPE' => array(
57 'data_type' => 'string',
58 'required' => true,
59 ),
60 'ENTITY_ID' => array(
61 'data_type' => 'integer',
62 ),
63 'USER_ID' => array(
64 'data_type' => 'integer',
65 'required' => true,
66 ),
67 'SUBJECT' => array(
68 'data_type' => 'string',
69 ),
70 'CONTENT' => array(
71 'data_type' => 'string',
72 ),
73 'ATTACHMENTS' => array(
74 'data_type' => 'string',
75 ),
76 'HEADERS' => array(
77 'data_type' => 'string',
78 ),
79 );
80 }
81}