- Implemented DomainCollection, DomainDetailResource, DomainNSCollection, DomainNSResource, and DomainResource for handling DNS domain and record data. - Created VpsServiceCollection and VpsServiceResource for VPS service management. - Added DnsManagerNS and DnsManagerUser models to represent DNS records and user associations. - Developed AdminZoneDnsSqlImporter for importing DNS data from SQL dumps, including customer and DNS domain records. - Added migration scripts to update the customers table with new fields and sync foreign key references for DNS tables. - Created a migration preview document outlining the mapping and schema changes for the admin zone DNS import.
34 lines
629 B
PHP
34 lines
629 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class DnsManagerNS extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'dns_manager_ns';
|
|
|
|
protected $fillable = [
|
|
'dns_manager_domain_id',
|
|
'name',
|
|
'type',
|
|
'type_valid',
|
|
'priority',
|
|
'weight',
|
|
'port',
|
|
'service_name',
|
|
'protocol',
|
|
'value',
|
|
'ttl',
|
|
'plesk_id',
|
|
];
|
|
|
|
public function managerDomain()
|
|
{
|
|
return $this->belongsTo(DnsDomain::class, 'dns_manager_domain_id', 'id');
|
|
}
|
|
}
|