2026-05-20 18:25:15 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
|
|
2026-06-10 11:04:26 +02:00
|
|
|
/**
|
|
|
|
|
* @property int $id
|
|
|
|
|
* @property int $entry_id
|
|
|
|
|
* @property string $filename
|
|
|
|
|
* @property string $filepath
|
|
|
|
|
* @property string $favorite_server
|
|
|
|
|
* @property int $favorite_at
|
|
|
|
|
* @property int|null $filesize
|
|
|
|
|
* @property \Illuminate\Support\Carbon|null $created_at
|
|
|
|
|
* @property \Illuminate\Support\Carbon|null $updated_at
|
|
|
|
|
* @property string $file_uuid
|
|
|
|
|
* @property string $state
|
|
|
|
|
* @property int $online_patcher
|
|
|
|
|
* @property int $secondary_online_patcher
|
|
|
|
|
* @property-read \App\Models\Entry|null $entry
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile newModelQuery()
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile newQuery()
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile query()
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereCreatedAt($value)
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereEntryId($value)
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereFavoriteAt($value)
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereFavoriteServer($value)
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereFileUuid($value)
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereFilename($value)
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereFilepath($value)
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereFilesize($value)
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereId($value)
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereOnlinePatcher($value)
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereSecondaryOnlinePatcher($value)
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereState($value)
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereUpdatedAt($value)
|
|
|
|
|
* @mixin \Eloquent
|
|
|
|
|
*/
|
2026-05-20 18:25:15 +02:00
|
|
|
class EntryFile extends Model
|
|
|
|
|
{
|
|
|
|
|
protected $fillable = [
|
2026-06-08 16:25:52 +02:00
|
|
|
'entry_id', 'filename', 'filepath', 'favorite_server', 'favorite_at', 'filesize', 'state', 'file_uuid', 'online_patcher', 'secondary_online_patcher',
|
2026-05-20 18:25:15 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
protected $casts = [
|
|
|
|
|
'favorite_at' => 'timestamp'
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
public function entry(): BelongsTo
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(Entry::class);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|