VPS and dedicated server ordering, managed panels, SSO, billing, and launcher integration — forked from hosting infrastructure with server-focused routes and dashboard. Co-authored-by: Cursor <cursoragent@cursor.com>
37 lines
697 B
PHP
37 lines
697 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class DomainDnsRecord extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'domain_id',
|
|
'name',
|
|
'type',
|
|
'value',
|
|
'ttl',
|
|
'priority',
|
|
'source',
|
|
'status',
|
|
'last_checked_at',
|
|
'notes',
|
|
];
|
|
|
|
protected $casts = [
|
|
'ttl' => 'integer',
|
|
'priority' => 'integer',
|
|
'last_checked_at' => 'datetime',
|
|
];
|
|
|
|
public function domain(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Domain::class);
|
|
}
|
|
}
|