Files
ladill-hosting/app/Models/ServerFile.php
T
isaaccladandCursor e251a4cf60
Deploy Ladill Hosting / deploy (push) Failing after 17s
Initial Ladill Hosting app with Gitea deploy pipeline.
Shared web hosting extracted from the platform monolith, with CI deploy
to /var/www/ladill-hosting matching Bird/Domains/Email.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-06 16:24:20 +00:00

49 lines
1.1 KiB
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class ServerFile extends Model
{
use HasFactory;
protected $fillable = [
'customer_hosting_order_id',
'server_agent_id',
'latest_server_task_id',
'path',
'kind',
'exists',
'size_bytes',
'content_hash',
'content_preview',
'metadata',
'last_synced_at',
];
protected $casts = [
'exists' => 'boolean',
'size_bytes' => 'integer',
'metadata' => 'array',
'last_synced_at' => 'datetime',
];
public function order(): BelongsTo
{
return $this->belongsTo(CustomerHostingOrder::class, 'customer_hosting_order_id');
}
public function agent(): BelongsTo
{
return $this->belongsTo(ServerAgent::class, 'server_agent_id');
}
public function latestTask(): BelongsTo
{
return $this->belongsTo(ServerTask::class, 'latest_server_task_id');
}
}