Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
eventattachment.php
1<?php
10
12
29class EventAttachmentTable extends Entity\DataManager
30{
31
35 public static function getTableName()
36 {
37 return 'b_event_attachment';
38 }
39
43 public static function getMap()
44 {
45 return array(
46 'EVENT_ID' => array(
47 'data_type' => 'integer',
48 'primary' => true,
49 ),
50 'FILE_ID' => array(
51 'data_type' => 'integer',
52 ),
53 'IS_FILE_COPIED' => array(
54 'data_type' => 'boolean',
55 'required' => true,
56 'values' => array('N', 'Y'),
57 'default_value' => 'Y'
58 ),
59 'EVENT' => array(
60 'data_type' => EventTable::class,
61 'reference' => array('=this.EVENT_ID' => 'ref.ID'),
62 ),
63 );
64 }
65
66}