mirror of
https://github.com/coollabsio/coolify.git
synced 2026-10-06 14:07:37 -04:00
Queue database imports from upload, S3, or server paths via REST, and manage Cloudflare DNS records from integration tokens and domain UIs.
25 lines
603 B
PHP
25 lines
603 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
|
|
class DnsProviderZone extends BaseModel
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = ['integration_token_id', 'provider_zone_id', 'name', 'account_id', 'account_name'];
|
|
|
|
public function integrationToken(): BelongsTo
|
|
{
|
|
return $this->belongsTo(IntegrationToken::class);
|
|
}
|
|
|
|
public function managedRecords(): HasMany
|
|
{
|
|
return $this->hasMany(ManagedDnsRecord::class);
|
|
}
|
|
}
|