32 lines
601 B
PHP
32 lines
601 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Models;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||
|
|
||
|
class DocumentFile extends Model
|
||
|
{
|
||
|
use HasFactory;
|
||
|
|
||
|
public $timestamps = ["created_at"];
|
||
|
const UPDATED_AT = null;
|
||
|
|
||
|
/**
|
||
|
* The attributes that are mass assignable.
|
||
|
*
|
||
|
* @var array<int, string>
|
||
|
*/
|
||
|
protected $fillable = [
|
||
|
'uuid',
|
||
|
'type',
|
||
|
'file_path'
|
||
|
];
|
||
|
|
||
|
public function uploadedBy(): BelongsTo
|
||
|
{
|
||
|
return $this->belongsTo(User::class);
|
||
|
}
|
||
|
}
|