update
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user