40 lines
775 B
PHP
40 lines
775 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Traits\LogsActivity;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ModuleDomain extends Model
|
|
{
|
|
use HasFactory, LogsActivity;
|
|
|
|
protected $table = 'module_domain';
|
|
|
|
protected $fillable = [
|
|
'name',
|
|
'order_id',
|
|
'first_payment',
|
|
'module_dns_id',
|
|
'next_payment',
|
|
'next_due_date',
|
|
'next_invoice_date',
|
|
'customer_id',
|
|
'domain_type_id',
|
|
'registrar_id',
|
|
'note',
|
|
'status'
|
|
];
|
|
|
|
public function customer()
|
|
{
|
|
return $this->belongsTo(\App\Models\Customer::class);
|
|
}
|
|
|
|
public function registrar()
|
|
{
|
|
return $this->belongsTo(Registrar::class);
|
|
}
|
|
}
|