CaiWuXiTong/app/Models/Business/SystemizationTodoAttachment.php
yueyang 3cff23c595 新增财务系统化待办与完成截图
新增财务系统化待办与完成截图
2026-10-25 16:23:08 +08:00

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');
}
}