33 lines
763 B
PHP
33 lines
763 B
PHP
<?php
|
|
|
|
namespace IriksIT\Manager\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use IriksIT\Manager\Support\Names;
|
|
|
|
/**
|
|
* What the tokens of one piece of work cost, as a price source worked it out once (`Support\Costs\Ledger`). Kept, because the
|
|
* price of a day in the past does not change.
|
|
*
|
|
* @property int $id
|
|
* @property string $fingerprint
|
|
* @property string $date
|
|
* @property string $name
|
|
* @property string|null $version
|
|
* @property string $model
|
|
* @property string $usd
|
|
* @property string $eur
|
|
* @property string $usd_per_eur
|
|
*/
|
|
class WorkCost extends Model
|
|
{
|
|
protected $guarded = [];
|
|
|
|
protected $casts = ['priced_at' => 'datetime'];
|
|
|
|
public function getTable(): string
|
|
{
|
|
return Names::table('work_costs');
|
|
}
|
|
}
|