Files
w4rpservices/app/Models/Moon/RentalMoonLedger.php

42 lines
829 B
PHP

<?php
namespace App\Models\Moon;
use Illuminate\Database\Eloquent\Model;
class RentalMoonLedger extends Model
{
//Table Name
protected $table = 'alliance_rental_moon_ledgers';
//Primary Key
public $primaryKey = 'id';
//Timestamps
public $timestamps = true;
protected $fillable = [
'corporation_id',
'corporation_name',
'character_id',
'character_name',
'observer_id',
'observer_name',
'type_id',
'ore',
'quantity',
'recorded_corporation_id',
'recorded_corporation_name',
'last_updated',
];
/**
* Get the observer this belongs to
*/
public function observer() {
return $this->belongsTo('App\Models\Moon\RentalMoonObserver', 'observer_id', 'observer_id');
}
}