'integer', 'priority' => 'integer']; public function domain(): BelongsTo { return $this->belongsTo(Domain::class); } public function getFullNameAttribute(): string { return $this->name === '@' ? $this->domain->domain : $this->name . '.' . $this->domain->domain; } public static function getTypes(): array { return ['A', 'AAAA', 'CNAME', 'MX', 'TXT', 'NS', 'SRV', 'CAA']; } }