Added job for retrieving assets from esi. Modified moon rental data to flow better with views.
40 lines
678 B
PHP
40 lines
678 B
PHP
<?php
|
|
|
|
namespace App\Models\Stock;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Asset extends Model
|
|
{
|
|
/**
|
|
* Required scope:
|
|
* esi-assets.read_corporation_assets.v1
|
|
*/
|
|
|
|
//Table Name
|
|
public $table = 'alliance_assets';
|
|
|
|
//Timestamps
|
|
public $timestamps = true;
|
|
|
|
//Primary Key
|
|
public $primaryKey = 'id';
|
|
|
|
/**
|
|
* The attributes that are mass assignable
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $fillable = [
|
|
'is_blueprint_copy',
|
|
'is_singleton',
|
|
'item_id',
|
|
'location_flag',
|
|
'location_id',
|
|
'location_type',
|
|
'quantity',
|
|
'type_id',
|
|
'updated_at',
|
|
];
|
|
}
|