2025-07-13 00:18:45 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2026-05-02 17:10:00 +02:00
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
2025-07-13 00:18:45 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @method static create(array $array)
|
|
|
|
|
* @method static orderBy(string $string)
|
|
|
|
|
*/
|
|
|
|
|
class Milestone extends Model
|
|
|
|
|
{
|
|
|
|
|
protected $fillable = [
|
2026-05-02 16:54:50 +02:00
|
|
|
'tracker_id',
|
2025-07-13 00:18:45 +02:00
|
|
|
'target',
|
|
|
|
|
'description',
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
protected $casts = [
|
|
|
|
|
'target' => 'integer',
|
|
|
|
|
];
|
2026-05-02 17:10:00 +02:00
|
|
|
|
|
|
|
|
public function tracker(): BelongsTo
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(Tracker::class);
|
|
|
|
|
}
|
2025-07-13 00:18:45 +02:00
|
|
|
}
|