31 lines
609 B
PHP
31 lines
609 B
PHP
<?php
|
|
|
|
namespace App\Models\Moon;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class RentalMoonObserver extends Model
|
|
{
|
|
//Table Name
|
|
protected $table = 'alliance_mining_observers';
|
|
|
|
//Primary Key
|
|
public $primaryKey = 'id';
|
|
|
|
//Timestamps
|
|
public $timestamps = true;
|
|
|
|
protected $fillable = [
|
|
'corporation_id',
|
|
'corporation_name',
|
|
'observer_id',
|
|
'observer_name',
|
|
'observer_type',
|
|
'last_updated',
|
|
];
|
|
|
|
public function ledger() {
|
|
return $this->hasMany('App\Models\Moon\RentalMoonLedger', 'observer_id', 'observer_id');
|
|
}
|
|
}
|