44 (
new Fields\IntegerField(
'ID'))
46 ->configureAutocomplete()
49 (
new Fields\StringField(
"GUID"))
50 ->configureUnique(
true)
51 ->configureNullable(
false)
52 ->configureDefaultValue(
static function () {
53 return sprintf(
'%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
54 mt_rand(0, 0xffff), mt_rand(0, 0xffff),
56 mt_rand(0, 0x0fff) | 0x4000,
57 mt_rand(0, 0x3fff) | 0x8000,
58 mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)
64 new Fields\IntegerField(
'FILE_ID'),
66 (
new Fields\StringField(
'FILENAME'))
71 (
new Fields\IntegerField(
'SIZE'))
75 (
new Fields\StringField(
'PATH'))
80 (
new Fields\StringField(
'MIMETYPE'))
85 new Fields\IntegerField(
'RECEIVED_SIZE'),
86 new Fields\IntegerField(
'WIDTH'),
87 new Fields\IntegerField(
'HEIGHT'),
89 new Fields\IntegerField(
'BUCKET_ID'),
90 (
new Fields\StringField(
'MODULE_ID'))
95 (
new Fields\StringField(
'CONTROLLER'))
100 (
new Fields\BooleanField(
'CLOUD'))
101 ->configureValues(0, 1)
102 ->configureDefaultValue(0)
105 (
new Fields\BooleanField(
'UPLOADED'))
106 ->configureValues(0, 1)
107 ->configureDefaultValue(0)
110 (
new Fields\BooleanField(
'DELETED'))
111 ->configureValues(0, 1)
112 ->configureDefaultValue(0)
115 (
new Fields\IntegerField(
'CREATED_BY'))
116 ->configureRequired()
117 ->configureDefaultValue(
static function () {
119 if (is_object($USER) && method_exists($USER,
'getId'))
121 return (
int)$USER->getId();
129 ->configureDefaultValue(
static function () {
136 \
Bitrix\Main\FileTable::class,
137 Join::on(
'this.FILE_ID',
'ref.ID'),
138 [
'join_type' => Join::TYPE_INNER]