<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Prunable;

class StateTracker extends Model
{
    use Prunable;

    protected $fillable = [
        'identifier',
        'detail'
    ];

    public function prunable() {
        return static::where('created_at', '<=', now()->subDays(14));
    }

}