62 lines
1.3 KiB
PHP
62 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace Modules\DomainFluctuation\App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class DomainFluctuation extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'domain_fluctuations';
|
|
|
|
protected $fillable = [
|
|
'domainName',
|
|
'term_id',
|
|
'registeredDate',
|
|
'expiredDate',
|
|
'ownerName',
|
|
'ownerType',
|
|
'address',
|
|
'wardName',
|
|
'districtName',
|
|
'cityName',
|
|
'cityCode',
|
|
'countryCode',
|
|
'phone',
|
|
'email',
|
|
'fax',
|
|
'adminName',
|
|
'businessCode',
|
|
'eidCode',
|
|
'personalId',
|
|
'birthDate',
|
|
'icannRegistrarName',
|
|
'icannRegistrarTradeName',
|
|
'isAgentManager',
|
|
'action',
|
|
'actionReason',
|
|
'actionSource',
|
|
'actionDate',
|
|
'note',
|
|
'ianaNumber',
|
|
'status',
|
|
];
|
|
|
|
protected $casts = [
|
|
'isAgentManager' => 'boolean',
|
|
'status' => 'integer',
|
|
'registeredDate' => 'integer',
|
|
'expiredDate' => 'integer',
|
|
'actionDate' => 'integer',
|
|
'ianaNumber' => 'integer',
|
|
];
|
|
|
|
public function term(): BelongsTo
|
|
{
|
|
return $this->belongsTo(DomainFluctuationTerm::class, 'term_id');
|
|
}
|
|
}
|