33 lines
707 B
PHP
33 lines
707 B
PHP
<?php
|
|
|
|
namespace App\Models\Business;
|
|
|
|
use App\Abstracts\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class SystemizationTodoAttachment extends Model
|
|
{
|
|
protected $table = 'business_systemization_todo_attachments';
|
|
|
|
protected $fillable = [
|
|
'company_id',
|
|
'systemization_todo_id',
|
|
'path',
|
|
'original_name',
|
|
'mime_type',
|
|
'size',
|
|
'uploaded_by',
|
|
];
|
|
|
|
protected $casts = [
|
|
'company_id' => 'integer',
|
|
'systemization_todo_id' => 'integer',
|
|
'size' => 'integer',
|
|
];
|
|
|
|
public function todo(): BelongsTo
|
|
{
|
|
return $this->belongsTo(SystemizationTodo::class, 'systemization_todo_id');
|
|
}
|
|
}
|